- make the anchor-only test assert the current hint text so it can fail
- sync removes an empty references/ after dropping the last shared copy
- CLAUDE.md: the generated shared copies are the exception to no duplication
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Reading the files as UTF-8 turned an invalid byte into U+FFFD on write,
and two copies whose bytes differ but decode alike passed --check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The generated header made every copy a separate blob. Without it a copy
is byte for byte its root file, so git stores one blob for both, and a
hand edit to a copy still fails --check as stale. The three --check
tests become one table of drift cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
shared/ holds only generated copies, so a run now deletes it and writes
it again, and --check compares it with what a run would write. That
drops the header-based checks that refused to overwrite or delete a
hand-written file there, a case no one has hit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
The copies sat next to each skill's own reference files and filled PR
diffs. They now live in skills/<name>/references/shared/, which holds
only generated files, and .gitattributes marks that directory
linguist-generated so GitHub collapses it in diffs and language stats.
The sync script refuses to overwrite or delete a hand-written file there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
Git for Windows checks symlinks out as text files by default, so the
skill-local symlinks broke a full checkout there. Each skill now holds a
generated copy of the shared checklists it links, written from the root
references/ by scripts/sync-shared-references.js. CI runs it with --check
and fails when a copy is missing, stale, or no longer linked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP