dtsong

Freeze — Development skill for Claude Code

Development community

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

Terminal
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'`):

  1. 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 Repository