implement-spec
Build a task whose spec already exists, wave by wave from its tasks.md, with the task-executor agent building each task and the wave-reviewer agent reading each wave. Use when asked to implement, build, work, continue or resume a spec, a task list, or the tasks in .ponderly/specs/<task>/. Reads the spec and validates its dependency graph, then asks once how often to hand back (after each task, each wave, or only at the end) and how to treat optional tests (ask, always, never). Runs one sub-agent per leaf task, ticks a checkbox only when its tests pass or a stated manual check is done, and runs the full suite at the end of every wave. Never edits the spec beyond checkboxes without the author's approval, and pauses with a proposal when the design cannot be followed.
- License 许可
- MIT
- 所属仓库
- sabind/ponderly
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- implement-spec
- description
- Build a task whose spec already exists, wave by wave from its tasks.md, with the task-executor agent building each task and the wave-reviewer agent reading each wave. Use when asked to implement, build, work, continue or resume a spec, a task list, or the tasks in .ponderly/specs/<task>/. Reads the spec and validates its dependency graph, then asks once how often to hand back (after each task, each wave, or only at the end) and how to treat optional tests (ask, always, never). Runs one sub-agent per leaf task, ticks a checkbox only when its tests pass or a stated manual check is done, and runs the full suite at the end of every wave. Never edits the spec beyond checkboxes without the author's approval, and pauses with a proposal when the design cannot be followed.
- allowed-tools
- Bash(git status *) Bash(git branch *) Bash(git rev-parse *) Bash(git log *) Bash(git diff *) Bash(mktemp *) Bash(ls .ponderly/specs*) Bash(cat .ponderly/specs/*)
- argument-hint
- [task-name] [task|wave|spec]
03 SKILL.md 正文
Implement a spec
Build a task from its approved spec: read .ponderly/specs/<task-name>/, check that its task list can be executed, and then work the waves in order, each leaf task built by its own executor and each wave read by the reviewer before the wave ends, ticking each checkbox only when its tests have passed or, for a task with nothing to test, after a stated manual check. Hand back to the author as often as they chose, after every task, after every wave, or only once every wave is done, with a report of what was built and tested.
The author is accountable for the code and owns the spec. The spec is the source of truth: requirements.md says what, design.md says how, and tasks.md says in what order. Do not change any of them, beyond ticking checkboxes, without the author's approval, and do not guess your way past a design that cannot be followed; pause and propose the change instead.
Arguments, if the author gave any: $ARGUMENTS
Terms used below:
- A leaf task is a checkbox task in
tasks.mdwith no sub-tasks: a top-level task with no sub-tasks is a leaf; a parent with sub-tasks is not. A leaf task marked*is an optional test. - An ephemeral check is a scratch script or call that exercises new code to prove a task works, is never added to the codebase, and is deleted before the task is done. It is how a code task is verified when its tests are a task of their own.
- A wave is one entry of the Task Dependency Graph at the end of
tasks.md. Waves run in order. Task numbers only identify tasks; the graph decides the order of work. - The cadence is the author's choice of when a run hands back: after each leaf task (task cadence), after each wave (wave cadence), or only at the end of the run (spec cadence). At spec cadence every wave still ends with its review, its full suite and its report, but the report is written into the conversation without waiting for the author, and the next wave starts at once, in the same turn, so the session holds one short report per wave and never the diff; once the last wave is done, the reviewer reads the whole run once more, in a final review, and the run hands back with the final report. Before the end it hands back only for a failure, an unfixed finding, a failed
deleted:check or a proposal. - The optional-tests choice is the author's choice of what to do with optional tests: ask about them (at the start of each wave that has one, or at spec cadence once at the end of the run), always do them, or never do them.
- A skipped test is an optional test the author chose not to do in this run. It stays unticked.
- An executor is the plugin's
task-executoragent, launched asponderly:task-executor, one per leaf task. Its own definition holds its procedure, so the launch carries only the task: it gathers the context the task needs, implements exactly what the task describes, proves it, and returns a summary with astatusofdoneorstopped, the files it changed, the checks it ran, its ephemeral check's code, the paths it deleted, what it is unsure of and, when stopped, why. Tests are tasks of their own in a spec, so an executor writes a test only when its task is a test task. - The reviewer is the plugin's
wave-revieweragent, launched asponderly:wave-reviewer, one per wave, and at spec cadence once more over the whole run. It is read-only and changes nothing; it gathers the wave's diff itself and returns Findings: averdictofholdsorfindings, then each finding with its file, an exact quote, the problem and a severity ofblocker,should-fixornit, then what it isunsureof. Its own definition holds its procedure, so the launch carries only what to review. - A sub-agent, below, means either.
Working with the author
- Stops. Most stops happen only in some runs; a run with a valid graph in which nothing goes wrong stops only at the first group.
- Every run: the set-up round of step 4, with whichever of its questions apply; the hand-back of step 6 at the chosen cadence. At spec cadence that is the report of step 6 written at the end of each wave, which does not wait for the author, and the final report of step 8, which does.
- Only when the author left something out: the choice among several specs in step 1, when no task name was given.
- Only when something is wrong: the approval of a graph fix in step 2; the question in step 6 of how to proceed after a failing suite, a task that will not pass, an unfixed finding or a failed
deleted:check; the proposal in step 6 when the design cannot be followed or a task needs a new dependency. - Only when the author asks for it: the question in step 3 whether to do the remaining optional tests of an otherwise complete spec; the optional-tests question at the start of each wave that has one, in step 5, when the author chose to be asked, or at spec cadence the one offer of every skipped optional test at the end of the run, in step 8; the confirmation in step 7 before skipping a non-optional task or working out of wave order; the request in step 5 for a task done by hand, when the spec has one.
- How it asks. With the AskUserQuestion tool, fixed options plus free text. The set-up round of step 4 is one call holding the cadence (after each task; after each wave; run every wave and hand back only at the end), the optional tests (ask about them, at each wave that has one or at spec cadence once at the end; always do them; never do them), the branch (create it under the proposed name) and the effort (the proposed level; another level). The tool also asks the per-wave optional-tests question (do them in this wave, skip them), the end-of-run optional-tests offer at spec cadence (do them now, leave them), the choice of spec in step 1, the confirmations of steps 3 and 7, and the approval of a graph fix or spec edit once the edit is shown in full. The question of how to proceed after a hand-back, and the request for a task done by hand, are prose, since the answer is the author's own words.
- Hand-backs. The two tables of step 2; the report of step 6, written by the plugin's
reportskill, with the failing output verbatim or the proposed edit quoted as it would read when the hand-back is for one; at spec cadence, the report of step 6 for each wave, written without waiting, and the report of step 8, covering the run with a line for the final review. - Hand-offs.
start-taskwhen there is no spec or notasks.md;prwhen every non-optional task is ticked, at step 3 or step 8.
1. Find the spec
Take the task name from the arguments: the first word that is not task, wave or spec. The cadence is a second argument of task, wave or spec, or an explicit phrase in the author's message such as "one task at a time", "a wave at a time" or "run all the waves". The word "task" or "spec" on its own in a sentence is not a cadence. The optional-tests choice is settled here only by an explicit phrase in the author's message, such as "skip the optional tests".
- With a task name, the spec is
.ponderly/specs/<task-name>/. - With no task name, run
ls .ponderly/specs/*/tasks.mdand look at each list for an unticked non-optional leaf task. Exactly one such spec: name it and proceed. Several: list them and ask which to work. None: say there is nothing to implement, name any spec whose only unticked tasks are optional tests, recommend/ponderly:start-taskotherwise, and stop.
If the spec has no tasks.md, say so, recommend /ponderly:start-task, and stop without changing anything. One look at .ponderly/specs/<task-name>/tasks.md settles it; do not search elsewhere for the spec.
Read tasks.md, requirements.md and design.md in full before anything else. The requirements and design are read again task by task later, but the whole has to be in view first.
2. Validate the graph
Before going further, check that the Task Dependency Graph can be executed. Build two tables and show both to the author:
- Leaf tasks: every leaf task in
tasks.md, with its id, its text, whether it is ticked, whether it is an optional test, the requirements it cites (both a_Requirements:_line and a**Validates:**line count), and the design property it names if any. - Graph: every wave id and the task ids in it.
Then run three checks against the tables:
- Every leaf task, optional tests included, appears in exactly one wave.
- Every task id in the graph is a leaf task in the list.
- Wave ids are unique and ascending.
If tasks.md has no graph, or any check fails, list each problem by task id, propose the fix as a spec edit, and wait for the author. The fix is usually a corrected waves block. A task list written under the old template may carry checkpoint tasks, whose text is only a pause for review with no work in it; for those, propose removing the task rather than adding it to the graph. When the author approves, apply the edit to tasks.md, run the three checks again, and continue to step 3. Make no code change until the graph is valid.
3. Find the position
Walk the waves in order and find the first wave with an unticked non-optional leaf task; that wave is the position. Ticked tasks are done; never redo one. A wave whose only unticked tasks are optional tests counts as finished for finding the position; those tests were skipped in an earlier run, and the author can ask for them at the end.
If every non-optional leaf task is already ticked, report the spec complete. If optional tests remain unticked, name them and ask whether to do them now; if yes, they are the work for this run, worked wave by wave as in step 5 with the full suite at the end of each; the earliest such wave becomes the position that step 4 states. Otherwise recommend /ponderly:pr and stop.
4. Set up the run
State where things stand: the wave found in step 3, every leaf task in it with whether it is ticked, and any that are optional tests. When no question below applies, end it with the effort proposal described under Effort and go on, taking a level the author named in the request.
Then ask the author one round of questions, batched, and only the ones that apply:
-
Cadence, if step 1 did not settle it: hand back after each leaf task, after each wave, or run every wave and hand back only at the end?
-
Optional tests, if the wave from step 3 or a later one contains an unticked optional test and neither step 1 nor step 3 already settled it: ask about them (at the start of each wave that has one, or at spec cadence once at the end of the run), always do them, or never do them?
-
Branch, if
git branch --show-currentis the repository's default branch (git rev-parse --abbrev-ref origin/HEADwith theorigin/prefix removed, ormainwhen that command fails because it is unset): propose the task name as the branch name, and once the author confirms create it and switch to it withgit checkout -b <name>. The workflow rule forbids working on the default branch. -
Effort, whenever any other question is asked: the effort proposed for the run's executor and wave-reviewer launches, with the reason and the cost, in the layout text above the call; the options are the proposed level and another level. Propose
mediumfor every launch, except a wave-reviewer launch that meets one of these, for which proposehighand name the one met:- The author named a level in the request or in this answer. That level is taken for the launches it names.
- The requirements or the design name security, authentication or sign-in, money or payments, deleting or migrating data, or concurrency.
- The launch is the final review over the whole run at spec cadence, step 8's, the one reader of every wave together; when the cadence is asked in the same call, the proposal says the final review runs at
highif the author chooses spec cadence, with the cost line.
Executors stay at
mediumunless the author names a level. These criteria are a starting judgement, to be corrected once launches at medium and at high have been compared. Wherehighis proposed, add the cost line: a wave-reviewer launch at high is expected to cost up to about a quarter more than at medium, about $0.28 more on a median launch of about $1.26; the dollars are list prices, not what a subscription bills, and the figure is replaced once medium launches are measured.
Ask the cadence and optional-tests questions in one AskUserQuestion call, with the branch question when it applies and the Effort question. They are asked only here: both answers hold for the whole run, through every resume in step 7.
Make no code change until the author has answered.
5. Work the wave
Work one wave at a time; waves run in order. Each leaf task in a wave gets its own executor, launched with the Agent tool as subagent_type: ponderly:task-executor, which returns at once and runs the sub-agent in the background; once every executor of the wave has returned, the wave gets one reviewer. At wave or spec cadence, launch every task of the wave before waiting on any of them, all in one message, so they run concurrently. At task cadence, launch one and wait for its result before the next, so that the hand-back after each task still makes sense. Each executor's model is chosen per launch, as under "Launching a task", and each launch's effort comes from step 4; verifying, ticking, the full suite and the report are not delegated: they are done in this session, on the session's own model.
Beyond ticking checkboxes, do not edit tasks.md, requirements.md or design.md in this step. A change any of them needs goes to step 6 as a proposal.
Starting a wave
If the wave contains optional tests: when the author chose to be asked, ask once now whether to do them in this wave, except at spec cadence, where they are skipped tests for now and offered once at the end of the run in step 8; when they chose always, they are worked like any other task; when they chose never, they are skipped tests. Then check the code for every unticked task in the wave other than a skipped test: look for the behaviour, file or test the task describes, and tell the author which tasks already appear done. A task whose text is an action for the author to take by hand, such as running a session and recording what happened, gets no sub-agent either: ask the author to do it, and tick it when they report the result. It stays outside the wave review, since the reviewer has no change of it to read; if it did change files, the author names them and they join the reviewer's file list. A task that appears done gets no sub-agent. Verify it yourself: the test it names if it is a test task, otherwise an ephemeral check of the behaviour plus the existing tests for the code it touches, or a stated manual check if there is nothing to test. A pass does not tick it at once: it waits for the wave's review and is ticked with the rest, and the files its task text names, or its check touched, join the reviewer's file list. A failure means it was not done, so launch an executor for it after all. The same holds for a task that appears done when a run resumes after a hand-back.
Launching a task
For each task that is left, other than a skipped test, state its number, its text and the requirements it cites. Create the executor's own folder with mktemp -d "<scratchpad>/implement-spec-executor-XXXXXX", where <scratchpad> is this session's scratchpad directory: one per launch, so no two executors share one, and a new one for every executor launched as above later in the run, whether for a fix attempt or a review finding. Name the Launch_Model beside the task's number: pass model: haiku when the task is a Small_Task by the test in the task-executor's description, otherwise model: sonnet, and sonnet when the task text and the files it names do not settle it. Pass effort only when the level step 4 stated or the author chose for executors is not medium; if the launch fails with an error that names effort, because Claude Code is older than 2.1.292, launch it again without effort and tell the author the chosen level could not be applied. A fix sent back to the same executor repeats the folder sentence below, verbatim, with that executor's first folder. Then launch the agent with subagent_type: ponderly:task-executor and a prompt that holds:
- the mode sentence, verbatim, "This task is a leaf task from a spec; tests are tasks of their own.", which puts the agent in its spec mode;
- the task text and its cited requirements, quoted from
requirements.md; - the sections of
design.mdthat name the component, data model, interface or property the task touches, quoted; - the other tasks of this wave that are in flight, with the instruction to touch only the files its own task needs;
- for a property-test task, the design property the task names, to tag the test with;
- the sentence, with the folder just created in place of
<own>, "Your own folder is<own>: keep every scratch file in it, delete it when you finish, and delete nothing else in the scratchpad."
Nothing more. The agent's own definition carries its procedure, the shape of its summary and the instruction to stop on drift, and the plugin's SubagentStart hook puts the handbook rules in its context, so the launch restates none of them. One task per sub-agent and per change. Never give a sub-agent two tasks, and never ask it to tick anything in tasks.md. The mode sentence is what tells the agent not to write a test for a code task, so never leave it out, and never ask for a test unless the task is a test task.
When a task comes back
At wave or spec cadence, wait until every executor of the wave has returned before verifying or ticking any task that had one, so that nothing is run while a sibling is still editing and a file two of them changed is judged as a whole. At task cadence handle each task as it returns. For each task:
- Read the summary's
statusfirst.stoppedis drift: the agent found that the design does not fit the code, that the task would need a new dependency, framework or tool, or that the task is unclear, and it changed nothing more. When the executor ran onhaiku, first make one Escalation, without asking: launch a new executor onsonnet, as above, with the Haiku summary, itsstopped becausequoted and the files in itsfiles changedthat already hold partial edits; this overrides "do not relaunch or retry the task unprompted" below; the Haiku summary'sdeleted:is still checked as in item 2 and itsfiles changedstill listed, and the new executor's summary is read from the top of this list, asonnetlaunch that stops being handled as that rule says. Do not let it work around that, and do not relaunch or retry the task unprompted. The task stays unticked, and itsfiles changedgoes under the report's files (its Files section in the plugin's template) as what it had already touched. Finish judging the wave's other tasks as below, through the wave review, then go to step 6 once, with itsstopped becauseas the evidence, and propose the spec edit. Itsdeleted:is checked as in item 2 below all the same. The rest of this list is for a summary withstatus: done. - Check every entry under
deleted:against the own folder this launch named and the files underfiles changed. An entry outside that folder that is not a file the change removes, or a summary with nodeleted:field, goes under the report's problems with the entry, or the missing field, quoted, before anything the path held is used. The task is not ticked until the author has seen it: once the wave review below is done, go to step 6 with it. - Read the rest of the summary. A summary whose
checks runlists nothing and whoseephemeral checkgives no reason why none applied goes back to the executor. - Run every command under
checks runyourself, and the ephemeral check from the code given underephemeral check, re-created in the scratchpad and deleted afterwards. The summary is a report, not evidence. - If two executors of the wave changed the same file, name that file to the reviewer as one two executors changed, so that it is judged as a whole there.
- For a task with no testable behaviour, perform a manual check instead, say in the report what it was, and tick only after it.
Then:
- Tests pass: tick the task's checkbox in
tasks.md, after the wave review below: at wave or spec cadence every task waits for it, and at task cadence only the wave's last task does, the earlier ones being ticked at their hand-backs. Never tick a task whose tests, or stated manual check, you have not run yourself in this session. When every sub-task of a top-level task is ticked, tick the top-level task too. - Tests fail: send the output to the same executor to fix, or to a new one launched as above and given its summary and the failing output, for up to two fix attempts, each attempt's summary checked as in item 2. When the failing executor ran on
haiku, the first attempt is an Escalation, never a follow-up, which would run on Haiku again: a new executor onsonnet, launched as above and given the Haiku summary and the failing output, without asking; the second attempt, and any other launch for work once escalated, also passesmodel: sonnet, whatever the Small_Task test says. If they still fail, the task stays unticked; once the wave review below is done, go to step 6 with the output verbatim. Other tasks of the wave already in flight, including their fix attempts within the two allowed, are left to finish and judged as above; no further task of the wave is launched.
Skipped tests stay unticked and are listed as skipped in the report.
Reviewing the wave
Once every executor of the wave has returned, whatever each returned, and before any tick, review the wave as a whole. The review covers the tasks that passed their own checks, together with any task that appeared already done; those are fixed and ticked after it as below, and then a task that stopped, or still fails after two fix attempts, goes to step 6. At task cadence, where the wave's earlier tasks were ticked at their hand-backs, the review runs once, when the wave's last task has passed its checks and before its tick, and covers the whole wave; a task that stops or will not pass before then goes to step 6 at once, and the review waits for the wave's last task. The file list and the unsure items come from this run's summaries and, after a resume, from the reports of the earlier hand-backs: the files and the problems each one lists (its Files and Problems sections in the plugin's template). The records of tasks ticked at an earlier hand-back come from that hand-back's report, which shows each task's record under its done work.
Launch the reviewer with subagent_type: ponderly:wave-reviewer, once, and a prompt that holds:
- the sentence, verbatim, "These changes come from a spec wave", which tells the reviewer that a code task correctly lacks a test;
- the list of files the wave changed or created, taken from the
files changedof the wave's summaries, with the files of tasks that appeared already done or that the author did by hand, as under "Starting a wave", and with any file two executors changed named as such; - the requirement and design excerpts the wave's tasks cite, quoted;
- the files that cite the changed ones: search the repository for each changed file's path and name.
- the sentence, verbatim, "These are the executors' records of their work. Read them only at the record step of your procedure, after you have judged every change on its own.", then each task's
files changedandunsurefrom its Summary, quoted, headed by the task's number: every Summary of the task returned before the review, in order, when fix attempts for failing tests gave it several.
Nothing more, and never the diff: the reviewer runs git diff and reads the files itself, so the diff never enters this session. Its own definition carries its procedure and the shape of its Findings, and the SubagentStart hook puts the handbook rules in its context, so the launch restates none of them. Pass no model; pass effort only when the level step 4 stated or the author chose for the reviewer is not medium, with the retry without it as under "Launching a task". Wait for its Findings. One reviewer per wave: no second reviewer with another lens, no refuter after it, and no second review after the fixes. The one other review is the final review of the whole run at spec cadence, in step 8.
Collect every unsure item from the wave's summaries, and the reviewer's own, beside its findings. Then:
- A
blockerorshould-fix, and anyunsureitem that is a defect, in a file a task of the wave changed, is fixed: send it to the executor that owns the file, or to a new one launched as above and given the finding, as a fix within the same two attempts the task has for failing tests, the first attempt being an Escalation, a new executor onsonnet, when the owning executor ran onhaiku, and the second attempt, and any other launch for work once escalated, also passingmodel: sonnet, whatever the Small_Task test says; re-run that task's checks yourself, its summary checked as in item 2. A finding in a task ticked at an earlier hand-back is fixed the same way, and its tick stands. If it is still not fixed after those two attempts, go to step 6 with the finding. - A finding in a file no task of the wave changed, but which the wave's changes made wrong, such as a citing file that now disagrees, gets a new executor with the finding as its whole task, within the same two attempts. This is the one case where a problem in a file outside the task is fixed in the run, because the wave caused it.
- A finding in
requirements.md,design.mdortasks.mdgoes to step 6 as a proposal. - A
nitis fixed the same way or carried. - The reviewer's own
unsureitems follow the same split: those about the changes are handled like findings, those outside the changes go under the report's problems (its Problems section in the plugin's template), with the reason they were not fixed, and not under its next step (its Next section in the plugin's template). - Anything else is outside the wave. Anything carried, whether a
nit, anunsureitem that is not a defect or a problem outside the wave, goes under the report's problems, with the reason it was not fixed, and not under its next step. - The Findings'
records:section is read beside them. Arecords:entry that does not match, a quoted line with no entry, listed as not checked, and anot in any recordentry go under the report's problems, quoted. Anunsureitem the entry'ssettled:names is reported as settled, with what the code showed; every otherunsureitem is handled as above. Anot in any recordentry for a file of a task that appeared already done or that the author did by hand is not listed as a problem, since that task has no record: the report shows it under that task's done work as awaiting the author's review, to confirm the change is the one the task intended.
Tick only after that: every task of the wave whose checks passed, any that appeared already done, or at task cadence the wave's last task.
Ending a wave
With the review done and every task in the wave ticked, other than a skipped test or a task the author chose to skip under step 7, run the project's full test suite, the way the project runs it. If it passes, go to step 6 and report, with the suite's result in the report; at task cadence that is the report for the wave's last task. At spec cadence a pass goes to step 6 too, for the wave's report, but does not wait: write the report in full, as step 6 writes it, then launch the next wave's executors in the same turn, straight after it, with nothing written between. The report ends the message, not the turn. A line saying the wave is done is not the report; the report is what the final review reads back. If it fails, go to step 6 with the failing output verbatim and ask the author how to proceed before starting the next wave. Never start a task from a later wave while a task in this wave, other than a skipped test, is unticked.
6. Hand back and report
Hand back here at the end of a cadence unit (after a task at task cadence, after a wave at wave or spec cadence), after a failed full suite, after a task whose tests still fail after two fix attempts, after a review finding that is still not fixed after two attempts, after a summary whose deleted: failed its check, or when an executor reports that the design cannot be followed or needs a new dependency. For the final wave, when its full suite passes, step 8 takes this step's place; at spec cadence, write that wave's report first, without waiting, as for any other wave, so that every wave's report is in the conversation for step 8. The report ends the message, with nothing written after it in that message. A hand-back that waits for the author is the only place the turn ends: at task or wave cadence that is every report, and at spec cadence it is the final report of step 8 or a stop for a failure, an unfixed finding, a failed deleted: check or a proposal. At spec cadence, after a wave whose full suite passed, the report is written without waiting, and the next wave's executors are launched in the same turn, straight after it, as the next tool calls.
To write the report, invoke the Skill tool with skill: ponderly:report and args: handback, once, in this session; its Message is the report, with nothing written before or after it in that message. If the Skill tool cannot find ponderly:report, say the plugin's report skill is missing and write the hand-back by the communication rule, Problems first.
At spec cadence each report covers its own wave, and the reports stack up in the conversation, one per wave, for the final review and the final report of step 8 to read back. A hand-back that waits, for a failure, an unfixed finding, a failed deleted: check or a proposal, covers the wave it stops in, with the earlier waves' reports already above it.
The report shows each task's record under its done work, with the reviewer's records: checks beside it, and a fix's record made after the review beside the record it amends, marked as not reviewed; it is not listed as not checked, and its unsure items are handled like any other.
The failing output, the finding, the proposed edit and the question are already in the conversation the report skill reads. Each goes under the report's problems or its next step (the Problems and Next sections in the plugin's template), by the cause of the hand-back:
- A failing full suite or a task that will not pass: the failing output verbatim, then which causes are confirmed and which are open; next, the question of how to proceed. Do not start the next wave.
- A review finding that is still not fixed: the finding quoted, then what each of the two attempts did; next, the question of how to proceed.
- A design that cannot be followed, or a new dependency the task would need: the evidence from the code; next, a specific edit to
design.mdortasks.md, quoted as it would read. Make no further code change until the author answers.
A problem found outside the current task is a discovery: it goes under the report's problems with where it is, roughly how much work it would add to the branch, and its two options, a task in tasks.md or an issue, and is left alone; do not fix it in this run. The one exception is a file the wave's changes made wrong, which the wave review in step 5 fixes. At spec cadence, where a wave's report does not wait, each discovery reappears in the final report of step 8 for the author to answer. Never commit or push unless the author asks.
7. Continue
When the author says to continue, resume at step 5 with the same cadence and the same optional-tests choice: the next unticked task in the current wave, or the next wave if this one is done, whose optional tests are asked about at its start only when the author chose to be asked and the cadence is not spec. At spec cadence, when the hand-back came from the final review or the end-of-run optional tests of step 8, resume there.
When the author approves a spec edit, apply it to the named file exactly as approved, and resume where the run handed back: at the task that raised it, or at step 3 if the edit was a graph fix made before any work.
When the author answers a discovery from the report's problems: for a task, write a proposal for tasks.md, the task and its wave quoted as they would read, and apply it as a spec edit on the author's approval; for an issue, draft its title and body in the next message and leave filing it to the author. A discovery the author has answered is not listed in later reports.
When the author asks to skip a non-optional task or to work out of wave order, say which tasks may depend on it: the graph holds waves, not edges, so that is every task in a later wave. Proceed only after the author confirms. A skipped non-optional task stays unticked and is listed under the report's problems in every later report, and later waves start on the author's say-so despite it.
8. Finish
When every leaf task is ticked, apart from skipped tests and any non-optional task the author chose to skip under step 7, and the final wave's full suite passes, finish.
At task or wave cadence, write the report for the final wave with its full suite result, by the same invocation as step 6, in place of step 6. The Message's next step (its Next section in the plugin's template) names any skipped tests as left unticked and recommends /ponderly:pr to open the pull request, which the report skill writes because this step's text is in the conversation; add nothing after it. Then stop.
At spec cadence, finish in three parts:
-
Optional tests. When the author chose to be asked and the run skipped optional tests, offer them once, all together, with the AskUserQuestion tool: do them now, or leave them. If the author says do them, work them as one final set as in step 5: an executor each, launched together, their checks run here, their own wave review, their ticks, and the full suite. A failure there goes to step 6 as for any wave. Left, they stay unticked as skipped tests. When the author chose always or never, there is nothing to offer.
-
Final review. Launch the reviewer once more, with
subagent_type: ponderly:wave-reviewer, over the whole run, and a prompt that holds:- the sentence, verbatim, "These changes come from a spec wave", which tells the reviewer that a code task correctly lacks a test;
- the full list of files the run changed or created, taken from the files every wave's report lists;
- the sentence, verbatim, "These are the executors' records of their work. Read them only at the record step of your procedure, after you have judged every change on its own.", before the wave reports below, which carry the records. The sentence covers only the records inside the wave reports, each task's
files changedandunsurelines; the rest of each report is read as before; - each wave's report as written: its problems, what was done, its checks with the full-suite result and the wave-review verdict, its files and its next step;
- the requirement and design excerpts the run's tasks cite, quoted;
- the files that cite the changed ones, found as for a wave review.
Nothing more, and never the diff, which the reviewer gathers itself. Pass no
model, andeffortonly when the level step 4 stated or the author chose for this launch is not medium, with the retry without it as under "Launching a task". Its job is the whole: consistency across waves, nits and other items carried from wave to wave that have piled up, and anything one wave's review could not see. Handle its Findings andunsureitems by the rules of "Reviewing the wave" in step 5: ablocker, ashould-fixor anunsureitem that is a defect is fixed by an executor within two attempts, with the owning task's checks re-run here; anitis fixed or carried; a finding in the spec goes to step 6 as a proposal; and a finding still not fixed after two attempts goes to step 6. If anything was fixed, run the full suite once more; a failure goes to step 6. There is no second final review. -
Final report. Write the report by the same invocation as step 6, covering the whole run: every task ticked in it, the full suite result and the wave-review verdict of each wave, the final review's verdict and whether anything was carried, and the files the run changed. The plugin's template writes the verdicts as the lines
Wave review of wave <n>: <verdict>andFinal review of the run: <verdict>, each followed bycarried: see Problemsornothing carried; with a repository's own template, the final review reads the wave verdicts, and the final report writes the run's verdict, wherever that template puts them. The Message's next step names any skipped tests as left unticked and recommends/ponderly:prto open the pull request, which the report skill writes because this step's text is in the conversation; add nothing after it. Then stop.
04 同仓库更多 Skills
tighten-tests
Slim a branch's tests without losing a covered line or a proof a requirement needs. Use when asked to slim the tests, tighten, trim or prune them, audit the tests, or when a branch has too many tests. Readability of the source is readable-code's, not this skill's; it asks first whether readable-code has run on the final code and offers to run it. Audits every test the branch adds or changes with a keep, merge or drop verdict the author approves, applies the verdicts without changing a source file, proves the smaller suite no weaker by line coverage and mutation checks, has the changes reviewed and fixed, and hands back with the report skill, offering to file each gap it found as an issue. Commits nothing.
strategy
Write a tech strategy, the highest level view of about a year of work across one or more projects. Use when asked to plan a year, a half or a roadmap, or to write, draft or update a tech strategy or technical vision. Reads the strategies already under .ponderly/strategies/ before asking anything, asks one round of questions in prose, and writes .ponderly/strategies/<name>.md from the plugin's strategy template. The document-reviewer agent reads the draft against the template before the author sees it; the author approves the document from its path and a summary. Ends with the candidate high level designs, one per stream of work, each written next with the hld skill. Needs no source code, so it works in a docs repository. Not for a request to change code or a task's spec, which is start-task's, and not for a bug, which is bugfix's. Writes no code.
start-task
Front door for any request to change code. Reads the code the request touches, then decides whether it goes to the task executor, to the bugfix skill or to a spec, and asks the author when the answer is not a spec. Start a new feature or task by writing its spec before any code. Use for any request to change code that no other skill takes (not a bug the author named, which is bugfix's; not an existing spec, which is implement-spec's; not a pull request, which is pr's; not a strategy or a high or low level design, which are `strategy`, `hld` and `lld`'s; and not a typo-sized change, which needs no skill), and when asked to start, plan, spec, scope or design a task, feature or piece of work, or when a request is big enough that coding straight away would be guessing. Produces requirements.md, design.md and tasks.md in .ponderly/specs/<task-name>/, following the team's spec template, with the author approving each document before the next is written. Does not write code.
review
Review a pull request and return line-anchored findings. Use when asked to review this branch, review this pull request, review these commits or review a base...head range. Takes the range from the argument, or the branch's merge base with the default branch up to the working tree when there is none, launches one review-arm agent per lens in its lenses file, all at once, and merges what they return. The merge relaunches once an arm whose block is missing or malformed, then drops it and names its arm, checks every finding's file and lines at the head, collapses duplicates as --duplicates says, and orders high, medium, low. Has the wave-reviewer agent read the change with the merged findings quoted, folds its findings into the list, and reruns only arms it contradicted, when the budget allows. Returns the findings with their counts and the wave review's verdict, or writes them as JSON to a path outside the repository, or ignored by it, with --json. Changes no tracked file in the repository and commits nothing.
report
Writes the message to the author whenever work comes back from an agent or a check, a choice is open and the author must decide, the author asks what is going on, or what something is or why it happened. Four modes, handback, decision, status or answer, from the optional argument or the conversation. The handback and status templates put problems first; every template names things by what they are. Writes only; edits nothing, launches no agent.
readable-code
Make the source a branch changes read plainly, and prove its behaviour unchanged. Use when asked to make this branch readable, for a readability pass, or to simplify or untangle the code a branch changes. Works on the files the branch changes against its target branch, narrowed to the paths passed. Takes a baseline of the full suite, and of the synthesized output where the branch holds infrastructure code, then has the author approve groups of like files and the decisions they share, and launches one task-executor agent per group to apply the team's readability and comment rules with no behaviour change and no rename for taste. Runs both again, asks whether to revert or keep any file whose change made a difference, has the wave-reviewer agent read the pass, sends its blocker and should-fix findings back to the executors to fix, and hands back with the report skill. Not for a test cleanup, which is tighten-tests's; not for a bug, which is bugfix's; not for a new change, which is start-task's. Commits nothing.