[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EHG74AANWF9KANCF0VRQ1D":3,"skill-same:01M7EHG74AANWF9KANCF0VRQ1D":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7EHG74AANWF9KANCF0VRQ1D","implement-spec",null,"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\u002Fspecs\u002F\u003Ctask>\u002F. 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.","sabind\u002Fponderly","sabind","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F961844?v=4","01M7EHFN2HBX9MJQK3VHCBGS32","Dan Sabin","01M7EHFN32E8K7VYK46XMZPNPD",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsabind\u002Fponderly\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude\u002Fponderly\u002Fskills\u002Fimplement-spec\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: implement-spec\ndescription: 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\u002Fspecs\u002F\u003Ctask>\u002F. 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.\nargument-hint: \"[task-name] [task|wave|spec]\"\nallowed-tools: Bash(git status *) Bash(git branch *) Bash(git rev-parse *) Bash(git log *) Bash(git diff *) Bash(mktemp *) Bash(ls .ponderly\u002Fspecs*) Bash(cat .ponderly\u002Fspecs\u002F*)\n---\n\n# Implement a spec\n\nBuild a task from its approved spec: read `.ponderly\u002Fspecs\u002F\u003Ctask-name>\u002F`, 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.\n\nThe 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.\n\nArguments, if the author gave any: $ARGUMENTS\n\nTerms used below:\n\n- A **leaf task** is a checkbox task in `tasks.md` with 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**.\n- 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.\n- 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.\n- 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.\n- 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.\n- A **skipped test** is an optional test the author chose not to do in this run. It stays unticked.\n- An **executor** is the plugin's `task-executor` agent, launched as `ponderly: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 a `status` of `done` or `stopped`, 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.\n- The **reviewer** is the plugin's `wave-reviewer` agent, launched as `ponderly: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: a `verdict` of `holds` or `findings`, then each finding with its file, an exact quote, the problem and a severity of `blocker`, `should-fix` or `nit`, then what it is `unsure` of. Its own definition holds its procedure, so the launch carries only what to review.\n- A **sub-agent**, below, means either.\n\n## Working with the author\n\n- **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.\n  - 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.\n  - Only when the author left something out: the choice among several specs in step 1, when no task name was given.\n  - 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.\n  - 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.\n- **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.\n- **Hand-backs.** The two tables of step 2; the report of step 6, written by the plugin's `report` skill, 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.\n- **Hand-offs.** `start-task` when there is no spec or no `tasks.md`; `pr` when every non-optional task is ticked, at step 3 or step 8.\n\n## 1. Find the spec\n\nTake 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\".\n\n- With a task name, the spec is `.ponderly\u002Fspecs\u002F\u003Ctask-name>\u002F`.\n- With no task name, run `ls .ponderly\u002Fspecs\u002F*\u002Ftasks.md` and 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 `\u002Fponderly:start-task` otherwise, and stop.\n\nIf the spec has no `tasks.md`, say so, recommend `\u002Fponderly:start-task`, and stop without changing anything. One look at `.ponderly\u002Fspecs\u002F\u003Ctask-name>\u002Ftasks.md` settles it; do not search elsewhere for the spec.\n\nRead `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.\n\n## 2. Validate the graph\n\nBefore going further, check that the Task Dependency Graph can be executed. Build two tables and show both to the author:\n\n- **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.\n- **Graph**: every wave id and the task ids in it.\n\nThen run three checks against the tables:\n\n1. Every leaf task, optional tests included, appears in exactly one wave.\n2. Every task id in the graph is a leaf task in the list.\n3. Wave ids are unique and ascending.\n\nIf `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.\n\n## 3. Find the position\n\nWalk 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.\n\nIf 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 `\u002Fponderly:pr` and stop.\n\n## 4. Set up the run\n\nState 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.\n\nThen ask the author one round of questions, batched, and only the ones that apply:\n\n- **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?\n- **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?\n- **Branch**, if `git branch --show-current` is the repository's default branch (`git rev-parse --abbrev-ref origin\u002FHEAD` with the `origin\u002F` prefix removed, or `main` when 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 with `git checkout -b \u003Cname>`. The workflow rule forbids working on the default branch.\n\n- **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 `medium` for every launch, except a wave-reviewer launch that meets one of these, for which propose `high` and name the one met:\n  1. The author named a level in the request or in this answer. That level is taken for the launches it names.\n  2. The requirements or the design name security, authentication or sign-in, money or payments, deleting or migrating data, or concurrency.\n  3. 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 `high` if the author chooses spec cadence, with the cost line.\n\n  Executors stay at `medium` unless the author names a level. These criteria are a starting judgement, to be corrected once launches at medium and at high have been compared. Where `high` is 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.\n\nAsk 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.\n\nMake no code change until the author has answered.\n\n## 5. Work the wave\n\nWork 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.\n\nBeyond 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.\n\n### Starting a wave\n\nIf 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.\n\n### Launching a task\n\nFor 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 \"\u003Cscratchpad>\u002Fimplement-spec-executor-XXXXXX\"`, where `\u003Cscratchpad>` 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:\n\n- 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;\n- the task text and its cited requirements, quoted from `requirements.md`;\n- the sections of `design.md` that name the component, data model, interface or property the task touches, quoted;\n- the other tasks of this wave that are in flight, with the instruction to touch only the files its own task needs;\n- for a property-test task, the design property the task names, to tag the test with;\n- the sentence, with the folder just created in place of `\u003Cown>`, \"Your own folder is `\u003Cown>`: keep every scratch file in it, delete it when you finish, and delete nothing else in the scratchpad.\"\n\nNothing 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.\n\n### When a task comes back\n\nAt 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:\n\n1. Read the summary's `status` first. `stopped` is 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 on `haiku`, first make one Escalation, without asking: launch a new executor on `sonnet`, as above, with the Haiku summary, its `stopped because` quoted and the files in its `files changed` that already hold partial edits; this overrides \"do not relaunch or retry the task unprompted\" below; the Haiku summary's `deleted:` is still checked as in item 2 and its `files changed` still listed, and the new executor's summary is read from the top of this list, a `sonnet` launch 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 its `files changed` goes 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 its `stopped because` as the evidence, and propose the spec edit. Its `deleted:` is checked as in item 2 below all the same. The rest of this list is for a summary with `status: done`.\n2. Check every entry under `deleted:` against the own folder this launch named and the files under `files changed`. An entry outside that folder that is not a file the change removes, or a summary with no `deleted:` 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.\n3. Read the rest of the summary. A summary whose `checks run` lists nothing and whose `ephemeral check` gives no reason why none applied goes back to the executor.\n4. Run every command under `checks run` yourself, and the ephemeral check from the code given under `ephemeral check`, re-created in the scratchpad and deleted afterwards. The summary is a report, not evidence.\n5. 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.\n6. For a task with no testable behaviour, perform a manual check instead, say in the report what it was, and tick only after it.\n\nThen:\n\n- 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.\n- 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 on `sonnet`, 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 passes `model: 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.\n\nSkipped tests stay unticked and are listed as skipped in the report.\n\n### Reviewing the wave\n\nOnce 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.\n\nLaunch the reviewer with `subagent_type: ponderly:wave-reviewer`, once, and a prompt that holds:\n\n- the sentence, verbatim, \"These changes come from a spec wave\", which tells the reviewer that a code task correctly lacks a test;\n- the list of files the wave changed or created, taken from the `files changed` of 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;\n- the requirement and design excerpts the wave's tasks cite, quoted;\n- the files that cite the changed ones: search the repository for each changed file's path and name.\n- 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 changed` and `unsure` from 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.\n\nNothing 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.\n\nCollect every `unsure` item from the wave's summaries, and the reviewer's own, beside its findings. Then:\n\n- A `blocker` or `should-fix`, and any `unsure` item 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 on `sonnet`, when the owning executor ran on `haiku`, and the second attempt, and any other launch for work once escalated, also passing `model: 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.\n- 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.\n- A finding in `requirements.md`, `design.md` or `tasks.md` goes to step 6 as a proposal.\n- A `nit` is fixed the same way or carried.\n- The reviewer's own `unsure` items 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).\n- Anything else is outside the wave. Anything carried, whether a `nit`, an `unsure` item 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.\n- The Findings' `records:` section is read beside them. A `records:` entry that does not match, a quoted line with no entry, listed as not checked, and a `not in any record` entry go under the report's problems, quoted. An `unsure` item the entry's `settled:` names is reported as settled, with what the code showed; every other `unsure` item is handled as above. A `not in any record` entry 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.\n\nTick 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.\n\n### Ending a wave\n\nWith 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.\n\n## 6. Hand back and report\n\nHand 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.\n\nTo 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.\n\nAt 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.\n\nThe 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.\n\nThe 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:\n\n- **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.\n- **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.\n- **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.md` or `tasks.md`, quoted as it would read. Make no further code change until the author answers.\n\nA 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.\n\n## 7. Continue\n\nWhen 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.\n\nWhen 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.\n\nWhen 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.\n\nWhen 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.\n\n## 8. Finish\n\nWhen 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.\n\nAt 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 `\u002Fponderly: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.\n\nAt spec cadence, finish in three parts:\n\n1. **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.\n2. **Final review.** Launch the reviewer once more, with `subagent_type: ponderly:wave-reviewer`, over the whole run, and a prompt that holds:\n   - the sentence, verbatim, \"These changes come from a spec wave\", which tells the reviewer that a code task correctly lacks a test;\n   - the full list of files the run changed or created, taken from the files every wave's report lists;\n   - 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 changed` and `unsure` lines; the rest of each report is read as before;\n   - 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;\n   - the requirement and design excerpts the run's tasks cite, quoted;\n   - the files that cite the changed ones, found as for a wave review.\n\n   Nothing more, and never the diff, which the reviewer gathers itself. Pass no `model`, and `effort` only 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 and `unsure` items by the rules of \"Reviewing the wave\" in step 5: a `blocker`, a `should-fix` or an `unsure` item that is a defect is fixed by an executor within two attempts, with the owning task's checks re-run here; a `nit` is 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.\n3. **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 \u003Cn>: \u003Cverdict>` and `Final review of the run: \u003Cverdict>`, each followed by `carried: see Problems` or `nothing 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 `\u002Fponderly: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.\n","# Implement a spec\n\nBuild a task from its approved spec: read `.ponderly\u002Fspecs\u002F\u003Ctask-name>\u002F`, 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.\n\nThe 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.\n\nArguments, if the author gave any: $ARGUMENTS\n\nTerms used below:\n\n- A **leaf task** is a checkbox task in `tasks.md` with 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**.\n- 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.\n- 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.\n- 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.\n- 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.\n- A **skipped test** is an optional test the author chose not to do in this run. It stays unticked.\n- An **executor** is the plugin's `task-executor` agent, launched as `ponderly: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 a `status` of `done` or `stopped`, 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.\n- The **reviewer** is the plugin's `wave-reviewer` agent, launched as `ponderly: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: a `verdict` of `holds` or `findings`, then each finding with its file, an exact quote, the problem and a severity of `blocker`, `should-fix` or `nit`, then what it is `unsure` of. Its own definition holds its procedure, so the launch carries only what to review.\n- A **sub-agent**, below, means either.\n\n## Working with the author\n\n- **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.\n  - 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.\n  - Only when the author left something out: the choice among several specs in step 1, when no task name was given.\n  - 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.\n  - 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.\n- **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.\n- **Hand-backs.** The two tables of step 2; the report of step 6, written by the plugin's `report` skill, 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.\n- **Hand-offs.** `start-task` when there is no spec or no `tasks.md`; `pr` when every non-optional task is ticked, at step 3 or step 8.\n\n## 1. Find the spec\n\nTake 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\".\n\n- With a task name, the spec is `.ponderly\u002Fspecs\u002F\u003Ctask-name>\u002F`.\n- With no task name, run `ls .ponderly\u002Fspecs\u002F*\u002Ftasks.md` and 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 `\u002Fponderly:start-task` otherwise, and stop.\n\nIf the spec has no `tasks.md`, say so, recommend `\u002Fponderly:start-task`, and stop without changing anything. One look at `.ponderly\u002Fspecs\u002F\u003Ctask-name>\u002Ftasks.md` settles it; do not search elsewhere for the spec.\n\nRead `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.\n\n## 2. Validate the graph\n\nBefore going further, check that the Task Dependency Graph can be executed. Build two tables and show both to the author:\n\n- **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.\n- **Graph**: every wave id and the task ids in it.\n\nThen run three checks against the tables:\n\n1. Every leaf task, optional tests included, appears in exactly one wave.\n2. Every task id in the graph is a leaf task in the list.\n3. Wave ids are unique and ascending.\n\nIf `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.\n\n## 3. Find the position\n\nWalk 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.\n\nIf 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 `\u002Fponderly:pr` and stop.\n\n## 4. Set up the run\n\nState 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.\n\nThen ask the author one round of questions, batched, and only the ones that apply:\n\n- **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?\n- **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?\n- **Branch**, if `git branch --show-current` is the repository's default branch (`git rev-parse --abbrev-ref origin\u002FHEAD` with the `origin\u002F` prefix removed, or `main` when 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 with `git checkout -b \u003Cname>`. The workflow rule forbids working on the default branch.\n\n- **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 `medium` for every launch, except a wave-reviewer launch that meets one of these, for which propose `high` and name the one met:\n  1. The author named a level in the request or in this answer. That level is taken for the launches it names.\n  2. The requirements or the design name security, authentication or sign-in, money or payments, deleting or migrating data, or concurrency.\n  3. 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 `high` if the author chooses spec cadence, with the cost line.\n\n  Executors stay at `medium` unless the author names a level. These criteria are a starting judgement, to be corrected once launches at medium and at high have been compared. Where `high` is 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.\n\nAsk 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.\n\nMake no code change until the author has answered.\n\n## 5. Work the wave\n\nWork 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.\n\nBeyond 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.\n\n### Starting a wave\n\nIf 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.\n\n### Launching a task\n\nFor 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 \"\u003Cscratchpad>\u002Fimplement-spec-executor-XXXXXX\"`, where `\u003Cscratchpad>` 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:\n\n- 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;\n- the task text and its cited requirements, quoted from `requirements.md`;\n- the sections of `design.md` that name the component, data model, interface or property the task touches, quoted;\n- the other tasks of this wave that are in flight, with the instruction to touch only the files its own task needs;\n- for a property-test task, the design property the task names, to tag the test with;\n- the sentence, with the folder just created in place of `\u003Cown>`, \"Your own folder is `\u003Cown>`: keep every scratch file in it, delete it when you finish, and delete nothing else in the scratchpad.\"\n\nNothing 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.\n\n### When a task comes back\n\nAt 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:\n\n1. Read the summary's `status` first. `stopped` is 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 on `haiku`, first make one Escalation, without asking: launch a new executor on `sonnet`, as above, with the Haiku summary, its `stopped because` quoted and the files in its `files changed` that already hold partial edits; this overrides \"do not relaunch or retry the task unprompted\" below; the Haiku summary's `deleted:` is still checked as in item 2 and its `files changed` still listed, and the new executor's summary is read from the top of this list, a `sonnet` launch 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 its `files changed` goes 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 its `stopped because` as the evidence, and propose the spec edit. Its `deleted:` is checked as in item 2 below all the same. The rest of this list is for a summary with `status: done`.\n2. Check every entry under `deleted:` against the own folder this launch named and the files under `files changed`. An entry outside that folder that is not a file the change removes, or a summary with no `deleted:` 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.\n3. Read the rest of the summary. A summary whose `checks run` lists nothing and whose `ephemeral check` gives no reason why none applied goes back to the executor.\n4. Run every command under `checks run` yourself, and the ephemeral check from the code given under `ephemeral check`, re-created in the scratchpad and deleted afterwards. The summary is a report, not evidence.\n5. 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.\n6. For a task with no testable behaviour, perform a manual check instead, say in the report what it was, and tick only after it.\n\nThen:\n\n- 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.\n- 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 on `sonnet`, 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 passes `model: 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.\n\nSkipped tests stay unticked and are listed as skipped in the report.\n\n### Reviewing the wave\n\nOnce 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.\n\nLaunch the reviewer with `subagent_type: ponderly:wave-reviewer`, once, and a prompt that holds:\n\n- the sentence, verbatim, \"These changes come from a spec wave\", which tells the reviewer that a code task correctly lacks a test;\n- the list of files the wave changed or created, taken from the `files changed` of 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;\n- the requirement and design excerpts the wave's tasks cite, quoted;\n- the files that cite the changed ones: search the repository for each changed file's path and name.\n- 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 changed` and `unsure` from 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.\n\nNothing 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.\n\nCollect every `unsure` item from the wave's summaries, and the reviewer's own, beside its findings. Then:\n\n- A `blocker` or `should-fix`, and any `unsure` item 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 on `sonnet`, when the owning executor ran on `haiku`, and the second attempt, and any other launch for work once escalated, also passing `model: 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.\n- 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.\n- A finding in `requirements.md`, `design.md` or `tasks.md` goes to step 6 as a proposal.\n- A `nit` is fixed the same way or carried.\n- The reviewer's own `unsure` items 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).\n- Anything else is outside the wave. Anything carried, whether a `nit`, an `unsure` item 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.\n- The Findings' `records:` section is read beside them. A `records:` entry that does not match, a quoted line with no entry, listed as not checked, and a `not in any record` entry go under the report's problems, quoted. An `unsure` item the entry's `settled:` names is reported as settled, with what the code showed; every other `unsure` item is handled as above. A `not in any record` entry 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.\n\nTick 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.\n\n### Ending a wave\n\nWith 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.\n\n## 6. Hand back and report\n\nHand 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.\n\nTo 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.\n\nAt 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.\n\nThe 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.\n\nThe 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:\n\n- **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.\n- **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.\n- **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.md` or `tasks.md`, quoted as it would read. Make no further code change until the author answers.\n\nA 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.\n\n## 7. Continue\n\nWhen 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.\n\nWhen 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.\n\nWhen 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.\n\nWhen 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.\n\n## 8. Finish\n\nWhen 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.\n\nAt 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 `\u002Fponderly: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.\n\nAt spec cadence, finish in three parts:\n\n1. **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.\n2. **Final review.** Launch the reviewer once more, with `subagent_type: ponderly:wave-reviewer`, over the whole run, and a prompt that holds:\n   - the sentence, verbatim, \"These changes come from a spec wave\", which tells the reviewer that a code task correctly lacks a test;\n   - the full list of files the run changed or created, taken from the files every wave's report lists;\n   - 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 changed` and `unsure` lines; the rest of each report is read as before;\n   - 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;\n   - the requirement and design excerpts the run's tasks cite, quoted;\n   - the files that cite the changed ones, found as for a wave review.\n\n   Nothing more, and never the diff, which the reviewer gathers itself. Pass no `model`, and `effort` only 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 and `unsure` items by the rules of \"Reviewing the wave\" in step 5: a `blocker`, a `should-fix` or an `unsure` item that is a defect is fixed by an executor within two attempts, with the owning task's checks re-run here; a `nit` is 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.\n3. **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 \u003Cn>: \u003Cverdict>` and `Final review of the run: \u003Cverdict>`, each followed by `carried: see Problems` or `nothing 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 `\u002Fponderly: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.\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25},"Bash(git status *) Bash(git branch *) Bash(git rev-parse *) Bash(git log *) Bash(git diff *) Bash(mktemp *) Bash(ls .ponderly\u002Fspecs*) Bash(cat .ponderly\u002Fspecs\u002F*)","[task-name] [task|wave|spec]","main","fb0356975695b4ba2a71c61951e720cd4ba7ad8e","plugins\u002Fclaude\u002Fponderly\u002Fskills\u002Fimplement-spec",1,"https:\u002F\u002Fgithub.com\u002Fsabind\u002Fponderly","https:\u002F\u002Fdansabin.com\u002Fprojects\u002Fponderly","https:\u002F\u002Fgithub.com\u002Fsabind","Engineering things for fun.","2026-11-14 06:58:56",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add sabind\u002Fponderly --skill implement-spec",{"tool":41,"command":42},"bunx","bunx skills add sabind\u002Fponderly --skill implement-spec",{"tool":44,"command":45},"pnpm","pnpm dlx skills add sabind\u002Fponderly --skill implement-spec","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsabind\u002Fponderly\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude\u002Fponderly\u002Fskills\u002Fimplement-spec\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7EHJBJF1NHW8C2PPP0ZJ0C6","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.","https:\u002F\u002Fgithub.com\u002Fsabind\u002Fponderly\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude\u002Fponderly\u002Fskills\u002Ftighten-tests\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7EHJ4M6F73VFS53734PZG9W","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\u002Fstrategies\u002F before asking anything, asks one round of questions in prose, and writes .ponderly\u002Fstrategies\u002F\u003Cname>.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.","https:\u002F\u002Fgithub.com\u002Fsabind\u002Fponderly\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude\u002Fponderly\u002Fskills\u002Fstrategy\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7EHHWWHHAJXW40HYH7Z1P1Z","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\u002Fspecs\u002F\u003Ctask-name>\u002F, following the team's spec template, with the author approving each document before the next is written. Does not write code.","https:\u002F\u002Fgithub.com\u002Fsabind\u002Fponderly\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude\u002Fponderly\u002Fskills\u002Fstart-task\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7EHHHH2FAZPK27TT3NKZE8B","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.","https:\u002F\u002Fgithub.com\u002Fsabind\u002Fponderly\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude\u002Fponderly\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7EHHAV197VG0N12RCAZD0Z1","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.","https:\u002F\u002Fgithub.com\u002Fsabind\u002Fponderly\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude\u002Fponderly\u002Fskills\u002Freport\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7EHH1A7FCH8MZQ125VM46CE","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.","https:\u002F\u002Fgithub.com\u002Fsabind\u002Fponderly\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude\u002Fponderly\u002Fskills\u002Freadable-code\u002FSKILL.md",[],[]]