By kawaz
Block direct Write/Edit/MultiEdit to ~/.claude/rules/ (managed via symlinks from claude-rules repos) and point to the source-of-truth repo path.
Claude Code plugin: PreToolUse(Write|Edit|MultiEdit) hook that blocks direct
edits under ~/.claude/rules/ and routes changes through the source-of-truth
claude-rules repo.
~/.claude/rules/ is configured as directory symlinks pointing at multiple
claude-rules{,-emeradaco,-zunsystem,-syun} repos. Editing files via the
symlink path looks fine at first glance, but actually rewrites repo content
without going through the repo's commit/push flow. Easy to lose changes.
This hook blocks such edits at the tool layer (exit 2) and reports the resolved repo path so the model knows where to actually go.
/plugin marketplace add kawaz/claude-rules-source-guard
/plugin install claude-rules-source-guard@claude-rules-source-guard
Write / Edit / MultiEdit whose file_path is under $HOME/.claude/rules/. All three tools carry file_path at the top level of tool_input, so the same check covers them.readlink -f and includes it in the block message.Modifies files
Hook triggers on file write and edit operations
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimjj (Jujutsu VCS) support: git misuse prevention, daily operation guide, and expert agent
Analyze Claude Code session files (.jsonl) to view timeline, file operations, and version diffs
TODO: plugin description
Suggests using UV instead of pip/pipx/venv commands in Bash tool calls
自律的なタスク生成・消化ループを回す Claude Code プラグイン
npx claudepluginhub kawaz/claude-rules-source-guard --plugin claude-rules-source-guardUltra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Memory compression system for Claude Code - persist context across sessions
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Curate auto-memory, promote learnings to CLAUDE.md and rules, extract proven patterns into reusable skills.