Skill v1.0.2
currentAutomated scan100/100~1 modified
version: "1.0.2" description: File-based task tracking for plan-driven runs on any project. Defines the TASK-NNN directory schema (index.md + append-only log.md), the frontmatter lifecycle (pending/in-progress/blocked/complete), numbering, the completion protocol, and follow-up task creation. The tasks directory on disk is the durable run state - it survives context compression. Grants filesystem access for managing task files. enabled_tools: fs_read, fs_grep, fs_glob, fs_ls, fs_cat, fs_write, fs_patch, fs_mkdir
You are tracking implementation tasks as files. The task directory is the durable source of truth for run state — anything that lives only in chat history is lost to context compression. Keep it current at every state change, not in batches.
Layout
<plans_dir>/PLAN-<slug>.md # the plan (see design-session / plan-authoring)tasks/TASK-001-<slug>/index.md # current state: frontmatter + What/Steps/Acceptance criterialog.md # append-only audit trailTASK-002-<slug>/...
index.md schema
---title: <short imperative title>status: pending # pending | in-progress | blocked | completetype: feature # feature | chore | followuppoints: 1.0 # engineer-days; ~1.0 per the sizing ruleplan: PLAN-<slug>.mdblocked_by: [] # TASK ids that must be complete firstcreated: YYYY-MM-DDsurfaces: [] # this task's surfaces; omitted = inherit the plan's list---## WhatOne paragraph: what this task produces, named concretely (files, symbols, behaviors).## Steps-[ ] Concrete step — name the file, function, or migration-[ ] ...## Acceptance criteria-[ ] Observable behavior, measurable ("returns 429 after 3 failed attempts")-[ ] ...
Status lives in frontmatter — there are no lifecycle directories. status: complete plus all boxes checked IS done.
surfaces come from the plan's ## Quality bar; rigor is run-level only — there is no per-task rigor.
log.md conventions
Append-only. Each entry is an H2: ## YYYY-MM-DD — <short label> (created, started, implemented, diverged, completed, ...). Body is 1-3 sentences of prose; structured data lives in markdown links (branch URLs, commit SHAs, PR links). Never rewrite an old entry — add a new one.
Further labels the orchestrators write: decision and design-decision (see ## Where decisions go), debt-assigned (see ## Debt with an owner), debris-exempt, rejected-finding.
Numbering
Scan tasks/TASK-* for the highest NNN and increment (zero-padded to 3). This assumes a single writer per plans directory; if multiple agents or people share one, serialize task creation.
Lifecycle protocol
| Transition | Do | |
|---|---|---|
| Create | fs_mkdir the dir; write index.md (status: pending) + log.md with a created entry | |
| Claim | frontmatter status: in-progress; log started (note the branch + base SHA) | |
| Blocked | status: blocked; log why and what unblocks it | |
| Complete | Check off every Step and Acceptance criterion (verified, not aspirational); log completed with commit SHAs AND any follow-ups reported by the implementer, VERBATIM; set status: complete |
Never mark a criterion checked without evidence. Never batch state changes — update at the moment of transition.
Debt with an owner
When a task leaves a debt marker (#[allow(...)], #[expect(...)] (outer or inner #![...] form), any cfg_attr(...) carrying an allow or expect, todo!(), unimplemented!(), #[ignore], an env-gated or opt-in test -- the list the code-review skill enforces) or scaffolding behind "for a later task", the implementer names the owning TASK on the same line as the marker (for an env- or cfg-gated test, a gate the lint cannot recognise, on the gate's code line: the if of the env check, the fn line under the #[cfg(...)]). The orchestrator then:
- Appends
- [ ] Remove <file:line> <marker> left by TASK-<this>to the OWNING task's## Acceptance criteriaviafs_patch, and logs adebt-assignedentry in BOTH tasks'log.md. - If no owning task exists, creates one (
type: chore) and assigns the debt to it the same way.
The single-writer rule covers these cross-task edits. Opt-in or env-gated tests are wired to a CI lane in the same task or not written -- "runs on the implementer's machine" is not coverage.
Where decisions go
Decisions and their reasons go in the plan file or the task's log.md -- never in CONTRIBUTING, README or code comments. Two labels: a decision entry for a decision the run made (what was chosen, what was checked, why), and a design-decision entry for a pattern new to this repo that a coder introduced inside the new code (the pattern, the files it lives in, the call sites it touched), which the architect's closing pass rolls into the PR body's ## Design decisions. A code comment explains the code on its own terms; the record of why a fork was taken is run state, and run state lives in task files.
Follow-up tasks
When implementation surfaces manual/out-of-scope actions (secrets to create, cloud roles to provision, console steps, cross-repo changes): create a task per item (group small related ones) with type: followup, status: pending, the WHAT/WHERE/WHY/WHEN in its What section, and a note of which TASK surfaced it. Follow-ups are deliverables to hand to the user — never implement them in the current run.
Consistency checks (run at the end of a run)
- Every task dir has both
index.mdandlog.md. - Every
blocked_byreference resolves to an existing task. - No task is
completewith unchecked Steps/Acceptance criteria. - Every
completetask's log has acompletedentry with commit references. - The PLAN's breakdown table rows all map to task dirs (and vice versa).
- No debt marker in the run's diff (the list under
## Debt with an owner) lacks an owning task whose criteria name its removal.
Anti-patterns
- Run state that exists only in chat — session ids, decisions, and follow-ups belong in task files.
status: completewith unchecked boxes, or checked boxes without evidence.- Rewriting log history instead of appending.
- Hand-picking a task number without scanning (collisions).
- Follow-ups mentioned in a summary but never materialized as task files.
- A debt marker justified by "a later task" with no task named.
- Decisions recorded in CONTRIBUTING or README.