Skip to content

fix(skills): keep repo command metadata compatible#263

Merged
shiny-code-bot merged 1 commit into
mainfrom
fix/skill-command-source-compat
May 31, 2026
Merged

fix(skills): keep repo command metadata compatible#263
shiny-code-bot merged 1 commit into
mainfrom
fix/skill-command-source-compat

Conversation

@shiny-code-bot
Copy link
Copy Markdown
Collaborator

Summary

  • Let user/shared/system skills declare commands[].source: repo so installed skills can describe commands that run in the active repository.
  • Update the embedded skill-creator quick validator to understand structured resources, commands, workflow_defaults, and commands[].source metadata.

Context

Follow-up fix for the auto-review findings after #261.

The previous loader behavior restricted source: repo to repo-scoped skills only. That was too narrow: shared/user-installed skills often guide work inside the active repository and need to describe repo commands without pretending those commands are bundled skill resources.

The embedded skill-creator validator was also stale relative to the new schema, so packaged skills could fail validation after following the documented metadata shape.

Validation

  • uv run --with PyYAML python3 code-rs/core/src/skills/assets/samples/skill-creator/scripts/quick_validate.py code-rs/core/src/skills/assets/samples/skill-creator
  • cargo test -p code-core skills::loader::tests::repo_
  • ./build-fast.sh

@shiny-code-bot shiny-code-bot merged commit a484f71 into main May 31, 2026
1 check passed
@shiny-code-bot shiny-code-bot deleted the fix/skill-command-source-compat branch May 31, 2026 13:26
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.

2 participants