feat: add skill rendering with <skill>name</skill> syntax#24
Merged
Conversation
Closed
Owner
Author
|
Yo opencode, please rebase. Another branch added experimental settings |
Adds support for rendering OpenCode skills inline within snippets. - Introduces experimental.skillRendering config flag (disabled by default) - Supports two syntaxes: <skill>name</skill> and <skill name="name" /> - Loads skills from standard OpenCode paths: - ~/.config/opencode/skill[s]/<name>/SKILL.md (global) - .opencode/skill[s]/<name>/SKILL.md (project) - .claude/skills/<name>/SKILL.md (Claude Code compatibility) - Skills are rendered verbatim (body only, excludes frontmatter) - Processing order: skills → snippets → shell commands - Includes comprehensive tests for skill rendering Closes #22
a8b1d21 to
9946200
Compare
Owner
Author
|
Done! Rebased onto main and resolved the conflict in The merge conflict was straightforward - I combined both changes:
All tests pass ✓ |
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
Implements skill rendering in snippets as requested in #22.
Features
experimental.skillRendering(disabled by default)<skill>jira</skill><skill name="jira" />~/.config/opencode/skill[s]/<name>/SKILL.md.opencode/skill[s]/<name>/SKILL.md.claude/skills/<name>/SKILL.mdUsage
Enable the feature in your config:
{ "experimental": { "skillRendering": true } }Reference skills in your snippets or messages:
Files Changed
src/config.ts- Addedexperimental.skillRenderingflagsrc/constants.ts- Added skill tag regex patternssrc/skill-loader.ts- New file for loading skills from disksrc/skill-renderer.ts- New file for expanding skill tagssrc/skill-renderer.test.ts- Comprehensive test suiteindex.ts- Integration of skill loading and renderingschema/config.schema.json- Updated config schemaCloses #22