Skip to main content

rt skills check

rt › skills › check

Report compiled skills that no longer match their sources

Usage​

bash
rt skills check [flags]

Arguments & flags​

Flag / ArgTypeDefaultDescription
--packtextPack name (--team still accepted); omit to pick from the discovered packs, or run from inside a pack tree to check that tree
--verbtextCheck only this verb (repeatable); omit for every compiled verb
--manifesttextManifest path; omit to read ~/.mattstack/repos/<repo>/packs/<pack>/skills.jsonc
--repotextWhich repo's bindings file to read when this pack binds several; omit for the first repo the team declares
--pack-dirtextCheck this pack directory's sources (a worktree, say) instead of resolving --pack through the registry
--strictbooleanfalseFail the exit code on mcp lint hits (the plugin-mattstack CI job uses this; rt skills sync applies it to a pack whose plugin.json sets strictLint)
--jsonbooleanfalseMachine-readable result

See code: commands/skills.ts › skillsCheck

Examples & notes​

Pipeline rules​

Check reports these as errors:

  • A pipeline a work verb runs must start with stage-provision, end with stage-watch-ci, and include stage-implement and stage-ship. Other pipelines take any order the consumes/produces chain check accepts.
  • A work verb names a pipeline the manifest does not declare.
  • A pipeline override names a stage that pipeline does not list.
  • A work verb names no pipeline and the manifest declares several with none named feature: verb "<v>" names no pipeline and the manifest declares several with none named feature.
  • A pipeline has bindings but no layer gives it stages: pipeline "<p>" has bindings but no layer gives it stages.
  • A pipeline a work verb names, or one that carries overrides, has -- in its name: pipeline "<name>" must not contain "--". A stage copy is named <stage>--<pipeline>, so the separator stays unambiguous. Plain stage lists are not checked.
  • A stage copy no pipeline needs any more is still on disk: stale stage copy stage-evidence--accessibility: run rt skills compile. Compile removes it.

An override that a layer cannot apply is a warning, not an error. Materialize prints it, and the generated manifest's header carries a // dropped: <key> <- <layer> line:

  • <key> from <layer> is ignored: the pipeline does not list that stage when no layer's stage list ever named the stage.
  • <key> from <layer> is ignored: the pipeline no longer lists that stage when a higher layer replaced the stage list and removed a stage a lower layer's override names.

rt skills check prints the generic Override <key> from <layer> is ignored for each dropped override.

Team values​

Check compiles in memory, so an edit to pack/params.jsonc or pack/sections/ shows as drift. When the pack's base text asks for a value the pack does not supply, check reports the list that compile refuses with. It never compares text with a hole in it.