feat: coding standard durable references#79
Conversation
…t go stale Generated coding standards cited bare file:line references and snapshot rosters of current consumers, both of which go stale as the code they describe evolves. Standards now cite a durable anchor (an exported symbol or a stable doc heading) and state applicability as a membership criterion, with an opt-in exception that matches a project's established line-number house style. The rule lives in references/durable-references.md and is enforced across the skill's research mode (Step 4 evidence gathering) and authoring mode (Step 6 drafting and Step 10 verification). The standard template now models anchored references, and the long-form operator doc is refreshed to match. Closes testdouble#73 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6561808 to
c72e0e5
Compare
|
this looks great! i ran it through a small project i've been working on, and the output was a significant improvement over the prior versions of the skill. thank you for this! i also wanted to note that i ran this through the Review summary:
|
Summary
This PR changes the
/coding-standardskill so the standards it generates cite code by durable anchors (an exported symbol or a stable doc heading) instead of barefile:linereferences and snapshot consumer lists, so that a generated standard stays accurate as the code it describes evolves instead of going stale./coding-standardskill only. No other skill, agent, or already-generated standard file is touched. Closescoding-standardskill generates standards that cite volatile codebase state, so produced standards go stale #73.Behavior changes
When you run
/coding-standardafter this PR:Applies Toas a membership criterion, and removes temporal words like "today" / "currently" / "existing."What to look at first
durable-references.mdis the core design decision: a researcher gathering evidence applies Rules 1-2 and is allowed to report line ranges, while the author applies all four and may not. Confirm that boundary reads cleanly, since the whole anti-staleness guarantee rests on the author never pasting the range through.How this was tested
git worktree, and compared the two generatedserver-background-jobs.mdfiles.Applies Toas a membership criterion.Files of interest
han-coding/...references/durable-references.md— the new rule; defines the two reader modes and all four rules.han-coding/skills/coding-standard/SKILL.md— wires the rule into Step 4 (research), Step 6 (authoring), and Step 10 (checks 4b/4c).han-coding/...standard/references/template.md— example reference reshaped topath, anchor — note.docs/skills/han-coding/coding-standard.md— operator doc refreshed to describe the anchored-citation behavior.Notes
I did not include research docs and implementation specs/plans. Let me know if you want them.