← All commands
Analysis & Verification

verify

Like cargo semver-checks but for knowledge. Verify that the version bump declared in a skill's frontmatter actually matches the magnitude of content changes. Catches both under-bumps (breaking changes in a patch) and over-bumps (typo fix as a major).

Why it matters

Semver is a contract. If an agent pins to ^1.0.0, a breaking change in 1.1.0 violates that contract. Verify catches dishonest or accidental version bumps by analyzing the actual content diff — using both heuristics and optional LLM-assisted semantic analysis.

What it does

  • Retrieves the previous version of each skill from git history
  • Computes section-level diffs, package changes, and content similarity scores
  • Runs heuristic rules to classify changes as major, minor, or patch
  • Optionally uses an LLM for semantic analysis of uncertain cases
  • Compares the classified change level against the declared version bump
  • Suggests the correct version bump when mismatches are found

Usage

npx skills-check verify [options]

Options

FlagDescription
-s, --skill <path>Verify a specific skill file
-a, --allVerify all skills with git history
--suggestSuggest the correct version bump
--skip-llmHeuristic-only mode (no API key needed)
--provider / --modelLLM provider and model for semantic analysis
-f, --format <type>Output: terminal or json

Examples

Verify all skills

npx skills-check verify --all

Suggest correct bump

npx skills-check verify --suggest

Heuristic only

npx skills-check verify --all --skip-llm

One skill

npx skills-check verify -s ./skills/ai-sdk-core.md

CI tip

Run verify --all --skip-llm in CI for fast, deterministic checks. Use the full LLM-assisted mode locally for nuanced semantic analysis before publishing.