Repository navigation
chore(skills): keep the cora skills in step with the binary and refresh them on upgrade - #764
Merged
Merged
Conversation
…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.
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Audit of the two skills cora ships (
cora-review,cora-code) and what depends on them:cora-reviewstill told users to runclaude mcp add cora -- cora mcpinstead ofcora install; an installed copy was never refreshed after an upgrade (cora installonly said "exists and differs");cora-codewas overwritten without checking whether the user had edited it; nothing checked that the skills name tools and commands that exist.skillsmodule: each installed skill carries a marker with the cora version and a hash of its text.cora installrefreshes a copy cora wrote (including the unmarkedcora-reviewtext of v0.19.0 and v0.20.0, recognized by hash), keeps a copy the user edited unless--force, and--removetakes only cora's copies. All five agent integrations and the legacy Claude skill installer use it.coracommand or a--flagthat does not exist (checked against the real tool list and the clap definition; the tests are proven to catch a broken skill).cora upgradetells the user to runcora installto refresh agent skills.AGENT.mdpre-release checklist gets a skills section;docs/agent-integration.mdand 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 warningsclean;cargo test --features tree-sitter: 1522 passed, 0 failed.cora-reviewskill was updated, an editedcora-codeskill was kept (also on--remove), a second install changed nothing,--removedeleted only cora's copy.Generated by Claude Code