Freeze — Development skill for Claude Code
Freeze files matching a pattern — blocks Edit/Write to matched files via a session-scoped PreToolUse hook.
How to install Freeze
Installs to ~/.claude/skills/dtsong-my-claude-setup-freeze/SKILL.md
mkdir -p ~/.claude/skills/dtsong-my-claude-setup-freeze && curl -fsSL https://raw.githubusercontent.com/dtsong/my-claude-setup/HEAD/commands/freeze.md -o ~/.claude/skills/dtsong-my-claude-setup-freeze/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Freeze does
name: freeze description: "Freeze files matching a pattern — blocks Edit/Write to matched files via a session-scoped PreToolUse hook. Use when files should not be modified (e.g., during review, or to protect config files). Invoke /freeze '*.config.js' to enable, /freeze off to disable."
/freeze — File Modification Guard
Blocks Edit and Write tool calls to files matching a user-specified pattern.
Activation
When invoked with a pattern (e.g., `/freeze '*.config.js'`):
- Run: `bas
Alternatives in Development
- Octo Freeze — Restrict file edits to a specific directory boundary 2.8k ★
- Investigate Performance — Investigate a Nimbalyst performance problem (freeze, lag, idle CPU, slow op, memory growth) with measured evid 1.6k ★
- Cac — Isolate, protect, and manage your Claude Code 378 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Narthex
Prompt-injection defenses for Claude Code. A PreToolUse Bash hook blocks compositional credential-exfiltration
Agent Approval Gate
PreToolUse hook for Claude Code: blocks agent spending, account creation and fund moves, queues them for human
Edit Hook
Authorize the next Write/Edit to a .claude/hooks/.sh file. Writes a single-use marker the injection-gate hook
Edit Settings
Authorize the next Write/Edit to a .claude/settings.json (or settings.local.json) file. Writes a single-use ma
Claude Code Permissions Hook
A PreToolUse hook for Claude Code for more granular permission controls
Pursue
Hand Kimi an objective to pursue AUTONOMOUSLY across multiple turns (experimental goal mode), bounded by a har
Related Agents
Typed Gate Example
Reference pattern for a typed message-gate — an agent that blocks on a typed upstream verdict, emits a typed p
Quick Edit
Fast haiku-powered agent for trivial single-file edits. Use for typo fixes, variable renames, small function a
Doc Ingestion Agent
Parses docs/ into REQ-ID indexed requirement slices, enforces the bug-RCA hard gate (blocks bug requirements l