Skip to content

fix: quote argument-hint to prevent YAML array parsing in clone-agent and detect-mode - #177

Open
Dewain Robinson (Dewain27) wants to merge 1 commit into
mainfrom
fix/argument-hint-string-type
Open

fix: quote argument-hint to prevent YAML array parsing in clone-agent and detect-mode#177
Dewain Robinson (Dewain27) wants to merge 1 commit into
mainfrom
fix/argument-hint-string-type

Conversation

@Dewain27

Copy link
Copy Markdown

Summary

Fixes #176

Two skills failed to load because their argument-hint frontmatter used unquoted square brackets, which YAML parses as an array instead of a string.

Error

The following skills failed to load:
X skills\clone-agent\SKILL.md: argument-hint must be a string
X skills\detect-mode\SKILL.md: argument-hint must be a string

Changes

File Before After
skills/clone-agent/SKILL.md argument-hint: [agent name or environment hint] argument-hint: "[agent name or environment hint]"
skills/detect-mode/SKILL.md argument-hint: [--agent-dir <path>] argument-hint: "[--agent-dir <path>]"

Root Cause

YAML interprets [...] without quotes as an inline sequence (array). Wrapping the values in double quotes ensures they are treated as strings, which is what the CLI expects.

Testing

Verified locally ? both skills now load successfully and /skills shows 30/30 enabled with no failures.

The argument-hint field in clone-agent and detect-mode used unquoted
square brackets, which YAML parses as an array instead of a string.
This caused both skills to fail to load with:
  'argument-hint must be a string'

Wrapping the values in double quotes fixes the YAML type.

Fixes #176

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clone-agent and detect-mode skills fail to load: argument-hint must be a string

1 participant