/tandem:fill-claude-mdfrom tandem
Fill in or trim a CLAUDE.md so only non-discoverable, project-specific, broadly-relevant lines remain — the judgement layer applying the three content-economics tests over `pm:claude-scaffold`'s stubs. Use when a CLAUDE.md stub created by `pm:claude-scaffold` still carries `[auto — verify]` or `<fill in>` markers, when `pm:claude-audit` reports `incomplete`, or when an existing CLAUDE.md needs trimming.
Ships in tandem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are completing the judgement layer of the kit's CLAUDE.md automation.
The scaffold script (pm:claude-scaffold) wrote the discoverable starter lines
and marked them [auto — verify]. Your job is the part automation cannot do:
decide what non-discoverable, project-specific content earns a place, and confirm
or remove the auto-detected starters.
Before any line stays in a CLAUDE.md, it must pass ALL of these tests:
grep, ls, or reading the code would
reveal it, it does not belong. Encode what the code can't say: gotchas,
"looks like X but is actually Y", which command to use here, where to start.91-Templates/, a schema, a status enum, a command list owned by another
file — point to that home, don't inline a copy. Inlined duplication drifts
from its source and is paid for in context every session. Flag any inlined
copy of a template/schema/owned-command-list for replacement with a one-line
pointer (e.g. "Story frontmatter: see 91-Templates/STORY.template.md").Inclusion gate for every line: "If I delete this line, what specifically goes wrong, and how often?" If the answer is "nothing, most of the time" — delete it.
CLAUDE.md is a tree, not one file. Place each rule by cost-of-a-miss: a serious or irreversible miss (data loss, a broken release, a security hole) earns a spot higher up; a recoverable, area-local miss lives lower down.
CLAUDE.md. Loaded every session, so it costs
context on every task. Keep only rules relevant to almost every task here.
Keep it lean; it signposts the rest of the tree in plain words.CLAUDE.md. One per major area, auto-loaded by
Claude Code when a file in that folder is touched. Additive — it adds what's
true only in that folder; it is never a copy of root.CLAUDE.md that names the rule's single
home and is followed on demand — not a second copy of the rule.Never use @import. An @import (or @path/to/file) pulls the target into
the always-loaded context eagerly, re-bloating Tier 1 with everything it points
at — the opposite of the tiered model. Use a plain-text signpost ("when
editing X, read x/CLAUDE.md") instead; Claude Code loads the folder file on
demand when it's actually relevant.
digraph fill {
"Find target stubs" [shape=box];
"For each stub: read it + its directory" [shape=box];
"Confirm [auto — verify] starters" [shape=box];
"Draft gotchas/conventions" [shape=box];
"Run each candidate through 3 tests" [shape=diamond];
"Write outside managed markers" [shape=box];
"Strip confirmed [auto — verify] markers" [shape=box];
"Re-audit" [shape=doublecircle];
"Find target stubs" -> "For each stub: read it + its directory";
"For each stub: read it + its directory" -> "Confirm [auto — verify] starters";
"Confirm [auto — verify] starters" -> "Draft gotchas/conventions";
"Draft gotchas/conventions" -> "Run each candidate through 3 tests";
"Run each candidate through 3 tests" -> "Write outside managed markers" [label="passes"];
"Run each candidate through 3 tests" -> "Draft gotchas/conventions" [label="fails: drop or move to skill"];
"Write outside managed markers" -> "Strip confirmed [auto — verify] markers";
"Strip confirmed [auto — verify] markers" -> "Re-audit";
}
If given a path, use it. Otherwise run:
npm run pm:claude-audit -- --json and take every entry with state incomplete
(and any gap you intend to fill). Each maps to a CLAUDE.md file.
[auto — verify] startersRead the file and the directory it governs. For each [auto — verify] line:
npm run test isn't actually pnpm test:unit).[auto — verify] suffix, keep the line. Add a
disambiguating note only if the obvious command is wrong (e.g. "NOT npm test
— that runs e2e, ~20min").These lines live inside the <!-- PM-KIT:BEGIN managed:commands --> block.
Editing them in place is fine — but do NOT add new human prose inside that block;
the scaffold rewrites its inner content on the next run.
Propose candidate lines for ## Critical gotchas and ## Conventions. For each,
apply the four tests and the deletion gate. Concretely reject:
/components" → discoverable by ls. Drop.tsconfig.json. Drop.91-Templates/STORY.template.md. Replace with a pointer to it (test 4).Concretely keep (when true for this repo):
/services/*, despite appearances."/packages/db/writers/* — don't call the ORM from routes."Temporal, never Date; the lint rule misses some paths."Write these outside the managed markers (under the ## Critical gotchas and
## Conventions headings, in the human area). Keep each file lean — a subdir file
should be additive to root, never a copy of it.
If asked to trim, run every existing line through the four tests in reverse.
Produce a short list: "Recommend deleting — reason" per failing line (including
"duplicates <canonical home> — replace with pointer" for test-4 failures). Make
the edits only after the user confirms, unless they asked you to trim directly.
Run npm run pm:claude-audit -- --json again. The files you completed should no
longer be incomplete (no [auto — verify] / <fill in> left). Report what
changed and any boundary you deliberately left excluded.
PM-KIT:BEGIN/END managed block except the
command lines the scaffold owns — the scaffold overwrites managed inner content.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub data-ai-xyz/tandem --plugin tandem32 skills in this plugin
/autopilotDrive the whole plan end-to-end unattended by chaining start-phase, each chat's execute-batch (subagent-per-batch), and close-phase across one or more phases — with checkpoint/resume, fail-halt guardrails, model tiering, and a usage-governor seam; use when the operator invokes /tandem:autopilot or asks to run the plan autonomously, hands-free, or unattended./close-out-storyClose out a STORY through the Definition of Done gate. Use when the testplan is fully PASS, when the user asks to close a story, to finish a story, to mark a story done, or to run the DoD check. Runs the DoD checklist, flips status to done, updates MONITOR, regenerates the dashboard./close-phaseClose out a whole phase after an execution-strategist chat / execute-batch run finishes — gate on every phase story being done, compile a phase retrospective, capture follow-ups, update the board, then run a gated merge to main. Use when the user asks to close a phase, wrap up a phase, run a phase retro, or wants to wrap up and integrate a finished chat/phase whose stories are already done.