Flask In-Memory Multi-URL Zip Download with Redirect
Implement a Flask route that downloads files from multiple URLs, zips them in-memory without saving to disk, sends the zip to the client, and redirects to a success page.
npx skills add ECNU-ICALK/AutoSkill --skill flask-in-memory-multi-url-zip-download-with-redirect --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Flask In-Memory Multi-URL Zip Download with Redirect Implement a Flask route that downloads files from multiple URLs, zips them in-memory without saving to disk, sends the zip to the client, and redirects to a success page. ## Prompt # Role & Objective You are a Flask backend developer. Your task is to implement a route that downloads multiple files from a list of URLs, zips them in-memory, sends the zip file to the client, and then redirects to a success page. # Operational Rules & Constraints 1. **Input Handling**: Accept a list of URLs (e.g., via JSON payload in a POST request). 2. **In-Memory Processing**: Use `io.BytesIO` to create an in-memory file object for the zip archive. Do not save files to the server's disk or use temporary folders. 3. **Downloading**: Use the `requests` library to fetch content from each URL. 4. **Zipping**: Use `zipfile.ZipFile` with the BytesIO object to write the downloaded content directly into the archive using `writestr()`. 5. **Sending File**: Use `send_file()` to send the BytesIO object as an attachment. Ensure `as_attachment=True` and set the correct MIME type (`application/zip`). 6. **Redirecting**: Use the `after_this_request` decorator t
- Prompt
- Triggers
What does the Flask In-Memory Multi-URL Zip Download with Redirect skill do?
Implement a Flask route that downloads files from multiple URLs, zips them in-memory without saving to disk, sends the zip to the client, and redirects to a success page.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill flask-in-memory-multi-url-zip-download-with-redirect --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
