AGENT SKILL

run-plan

Execute a written plan. Use when handed a plan file, or resuming one mid-flight. Not for writing the plan (write-plan) or reviewing a suspect one (plan-hunt).

License 许可
MIT
最近更新
2026-11-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
run-plan
description
Execute a written plan. Use when handed a plan file, or resuming one mid-flight. Not for writing the plan (write-plan) or reviewing a suspect one (plan-hunt).

03 SKILL.md 正文

Run Plan

You are the cold executor write-plan wrote for.

The plan carries its own contract — Executor rules, Verify lines, Scope, Done, STOP. This skill covers only what the file cannot: where you are in it, and what happens when it breaks.

Steps

1. Orient

Read the whole plan. Establish that it still describes the repo: run its Drift check first — its file list is what narrows the excerpt match — then match each Current state excerpt in a file it flags. Read the run log beside the plan if one exists; the first unlogged step is where you start.

Done when the drift command has run, every Current state excerpt in a flagged file has been matched against that file (a mismatch is a STOP), and the starting step is named.

2. Work one step

Do exactly what this step says; the next step starts once this one's Verify has matched. Where the step adds behavior, work it as tdd: the seams are the step's.

A step carrying no Verify line closes on the Commands table instead — every command in it runs and hits its Expected-on-success cell.

Done when the step's Verify command has run and matched its expected result.

3. Log, then take the next step

Append one line to the run log before starting the next step. The plan itself is never edited — it was written against a commit, and execution state is not part of it.

# Run: <plan title>

Executing [`<name>.plan.md`](<name>.plan.md), started <YYYY-MM-DD> at `<short SHA>`.

- **1** 2026-08-13 — done. `pnpm typecheck` → exit 0.
- **2** 2026-08-13 — done. `pnpm test` → 41 passed.
- **3** 2026-08-13 — STOP: `db.ts:40-60` no longer matches Current state.

Repeat 2–3 until the steps run out or a step logs STOP. A STOP ends the run there: skip Close and report under Stopping.

Done when every step in the plan carries a run log line reading done, or the log's last line reads STOP and every line before it reads done.

4. Close

Run the Done checklist as commands and record each result under ## Done at the foot of the run log. Report those results to the user, with the plan's Notes review points and every deviation the log holds. Then hand the landed change to the reviewers its risk earns, each on its own axis: bug-hunt for correctness and security, qc for structure, and — where the Goal cites requirement IDs — verify-specs for behavior. The plan's Done proves the steps ran, not that the code is correct, the structure held, or the behavior arrived.

Done when every Done box has a command result behind it, the user has the list, and bug-hunt and qc have been handed the change (verify-specs too, where the Goal cites requirement IDs).

Referencing

The run log lives beside the plan it executes as <name>.run.md, under the referencing convention — dated by the plan's directory rather than the day of the run. One log per plan: a retry after a STOP appends to the same file.

plan [`<name>.plan.md`](<name>.plan.md)
step [`step 3`](<name>.plan.md#3-<step-slug>)
evidence [`db.ts:42`](../../../src/lib/db.ts#L42)

Stopping

STOP is a report. Name the condition, the step, and the evidence, then hand off:

What tripped it Hands to
Behavior the spec got wrong write-specs, as a delta
A decision only the user makes grilling
Drift, failed verification, foreign file the user, with the log line

04 同仓库更多 Skills