fix: quote English description to fix YAML frontmatter parse error - #10
Open
yahao333 wants to merge 1 commit into
Open
fix: quote English description to fix YAML frontmatter parse error#10yahao333 wants to merge 1 commit into
yahao333 wants to merge 1 commit into
Conversation
The unquoted 'description' value in code-reader-en/SKILL.md contains
colon-space sequences (e.g. 'modes: Quick'), which YAML treats as a
nested mapping and fails to parse ('Nested mappings are not allowed in
compact mappings'). Quote the value to fix loading of the skill.
Also repackaged code-reader-en.skill with the fixed SKILL.md and the
archived code-reader-v2-en-skill.md (same frontmatter issue).
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
英文版 Skill 的 YAML frontmatter 无法解析,报错:
原因是
code-reader-en/SKILL.md中未加引号的description值包含英文冒号加空格(如modes: Quick),YAML 将其解析为嵌套映射导致失败。中文版使用全角冒号所以不受影响。修复内容 / Changes
code-reader-en/SKILL.md:为description值加双引号转义code-reader-en/code-reader-en.skill:重新打包,包内SKILL.md与旧版存档code-reader-v2-en-skill.md(同样存在该问题)均已修复README.md:更新中英文更新日志 v2.4.1验证 / Verification
修复前后两个文件(SKILL.md 与 .skill 包内文件)均通过 PyYAML 解析验证:
python3 -c "import yaml; yaml.safe_load(open('code-reader-en/SKILL.md').read().split('---')[1])"相关 / Related
code-reader-v2-en(英文版)