fix(skill): make SKILL.md frontmatter compatible with OpenCode - #462
Closed
syf2211 wants to merge 1 commit into
Closed
fix(skill): make SKILL.md frontmatter compatible with OpenCode#462syf2211 wants to merge 1 commit into
syf2211 wants to merge 1 commit into
Conversation
Fixes Panniantong#439 OpenCode only recognizes name, description, license, compatibility, and flat string metadata in SKILL.md frontmatter. The bundled skill used a triggers field and nested metadata.openclaw.homepage, which surfaced as 'Unknown text label' warnings in the OpenCode UI. - Move triggers from frontmatter into the markdown body - Flatten metadata to a string-to-string homepage entry - Install/uninstall skills under ~/.config/opencode/skills - Add regression tests for OpenCode-compatible frontmatter
Owner
|
感谢定位 OpenCode frontmatter 兼容问题。merged #576 已同时提供兼容 metadata、OpenCode discovery 路径、安装与卸载支持及 wheel smoke,因此关闭此已取代实现。 |
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
Fixes OpenCode "Unknown text label" warnings when Agent Reach is installed as a skill.
Motivation
OpenCode only recognizes a small set of
SKILL.mdfrontmatter fields (name,description,license,compatibility, and flat stringmetadata). The bundled skill used atriggersfield and nestedmetadata.openclaw.homepage, which OpenCode surfaces as unknown labels in the UI (reported in #439).Changes
triggersfrom YAML frontmatter into a markdown body section inSKILL.mdmetadatato a string-to-stringhomepageentry in bothSKILL.mdandSKILL_en.md~/.config/opencode/skillsalongside existing agent pathsTests
pytest tests/test_skill_command.py -v— 7 passedNotes
descriptionfor all agentsmetadata.homepageinstead of nestedmetadata.openclaw.homepage; skill loading/activation is unaffectedFixes #439