Skip to content

chore(skills): keep the cora skills in step with the binary and refresh them on upgrade - #764

Merged
ajianaz merged 2 commits into
developfrom
chore/skills-audit
Nov 16, 2026
Merged

ajianaz merged 2 commits into
developfrom
chore/skills-audit

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

What

Audit of the two skills cora ships (cora-review, cora-code) and what depends on them:

  • Found: cora-review still told users to run claude mcp add cora -- cora mcp instead of cora install; an installed copy was never refreshed after an upgrade (cora install only said "exists and differs"); cora-code was overwritten without checking whether the user had edited it; nothing checked that the skills name tools and commands that exist.
  • A shared skills module: each installed skill carries a marker with the cora version and a hash of its text. cora install refreshes a copy cora wrote (including the unmarked cora-review text of v0.19.0 and v0.20.0, recognized by hash), keeps a copy the user edited unless --force, and --remove takes only cora's copies. All five agent integrations and the legacy Claude skill installer use it.
  • The build fails when a skill names an MCP tool, a cora command or a --flag that does not exist (checked against the real tool list and the clap definition; the tests are proven to catch a broken skill).
  • cora upgrade tells the user to run cora install to refresh agent skills.
  • AGENT.md pre-release checklist gets a skills section; docs/agent-integration.md and the changelog describe it.

Why

The skills are the part of the agent integration that depends most directly on the cora version: they quote its commands and tools and live in files outside the repository. Without this they silently go stale after every release. Closes #762.

Testing

  • cargo fmt --all -- --check, cargo clippy --all-targets --features tree-sitter -- -D warnings clean; cargo test --features tree-sitter: 1522 passed, 0 failed.
  • New unit tests: refresh of a cora-written copy, an edited copy with a marker is kept, a legacy copy is recognized by hash and the same text is otherwise the user's, dry run writes nothing, remove only takes cora's copies, the marker and frontmatter of every shipped skill, and the two drift checks (also run against a deliberately broken skill: both failed with a precise message, then the skill was restored).
  • End to end with the debug binary in an isolated home: a v0.20.0 cora-review skill was updated, an edited cora-code skill was kept (also on --remove), a second install changed nothing, --remove deleted only cora's copy.

Generated by Claude Code

…sh them on upgrade

Installed skills carry the cora version and a hash of their text: cora install
refreshes a copy cora wrote (including the v0.19.0 and v0.20.0 cora-review
skill) and keeps one the user edited. The build fails when a skill names an MCP
tool, command or flag that does not exist. cora upgrade reminds to refresh, and
the pre-release checklist has a skills section.

Refs #762.
@ajianaz
ajianaz merged commit d05bc0c into develop Nov 16, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(skills): keep the cora skills in step with the CLI and MCP tools, and refresh them on every release

1 participant