Save Rule — Development skill for Claude Code
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
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 RepositoryRelated Skills
Save Memory
Authorize the next Write/Edit to a project-memory file. Writes a single-use marker the injection-gate hook con
Edit Hook
Authorize the next Write/Edit to a .claude/hooks/.sh file. Writes a single-use marker the injection-gate hook
Freeze
Freeze files matching a pattern — blocks Edit/Write to matched files via a session-scoped PreToolUse hook. Use
Incident Capture
Capture a structured post-mortem when something went wrong. Walks operator through 4 questions, writes ~/.clau
Hatch3r Create
Author a custom user-tier artifact (agent, skill, rule, command, or hook) for this project. Generates frontmat
Hunt Ssrf
Active SSRF hunt for an ingested program. Consumes webvuln-surface seeds (ssrf_likely params + URL-accepting i
Related Agents
Incident Synthesizer
A3 — the self-improvement loop. Reads incidents (retro digests, .pe/decisions.jsonl FAIL rows, .claude/gates/.
Remotion Rule Reviewer
Remotion 渲染前的"自信关"——在跑贵渲染之前,对当前改动做一次语义级审查。对照 docs/HARD_RULES.md(框架红线)和 kit/theme.ts(设计 token),抓 hook 抓不到的语义错:s
Area Implementer
Implements a focused, behavior-preserving change WITHIN a single Chimaera subsystem (one crate, or one web-ui