Freeze

From bdfinst/agentic-dev-team · View interactive version

Freeze is an AI agent skill from the GitHub repository bdfinst/agentic-dev-team. Scope-lock file editing to a specific glob pattern. Only files matching the pattern can be edited until /unfreeze is called.

How to use this skill

Skill file

Freeze

Role: worker. This command restricts Write/Edit operations to files matching a glob pattern.

You have been invoked with the /freeze command.

Worker constraints

  1. Write only the freeze-state file; do not edit source.
  2. Do not enforce the lock yourself — the pre-tool-guard hook does.
  3. Be concise. Confirm the locked scope in one line.

Parse Arguments

Arguments: $ARGUMENTS

If no pattern is provided, display usage and exit:

Usage: /freeze <glob-pattern>

Example: /freeze src/auth/** — only files under src/auth/ can be edited.

Steps

1. Write freeze state

Write the following JSON to .claude/hooks/freeze-state.json (relative to

the current repo root — not hooks/freeze-state.json, which would sit

inside the plugin's own shared install/cache directory and scope-lock every

other concurrently-running session, worktree, and project on the machine;

see issue #1890):

{
  "active": true,
  "allowed_patterns": ["<glob-pattern>"],
  "frozen_at": "<ISO timestamp>"
}

2. Confirm

Display:

Scope locked to <pattern>. Only matching files can be edited.

Use /unfreeze to lift the restriction.

Notes

repo via hooks/lib/artifact_paths.py's `resolve_file("hooks",

"freeze-state.json") — the same .claude/-scoped convention .review-passed`

and other per-repo runtime state already use — and blocks Write/Edit to

files that do NOT match the allowed patterns.

the repo it was activated in.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.