sharkyger

Save Rule — Development skill for Claude Code

Development community

Authorize the next Write/Edit to a CLAUDE.md file (operator rules / project context).

How to install Save Rule

Installs to ~/.claude/skills/sharkyger-claude-code-prompt-injection-gate-save-rule/SKILL.md

Terminal
mkdir -p ~/.claude/skills/sharkyger-claude-code-prompt-injection-gate-save-rule && curl -fsSL https://raw.githubusercontent.com/sharkyger/claude-code-prompt-injection-gate/HEAD/commands/save-rule.md -o ~/.claude/skills/sharkyger-claude-code-prompt-injection-gate-save-rule/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Save Rule does


description: "Authorize the next Write/Edit to a CLAUDE.md file (operator rules / project context). Writes a single-use marker the injection-gate hook consumes on first matching write." argument-hint: "" allowed-tools: Bash(mkdir:*), Bash(shasum:*), Bash(touch:*), Bash(printf:*), Bash(cut:*), Bash(python3:*)

!NORM=$(python3 -c 'import sys,os; print(os.path.abspath(os.path.expanduser("".join(sys.argv[1].split()))))' "$ARGUMENTS") && mkdir -p /tmp/.claude-injec

Alternatives in Development

  • Hookify — Rule-based hook system for Claude Code 14k ★
  • MCP Edit — tilth_write replaces the host Edit and Write tools 349 ★
  • Phase 2 Execution Plan — Phase 2 Execution Plan: Consumes/Produces Pattern (22 Skills) 183 ★

Full documentation available on GitHub

View Source Repository