Skip to content

[Bug]: YAML frontmatter parser misinterprets pipe block scalar continuation lines as top-level keys #1427

@spboyer

Description

@spboyer

Describe the bug

When a SKILL.md uses description: | with indented lines containing USE FOR: or DO NOT USE FOR:, the parser treats them as top-level YAML attributes instead of string content, producing Attribute 'DO NOT
USE FOR' is not supported in skill files.

Per the YAML spec, indented continuation lines under a pipe block scalar are always part of the parent key's string value. This is also consistent with the agentskills.io spec.

Related PR: microsoft/GitHub-Copilot-for-Azure#880

Affected version

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions