deferred-work

The file-per-item records this repo keeps for work it did NOT do and decisions nobody reviewed — changeset TODOs (`docs/todo/`), code issues (`docs/code-issues/`), and deferred answers, the questions a `#yolo` run decided instead of asking (`docs/deferred-answers/`). Defines when deferring is legitimate at all (the bar is high: the goal of a changeset is its full planned scope), the record formats, how planning cross-checks them as changeset prerequisites, and how records are closed. Use when planning a changeset or a PR stack, when something cannot be finished, when recording a verified code-quality finding, when a `#yolo` run would have asked a question, or when landing a stack.

¿Qué es deferred-work?

deferred-work is a Claude Code agent skill that the file-per-item records this repo keeps for work it did NOT do and decisions nobody reviewed — changeset TODOs (`docs/todo/`), code issues (`docs/code-issues/`), and deferred answers, the questions a `#yolo` run decided instead of asking (`docs/deferred-answers/`). Defines when deferring is legitimate at all (the bar is high: the goal of a changeset is its full planned scope), the record formats, how planning cross-checks them as changeset prerequisites, and how records are closed. Use when planning a changeset or a PR stack, when something cannot be finished, when recording a verified code-quality finding, when a `#yolo` run would have asked a question, or when landing a stack.

Compatible con✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mantasindrasius/skills/tree/HEAD/skills/deferred-work

Installed? Explore more Productividad y colaboración skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Deferred Work — TODOs, Code Issues and Deferred Answers

Three records, one file per item, all read as often as they are written. They live in docs/ (AGENTS.md § Docs layout), so a record travels with the code it is about.

docs/
├── code-issues/                      ← THE RECORD: verified findings, one file per issue
│   └── <category>-<file-slug>[-<symbol>].md
├── todo/                             ← THE RECORD: deferred work, one file per item
│   └── YYYY-MM-DD-<slug>.md
└── deferred-answers/                 ← THE RECORD: a question #yolo decided, one per file
    └── YYYY-MM-DD-<slug>.md

.agents/skills/deferred-work/         ← the rules, not the records
├── SKILL.md                          ← you are here: the bar, the paths, the rules
└── references/
    ├── todo-record.md                ← TODO file format, categories, lifecycle
    ├── code-issue-record.md          ← code-issue file format, identity, reconciliation
    ├── deferred-answer-record.md     ← deferred-answer file format, Product vs Technical, review
    └── planning-cross-check.md       ← planning's cross-check: verdicts and right-sizing
RecordPathOne file isWritten byRead by
Changeset TODOdocs/todo/one thing a changeset planned or discovered and could not finish/green, /plan-red, /plan-pr-stack, /pr-wrap, /fix-pr-stackplanning's cross-check, /fix-pr-stack Wave 1, /pr-wrap
Code issuedocs/code-issues/one verified finding against one symbol or file that a change did not fixthe developer, or a command that verified the finding by handplanning's cross-check
Deferred answerdocs/deferred-answers/one question a #yolo run decided instead of asking: the options, the asker's pick, the supervisor's review, what was built on itany command under #yolo (behaviour-modifiers skill)the developer, planning's cross-check, the summary and PR body

No directory has an index. The directory listing is the index — an index file is a shared append-point, so every branch that recorded a finding would edit the same lines and conflict on merge. Same reason docs/1-WIP/ and docs/changesets/ have none.

The rule that comes before every format

A changeset's goal is the full scope that was planned. The PRD and the changeset are the contract. A TODO file is not a scope-reduction lever, not a way to end a session tidily, and not somewhere to park the part that turned out to be hard.

Before writing a TODO for planned scope, the deferral must pass all four:

  1. It is impossible now, not merely expensive. Name the thing that makes it impossible. If the sentence you write is "this would take a while", it fails.
  2. Every route around it is wrong. Name the two or three ways you could proceed and say why each is incorrect rather than inconvenient.
  3. The developer consented. You asked, in this session, and they agreed to defer. Record their words. An unconsented deferral of planned scope is a silent scope cut, which is the failure this record exists to make impossible.
  4. The remaining scope still ships something coherent. A changeset whose deferral leaves a half-wired feature is not deferred, it is broken — finish it or stop and ask.

Legitimate blockers, concretely:

  • an external dependency that does not exist yet — an unreleased compiler archive, an upstream Bazel rule or module version that is not published;
  • a decision only the developer can make, which they were asked for and postponed;
  • a predecessor PR in the same stack that is still a stub (the stack's own sequencing);
  • work that would require breaking a boundary this repo enforces (AGENTS.md § Judgment Boundaries) — a host-compiler fallback, a hardcoded external/<repo>/… path;
  • infrastructure that does not exist — a missing CI job, an unbuilt example workspace, a toolchain gap.

A finding is not a TODO. An oversized file, dead code, an untested rule: these are findings and live in docs/code-issues/. Never file one as a docs/todo/ entry, and never invent a TODO category ("Deferred split") to hold it.

Not legitimate, and this list is the whole point of the section: it is hard; it is slow; the tests are flaky; the file is enormous; the session is running long; it is polish; "we can do it in a follow-up". Those are descriptions of the work, not obstacles to it.

A deferral of something the changeset never planned is not a deferral at all — it is a future enhancement, and those are welcome. Write them freely with **Category:** Future enhancement; rules 1–4 govern planned scope only.

The three records

  • references/todo-record.md — the TODO file: filename, template, categories, consent, deleting on resolution, and the query cookbook.
  • references/code-issue-record.md — the code-issue file: identity-based naming, template, and why a re-check reconciles instead of duplicating.
  • references/deferred-answer-record.md — the deferred-answer file: Product vs Technical, template (options as asked, supervisor review, what was built on it), and review — confirmed, overridden, superseded.

A deferred answer is not a deferral of scope. It is a decision that was made and built on, waiting to be reviewed. It never stands in for the developer's consent to cut planned scope (the four gates above), which stays a ⛔ halt under #yolo too.

Why the two naming conventions differ, since it looks like an inconsistency otherwise:

Changeset TODOCode issue
FilenameYYYY-MM-DD-<slug>.md<category>-<file-slug>[-<symbol>].md, no date
Becausea deferral is an event — it happened on a day, and a second deferral in the same area is a second filea finding is a standing property of the code — re-checking must update the file that already names that symbol
Sorted bythe date prefixcategory, then location

A record exists only while its item is open. All three are deleted when the item is fully resolved: git rm the file in the commit that fixes it, say what closed it in that commit's message and the PR body, and let git keep the history (git log --diff-filter=D -- <path>). There is no Resolved state: a file in the directory is open work, so the directory listing is the open-items list. A partly-addressed item stays, updated (see the rules below).

Reading the records at planning time

Planning reads these after the code analysis, once you know which files and modules the change touches, and before the changeset is written. Discovering an item during /green is late: by then the only choices are to work around it, silently make it worse, or stop.

references/planning-cross-check.md is that step — the scan commands, the verdict table (⛔ blocking / ⚠ during / ℹ answered / — unrelated), and how to right-size each fix. On a stack (/plan-pr-stack), a fix for shared code is a stack node — never a PR the command opened that is not in the stack.

What these records are not

Not thisThat is
the TODO recorda GitHub issue — for long-lived work nobody has planned. A TODO is a specific gap left by a specific changeset
the TODO recordan open TODO nested under a changeset's Green row — work /green must do once the implementation exists. Those are held, not deferred, and /green works through them
the TODO recordTODO(pr-<k>) stub markers — a planning stub the owning stack node implements in its own /green
the deferred-answer recordDecided without review in a summary — a choice a review gate used to show (a cleanup, a split). A deferred answer is a question the developer would have been asked
any recorda place to record something you have not told the developer about

Rules

  • Full planned scope is the deliverable. A TODO for planned scope needs a named blocker, refuted alternatives, and recorded developer consent. Without those, finish the work.
  • One file per item, and one item per file. Never add a second item to an existing file — that is the shared append-point this layout removes. It is not a rule against editing a record: updating an item's own file is required. New item → new file; new information about an existing item → edit that item's file.
  • No index, in any record. The listing is the index.
  • State why, not only what. The blocker paragraph is what the next planner acts on; a TODO without one is unusable and should not be written.
  • Verify a code issue by hand before treating it as a prerequisite. An unverified finding is a lead.
  • Re-checking reconciles; it never duplicates. One open code-issue file per symbol, ever.
  • The cross-check is mandatory in planning, and every relevant item gets a verdict in the changeset's ## Prerequisites — including the ones you decide not to fix.
  • Delete a record when it is fully resolved; never mark it Resolved. The fix commit carries the git rm, so the record cannot outlive its item. A leftover Resolved file is a defect: it reads as open work to every scan.
  • Record a partial fix as partial. The record stays open, gains the improved numbers, and has its What is left / What would close it narrowed to the remainder. A partial fix deleted as if resolved hides the remainder from the next planner — worse than not recording it at all.
  • /green writes the outcome into the changeset, not only into the record. The changeset's ## Prerequisites → Outcome column is the only place the mapping from a change to the records it touched exists, and the changeset is deleted at wrap — which is why /pr-wrap gates on it and /wrap-context-docs reads it before deleting.
  • Wrap deletes the records the changeset resolved, and only those. Unlike docs/1-WIP/, which wrap empties, these files are standing documentation: a wrap removes exactly the ones its Outcome column marks ✅ Resolved and leaves every other record alone.
  • A deferred answer is closed only by the developer's answer, given when asked (/review-deferred-answers, or an interactive plan's interview). The record is deleted whatever the answer: confirmed, or overridden, in which case the code left to change becomes an Overridden answer TODO in the same commit. No command deletes one on its own judgment, except a superseded one, and wrap leaves them alone.
  • These three directories are the one part of docs/ a command may write directly (AGENTS.md § Judgment Boundaries). Everything else under docs/ goes through the changeset workflow in docs/1-WIP/. A record is not prose about how the code works — it is a standing measurement with its own reconciliation contract, and routing it through a changeset would tie a record's life to a changeset's instead of to its item's.
  • A comment that cites a deleted record is read through git. Source comments, AGENTS.md and changesets name records by path, and a resolved record's path stops resolving. That is expected: git log --diff-filter=D -- <path> finds the commit that deleted it and its message says what closed it. Do not resurrect a record to satisfy a citation.
  • Refer to a record by its path in backticks, not a Markdown link. A code issue is renamed when the symbol it names moves, and a link would rot silently where a backticked path reads as the identifier it is.

Related

Commands: /yolo, /yolo-pr-stack, /review-deferred-answers, /plan-red, /plan-pr-stack, /green, /pr-wrap, /fix-pr-stack, /add-to-pr-stack, /merge-pr-stack, /wrap-context-docs Skills: behaviour-modifiers (#yolo), pr-stack, planning References: pr-lifecycle/references/changeset.md § Prerequisites

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

Skills relacionados