claude-md: cross-file conflicts + dead-rule checks; CLAUDE.local.md leak guard (0.13.0)#6
Merged
Merged
Conversation
…ak guard (0.13.0) The two remaining ideas from the memory-docs review, both folded into the existing claude-md pair (no new hook). - claude-md-curator hook: LEAK GUARD — when CLAUDE.local.md is edited but isn't gitignored, warn (it holds personal/secret content and would be committed). Uses `git check-ignore`, once per session, fails quiet outside a repo. Refactored the debounce to be multi-key so leak + budget warnings coexist. - /claude-md-audit skill: CROSS-FILE checks over the whole loaded set — contradictions (CLAUDE.md / nested / .claude/rules disagreeing -> Claude picks arbitrarily) and dead .claude/rules globs (paths: matches nothing -> rule silently never loads). Reads the full instruction set, not just one file. - catalog: conflicting-instructions (judgment) + dead-rule-scope (flag-for-review). - README + plugin/marketplace -> 0.13.0. Verified: claude-md-curator 18/18 (incl. real git-repo leak-guard fixtures); all 6 hook suites green; ruff clean; manifests valid; claude plugin validate ok. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D6pwpBdoug4tJRxxVrNNeL
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.
The two remaining ideas from the memory-docs review — both folded into the existing claude-md pair (no new hook), per the earlier recommendation.
Curator hook — leak guard
When
CLAUDE.local.mdis edited but isn't gitignored, warn: that file is meant for personal/secret content (sandbox URLs, test data) and would be committed as-is. Usesgit check-ignore, once per session, fails quiet outside a repo. (Refactored the debounce to be multi-key so the leak and budget warnings don't clobber each other's state.)/claude-md-audit— cross-file checksThe audit now reads the whole loaded instruction set (root + parent + nested CLAUDE.md +
.claude/rules+~/.claude), not just one file, and flags two silent failures that live between files:.claude/rulesglobs — a rule whosepaths:glob matches nothing silently never loads (an expiring contract). Flags globs that no longer match.Catalog
conflicting-instructions(judgment) — the docs warn about it explicitly.dead-rule-scope(flag-for-review) — cousin ofstated-not-derived-doc-facts.Verification
claude-md-curator18/18, including real git-repo fixtures (not-gitignored → warns; gitignored → silent; outside a repo → fails quiet).claude plugin validatepasses.🤖 Generated with Claude Code