Skip to content
Back to skills

Freeze

ASecurity

Blocks file edits outside a specified directory boundary. Use to scope work to a specific module.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 9, 2026
developmentpythonbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 9, 2026

npx -y skills add pillip/claude-dev-kit --skill freeze --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Freeze?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Freeze
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pillip-freeze/badge)](https://www.skillsdirectory.com/skills/pillip-freeze)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: freeze
description: Blocks file edits outside a specified directory boundary. Use to scope work to a specific module.
argument-hint: "[directory path to allow edits in]"
allowed-tools: Read, Glob, Grep, Write, Edit, Bash
hooks:
  PreToolUse:
    - matcher: "Edit"
      hooks:
        - type: command
          command: "bash -c 'for D in \"$CLAUDE_PLUGIN_ROOT/skills/freeze\" \"$CLAUDE_SKILL_DIR\" \"${CLAUDE_PROJECT_DIR:-.}/.claude/skills/freeze\"; do [ -n \"$D\" ] && [ -f \"$D/freeze_guard.py\" ] && exec python3 \"$D/freeze_guard.py\"; done; true'"
    - matcher: "Write"
      hooks:
        - type: command
          command: "bash -c 'for D in \"$CLAUDE_PLUGIN_ROOT/skills/freeze\" \"$CLAUDE_SKILL_DIR\" \"${CLAUDE_PROJECT_DIR:-.}/.claude/skills/freeze\"; do [ -n \"$D\" ] && [ -f \"$D/freeze_guard.py\" ] && exec python3 \"$D/freeze_guard.py\"; done; true'"
---
Freeze mode activated.

## Setup
1. Validate that `$ARGUMENTS` is a valid directory path. If not provided, ask the user which directory to freeze to.
2. Resolve to an absolute path.
3. Write the absolute path to `.claude-kit/freeze-dir.txt` in the repo root:
   ```bash
   mkdir -p .claude-kit && echo "<absolute-path>" > .claude-kit/freeze-dir.txt
   ```
4. Report: "Freeze boundary set to: `<path>`. All Edit/Write operations outside this directory will be blocked."

## Behavior
- **Read/Glob/Grep**: Always allowed anywhere (read-only operations).
- **Edit/Write inside boundary**: Allowed.
- **Edit/Write outside boundary**: Hard-blocked with explanation.

## Deactivation
To deactivate, remove the boundary file:
```bash
rm -f .claude-kit/freeze-dir.txt
```
Or end this conversation.

Files in this skill

  • SKILL.md1.6 KB
  • freeze_guard.py2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.