Sign in
Explore
Skills · SkillEveryday codingWriting & ContentDebuggingEditing & styleReviewed

freeze

Blocks Edit and Write outside one directory for the rest of the session, so debugging stays in scope.

Kind
Skill
Works with
Claude Code
Source
garrytan/gstack @ 01593aa67c94
Path
freeze/SKILL.md
Jobs
Guardrails
Topics
Debugging, Editing & style

Credit

Made by
garrytan
Original
github.com/garrytan/gstack/blob/01593aa67c94780528e8f5121e473…
License
MIT

Listed by Skill Manifest; not made by us.

InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
Install factsScanned 3 Nov 2026
Adds
  • .claude/skills/freeze/ (the skill folder)
  • 2 other files in the folder: bin/check-freeze.sh, bin/freeze-state.sh
Runs scripts
Yes
  • bin/check-freeze.sh
  • bin/freeze-state.sh
  • allowed-tools includes Bash
  • shell block in the text
Uses the network
None found
Needs secrets
None found
Reads environment variables
  • BASH_SOURCE
  • STATE_DIR
  • FREEZE_FILE
  • FREEZE_OWNER_LINE
  • FREEZE_DIR
  • INPUT
Reads outside the project
  • $HOME/.claude/skills/gstack/freeze/bin/check-freeze.sh (SKILL.md)
  • ~/.gstack/analytics (SKILL.md)
  • ~/.gstack/analytics/skill-usage.jsonl (SKILL.md)
  • $HOME/.claude/skills/gstack/freeze/bin/freeze-state.sh (SKILL.md)
  • and 3 more
Calls other skills
  • /unfreeze
  • /careful
  • /src-old
  • /guard
Value without its scripts
High
  • The main file never tells the agent to run a bundled script, so the text works without them.
  • bin/check-freeze.sh: check-freeze.sh — PreToolUse hook for /freeze skill
  • bin/freeze-state.sh
Source revision
01593aa67c94
Licence
MIT
Last activity
27 Nov 2026
Source changed after the scan
Yes
  • Last push 27 Nov 2026, scanned 3 Nov 2026; read it again before you rely on this scan
Review
Reviewed

Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.

<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
<!-- Regenerate: bun run gen:skill-docs -->


## When to invoke this skill

Blocks Edit and
Write outside the allowed path. Use when debugging to prevent accidentally
"fixing" unrelated code, or when you want to scope changes to one module.
Use when asked to "freeze", "restrict edits", "only edit this folder",
or "lock down edits".

# /freeze — Restrict Edits to a Directory

Lock file edits to a specific directory. Any Edit or Write operation targeting
a file outside the allowed path will be **blocked** (not just warned).

```bash
mkdir -p ~/.gstack/analytics
echo '{"skill":"freeze","ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","repo":"'$(basename "$(git rev-parse --show-toplevel 2>/dev/null)" 2>/dev/null || echo "unknown")'"}'  >> ~/.gstack/analytics/skill-usage.jsonl 2>/dev/null || true
```

## Setup

Ask the user which directory to restrict edits to. Use AskUserQuestion:

- Question: "Which directory should I restrict edits to? Files outside this path will be blocked from editing."
- Text input (not multiple choice) — the user types a path.

Once the user provides a directory path:
…