Skip to content

ConfigFrontmatterError when parsing Claude Code SKILL.md with 'arguments' field #8519

@corrius

Description

@corrius

Bug Description

OpenCode crashes with ConfigFrontmatterError when it discovers Claude Code skills that contain the arguments field in their YAML frontmatter.

Environment

  • OpenCode version: 1.1.20
  • OS: Linux (Arch Linux 6.18.3)
  • Claude Code skills location: ~/.claude/skills/

Error Message

ConfigFrontmatterError: ConfigFrontmatterError
  data:
    path: "/home/user/.claude/skills/aws-sso/SKILL.md",
    message: "Failed to parse YAML frontmatter: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 9, column 52"

Steps to Reproduce

  1. Have Claude Code installed with custom skills in ~/.claude/skills/
  2. Skills contain YAML frontmatter with arguments field (standard Claude Code format)
  3. Run opencode in any directory
  4. OpenCode crashes immediately with the frontmatter error

Example SKILL.md That Causes the Error

---
name: aws-sso
description: Login to AWS SSO using Chrome browser automation
user_invocable: true
invocation_syntax: "/aws-sso [profile]"
model: haiku
arguments:
  - name: profile
    description: AWS profile to login with (default: adri-dev)
    required: false
---

# AWS SSO Login Skill
...

Expected Behavior

OpenCode should either:

  1. Gracefully skip skills with unrecognized frontmatter fields
  2. Support Claude Code's arguments syntax for compatibility
  3. Provide a way to exclude directories from skill discovery

Related Issues

Workaround

Currently none - the only option is to rename/move the ~/.claude/skills/ directory which breaks Claude Code.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions