6 Commits
Author SHA1 Message Date
Anton YakutovichandClaude Sonnet 5.5 25f972b518 fix: address review of shared reference sync
- 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>
2026-11-22 23:13:26 +04:00
Anton YakutovichandClaude Opus 5.5 5690671675 fix(scripts): sync-shared-references copies and compares bytes
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>
2026-11-04 09:28:44 +04:00
Anton YakutovichandClaude Opus 5.5 c4efec801d refactor(sync-shared-references): copies equal their root files
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
2026-10-19 11:40:44 +04:00
Anton YakutovichandClaude Opus 5.5 a1ef118f14 refactor(sync-shared-references): rewrite shared/ instead of guarding it
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
2026-10-19 11:32:08 +04:00
Anton YakutovichandClaude Opus 5.5 50f1dbc5cb fix(skills): keep generated checklist copies in references/shared/
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
2026-10-19 11:10:55 +04:00
Anton YakutovichandClaude Opus 5.5 44e851440f fix(skills): generate skill-local copies of shared checklists
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
2026-10-19 10:48:34 +04:00