skillwarden diff
skillwarden diff [paths...]Compares current skill content against the lockfile. Human-readable drift report on
stdout; exit 1 on drift, 2 when the lockfile is missing.
| Flag | Default | Description |
|---|---|---|
--lockfile <file> |
skillwarden.lock |
Lockfile to compare against |
Drift semantics
Section titled “Drift semantics”- A skill present in the lockfile but not on disk → removed (drift).
- A skill on disk but not in the lockfile → added (drift).
- Matching
pathbut differentdigest→ modified (drift), with per-file added/removed/modified detail. - Any drift → exit code 1.
Example
Section titled “Example”skillwarden lock examples/skills/benign-skillskillwarden diff examples/skills/benign-skill # exit 0 — content matches lock