rolecraft verify
Check installed skill integrity via content hash.
Usage
rolecraft verifyDescription
Computes SHA256 hashes of all installed skill files and compares them against the stored hashes in the lockfile. Reports any files that have been modified, corrupted, or are missing.
Files in subdirectories are included, keyed by their path relative to the skill root (scripts/run.sh). .git and node_modules are skipped at any depth.
Upgrading from a version before nested-file hashing
Lockfiles written by earlier versions hashed only top-level files, so a skill with subdirectories recorded a contentSha that never covered them. After upgrading, verify reports those entries as a mismatch once. Re-install the affected skills (rolecraft update <slug>) to recompute the hash; the files themselves are unchanged.
Node.js API
This command is also available as a programmatic function. See the Node.js API documentation for detailed usage.
import { verify } from 'rolecraft'
const result = await verify()See also
- Commands hub — every command, grouped by intent.
rolecraft check— the security scan it complements.- Security Scoring — how scan categories map to grades.
