LaunchKit · 2026
Back to Skills

context-verifier

Know the file you're editing is the file you think it is — verify integrity before you act.

0
543 downloads
by @leegitw

Setup & Installation

openclaw skills install @leegitw/context-verifier

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

npx clawhub install context-verifier

Version History

v1.5.1Feb 24, 2026 - Version note by skill developer:

**Security update: Now guarantees all hash computation is performed locally—no file contents ever sent to external models or APIs.** - Updated data handling: clarified that all SHA256 hashing is strictly local; no file contents are sent to models, APIs, or external services. - Security documentation improved: explicitly states the agent's model is only used to interpret commands, not to process file content. - No change to usage or arguments. - All other documentation unchanged except for clarifications around local-only processing.

What This Skill Does

context-verifier computes SHA-256 hashes of files and checks them before agent operations. It detects when a file has changed between when it was read and when an edit is about to happen. Context packets bundle file metadata and checksums into JSON records stored locally for audit or comparison.

All hashing runs locally via SHA-256 with no file contents sent to any model or external service, making it safe to run on sensitive files.

When to use it

  • Confirming a source file is unchanged before applying an AI-generated edit
  • Snapshotting database migration files before a deployment
  • Tagging .env and credential files as critical to block unintended writes
  • Creating a pre-refactor packet of Go or TypeScript files to diff against later
  • Verifying API schema files are identical between staging and production

Example Workflow

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

INPUT

User asks: Hash src/main.go, then verify it hasn't changed before the agent edits it

AGENT
  1. 1Run `/cv hash src/main.go` to compute SHA-256 and record the hash
  2. 2Store the returned hash value for later comparison
  3. 3Perform any intermediate steps or wait for other agent operations
  4. 4Run `/cv verify src/main.go <stored-hash>` before writing changes
  5. 5Check output for MATCH or MISMATCH and proceed or abort accordingly
OUTPUT

MATCH confirmed — file is unchanged since last read, safe to edit