Fix skill-creator scaffold frontmatter#345
Open
wsk-builds wants to merge 1 commit intoopenai:mainfrom
Open
Conversation
Author
|
Minimal repro for the current bug: python3 skills/.system/skill-creator/scripts/init_skill.py repro-skill --path /tmp
python3 skills/.system/skill-creator/scripts/quick_validate.py /tmp/repro-skillBefore this change, the second command fails with: The generated description: [TODO: ...]which YAML parses as a list instead of a string. |
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.
Problem
skills/.system/skill-creator/scripts/init_skill.pygenerates aSKILL.mdwhose frontmatterdescriptionplaceholder is written as a YAML list:That means a freshly generated skill fails validation immediately instead of producing a valid starter template.
Root Cause
The scaffold uses square-bracket YAML syntax for the placeholder, so
descriptionis parsed as a list rather than a string. The validator then rejects the generated file with:Fix
descriptionplaceholder so it is parsed as a YAML stringValidation
python3 skills/.system/skill-creator/tests/test_init_skill.pypython3 skills/.system/skill-creator/scripts/init_skill.py repro-skill-final --path /tmppython3 skills/.system/skill-creator/scripts/quick_validate.py /tmp/repro-skill-final