一键导入
wip-file-guard
Hook that blocks destructive edits to protected identity files. For Claude Code CLI and OpenClaw.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Hook that blocks destructive edits to protected identity files. For Claude Code CLI and OpenClaw.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Complete DevOps toolkit for AI-assisted software development. Release pipeline, license compliance, copyright enforcement, repo visibility guard, identity file protection, manifest reconciler, and best practices. All core tools are agent-callable via MCP.
Private-to-public repo sync. Copies everything except ai/ to the public mirror. Creates PR, merges, syncs releases.
PreToolUse hook that enforces branch discipline, blocks destructive commands, requires repo onboarding before first write, tracks blocked-file retries, and gates PR creation against external repos. Read when: a tool call was denied by the guard, or you're about to make the first write in a new repo, or an agent is setting up a new Claude Code / OpenClaw install.
One-command release pipeline. Bumps version, updates changelog + SKILL.md, publishes to npm + GitHub.
Repo manifest reconciler. Makes repos-manifest.json the single source of truth for repo organization.
Post-merge branch renaming. Appends --merged-YYYY-MM-DD to preserve history.
| name | wip-file-guard |
| description | Hook that blocks destructive edits to protected identity files. For Claude Code CLI and OpenClaw. |
| license | MIT |
| interface | ["cli","module","hook","plugin","skill"] |
| metadata | {"display-name":"Identity File Protection","version":"1.0.1","homepage":"https://github.com/wipcomputer/wip-file-guard","author":"Parker Todd Brooks","category":"dev-tools","capabilities":["file-protection","edit-blocking","identity-guard"],"requires":{"bins":["node"]},"openclaw":{"requires":{"bins":["node"]},"install":[{"id":"node","kind":"node","package":"@wipcomputer/wip-file-guard","bins":["wip-file-guard"],"label":"Install via npm"}],"emoji":"🛡️"}} |
| compatibility | Requires node. Node.js 18+. |
Hook that blocks destructive edits to protected identity files. For Claude Code CLI and OpenClaw.
Use wip-file-guard for:
This is a technical guardrail, not a prompt. It blocks the operation before it happens.
Two rules:
CLAUDE.md, SHARED-CONTEXT.md, SOUL.md, IDENTITY.md, CONTEXT.md, TOOLS.md, MEMORY.md
Any file matching: memory, memories, journal, diary, daily log
node guard.mjs --list # list protected files
bash test.sh # run test suite
Add to ~/.claude/settings.json:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "node \"/path/to/wip-file-guard/guard.mjs\"",
"timeout": 5
}
]
}
]
}
}
The deny message tells the agent to re-read the file and use Edit instead. If the agent ignores it, it's likely post-compaction and has lost context. The hook will keep blocking.
Check the net line removal. Edits that remove more than 2 lines from a protected file are blocked. Small edits (adding or replacing 1-2 lines) are allowed.