Agent SkillsSethGammon/Citadel › autopilot

autopilot

GitHub

自动化处理规划目录中的待办事项,从接收、简报到构建验证的完整流水线。自动扫描状态,为待定项生成简报,执行已批准任务并验证结果,最后输出处理报告。

skills/autopilot/SKILL.md SethGammon/Citadel

Trigger Scenarios

用户询问或需要处理 .planning/intake/ 下的待办事项 用户指定某个 intake 文件或请求从 intake 到 PR 的交付流程

Install

npx skills add SethGammon/Citadel --skill autopilot -g -y
More Options

Use without installing

npx skills use SethGammon/Citadel@autopilot

指定 Agent (Claude Code)

npx skills add SethGammon/Citadel --skill autopilot -a claude-code -g -y

安装 repo 全部 skill

npx skills add SethGammon/Citadel --all -g -y

预览 repo 内 skill

npx skills add SethGammon/Citadel --list

SKILL.md

Frontmatter
{
    "name": "autopilot",
    "license": "MIT",
    "description": "Intake-to-delivery pipeline. Processes pending items from .planning\/intake\/: briefs new ideas, executes approved work through research → plan → build → verify. Drop a file in .planning\/intake\/ and invoke this skill.",
    "auto-trigger": false,
    "last-updated": 1773964800,
    "user-invocable": true,
    "trigger_keywords": [
        "intake",
        "process pending",
        "pipeline"
    ]
}

/autopilot — Intake Pipeline

Orientation

Use Autopilot when:

  • There are pending items in .planning/intake/
  • You want to process intake items without manual orchestration
  • The work is scoped and well-defined (Small or Medium complexity)

Do NOT use Autopilot for:

  • Large, multi-session campaigns (use Archon)
  • Parallel execution (use Fleet)
  • Exploratory or open-ended work (use Marshal)

Protocol

Step 0: DELIVERY PREFLIGHT

When the user names a specific intake file or asks for "intake to PR", prefer the deterministic delivery preflight before freeform build work:

node scripts/deliver.js --intake .planning/intake/{item}.md

If no specific intake file is named, use:

node scripts/deliver.js --next

This selects the highest-priority pending item in .planning/intake/ and keeps the golden path deterministic.

This creates an active campaign with claimed scope, acceptance criteria, map context, and exit evidence rows, then marks the intake item in-progress. Continue from the created campaign with /do continue.

After build and verification, package the delivery before marking the campaign complete:

node scripts/package-delivery.js {campaign-slug}

If a PR exists, record the PR as the review target:

node scripts/package-delivery.js {campaign-slug} --pr https://github.com/{owner}/{repo}/pull/{number}

Step 1: SCAN

Read all files in .planning/intake/ and identify:

  • status: pending → needs briefing
  • status: briefed → ready to build
  • status: approved → ready to build
  • status: in-progress → check if stuck

Step 2: BRIEF (for pending items)

For each pending item:

  1. Read the intake file
  2. Read related files mentioned in the description
  3. Research the scope: what files exist, what patterns are established
  4. Write the brief:
    • Scope: Small / Medium / Large
    • Approach: How to implement (2-3 sentences)
    • Files: Which files to create or modify
    • Quality gates: What must be true when done
    • Risks: What could go wrong
  5. Update the item's status to briefed

Step 3: BUILD (for briefed/approved items)

For each briefed item (smallest first):

  1. Read the brief
  2. Execute the approach:
    • Create or modify the listed files
    • Follow the project's conventions (CLAUDE.md)
    • Run typecheck after each change
  3. Verify:
    • All quality gates pass
    • Typecheck clean
    • Tests pass (if applicable)
  4. Update status to completed

Step 4: REPORT

Output a summary of what was processed:

Autopilot processed {N} items:
  ✓ {item-1}: briefed → built → verified
  ✓ {item-2}: briefed
  ✗ {item-3}: blocked — {reason}

Intake Item Format

---
title: "Feature Name"
status: pending | briefed | approved | in-progress | completed
priority: normal | high
target: src/path/to/affected/area/
---

Description of what needs to be done...

Fringe Cases

  • .planning/intake/ is empty or does not exist: Output "Nothing to process — .planning/intake/ is empty. Drop a file there or run /do setup to initialize." Do not error.
  • Intake item has no clear action: If the description is too vague to execute, ask the user one clarifying question or skip the item with a note: "Skipped — direction unclear. Update the intake file and re-run."
  • Item status is unrecognized: Treat unknown statuses as pending and proceed through the brief → build flow.
  • Typecheck fails during build: Record the failure in the item's status, move on to the next item, and report the blocker in the exit summary.
  • .planning/ does not exist: Output a setup hint and exit cleanly. Autopilot requires .planning/intake/ to operate — if the directory is absent, treat as empty intake and suggest running /do setup.

Contextual Gates

Disclosure: "Processing intake queue: N items pending. Will dispatch skills per item." Reversibility: amber — processes intake items by dispatching other skills that may modify files; undo depends on dispatched skills Trust gates:

  • Any: review intake and briefing.
  • Familiar (5+ sessions): autopilot runs autonomously on queued items; novices should review intake before running.

Quality Gates

  • Never build without reading CLAUDE.md first
  • Run typecheck after every file change
  • Mark items as completed only when verification passes
  • If an item is blocked, record the reason and move on

Exit Protocol

---HANDOFF---
- Processed {N} intake items
- Built: {list of completed items}
- Blocked: {list with reasons}
- Remaining: {count of items still pending}
---

Version History

  • 4bac8cd Current 2026-07-25 08:44

Same Skill Collection

skills/architect/SKILL.md
skills/archon/SKILL.md
skills/ascii-diagram/SKILL.md
skills/cost/SKILL.md
skills/create-app/SKILL.md
skills/create-skill/SKILL.md
skills/daemon/SKILL.md
skills/dashboard/SKILL.md
skills/decision-map/SKILL.md
skills/deploy-steward/SKILL.md
skills/design/SKILL.md
skills/do/SKILL.md
skills/doc-gen/SKILL.md
skills/evolve/SKILL.md
skills/experiment/SKILL.md
skills/fleet/SKILL.md
skills/grill/SKILL.md
skills/houseclean/SKILL.md
skills/improve/SKILL.md
skills/infra-audit/SKILL.md
skills/learn/SKILL.md
skills/live-preview/SKILL.md
skills/loop/SKILL.md
skills/map/SKILL.md
skills/marshal/SKILL.md
skills/merge-review/SKILL.md
skills/organize/SKILL.md
skills/postmortem/SKILL.md
skills/pr-watch/SKILL.md
skills/prd/SKILL.md
skills/qa/SKILL.md
skills/refactor/SKILL.md
skills/research-fleet/SKILL.md
skills/research/SKILL.md
skills/review/SKILL.md
skills/scaffold/SKILL.md
skills/schedule/SKILL.md
skills/session-handoff/SKILL.md
skills/setup/SKILL.md
skills/systematic-debugging/SKILL.md
skills/telemetry/SKILL.md
skills/test-gen/SKILL.md
skills/triage/SKILL.md
skills/unharness/SKILL.md
skills/verify/SKILL.md
skills/watch/SKILL.md
skills/wiki/SKILL.md
skills/workspace/SKILL.md
scripts/fixtures/ecosystem/anthropics-template-skill/SKILL.md

Metadata

Files
0
Version
d33c70c
Hash
9db32b5c
Indexed
2026-07-25 08:44

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 05:28
浙ICP备14020137号-1 $mapa de visitantes$