Skip to content
Agentmart
Submit a tool

freeze

Lock file edits to a specific directory.

Skill by xingfanxia

IndexedMIT★ 4
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xingfanxia-freeze

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Lock file edits to a specific directory. Prevents accidental edits outside the designated scope. Use during focused refactoring, debugging, or when working on a specific module. Triggers: freeze, lock scope, restrict edits, scope lock.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/freeze

What's inside

Skill name
freeze
Description
Lock file edits to a specific directory. Prevents accidental edits outside the designated scope. Use during focused refactoring, debugging, or when working on a specific module. Triggers: freeze, lock scope, restrict edits, scope lock.
License
MIT
Instructions
54 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Freeze Mode — Directory-Scoped Edit Restriction

Adapted from gstack's /freeze. Prevents scope creep by locking edits to a single directory.

## Activation

When this skill is loaded:

1. Ask the user: **"Which directory should I restrict edits to?"**
   - Accept a relative or absolute path
   - Resolve to absolute path
   - Confirm: **"Freeze active. Edits restricted to `<absolute-path>/`. Read/search tools unaffected."**

2. Store the freeze directory mentally for this session.

## Enforcement Rules

Before using **Edit**, **Write**, or **MultiEdit** on any file:

1. Resolve the target file's absolute path
2. Check if it starts with the frozen directory path (with trailing `/`)
3. If **outside** the frozen directory: **REFUSE** the edit

### Response When Blocked

```
BLOCKED: Edit to [file_path] is outside the freeze boundary.

Freeze directory: [frozen_dir]
Requested file:   [file_path]

To edit this file, run /unfreeze first, or ask me to update the freeze directory.
```

### What's NOT Affected

These tools work normally regardless of freeze:
- **Read**, **Glob**, **Grep** — reading/searching is always allowed
- **Bash** — shell commands are not restricted (use `/careful` for that)
- **Agent/Task** — subagent operations are unrestricted

## Special Cases

- **Creating new files** (Write): blocked if outside freeze directory
- **CLAUDE.md or settings.json**: blocked if outside freeze directory (no exceptions)
- **Test files**: if the test directory is outside freeze scope, warn but allow if the test directly covers frozen code

## Deactivation

- Run `/unfreeze` to remove the restriction
- End the session (freeze is session-scoped)
- Ask to change the freeze directory (replaces the current one)

From xingfanxia/ax-claude-config-public, MIT.

Signals

Stars
4
Forks
0
Open issues
0
Last commit (this folder)
May 8, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from xingfanxia

Cite this page

freeze skill. Agent Mart. https://agentmart.dev/skills/xingfanxia-freeze (last updated 2026-10-24)