aria2-json-rpc
БесплатноБез исполняемых скриптовНе проверенInteract with aria2 download manager via JSON-RPC 2.0. Manage downloads, query status, and control tasks through natural language commands. Use when working…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
What This Skill Does
This skill enables you to control aria2 download manager through natural language commands:
- Download files (HTTP/HTTPS/FTP/Magnet/Torrent/Metalink)
- Monitor download progress and status
- Control downloads (pause, resume, remove)
- Manage batch operations (pause all, resume all)
- View statistics and configure options
How to Use (For AI Agents)
⚠️ CRITICAL: DO NOT manually construct JSON-RPC requests.
✅ ALWAYS use the Python scripts in the scripts/ directory.
⚠️ IMPORTANT: Use python3 command, NOT python (especially on macOS where python symlink doesn't exist)
Workflow (MUST FOLLOW)
Step 1: Check Configuration Status
Before executing any aria2 commands, ALWAYS check if configuration is ready:
python3 scripts/config_loader.py test
- If successful: Proceed to execute user's command
- If failed: Guide user to initialize configuration (see Step 2)
Step 2: Initialize Configuration (if needed)
If connection test fails, guide user to set up configuration:
# Recommended: User config (survives skill updates)
python3 scripts/config_loader.py init --user
# Alternative: Local config (project-specific)
python3 scripts/config_loader.py init --local
Then instruct user to edit the generated config file with their aria2 server details.
Step 3: Execute User Commands
Once configuration is ready, execute the requested aria2 operations.
Example Workflow
User: "download http://example.com/file.zip"
You execute:
# 1. Check configuration
python3 scripts/config_loader.py test
If test passes:
# 2. Execute download command
python3 scripts/rpc_client.py aria2.addUri '["http://example.com/file.zip"]'
You respond: "✓ Download started! GID: 2089b05ecca3d829"
If test fails:
Configuration not ready. Please initialize:
1. Run: python3 scripts/config_loader.py init --user
2. Edit ~/.config/aria2-skill/config.json with your aria2 server details
3. Run: python3 scripts/config_loader.py test (to verify)
Documentation Structure
For detailed execution instructions, see:
- references/execution-guide.md - Complete guide for AI agents with:
- Command mapping table (user intent → script call)
- Parameter formatting rules
- Step-by-step examples
- Common mistakes to avoid
- Response formatting guidelines
For aria2 method reference, see:
- references/aria2-methods.md - Detailed aria2 RPC method documentation
Common Commands Quick Reference
| User Intent | Command Example |
|---|---|
| Download a file | python3 scripts/rpc_client.py aria2.addUri '["http://example.com/file.zip"]' |
| Check status | python3 scripts/rpc_client.py aria2.tellStatus <GID> |
| List active downloads | python3 scripts/rpc_client.py aria2.tellActive |
| List stopped downloads | python3 scripts/rpc_client.py aria2.tellStopped 0 100 |
| Pause download | python3 scripts/rpc_client.py aria2.pause <GID> |
| Resume download | python3 scripts/rpc_client.py aria2.unpause <GID> |
| Show statistics | python3 scripts/rpc_client.py aria2.getGlobalStat |
| Show version | python3 scripts/rpc_client.py aria2.getVersion |
| Purge results | python3 scripts/rpc_client.py aria2.purgeDownloadResult |
For detailed usage and more commands, see execution-guide.md.
Available Scripts
scripts/rpc_client.py- Main interface for RPC callsscripts/examples/list-downloads.py- Formatted download listscripts/examples/pause-all.py- Pause all downloadsscripts/examples/add-torrent.py- Add torrent downloadsscripts/examples/monitor-downloads.py- Real-time monitoringscripts/examples/set-options.py- Modify options
Configuration
Scripts automatically load configuration from multiple sources with the following priority (highest to lowest):
Configuration Priority
Environment Variables (highest priority - temporary override)
ARIA2_RPC_HOST,ARIA2_RPC_PORT,ARIA2_RPC_PATH, etc.- Best for: CI/CD pipelines, temporary overrides, testing
- Note: For reference only. Agents should use config files instead.
Skill Directory Config (project-specific configuration)
- Location:
skills/aria2-json-rpc/config.json - Best for: Project-specific settings, local testing, development
- ⚠️ Warning: Lost when running
npx skills addto update the skill
- Location:
User Config Directory (global fallback, update-safe) 🆕
- Location:
~/.config/aria2-skill/config.json - Best for: Personal default settings across all projects
- ✅ Safe: Survives skill updates via
npx skills add
- Location:
Defaults (localhost:6800)
- Zero-configuration fallback for local development
Configuration Options
- host: Hostname or IP address (default:
localhost) - port: Port number (default:
6800) - **pat
Установить aria2-json-rpc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл aria2-json-rpc?
Interact with aria2 download manager via JSON-RPC 2.0. Manage downloads, query status, and control tasks through natural language commands. Use when working with aria2, download management, or torrent operations.
Как установить скилл aria2-json-rpc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aria2-json-rpc запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic