agentleFS
maroffomaroffo/claude-forge/skills/freeze/SKILL.md

freeze

Skill17 starsChanged 51 days agoMITView on GitHub

Restrict edits to one directory of the current repo for the rest of the session, so focused debugging cannot spill into unrelated files. Use when user says /freeze, freeze the boundary, freeze this dir, keep edits inside <dir>, unfreeze, or /freeze off. Writes a repo-local boundary file that the freeze-guard PreToolUse hook reads. Not a security boundary and not a scope mechanism for parallel subagents.

47 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use unfreeze, plan-tune and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ayudaySkill

    unfreeze

    Clear the freeze boundary set by /freeze, allowing edits to all directories again. Use when you want to widen edit scope without ending the session. Use when asked to "unfreeze", "unlock edits", "remove freeze", or "allow all edits".

    Also in 24 projects that use this

  • ShreyRaviSkill

    plan-tune

    Self-tuning question sensitivity + developer psychographic for gstack (v1: observational). Review which AskUserQuestion prompts fire across gstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.

    Also in 9 projects that use this

  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 5 projects that use this

  • Saqlain-811Skill

    ios-fix

    Autonomous iOS bug fixer. (gstack)

    Also in 5 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 9 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 17 projects that use this

  • +1 more from Saqlain-811

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 38 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep Edit, Write and NotebookEdit inside one directory of the current repo.

    line 12
  2. Very specific:

    If either cd fails, stop and say why: an unresolvable path would write a boundary that denies everything.

    line 38
  3. Distinctive:

    Write the boundary, with the trailing slash the guard's prefix match expects:

    line 48
  4. Very specific:

    Read hooks/freeze-guard.sh before changing anything here.

    line 92
  5. Distinctive:

    Every failure path allows.

    line 106

“Common” is measured: kept by at least 6 in 10 of the 38 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ABOUTME: /freeze sets, shows and lifts the repo-local edit boundary read by hooks/freeze-guard.sh

ABOUTME: Focus aid for long debugging sessions, deliberately not a security boundary

/freeze

Keep Edit, Write and NotebookEdit inside one directory of the current repo. The boundary is a single file, .freeze-boundary, at the git root, holding one absolute physical directory path. hooks/freeze-guard.sh reads it on every mutating tool call and denies paths outside it.

What this is not

  • Not a security boundary. Bash is not gated: sed -i, cat >, git checkout and any other shell write go straight through. Treat it as a focus aid that makes an out-of-scope edit loud, not as containment.
  • Not per-agent. The boundary is session-wide and repo-local. Parallel subagents share the process and therefore the boundary; it does not give each of them its own scope.
  • Not persistent policy. Nothing re-applies it. A new session starts unfrozen unless the file survived on disk, which it will: /freeze off is a deliberate step, not an automatic one.

Commands

/freeze <dir>

  1. Resolve the repo root and the target, both physical (pwd -P, so a symlinked checkout and the hook agree on one spelling):

    root=$(git rev-parse --show-toplevel) && root=$(cd "$root" && pwd -P)
    dir=$(cd "<dir>" && pwd -P)

    If either cd fails, stop and say why: an unresolvable path would write a boundary that denies everything.

  2. Refuse a target outside the repo. A boundary the repo cannot contain freezes the whole repo while enforcing nothing elsewhere (the guard is repo-local by design):

    case "$dir/" in "$root"/*) ;; *) echo "refusing: $dir is outside $root"; exit 1 ;; esac
  3. Write the boundary, with the trailing slash the guard's prefix match expects:

    printf '%s/\n' "${dir%/}" > "$root/.freeze-boundary"
  4. Gitignore guard, exactly once (same idiom the orchestrator uses for quality_reports/reviews/: check first, append if absent, never rewrite the file):

    gi="$root/.gitignore"
    if ! grep -qxF '/.freeze-boundary' "$gi" 2>/dev/null; then
      nl=""
      # Command substitution strips trailing newlines, so a non-empty result means the
      # file does not end in one and the append would glue onto the last line, silently
      # corrupting an existing ignore rule in someone else's repo.
      [ -s "$gi" ] && [ -n "$(tail -c 1 "$gi")" ] && nl=$'\n'
      printf '%s/.freeze-boundary\n' "$nl" >> "$gi"
    fi

    The entry is anchored (/.freeze-boundary) because the file only ever lives at the root.

  5. Report the boundary and the escape hatch in one line: frozen: <dir> (lift with /freeze off).

/freeze status

root=$(git rev-parse --show-toplevel 2>/dev/null) && cat "$root/.freeze-boundary" 2>/dev/null

Print the boundary path, or no boundary set when the file is absent or empty. Do not create it.

/freeze off

root=$(git rev-parse --show-toplevel) && rm -f "$root/.freeze-boundary"

Report boundary lifted. Leave the .gitignore line alone: it is inert when the file is gone, and removing it would just churn the diff on the next freeze.

How the guard behaves

Read hooks/freeze-guard.sh before changing anything here; the two must stay in step, and hooks/tests/test_hook_constants_sync.py asserts the basename quoted above matches FREEZE_BOUNDARY_BASENAME in hooks/_freeze_boundary.sh.

SituationGuard
No boundary file at the edited file's git rootallows, zero output
Edit inside the boundaryallows
Edit outside the boundary, same repodenies, message names the boundary and /freeze off
Edit in a different repoallows (the boundary is repo-local)
Edited path (file_path, or notebook_path for NotebookEdit) missing, empty or newline-bearingallows, one-line stderr warning
Boundary file empty or whitespace-onlyallows, one-line stderr warning
jq not installedallows, one-line stderr warning

Every failure path allows. A false deny would block every edit in the repo until someone notices and lifts the boundary; a false allow shows up in the diff.

When to use

  • Long debugging sessions where the fix is known to live under one directory.
  • Handing a scoped subtask to yourself after a LOCALIZE step: the file list is already decided.

When NOT to use

  • Anything that must be enforced rather than nudged. Use permissions.deny in settings for that.
  • Multi-directory work. One boundary, one directory: freezing the repo root is a no-op.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.