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
- Have Claude Code installed with custom skills in
~/.claude/skills/
- Skills contain YAML frontmatter with
arguments field (standard Claude Code format)
- Run
opencode in any directory
- 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:
- Gracefully skip skills with unrecognized frontmatter fields
- Support Claude Code's
arguments syntax for compatibility
- 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.
Bug Description
OpenCode crashes with
ConfigFrontmatterErrorwhen it discovers Claude Code skills that contain theargumentsfield in their YAML frontmatter.Environment
~/.claude/skills/Error Message
Steps to Reproduce
~/.claude/skills/argumentsfield (standard Claude Code format)opencodein any directoryExample SKILL.md That Causes the Error
Expected Behavior
OpenCode should either:
argumentssyntax for compatibilityRelated Issues
.claude/skills? #6266 - Does opencode actually support finding skills at.claude/skills?Workaround
Currently none - the only option is to rename/move the
~/.claude/skills/directory which breaks Claude Code.