一键导入
freeze
Directory freeze guardrail that restricts file edits to a specific directory for the current session
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Directory freeze guardrail that restricts file edits to a specific directory for the current session
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when implementing features, fixing bugs, refactoring code, optimizing performance, resolving deprecations, or any multi-step development task requiring planning, implementation, testing, and review. Orchestrates specialized agent teammates through research, architecture, coding, QA, code review, adversarial review, and documentation phases. Triggers on: "implement", "build", "fix bug", "refactor", "add feature", "develop this", "help me build", "add functionality", "optimize performance", "resolve deprecation", "systematic development". Do NOT trigger on: simple questions ("what does this code do?"), file searches ("where is the auth function?"), one-off commands ("run the tests"), code explanations, quick edits, or non-development tasks.
Multi-lens adversarial review with Skeptic, Architect, and Minimalist lenses and 7+ attack vectors
Auto-improve any agent prompt using Karpathy's autoresearch method with iterative test-measure-improve loops
Safety guardrail that blocks destructive commands for the current session
Core development rules and philosophy for coding standards, git practices, and quality guidelines
Comprehensive security review skill for authentication, user input, secrets, API endpoints, and OWASP Top 10
基于 SOC 职业分类
| name | freeze |
| description | Directory freeze guardrail that restricts file edits to a specific directory for the current session |
Session-scoped directory restriction that blocks file edits outside a specified directory. Activate when debugging to prevent accidentally "fixing" unrelated code.
Triggers on: "freeze mode", "lock directory", "restrict edits", "only edit in"
Announce: "Freeze mode ACTIVATED. File edits restricted to: [directory]. Changes outside this directory will be blocked."
When `file_path` is outside freeze directory When `file_path` is outside freeze directory When `notebook_path` is outside freeze directory When command contains `>` or `>>` to path outside freeze directory Reading any file (Read, Grep, Glob) — unrestricted Editing files inside the freeze directory — unrestricted Running commands that don't write outside the directory Creating new files inside the freeze directory Auto-detect worktree path if in worktree. Ask user: "Which directory to restrict to? (default: cwd)". Store freeze directory for session. STOP — do not execute. WARN — "BLOCKED by freeze mode: Cannot edit [path]. Only edits in [freeze_dir] allowed." ASK — "Override for this specific file? (yes/no)". Debugging (add logs without fixing unrelated code), feature isolation (only touch feature dir), review mode (read anything, don't change outside PR scope), worktree safety. Config files (package.json, tsconfig) may live outside feature directory — override when needed Tests may live in separate `tests/` directory — consider freezing at higher level Doesn't block build tools from writing outside — only blocks Claude's direct edits