Conversation
Adds a project skill, invocable as /reconcile-references, that checks every topic .md file at the repo root has an @import line in ~/.claude/CLAUDE.md and that every repo-pointing import resolves to a real file. Missing imports are appended with literal absolute paths; imports whose files exist only on another branch are reported as branch drift and left alone; imports whose files are gone from every branch are only removed after user confirmation. Imports that do not point into this repo are never touched. Also mentions the skill in the README's "Adding a new topic" steps. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a project skill at
.claude/skills/reconcile-references/SKILL.md, invocable as/reconcile-referencesfrom a Claude Code session inside this repo. It reconciles the repo's topic files with the@importlines in~/.claude/CLAUDE.md:*.mdexcludingREADME.mdandCLAUDE.md(repo docs, never imported).@-imports don't expand~/$HOME). Adding is treated as always safe.@RTK.mdalongside the block) are never added, edited, or removed.The README's "Adding a new topic" section now points at the skill, since forgetting step 2 (adding the import line) is exactly the drift it exists to catch.
Motivation
The docs require every topic file to be
@-imported from~/.claude/CLAUDE.md, but nothing enforced it — new topic files can silently never load, and imports can dangle after renames, deletions, or when a topic only exists on a feature branch.Test plan
Tested against a sandboxed fixture (fake
$HOMEwith its own git repo) containing all five cases: two unimported topic files, an import for a file existing only on a side branch, an import for a file deleted from every branch, and an unrelated non-repo import.🤖 Generated with Claude Code