Skip to content

loop-design-check SKILL.md YAML frontmatter parse error in description #3

Description

@baoyu0

问题

skills/loop-design-check/SKILL.md 的 YAML frontmatter 中,description 字段由于包含中文全角冒号、em dash 等特殊字符,导致 YAML 解析失败:

Nested mappings are not allowed in compact mappings at line 2, column 14

根因

纯量(plain scalar)中的文字包含 (全角冒号)、(em dash)和长文本,YAML 解析器在处理时误判为 mapping 结构。

修复方式

description 用双引号包裹即可:

# 修复前(解析失败)
description: Design a goal-oriented agent loop...(含中文全角冒号)

# 修复后
description: "Design a goal-oriented agent loop..."

相关文件

skills/loop-design-check/SKILL.md(第 2 行)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions