Skip to content

ComposeAgent crashes: unquoted {PRINCIPAL.NAME} YAML key in Traits.yaml #1012

@abseg

Description

@abseg

Bug

ComposeAgent.ts crashes on every invocation with:

YAMLParseError: Map comment with trailing content at line 175, column 5
code: "IMPOSSIBLE"

Root Cause

In Releases/v4.0.3/.claude/skills/Agents/Data/Traits.yaml, line 175:

    {PRINCIPAL.NAME}:
      voice_id: "onwK4e9ZLuTAKqWW03F9"

{PRINCIPAL.NAME} is unquoted. YAML interprets {} as flow mapping syntax, so the parser sees an inline map followed by a trailing : — which is invalid.

Fix

Quote the key:

    "{PRINCIPAL.NAME}":
      voice_id: "onwK4e9ZLuTAKqWW03F9"

One-character fix. No other unquoted {PRINCIPAL.NAME} keys exist in the YAML files.

Reproduction

bun run ~/.claude/skills/Agents/Tools/ComposeAgent.ts --traits "technical,analytical,thorough" --task "any task"

Crashes 100% of the time on a clean v4.0.3 install.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions