Autopilot

From Yeachan-Heo/oh-my-claudecode · View interactive version

Autopilot is an AI agent skill from the GitHub repository Yeachan-Heo/oh-my-claudecode. Full autonomous execution from idea to working code

How to use this skill

Skill file

<Purpose>

Autopilot takes a brief product idea and autonomously handles the full lifecycle: requirements analysis, technical design, planning, parallel implementation, QA cycling, and multi-perspective validation. It produces working, verified code from a 2-3 line description.

</Purpose>

<Use_When>

</Use_When>

<Do_Not_Use_When>

</Do_Not_Use_When>

<Why_This_Exists>

Most non-trivial software tasks require coordinated phases: understanding requirements, designing a solution, implementing in parallel, testing, and validating quality. Autopilot orchestrates all of these phases automatically so the user can describe what they want and receive working code without managing each step.

</Why_This_Exists>

<Execution_Policy>

</Execution_Policy>

<Workflow_Profiles>

Named stage profiles (v1)

Select a configured profile only with /autopilot --workflow <name> <task>. A profile is an autopilot-owned stage schedule, not a command, mode, plugin, filename, or separate state identity. Without --workflow, autopilot retains its legacy lifecycle and behavior.

Named workflow profiles require Linux with the flock utility in v1 because their transcript evidence boundary uses Linux no-follow file-descriptor traversal and their recoverable mutation lock uses kernel advisory locking. Unsupported environments reject explicit --workflow activation before state mutation; use legacy autopilot instead.

Profiles are configured in project or user JSONC as autopilot.workflows.<slug>. Every v1 profile has exactly version: 1 and stages; no other profile keys are accepted. The only admitted stage sequences are:

{
  "autopilot": {
    "workflows": {
      "plan-build-qa": {
        "version": 1,
        "stages": ["ralplan", "execution", "qa"]
      }
    }
  }
}
[ralplan, execution]
[ralplan, execution, ralph]
[ralplan, execution, qa]
[ralplan, execution, ralph, qa]

ralplan creates the plan consumed by execution; execution creates the implemented workspace required by ralph and qa. Thus omitted or reordered prerequisites, duplicate stages, and non-built-in stages are invalid. Profile names use ^[a-z][a-z0-9-]{0,62}$, are validated metadata only, and cannot collide with built-in stages, autopilot/mode names, or deprecated aliases.

User and project configuration sources are each validated before composition. Different names coexist; a project profile with the same name replaces the complete user profile rather than deep-merging it. Environment configuration cannot define or replace profiles.

On successful selection, autopilot atomically creates its existing session-scoped state with an immutable normalized descriptor and selected-only pipeline tracking. The descriptor contains the workflow name, profile version, canonical stages, and a deterministic SHA-256 profile hash; it excludes task text and mutable progress. Resume and Stop verify that hash and refuse a mismatch without reloading configuration or emitting a stage prompt. Cancel, resume, cleanup, state inspection, HUD, and Stop continuation remain owned by autopilot.

The installed plugin and standalone-installed Stop hooks advance only after an authorized assistant completion record for the active stage appears after that stage's persisted activation transcript boundary. They bind evidence to the owner session and bounded, non-symlink transcript; reject user/tool/local-command output and stale or wrong-stage evidence; and use compare-before-write tracking updates so duplicate or concurrent Stop events advance exactly once. Public state, HUD, and Stop output show only safe workflow metadata and progress, never the task, descriptor internals, transcript references, offsets, or record hashes.

V1 deferrals

V1 does not support stageModels, model routing, provider or role selection; inline/no-spawn execution; dynamic commands, modes, or state files; arbitrary stages, prompts, plugins, branches, loops, DAGs, or callbacks; or environment-defined profile definitions. The separate custom-skill inline-array frontmatter parser mismatch is also deferred.

</Workflow_Profiles>

<Steps>

  1. Phase 0 - Expansion: Turn the user's idea into a detailed spec
  1. Phase 1 - Planning: Create an implementation plan from the spec
  1. Phase 2 - Execution: Implement the plan using executor agents with Ralph persistence when needed
  1. Phase 3 - QA: Cycle until all tests pass
  1. Phase 4 - Validation: Multi-perspective review in parallel
  1. Phase 5 - Closeout and Cleanup:

