freeze
仓库创建 2026年2月12日最近提交 5 小时前SkillHot 收录 20 天前
▸ 精选理由
在大型或敏感仓库进行自动改动时提供重要保护层。
▸ 风险提示
需在仓库中安装本地 hook 脚本,可能改变本地工作流。
这个 Skill 做什么
在项目内锁定可编辑文件范围,防止 Claude 修改未许可文件。
在项目里把 Claude 能编辑的文件范围锁定起来,防止它误改不相关代码或敏感文件,适合紧急调试、重构或评审时使用。通过项目内的 .claude/.freeze 哨兵和 PreToolUse hook 强制执行,只允许白名单路径被写入。没有哨兵就不生效,操作可控且可撤销。
▸ 展开 SKILL.md 英文原文
Scope or freeze which files Claude can edit during debugging, a refactor, or review. Use when edits should stay in specific dirs, or for a read-only investigate lock. Backed by a sentinel + PreToolUse hook.
505
Stars
34
Forks
40
仓库内 Skill
+35
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/oliver-kriska/claude-elixir-phoenix/main/plugins/elixir-phoenix/skills/freeze/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/oliver-kriska/claude-elixir-phoenix/main/plugins/elixir-phoenix/skills/freeze/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Freeze — scoped edit lock Toggle a project-local edit lock so Claude can only modify the files you intend during a focused task (debugging, a tight refactor, a review pass). Enforced by the `freeze-gate.sh` PreToolUse hook, which denies `Edit`/`Write`/`NotebookEdit` outside the allow-list. No sentinel = no lock; the hook stays dormant. The lock lives in `.claude/.freeze` — one allowed path prefix per line, project-relative. Empty file = freeze everything. ## Usage `/phx:freeze [args]` — resolve `$ARGUMENTS` and run the matching Bash branch. | Invocation | Effect | |------------|--------| | `/phx:freeze` | Freeze ALL edits — read-only investigation mode | | `/phx:freeze lib/app_web pri
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有