Repository navigation
fix(skills): canonical frontmatter parser + per-file diagnostics - #108926
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 17, 2026
…nclaw#108926) * fix(skills): load JSON5-style metadata frontmatter * fix(skills): diagnose invalid frontmatter * test(skills): adapt session loader coverage * ci: refresh merge ref --------- Co-authored-by: jincheng-xydt <[email protected]>
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
…nclaw#108926) * fix(skills): load JSON5-style metadata frontmatter * fix(skills): diagnose invalid frontmatter * test(skills): adapt session loader coverage * ci: refresh merge ref --------- Co-authored-by: jincheng-xydt <[email protected]>
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.
What Problem This Solves
Workspace skills silently vanish when SKILL.md frontmatter uses JSON5-style syntax (e.g. trailing commas): one parser tolerated it, another rejected it, and the skill disappeared with no diagnostic (#108432).
Why This Change Was Made
Supersedes #108486 (contributor closed it during a maintainer rebase collision; base commit and authorship preserved — thanks @jincheng-xydt). Consolidates every skill-loading entry point onto the canonical markdown-core frontmatter parser and adds per-file diagnostics:
openclaw skillsCLI + gateway status, agent/session loading, snapshots/watchers, node-host, remote nodes, install/workshop readers. Remaining duplicate parser imports deleted.User Impact
The issue's repro (trailing-comma metadata) now loads. Genuinely malformed frontmatter is reported with the file name and parse error instead of silently hiding the skill.
Evidence
pnpm plugin-sdk:surface:check— pass (7945 public exports, 0 forbidden subpaths); generated surface report has zero branch diff after rebase.Fixes #108432