</Steps>

<Tool_Usage>

</Tool_Usage>

<Examples>

<Good>

User: "autopilot A REST API for a bookstore inventory with CRUD operations using TypeScript"

Why good: Specific domain (bookstore), clear features (CRUD), technology constraint (TypeScript). Autopilot has enough context to expand into a full spec.

</Good>

<Good>

User: "build me a CLI tool that tracks daily habits with streak counting"

Why good: Clear product concept with a specific feature. The "build me" trigger activates autopilot.

</Good>

<Bad>

User: "fix the bug in the login page"

Why bad: This is a single focused fix, not a multi-phase project. Use direct executor delegation or ralph instead.

</Bad>

<Bad>

User: "what are some good approaches for adding caching?"

Why bad: This is an exploration/brainstorming request. Respond conversationally or use the plan skill.

</Bad>

</Examples>

<Escalation_And_Stop_Conditions>

</Escalation_And_Stop_Conditions>

<Final_Checklist>

</Final_Checklist>

Parallel session caveats

<Advanced>

Configuration

Optional settings in .claude/omc.jsonc (project) or ~/.config/claude-omc/config.jsonc (user):

{
  "autopilot": {
    "maxIterations": 10,
    "maxQaCycles": 5,
    "maxValidationRounds": 3,
    "pauseAfterExpansion": false,
    "pauseAfterPlanning": false,
    "skipQa": false,
    "skipValidation": false,
    "execution": "solo"
  }
}

To run autopilot implementation through the tmux CLI team runtime and prefer Cursor executor workers:

{
  "autopilot": {
    "execution": "team",
    "team": { "agentTypes": ["cursor"] }
  }
}

With that config, the execution stage must launch executor-style work through:

omc team 1:cursor "<implementation task>"

Limitations:

Resume

If autopilot was cancelled or failed, run /oh-my-claudecode:autopilot again to resume from where it stopped.

Best Practices for Input

  1. Be specific about the domain -- "bookstore" not "store"
  2. Mention key features -- "with CRUD", "with authentication"
  3. Specify constraints -- "using TypeScript", "with PostgreSQL"
  4. Let it run -- avoid interrupting unless truly needed

Troubleshooting

Stuck in a phase? Check TODO list for blocked tasks, review .omc/autopilot-state.json, or cancel and resume.

QA cycles exhausted? The same error 3 times indicates a fundamental issue. Review the error pattern; manual intervention may be needed.

Validation keeps failing? Review the specific issues. Requirements may have been too vague -- cancel and provide more detail.

Deep Interview Integration

When autopilot is invoked with a vague input, Phase 0 can redirect to /deep-interview for Socratic clarification:

User: "autopilot build me something cool"
Autopilot: "Your request is open-ended. Would you like to run a deep interview first?"
  [Yes, interview first (Recommended)] [No, expand directly]

If a deep-interview spec already exists at .omc/specs/deep-interview-*.md, autopilot uses it directly as Phase 0 output (the spec has already been mathematically validated for clarity).

When no interview can happen (headless/AFK run, unanswered offer, expand-anyway), the AFK assumption protocol in Escalation_And_Stop_Conditions governs: assumptions are recorded in the spec, irreversible-direction guesses become pending decisions, and the completion report leads with the Open Assumptions.

3-Stage Pipeline: deep-interview → ralplan → autopilot

The recommended full pipeline chains three quality gates:

/deep-interview "vague idea"
  → Socratic Q&A → spec (ambiguity ≤ 20%)
  → /ralplan --direct → consensus plan (Planner/Architect/Critic approved)
  → /autopilot → skips Phase 0+1, starts at Phase 2 (Execution)

When autopilot detects a ralplan consensus plan (.omc/plans/ralplan-*.md or .omc/plans/consensus-*.md), it skips both Phase 0 (Expansion) and Phase 1 (Planning) because the plan has already been:

Autopilot starts directly at Phase 2 using executor agents and Ralph persistence.

</Advanced>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.