fix: add safe bare-skill fallback for native OpenCode skill loading#869
Closed
DevNewbie1826 wants to merge 1 commit intoobra:mainfrom
Closed
fix: add safe bare-skill fallback for native OpenCode skill loading#869DevNewbie1826 wants to merge 1 commit intoobra:mainfrom
DevNewbie1826 wants to merge 1 commit intoobra:mainfrom
Conversation
Owner
|
Thanks for investigating this, @DevNewbie1826. We tested on OpenCode v1.3.2 and bare skill names (e.g., |
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
skilltool.use_skill/find_skillsflow).superpowers/<name>.Problem
When users entered bare skill names such as
brainstorming, they could hit:Skill or command "brainstorming" not found. Did you mean: superpowers/brainstorming, /superpowers:brainstorming?This created avoidable friction because the first attempt often failed.
Root Cause
skillresolution in OpenCode expects namespaced identifiers for superpowers skills.Changes
tool.execute.beforein the superpowers plugin and only intercept the nativeskilltool call.superpowers/<name>only when that superpowers skill is known.Files
.opencode/plugins/superpowers.js.opencode/skill-alias.jstests/opencode/test-skill-alias-unit.mjstests/opencode/test-skill-alias.shtests/opencode/run-tests.shVerification
node tests/opencode/test-skill-alias-unit.mjs✅bash tests/opencode/run-tests.sh --test test-skill-alias.sh✅opencode run "Use the skill tool to load brainstorming ..."->Skill "superpowers/brainstorming"✅Risk / Compatibility
skilltool only.