fix: repair OpenClaw skill YAML parsing#834
Open
Damin-Lee wants to merge 1 commit intogarrytan:mainfrom
Open
Conversation
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
Fix three native OpenClaw
SKILL.mdfiles whose YAML frontmatter descriptions were invalid plain scalars, and add a regression test so the same parsing break does not come back. Also syncpackage.jsonwith the currentVERSIONfile so the existing version-consistency test passes again.Type of Change
Related Issues
Root Cause / Context
description:scalars containing:, which is invalid YAML and caused Codex/OpenClaw skill loading to skip them.What Changed?
Added
test/gen-skill-docs.test.tsthat rejects native OpenClaw descriptions which would be invalid plain-scalar YAML.Changed
openclaw/skills/gstack-openclaw-investigate/SKILL.mdopenclaw/skills/gstack-openclaw-office-hours/SKILL.mdopenclaw/skills/gstack-openclaw-ceo-review/SKILL.mdpackage.jsonversion toVERSION.Removed
Fixed
package.jsonvsVERSIONmismatch test failure.Verification
bun run checkbun testbun run buildVerification notes:
bun run check: N/A, nocheckscript exists in this package.bun test: passed forbun test test/gen-skill-docs.test.ts test/skill-validation.test.ts.bun run build: N/A for this PR.ruby -e 'require "yaml"; ...'successfully parsed all native OpenClaw skills.bun run skill:checkpassed, including OpenClaw skill inventory/freshness.bun teststill reports pre-existing golden baseline drift intest/host-config.test.tsfor ship skill fixtures, unrelated to this diff.How to Test
description: |.ruby -e 'require "yaml"; Dir["openclaw/skills/*/SKILL.md"].each { |f| YAML.load_file(f); puts f }'.bun run skill:checkandbun test test/gen-skill-docs.test.ts test/skill-validation.test.ts.Screenshots
PC (4K — 3840×2160)
N/A
Mobile (375px)
N/A
Documentation Updates
README.mdupdated (for config/feature changes)Breaking Changes
N/A
Review Focus Areas
package.jsontoVERSIONis the intended source-of-truth direction.Dependencies
Deployment Notes
Additional Context
If a section does not apply, write
N/Ainstead of deleting it.This repo currently has unrelated full-suite failures in golden ship-skill fixture tests. They were present outside the scope of the OpenClaw YAML fix, so this PR keeps scope tight and fixes the broken skill-loading path plus its direct regression coverage.
Reviewer Checklist