task_implement
<task_implement_skill>
<role>
task_implement takes one task file from the project's tasks/ backlog and carries it all the way to done: it reads the task, loads the repo's guardrails, builds on the existing codebase, writes the code and the tests, runs every check ## Acceptance names plus the cheap repo surfaces (make lint, the matching script tests, the bundled task linter when relevant), and confirms every ## Acceptance item holds. The full behavioral suite is not the default done-gate; it runs only when Acceptance names it, or as an out-of-band regression the operator asks for. It is the "do this task now, properly" counterpart to task_create (which only writes the file), turning the single-shot-implementable task body the base skill produces into actual shipped work. It does the work; it leaves verification to task_audit and close-out to task_finish.
</role>
<when_to_activate>
Activate when the user points at one task in tasks/ and wants it built now:
- "Implement this task" / "implement
<task-file>." - "Do task X" / "build the thing described in
<task>" / "make task Y happen."
Route elsewhere when the user wants to create a task (task_create or the base task skill), assess a task's readiness before building (task_check), automatically repair readiness issues before building (task_auto_check), choose what to work on next (task_select), verify a believed-done task against the codebase (task_audit), or close and archive a task (task_finish).
</when_to_activate>
<authority>
The task skill's SKILL.md is the source of truth for the task-file shape; read it and use its <discover> step to locate tasks/ and its <file_format> / <body> sections to read the task you are implementing. Implement the work the task describes. Do not restate task-skill rules here.
</authority>
<path_resolution>
The bundled scripts (discover_tasks.sh, lint.py) ship in scripts/ next to the base task skill's SKILL.md, not next to this one. After reading that base SKILL.md (per <authority>), resolve each script's absolute path by combining the directory you loaded it from with scripts/<script-name> and invoke that absolute path, never a bare scripts/..., which resolves against the current working directory (the target project) rather than the skill, and so finds the project's own scripts/ or nothing. If the first invocation reports a missing file, re-resolve the absolute path once before treating the script as failed.
</path_resolution>
<workflow>
Run in order. The read-only steps run first: make no code edit and no status change before Read the task end-to-end, Check task dependencies before building, Load the guardrails, and Understand the existing codebase are complete. The Check task dependencies before building gate can stop the workflow before any later step runs. It surfaces the task's live prerequisites and holds for the user's answer, so an explicit go-ahead, or the gate finding no live prerequisites, is what lets the build continue.
- Read the task end-to-end. Read its
statusfirst. The base skill's<lifecycle_responsibility>ready-before-build rule is the admission criterion: proceed when status isready, or when status isimplementedand named gaps from a priortask_auditreport are in context or supplied by the user. Stop before any edit when status isopenorchecked: name the status, point totask_check/task_auto_check, and change nothing. Stop before any edit when status isimplementedand no such named gaps are in context or supplied: name the status, route pertask_audit(repair viatask_implementonly with those named gaps; other routing as the base<status_discipline>follow-up rule directs), and change nothing. A task ataudited, or archived asfinishedordeferred, is past implementation, and the base skill's<backward_move_guard>refuses animplementedstamp over it, so stop before any edit and name the status. Route a suspected gap on anauditedtask totask_audit, whose re-audit re-opens the task toimplementedwhen it confirms the gap, and route other new work as the base<status_discipline>follow-up rule directs. Then understand the desired behaviour, the## Approach, the context pointers, and the scope and any Out of scope block. The base skill writes each task to be self-sufficient. The file on its own is enough to implement, and you draw on everything actually available alongside it: the codebase, the project's standing instructions, the user. Treat the file as that contract, and restate your understanding before writing any code. - Check task dependencies before building. Before loading the guardrails or reading the codebase, apply the base
taskskill's<dependency_signals>taxonomy to the task at hand in both directions: the outbound signals in its own body, and the inbound ordering declarations authored in other live eligible tasks that point at it, meaning a live task whose body names a first-ship order over it or forward-references an artefact it creates. Count only the live eligible prerequisites the taxonomy's prerequisite rule defines; this step makes no code edit and no status change while it runs. When the task has one or more hard prerequisites, list them in dependency order (a prerequisite's own live prerequisites named first), give the evidence for each (the signal, and the task file it came from), surface any soft companion relationships alongside without letting them force the stop, ask whether the task at hand should really be built ahead of its prerequisites, and stop with no code edit and no status change until the user answers. Surface a dependency cycle plainly rather than looping on it. On the user's explicit go-ahead, continue into the rest of the workflow; when the gate finds no live prerequisites, continue without interrupting the user. - Load the guardrails. Read the governing
CLAUDE.mdfiles (repo root, this repo, and the one nearest the work) and hold their conventions as defaults for every edit (pseudo-XML and positive-language authoring, the Make + shell + markdown toolchain, snake_case naming, deployment-agnostic cross-references, and the versioning / plugin-lockstep rules), together with any constraint the task's own## Approachstates. - Understand the existing codebase, and confirm the work isn't already done. Read the code and tests already in place around the work, and extend the patterns, conventions, and architecture in use rather than inventing a new shape. Before writing anything, check the current state of the target: whether the artifact already exists, and whether the behaviour (or part of it) is already present. Build on or correct what is there instead of re-implementing it or clobbering it.
- Implement in order.
## Approachis the plan, the codebase is ground truth. Follow the## Approachstep by step, building everything in scope and skipping everything the task marks out of scope, and name every artifact after the behaviour it delivers. When delivering the Goal or an## Acceptanceitem would require crossing a declared Out of scope boundary, quote the conflicting passages, carry both halves of the base skill's Decide or label disposition, and hold: write the labeled "Open decision:" into the task body with its options, a suggested default, and the why-open clause, bump that file'supdatedwithout changing itsstatus, and surface the same decision in your report. Never silently cross the boundary and never silently under-deliver. Where a step's mechanics conflict with what the repo actually requires, do what the codebase requires and report the deviation rather than following the brief literally. When the task leaves a decision open, apply the base skill's Decide or label reconciliation rule against its evidence base (here including the fully real codebase), and when that evidence settles the decision, proceed on the reconciled path and record the rationale in the shipped artifact (a code comment, theSKILL.mdbody, a doc), not only in chat; when the evidence leaves it unsettled, surface the decision to the user with its options and at least one suggested path and hold, rather than making an arbitrary call; a boundary-crossing hold takes both halves from the boundary sentence above. When the work lands, assess whether the delivered change extended the system's design using the base<archive>trigger test, then record the verdict explicitly asdesign-extended: trueordesign-extended: falsein frontmatter, in the same stamp pass asstatus: implementedandimplemented-by. Write it on every stamp rather than leaving afalseverdict implicit: the base<frontmatter>entry makes an absent field read asfalseso tasks predating the field stay clean, and a stamp that states its verdict shows the assessment happened. Report the assessment either way. This detection-and-recording mandate is independent of the separate docs update step, and it supplies the close-out signal without requiring task_finish to re-derive a code-level judgement. Honor the base skill's<backward_move_guard>, stampstatus: implemented, writeimplemented-byresolved via<user_name_chain>, and bumpupdated. - Build the tests. When
TESTING.mdexists at the project root, read it for project-specific testing details (stack, runner, layout, thresholds) before choosing the test shape. When it is absent, continue with the repo and task context already loaded. Map every## Acceptancecheck that implies a test to a real test, aligning its level, framework, and structure with the repo's testing conventions (for this repo, thetests/<skill>/Pattern A layout). Tests are required deliverables. A missing test for a stated acceptance check is a gap, not a pass. - Cross-check, then run the verifications the acceptance names. Walk every
## Acceptanceitem and confirm the implementation covers it; resolve any gap before proceeding. Run every verification the task and repo name (make lint, the relevant bundledlint.py, the matchingtests/<skill>/script_tests, and any acceptance-named check such as a deploy dry-run) each once per the base<verification_economy>rule, naming the run every "done" conclusion relies on. Fix every failure your change introduces. Report a pre-existing failure that is unrelated to this task as such and keep it out of scope, and report the suite's actual state, naming any part still red rather than implying a clean run. - Update docs and versions. Update whatever documentation the task names, and apply the repo's one-bump-per-commit version and plugin-lockstep rules for any skill or plugin artifact touched.
</workflow>
<boundary>
task_implement does the work, stamps implemented in place, and stops at work done once every Acceptance-named check plus the cheap repo surfaces have passed. It does not verify by audit and does not archive. Those are separate, single-purpose siblings:
- Codebase verification belongs to
task_audit(the read-only gate). - Close-out (
status→finishedordeferred, bumpupdated,git mvtoarchive/, re-point links) belongs totask_finish.
Stopping here keeps each sibling single-purpose and keeps the close-out (a checkpoint the user owns) out of an automated build step. On success, report the work as done and recommend the next links in the chain (task_audit to verify, then task_finish to close); leave running them to the user.
</boundary>
<output_contract>
Report each ## Acceptance item as met or unmet with concrete evidence: the test that covers it, the command that passed. Make no "done" claim without a passing check, and surface anything unmet or skipped plainly. Close by pointing at task_audit as the next step.
</output_contract>
<family>
In the task_* family, each sibling does one job, then points to the next; the base task skill is the hub that can do all of it:
task_create: write one task filetask_check: readiness gate before building (read-only)task_auto_check: autonomously repair one task untiltask_checkreports readytask_explain: explain one task at a high level (read-only)task_select: choose and rank the next eligible task/action (read-only)task_implement: do the work (this skill)task_audit: verify a believed-done task against the codebase (read-only)task_finish: close out (set status, bumpupdated, archive)task_fix: audit and repair the whole tasks tree
These ship together as a family; any sibling may be absent if a deployment excluded it. The default manual chain is create → check → implement → audit → finish, with task_auto_check as an opt-in readiness repair loop, task_select a read-only chooser for what to work on next, and task_fix maintaining the tree.
</family>
</task_implement_skill>