Verify integrity
Re-hash installed skill content and compare it against the checksums recorded in skills-lock.json. Use
this to detect tampering or accidental edits to installed skills.
Before you start
Section titled “Before you start”- At least one installed skill (
gskill add ...orgskill install). - A
skills-lock.jsonpresent.
gskill project verify # re-hash installed content vs the lockgskill project verify --json # machine-readable result for scripts/CIExpected result
Section titled “Expected result”- If everything matches,
gskill project verifyexits0. - If any installed file differs from its recorded checksum, verify fails closed and exits
6(integrity failure) with a diagnostic naming the affected skill. Restore lock-true content withgskill project repair(orgskill install --force) — drift is never auto-repaired.
Example: detecting a tampered byte
Section titled “Example: detecting a tampered byte”# After a clean `gskill project verify` (exit 0), change one installed byte:printf '!' >> .claude/skills/<name>/SKILL.mdgskill project verifyecho "exit: $?" # prints: exit: 6check vs verify
Section titled “check vs verify”gskill project checkis fast — it compares metadata and is meant as a CI gate.gskill project verifyis thorough — it re-hashes actual content. Use it when you need proof, not just a quick status.