fix(skill): flatten SKILL.md metadata for OpenCode compatibility (#439)#483
Open
nankingjing wants to merge 1 commit into
Open
fix(skill): flatten SKILL.md metadata for OpenCode compatibility (#439)#483nankingjing wants to merge 1 commit into
nankingjing wants to merge 1 commit into
Conversation
Panniantong#439) - Change metadata.openclaw.homepage to flat key:value (was nested object), which OpenCode rejects because it expects Record<string,string>. The nested structure caused the skill name to render as Unknown in the OpenCode TUI. - Fix test_youtube_warns_when_node_only_and_no_config test to mock get_ytdlp_config_path directly instead of os.path.expanduser, which is not called on Windows (APPDATA-based path lookup).
moxxxskaifa
approved these changes
Jul 5, 2026
moxxxskaifa
left a comment
There was a problem hiding this comment.
8 行小改,SKILL.md 扁平化元数据兼容 OpenCode。修复 #439。 LGTM!
Author
|
您好 @moxxxskaifa,这个 PR 已经 approved,是否可以合并了?谢谢! |
Author
|
Hi @moxxxskaifa, this PR has been approved — could you merge it when you have a moment? Thanks! |
nankingjing
force-pushed
the
fix/opencode-skill-frontmatter-compat
branch
from
July 16, 2026 14:34
5783130 to
acf8b7e
Compare
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 #439 — "Unknown text label when installed on Opencode".
Root Cause
Both
SKILL.mdandSKILL_en.mdhad a nestedmetadatastructure:OpenCode expects
metadatato beRecord<string, string>(flat key-value pairs). The nested structure causes OpenCode frontmatter parsing to fail, resulting in the skill name rendering as "Unknown" in the OpenCode TUI.Changes
agent_reach/skill/SKILL.md: Flattenmetadata.openclaw.homepageto a dot-notation keyagent_reach/skill/SKILL_en.md: Same fixtests/test_channel_contracts.py: Fixtest_youtube_warns_when_node_only_and_no_configwhich usedos.path.expandusermock that is not called on Windows (whereAPPDATAis used instead). Changed to mockget_ytdlp_config_pathdirectly for cross-platform correctness.Test Results
All tests pass cleanly.