feat(skills): support repo and external commands#261
Merged
Conversation
This was referenced May 31, 2026
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.
Summary
commands[].sourcefor explicitskill,repo, andexternalcommand metadata.resource_pathvalidation for defaultsource: skillbundled helper commands..codex/skills/remote-testsand.codex/skills/test-tuionto structured repo/external command metadata.Design Notes
Refs #260.
This keeps the existing bundled helper contract intact:
source: skillis the default for backwards compatibility.source: skillstill requiresresource_path, a matchingresources[]entry, and an existing helper file.source: repois allowed only for repo-scoped skills and must not declareresource_path.source: externalmust not declareresource_pathand does not perform filesystem checks.The schema is intentionally small. It does not add command variants, option metadata, network/capability hints, or shared skill-library migration.
Agent Review
Design reviewed by Opus, Antigravity/Gemini-style, and GPT agents before implementation. All agreed on the key invariant: do not relax bundled
resource_pathvalidation. The final implementation uses one command list with an explicit source discriminator rather than fake resources for repo/external workflows.Validation
cargo test -p code-core skills::./build-fast.sh