{"skill":{"slug":"anygen-task-download","displayName":"Anygen Task Download","summary":"AnyGen: Download artifacts from a completed task.","description":"---\nname: anygen-task-download\nversion: 1.0.0\ndescription: \"AnyGen: Download artifacts from a completed task.\"\nmetadata:\n  requires:\n    bins: [\"anygen\"]\n    env: [\"ANYGEN_API_KEY\"]\n  install:\n    - id: node\n      kind: node\n      package: \"@anygen/cli\"\n      bins: [\"anygen\"]\n  cliHelp: \"anygen task +download --help\"\n---\n\n# task +download\n\n> **PREREQUISITE:** Read [`../anygen-shared/SKILL.md`](../anygen-shared/SKILL.md) for auth, global flags, and security rules.\n\nDownload artifacts from a completed task.\n\n## Usage\n\n```bash\nanygen task +download --task-id <id> --output-dir <dir>\n```\n\n## Flags\n\n| Flag | Required | Description |\n|------|----------|-------------|\n| `--task-id` | ✓ | Task ID |\n| `--output-dir` | — | Local directory to save files (default: current directory) |\n| `--file <name...>` | — | Download specific file(s) by name (repeatable) |\n| `--thumbnail` | — | Download thumbnail image instead of main files |\n\n## Examples\n\n```bash\n# Download all output files\nanygen task +download --task-id xxx\n\n# Download specific file(s) by name\nanygen task +download --task-id xxx --file report.pptx\nanygen task +download --task-id xxx --file report.pptx --file data.xlsx\n\n# Download thumbnail (for preview)\nanygen task +download --task-id xxx --thumbnail\n\n# Specify output directory\nanygen task +download --task-id xxx --output-dir ./output\n```\n\n## Output\n\nReturns JSON with downloaded file paths:\n\n```json\n{\n  \"status\": \"completed\",\n  \"task_id\": \"xxx\",\n  \"files\": [\n    { \"file\": \"./report.pptx\", \"name\": \"report.pptx\" },\n    { \"file\": \"./data.xlsx\", \"name\": \"data.xlsx\" }\n  ],\n  \"task_url\": \"https://...\"\n}\n```\n\n## Tips\n\n- The task must be in `completed` state. Use `task get --wait` first if needed.\n- Without `--file`, all output files are downloaded.\n- Use `--thumbnail` first to show a preview, then download the main files when user requests it.\n- For smart_draw tasks, diagram files are automatically rendered to PNG.\n- File names for `--file` come from the `output.files[].name` field in the task get response.\n\n> [!CAUTION]\n> This is a **write** command (writes files to disk) — confirm the output directory with the user.\n\n## See Also\n\n- [`anygen-workflow-generate`](../anygen-workflow-generate/SKILL.md) — Full content generation workflow\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":337,"installsAllTime":0,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1777632516737,"updatedAt":1778492821950},"latestVersion":{"version":"1.0.0","createdAt":1777632516737,"changelog":"Initial release of anygen-task-download\n\n- Adds the ability to download artifacts from a completed AnyGen task using the CLI.\n- Supports downloading all files, specific files by name, thumbnails, and output directory selection.\n- Provides JSON output listing downloaded files and their locations.\n- Includes usage examples and helpful tips for integration.\n- Highlights important prerequisites and security considerations.","license":"MIT-0"},"metadata":null,"owner":{"handle":"supertilico2001","userId":"s17fn15qsppc5hkbvd53dcppms85xvpe","displayName":"supertilico2001","image":"https://avatars.githubusercontent.com/u/42905851?v=4"},"moderation":null}