Blueprint autopilot

From laurigates/claude-plugins · View interactive version

Blueprint autopilot is an AI agent skill from the GitHub repository laurigates/claude-plugins. Run due blueprint maintenance ambiently at autonomy level 2+. Use when a drift nudge reports blueprint tasks due or suggests /blueprint:autopilot.

How to use this skill

Skill file

blueprint-autopilot

The level-2 executor of the ADR-0020 autonomy model: runs due

agent-judgment maintenance tasks and (optionally) drafts work-order

proposals — quietly, with a one-line receipt. The inverse of

/blueprint:execute: no menus, no questions, act then report.

When to Use This Skill

| Use this skill when... | Use /blueprint:execute instead when... |

|------------------------|----------------------------------------|

| The session-start drift nudge says blueprint tasks are due (→ /blueprint:autopilot) | The user wants an interactive "what's next?" menu |

| automation.autonomy_level ≥ 2 and ambient maintenance should just happen | The user wants to drive each action themselves |

| A work-order proposal should be drafted from a ready PRP without interrupting the user | The user wants to create a real work order now (/blueprint:work-order) |

Context

Execution

Execute this autopilot pass:

Step 1: Gate on autonomy level

Read AUTONOMY_LEVEL from the Context automation config. If it is **below

2**, stop immediately with the single line

Autopilot inactive (autonomy_level N) — raise automation.autonomy_level in docs/blueprint/manifest.json to enable.

Nothing else. Also stop (silently, one line) when BLUEPRINT_AUTORUN_DISABLE=1

is set in the environment.

Step 2: Run due agent-judgment tasks (budget: 2 per pass)

From the Context --report output, collect the DUE_AGENT_TASKS list. Take

at most the first 2 (session token budget — the rest surface again next

session). For each task, dispatch ONE subagent (Task tool) with a focused

brief:

return the findings summary only

form, applying only unambiguous updates (drain evidence-backed completed WOs,

recompute stats); ambiguous discrepancies are reported, not resolved

docs/blueprint/audits/

mutating form

Each task's brief MUST state: the run is unattended, so never AskUserQuestion

and never stop at "I'll now run X" — make the call and carry the task through

to its report; and return a one-line result stating what the tool calls

actually returned (counts, paths, exit status). Tasks whose skills would

require interactive confirmation for writes stay report-only here — autopilot

never bypasses a write gate.

After a task's subagent returns successfully, record completion in the

manifest:

jq --arg task "<task>" --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
   '.task_registry[$task].last_completed_at = $ts |
    .task_registry[$task].last_result = "ok (autopilot)"' \
   docs/blueprint/manifest.json > docs/blueprint/manifest.json.tmp \
   && mv docs/blueprint/manifest.json.tmp docs/blueprint/manifest.json

On a failed subagent, record last_result = "error: <one-line reason>" but do

NOT update last_completed_at (the task stays due).

Step 3: Work-order auto-draft (only when `WO_AUTO_DRAFT=true`)

Skip this step entirely unless the Context config shows WO_AUTO_DRAFT=true.

Autopilot files proposals and leaves promotion to a reviewed step: turning a

draft into a real work order is a separate `/blueprint:work-order --from-issue

N` run, taken once someone has reviewed the draft (ADR-0024 keeps this

draft-only policy while making the command itself model-invocable):

  1. Find ready PRPs: scan docs/prps/*.md frontmatter for

confidence: 9 or higher (the confidence-scoring bar for delegation).

  1. Exclude PRPs that already have a work order or draft: a WO exists when

the manifest id_registry maps the PRP to a WO-* document, when a tracker

tasks.pending entry carries source: <PRP-id>, or when an open GitHub

issue labeled work-order-draft or work-order names the PRP id:

```bash

gh issue list --state open --label work-order-draft --limit 100 --json number,title

gh issue list --state open --label work-order --limit 100 --json number,title

```

  1. Cap: if ≥ 5 open work-order-draft issues exist, draft nothing and

note the cap in the receipt.

  1. File the draft for each remaining ready PRP (at most 2 per pass):

a GitHub issue titled [work-order-draft] <PRP-id>: <PRP title>, labeled

work-order-draft, whose body is the full work-order packet built from the

PRP (objective, minimal context, TDD requirements copied verbatim, success

criteria, file list) plus the promotion instruction:

Promote with /blueprint:work-order --from-issue <N>.

Create the label first if missing

(gh label create work-order-draft --description "Auto-drafted work-order proposal (ADR-0020)" --color FBCA04).

  1. No GitHub remote / gh unauthenticated: write local draft files to

docs/blueprint/work-orders/drafts/NNN-<slug>.md instead (same packet,

status: draft frontmatter). Never touch tasks.pending or the

id_registry — those mutate at promotion time only.

Step 4: One-line receipt

End with exactly one summary line, e.g.:

Autopilot: ran adr-validate (2 findings), feature-tracker-sync (1 WO drained); drafted 1 work-order proposal (#214).

If nothing was due and nothing drafted:

Autopilot: nothing due.

Guardrails

itself: the draft-issue side channel is its only work-order surface, so

committing a work order or executing a PRP stays a reviewed step outside

the ambient pass (ADR-0020 draft-only policy, kept by ADR-0024).

loops, no self-continuation (see .claude/rules/loop-integrity.md).

valid human veto and autopilot re-drafts only if the PRP still qualifies AND

no open draft exists (a closed draft for the same PRP id counts as a veto —

check --state all before re-drafting and skip PRPs with a closed,

unpromoted draft).

Agentic Optimizations

| Context | Command |

|---------|---------|

| Gate + config in one call | bash <plugin>/scripts/get-automation-config.sh |

| Due-ness without writes | bash <plugin>/scripts/blueprint-autorun.sh --report |

| Draft dedupe (parallel-safe) | gh issue list --state all --label work-order-draft --limit 100 --json number,title,state |

| Kill switch | BLUEPRINT_AUTORUN_DISABLE=1 |

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.