multitask
БесплатноЗапускает вложенные скриптыНе проверенExecute multiple independent development tasks in parallel using subprocess isolation. Each task runs in a clean /tmp clone with Recipe Runner code-enforced…
от rysweet★ 77 звёзд на GitHubОб этом скилле
Multitask Skill
Purpose
Execute multiple independent development tasks in parallel. Each workstream runs in an isolated /tmp clone with its own Recipe Runner process following code-enforced workflow steps.
Key Advantage: Uses Recipe Runner YAML recipes instead of prompt-based markdown workflows. Python controls step execution, making it impossible to skip steps.
Quick Start
Inline Tasks
/multitask
- #123 (feat/add-auth): Implement user authentication
- #124 (feat/add-logging): Add structured logging
- #125 (feat/update-api): Update API endpoints
JSON Config
Create workstreams.json:
[
{
"issue": 123,
"branch": "feat/add-auth",
"description": "User authentication",
"task": "Implement JWT-based authentication with login/logout endpoints",
"recipe": "default-workflow"
},
{
"issue": 124,
"branch": "feat/add-logging",
"description": "Structured logging",
"task": "Add structured JSON logging across all API endpoints"
}
]
Then: /multitask workstreams.json
How It Works
User provides task list
|
v
For each task:
1. Clone branch to /tmp/amplihack-workstreams/ws-{issue}/
2. Write launcher.py (Recipe Runner with CLISubprocessAdapter)
3. Write run.sh (sets session tree vars, runs launcher.py)
4. Launch subprocess via Popen
|
v
Monitor all workstreams (60s intervals)
|
v
Report: PR numbers, success/failure, runtime
Why Recipe Runner?
| Aspect | Classic (markdown) | Recipe Runner (YAML) |
|---|---|---|
| Step ordering | Prompt-based (skippable) | Code-enforced (Python loop) |
| Template variables | None | {{task_description}}, {{repo_path}} |
| Error handling | Implicit | Fail-fast per step |
| Progress tracking | Opaque | Step-by-step status |
Critical Implementation Details
/tmpclones (not worktrees): Worktree symlinks confuse nested Claude sessions. Clean clones avoid this.--subprocess-safe: Classic mode passes this flag to skip staging/env updates, preventing concurrent write races on~/.amplihack/.claude/(issue #2567).- Recipe Runner adapter:
CLISubprocessAdaptershells out toclaude -pfor each agent step within the recipe (noamplihackwrapper, so no staging race). - Child env cleanup: The shared
build_child_env()utility strips blocking env vars and propagates session tree context.
Execution Modes
Recipe Mode (Default)
Each workstream runs amplihack recipe run via a launcher script:
amplihack recipe run amplifier-bundle/recipes/default-workflow.yaml \
-c task_description="TASK_DESCRIPTION_HERE" \
-c repo_path="."
Classic Mode
Falls back to single-session prompt-based execution with --subprocess-safe
to avoid concurrent staging races (see issue #2567):
amplihack claude --subprocess-safe -- -p "@TASK.md Execute autonomously following DEFAULT_WORKFLOW.md."
The --subprocess-safe flag skips all staging/env updates so parallel
workstreams don't race on ~/.amplihack/.claude/. The parent amplihack
process has already staged the framework files.
Use --mode classic when Recipe Runner is unavailable or for tasks that benefit from full session context.
Available Recipes
Any recipe in amplifier-bundle/recipes/ can be used per-workstream:
| Recipe | Steps | Best For |
|---|---|---|
default-workflow |
52 | Features, bugs, refactoring (default) |
investigation-workflow |
23 | Research, codebase analysis |
verification-workflow |
5 | Trivial changes, config updates |
auto-workflow |
9 | Autonomous iteration until complete |
Specify per-task: "recipe": "investigation-workflow" in JSON config.
Monitoring
# Watch all logs
tail -f /tmp/amplihack-workstreams/log-*.txt
# Check specific workstream
tail -f /tmp/amplihack-workstreams/log-123.txt
# Check running processes
ps aux | grep launcher.py
# Final report
cat /tmp/amplihack-workstreams/REPORT.md
When to Read Supporting Files
| Need | File |
|---|---|
| Full API, config options, architecture | reference.md |
| Timeout policies & lifecycle states | TIMEOUT_LIFECYCLE.md |
| Real-world usage examples | examples.md |
| Python orchestrator source | orchestrator.py |
Disk Management & Cleanup
Understanding Disk Usage
Each workstream creates a full git clone (~1.5GB). With 10 parallel workstreams, thi
Установить multitask в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл multitask?
Execute multiple independent development tasks in parallel using subprocess isolation. Each task runs in a clean /tmp clone with Recipe Runner code-enforced workflow execution. Proven pattern: 4/5 PRs created successfully in first production use.
Как установить скилл multitask?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл multitask запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic