LaunchKit · 2026
Back to Skills

wip-file-guard

Hook that blocks destructive edits to protected identity files.

0
561 downloads
by @parkertoddbrooks

Setup & Installation

openclaw skills install @parkertoddbrooks/wip-file-guard

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install wip-file-guard

Version History

v1.9.34Mar 16, 2026 - Version note by skill developer:

# GitHub Packages publish from public repo **Date:** 2026-03-16 **Closes:** #193 ## What changed `deploy-public.sh` now publishes to GitHub Packages from the public repo clone after the npm publish step. Previously, GitHub Packages were only published from the private repo during `wip-release`, so they showed on the private repo's Packages tab. Users couldn't see them. Now packages show on the public repo's Packages tab where users expect to find them. Uses `gh auth token` for authentication (already available from the gh CLI). ## Why The Packages tab on public repos was empty. Users visiting wipcomputer/wip-ldm-os or wipcomputer/wip-ai-devops-toolbox saw no packages even though they were published. The packages existed but were linked to the private repo.

What This Skill Does

A hook that intercepts Write and Edit operations on protected identity files before they execute. Write is always blocked on protected files; Edit is blocked when it removes more than 2 net lines. Works with Claude Code CLI and OpenClaw.

Unlike prompt-based instructions that get erased during context compaction, this hook enforces file protection at the tool call level regardless of agent state.

When to use it

  • Prevent Claude from overwriting CLAUDE.md during a long session
  • Keep MEMORY.md intact after context compaction resets agent behavior
  • Block accidental deletion of SOUL.md or IDENTITY.md mid-task
  • Protect journal or daily log files from bulk replacement
  • Enforce append-only edits to shared context files in multi-agent setups

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: 'Rewrite CLAUDE.md with updated instructions'

AGENT
  1. 1Agent issues a Write call targeting CLAUDE.md
  2. 2Hook intercepts the PreToolUse event and checks the filename against the protected list
  3. 3Hook denies the Write operation and returns a message instructing the agent to use Edit instead
  4. 4Agent retries with an Edit call
  5. 5Hook checks net line removal; if under 2 lines removed, the edit proceeds
OUTPUT

Edit is allowed or blocked based on net line change, and CLAUDE.md is never fully overwritten