Skip to content
autopilot logo

Autopilot: Sequential Phase Implementation

autopilot

This skill should be used when the user asks to "run autopilot", "autopilot feature N", "implement all phases", "run all phases sequentially", "autopilot 003", or wants to automatically implement all phases of a feature in sequence without manual intervention.

SKILL.md

Full skill instructions

Autopilot: Sequential Phase Implementation

Run all phases of a feature sequentially via subagents, respecting dependencies.

User Input

ARGUMENTS = $ARGUMENTS

Accept a feature number (e.g., "003") or use current branch if not provided.

/​autopilot 003        # Run all phases for feature 003
/​autopilot            # Run all phases for current branch's feature

Execution Flow

/​autopilot 003
       │
       ▼
┌─────────────────────┐
│  Load Feature       │
│  • Find tasks.md    │
│  • Parse phases     │
│  • Build order      │
└─────────┬───────────┘
       │
       ▼
┌─────────────────────┐
│  For Each Phase:    │
│                     │
│  ┌───────────────┐  │
│  │ Spawn Agent   │  │
│  │ /​implement    │  │
│  │ "Phase N"     │  │
│  └───────┬───────┘  │
│          │          │
│          ▼          │
│  ┌───────────────┐  │
│  │ Wait for      │  │
│  │ Completion    │  │
│  └───────┬───────┘  │
│          │          │
│          ▼          │
│  ┌───────────────┐  │
│  │ Report Status │  │
│  │ → Next Phase  │  │
│  └───────────────┘  │
└─────────────────────┘
       │
       ▼
┌─────────────────────┐
│  Final Summary      │
└─────────────────────┘

Workflow

Step 1: Resolve Feature

  1. If ARGUMENTS provided, use as feature number (e.g., "003")
  2. If no ARGUMENTS, extract from current git branch:
    git branch --show-current
    # feature/​003-agent-behavior-statecharts → 003
    
  3. Find feature folder in backlog/​plans/​{NNN}-*/

Step 2: Parse Phases from tasks.md

Read {feature-path}/​tasks.md and extract phases:

## Phase 1: Core Types
## Phase 2: Statechart Engine
## Phase 3: LLM Reasoner
...

Build ordered list: ["Phase 1", "Phase 2", "Phase 3", ...]

Step 3: Sequential Execution

For each phase in order:

  1. Spawn subagent using Task tool:

    Task(
      subagent_type: "general-purpose",
      description: "Implement Phase N",
      prompt: """
    Implement Phase N for feature {feature-id}.
    
    CRITICAL: Your first action must be to invoke the implement skill:
    
    Skill(skill: "implement", args: "Phase N")
    
    The implement skill will guide you through TDD workflow for all tasks in this phase.
    Do NOT try to implement tasks manually - invoke the Skill tool first.
    
    Report success or failure when the phase is complete.
    """,
      run_in_background: false  # Wait for completion
    )
    
  2. Wait for completion before starting next phase

  3. Check result - if phase fails, stop and report

Step 4: Progress Reporting

After each phase completes, report:

✅ Phase 1: Complete (T001-T006)
🔄 Phase 2: In Progress...

Step 5: Final Summary

After all phases complete:

🎉 Autopilot Complete: Feature 003

✅ Phase 1: Core Types (T001-T006)
✅ Phase 2: Statechart Engine (T007-T015)
✅ Phase 3: LLM Reasoner (T016-T023)
✅ Phase 4: Timeout Transitions (T024-T029)
✅ Phase 5: Agent Integration (T030-T039)
✅ Phase 6: Queries + Validation (T040-T047)

All 47 tasks completed.

Next steps:
1. Run linting: uv run ruff check . && uv run flake8 .
2. Run tests: uv run pytest
3. Run spec tests: /​spec-tests specs/​tests/​003-*.md
4. Create PR when ready

Error Handling

If a phase fails:

  1. Stop execution - don't proceed to dependent phases
  2. Report failure with context:
    ❌ Phase 3 failed
    
    Completed: Phase 1, Phase 2
    Failed: Phase 3 (LLM Reasoner)
    Skipped: Phase 4, Phase 5, Phase 6
    
    Error: [error details from agent]
    
    To resume: /​implement "Phase 3"
    
  3. Preserve progress - completed phases remain done

Running in Background

For long-running features, run autopilot in background:

# In the skill execution, use:
Task(
  ...
  run_in_background: true
)

Then check progress with:

tail -100 {output_file}

Example Session

User: /​autopilot 003

Claude: Starting autopilot for feature 003-agent-behavior-statecharts

Found 6 phases to implement:
1. Phase 1: Core Types (T001-T006)
2. Phase 2: Statechart Engine (T007-T015)
3. Phase 3: LLM Reasoner (T016-T023)
4. Phase 4: Timeout Transitions (T024-T029)
5. Phase 5: Agent Integration (T030-T039)
6. Phase 6: Queries + Validation (T040-T047)

🔄 Phase 1: Starting...
[Agent implements Phase 1]
✅ Phase 1: Complete

🔄 Phase 2: Starting...
[Agent implements Phase 2]
✅ Phase 2: Complete

...continues through all phases...

🎉 Autopilot Complete!

Notes

  • Each phase runs as a separate subagent for isolation
  • Phases execute sequentially to respect dependencies
  • Progress is reported after each phase
  • On failure, stops immediately to prevent cascading issues
  • User can resume from failed phase with /​implement "Phase N"

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View