一键导入
ap-autopilot
Autonomous Phase 4 sprint orchestrator. Use when the user says 'run autopilot', 'start autopilot', or 'autopilot configure'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Autonomous Phase 4 sprint orchestrator. Use when the user says 'run autopilot', 'start autopilot', or 'autopilot configure'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
First-time onboarding and Telegram setup for BMad Autopilot. Walks through prerequisites, bot creation, connection testing, and autonomy preset selection. Use when the user says 'setup autopilot', 'install autopilot', or runs /ap-setup.
Generate sprint run dashboard reports. Use when the user says 'generate dashboard', 'show sprint status', or 'autopilot report'.
基于 SOC 职业分类
| name | ap-autopilot |
| description | Autonomous Phase 4 sprint orchestrator. Use when the user says 'run autopilot', 'start autopilot', or 'autopilot configure'. |
This skill is the autonomous controller for BMad's Phase 4 implementation cycle. It reads sprint-status.yaml, determines the next story, spawns Claude CLI sessions to execute each step (create story, validate, dev, code review), and manages the loop with configurable human gates via Telegram.
This skill is a standalone Python script, not a Claude prompt. It runs persistently, manages state, polls Telegram for responses, and handles retries. Invoke it directly via the CLI.
Capabilities:
# Run full sprint loop
uv run skills/ap-autopilot/scripts/autopilot.py run
# Run a specific epic
uv run skills/ap-autopilot/scripts/autopilot.py run --epic epic-1
# Run a single story
uv run skills/ap-autopilot/scripts/autopilot.py run --story 1-4-conversational-ai-llm-orchestration
# Override autonomy preset for this run
uv run skills/ap-autopilot/scripts/autopilot.py run --preset ghost
# Resume after a stop or crash
uv run skills/ap-autopilot/scripts/autopilot.py resume
# Configure
uv run skills/ap-autopilot/scripts/autopilot.py configure \
--preset checkpoint \
--telegram-token "bot123:ABC" \
--telegram-chat-id "12345678"
# Check status
uv run skills/ap-autopilot/scripts/autopilot.py status
Config is stored at {project-root}/_bmad/_autopilot.yaml. Set via the configure command or edit directly.
Autonomy presets:
| Preset | After Create | After Dev | After Review | Before Merge |
|---|---|---|---|---|
| ghost | auto | auto | auto | ask |
| checkpoint | auto | ask | auto | ask |
| copilot | ask | ask | ask | ask |
Merge is always gated regardless of preset. At the merge gate, the autopilot pushes the branch to origin and creates a GitHub PR (if gh CLI is installed and authenticated). The Telegram notification includes the PR link. Approving the gate merges the PR via gh pr merge.
Config values:
autonomy_preset -- ghost, checkpoint, or copilot (default: checkpoint)telegram_bot_token -- Telegram bot token from @BotFathertelegram_chat_id -- Telegram chat ID for notificationsretry_budget -- Max dev retries before escalating (default: 2)dashboard_format -- html or markdown (default: html)project_label -- Project name in notifications (default: folder name)gate_after_story_create -- Override individual gategate_after_dev -- Override individual gategate_after_review -- Override individual gategate_before_merge -- Override individual gate (always true by default)_bmad-output/autopilot/autopilot.lock prevents double-runs_bmad-output/autopilot/runs/ for debugginggh CLI is available_bmad-output/autopilot/ is gitignored in the target projectParse the user's intent and arguments, then run the appropriate command directly using Bash. The script path is .claude/skills/ap-autopilot/scripts/autopilot.py relative to the project root.
Routing:
uv run .claude/skills/ap-autopilot/scripts/autopilot.py runuv run .claude/skills/ap-autopilot/scripts/autopilot.py run --epic <epic>uv run .claude/skills/ap-autopilot/scripts/autopilot.py run --story <story-id>uv run .claude/skills/ap-autopilot/scripts/autopilot.py configure with any flags the user provideduv run .claude/skills/ap-autopilot/scripts/autopilot.py statusuv run .claude/skills/ap-autopilot/scripts/autopilot.py resumeIf _bmad/_autopilot.yaml does not exist or has no telegram_bot_token, let the user know they need to run /ap-setup first.