/freeze:freezefrom freeze
Declares an editable zone and freezes everything else as read-only to prevent scope creep during implementation. Call before starting work.
Ships in freeze. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Declare editable zone — everything outside is frozen.
In this task, is the editable scope explicitly declared? — If unclear, scope creep naturally develops during implementation. freeze = boundary lock for one task; it does not stop risky commands or limit what you may read.
/freezeUser input (file / module / concept scope)
↓
[PARSE] → classify as editable / frozen / read-only
↓
[DECLARE] → generate FROZEN SCOPE block
↓
[OUTPUT] → emit immediately, then exit
Extract from user input. If the user passes the path of a saved BRIEF.md / spec.md from the scope skill, Read it and take editable from Scope IN (or the Tasks) and frozen from Scope OUT / Non-goals. If the file does not exist, say so and ask once for the targets.
If scope is too vague ("everything", "roughly") → ask for clarity once only. Still unclear → freeze more broadly (Invariant 2).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔒 FROZEN SCOPE — [One-line task description]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ EDITABLE (modifications allowed)
[list of files / modules]
❌ FROZEN (no modifications)
[everything else — or "all except above"]
⚠️ READ-ONLY (reference only)
[mentioned but no modifications allowed]
Rules:
- FROZEN files: Edit/Write forbidden. Read only.
- If modification necessity discovered → stop immediately, report to user
- Thaw: user must explicitly say "unfreeze [file]" or "expand scope"
- This declaration lives only in the conversation. After /compact or a new session, declare it again.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The heading line 🔒 FROZEN SCOPE — ... is a fixed marker. Other skills (goal-lock, clean-room) look for it to find the active zone, so do not reword it.
Emit FROZEN SCOPE block, then exit immediately. No code generation, no agent spawning, no implementation start.
All implementation work in this session follows this declared scope.
The only artifact this skill produces is the FROZEN SCOPE block itself, emitted straight into the conversation — nothing is written to disk. The block is the state (see Design Note below): there is no external file to persist or reload, so "declared" means "visible in this reply," not "saved somewhere." The declaration exists only in this conversation's context: after /compact, or in a new session, the block may be gone, so declare it again (re-run /freeze or paste the block).
tools: line is descriptive metadata; this rule is the discipline). It never edits or writes files.| Does | Does NOT |
|---|---|
| [READ] Parse user input → classify editable/frozen/read-only | Write code or modify files |
| Emit FROZEN SCOPE block | Spawn agents or start implementation |
| Ask for clarity once if scope is ambiguous | Make direct judgment calls on out-of-scope modifications |
| Risky Action | Reversibility | Applied Layers |
|---|---|---|
| (none — read-only, block output only) | — | L1 (Invariant 1: no modifications to frozen files, ever) |
On failure detection: Stop → Classify → Apply Recovery → Report & Resume.
| Failure Type | Detection Condition | Recovery Path |
|---|---|---|
input_error | Unclear which files / scope to freeze | Ask once for target — never guess scope |
logic_inconsistency | Freeze request conflicts with simultaneous modification request (e.g. a file is named as editable and as frozen) | Ask once which is meant. If the user confirms that both are editable, put both in EDITABLE and declare it; if still unclear, freeze the contested file (Invariant 2). Never edit a contested file before the answer. |
missing_data | Specified file does not exist | State "file not found." Do not guess paths and freeze different files. |
Frozen = absolutely no modifications: Files declared frozen cannot be edited/written in this session. "Just a tiny tweak" is rationalization. Violation → scope creep and unexpected side effects.
When unclear, freeze broader: If boundaries are ambiguous, choose the broader frozen range. Narrow scope fails to prevent creep. Violation → freeze declaration becomes meaningless.
Exit immediately after declaration: No further action after emitting FROZEN SCOPE block. User initiates follow-up implementation requests normally. Violation → declaration and implementation blur, scope awareness fades.
When a frozen file needs modification mid-work:
Trigger: "unfreeze [file]", "thaw", "expand scope" — said by the user, or proposed by the model/another skill (for example goal-lock when its SCOPE needs to grow). Only the user decides: a proposal changes nothing until the user agrees in their own words.
Steps:
Limits:
⚠️ Freeze is being repeatedly lifted — consider re-running /scope to redefine boundaries| Rationalization | Rebuttal |
|---|---|
| "It's frozen but I just need to change one line" | Violates Invariant 1. Stop and report to user. |
| "Scope is unclear, let me narrow it for now" | Violates Invariant 2. When unclear, freeze broader. |
| "Declaring and implementing immediately is faster" | Violates Invariant 3. Exit after declaration. |
| "It's one file, why declare a freeze?" | Discard If: ≤10 lines in 1 file with no new function or class (and not a sensitive file) is excluded. Otherwise declare. |
| "No actual modifications needed, so it's fine" | Scope creep often begins when we think nothing needs to change. |
User: "/freeze src/components/UserProfile.tsx"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔒 FROZEN SCOPE — UserProfile component refactor
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ EDITABLE
- src/components/UserProfile.tsx
❌ FROZEN (no modifications)
- everything outside the above
⚠️ READ-ONLY (reference only)
- src/hooks/useAuth.ts (auth logic reference)
Rules:
- No Edit/Write outside UserProfile.tsx
- If modification needed elsewhere → stop and report
- Thaw: "unfreeze [file]" or "expand scope"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This skill adapts the freeze pattern from garrytan/gstack. The original uses session-global file lists; this version uses task-level declaration instead, because the declaration block itself serves as in-context state. That state is lost on /compact or in a new session and must be declared again.
See scenarios/case-1.md, scenarios/case-2.md for regression test scenarios.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub alexzio00/sovereign-skills --plugin freezeOther plugins' skills for the same job