You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crash on SKILL.md files with non-OpenCode frontmatter schema #7575
OpenCode crashes when it discovers .claude/skills/*/SKILL.md files that have frontmatter fields that don't match OpenCode's expected schema.
Steps to Reproduce
Have a project with Claude Code skills in .claude/skills/*/SKILL.md
These SKILL.md files have frontmatter like:
---
name: task-dispatchskill_type: frameworkdescription: Some description here
---
Run opencode in the project directory
Type anything and press enter
Expected Behavior
OpenCode should either:
Skip SKILL.md files that don't match its expected frontmatter schema
Provide a config option to disable skill discovery entirely
Log a warning and continue instead of crashing
Actual Behavior
ConfigFrontmatterError: ConfigFrontmatterError
path: "/path/to/.claude/skills/task-dispatch/SKILL.md",
[ERROR] Error: Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input
The crash occurs on every input, making OpenCode unusable in projects with Claude Code skills.
Environment
OpenCode version: 1.1.10
OS: macOS (Darwin 24.6.0)
Installed via: Homebrew
Attempted Workarounds (none worked)
Adding .claude/ to watcher.ignore in opencode.json
Setting "tools": {"skill*": false} in opencode.json
Setting "instructions": [] in opencode.json
Creating a .ignore file with .claude/ pattern
The skill scanning appears to happen at startup before any config is read.
Suggested Fix
Wrap the frontmatter parsing in a try-catch and skip files that fail to parse
Add a config option like "skills": { "discovery": false } to disable skill scanning entirely
Respect the watcher.ignore patterns during skill discovery
These issues all involve OpenCode crashing when encountering SKILL.md files with unexpected or problematic frontmatter. Feel free to ignore if your specific case differs from these.
Activity
github-actions commentedon Jan 10, 2026
This issue might be a duplicate of existing issues. Please check:
SkillInvalidErrorduring frontmatter parsing inSKILL.md#5991: Bug:SkillInvalidErrorduring frontmatter parsing inSKILL.md(closed)These issues all involve OpenCode crashing when encountering SKILL.md files with unexpected or problematic frontmatter. Feel free to ignore if your specific case differs from these.
corrius commentedon Jan 14, 2026
@rekram1-node can someone look into this? It makes migrating from Claude hard
rekram1-node commentedon Jan 15, 2026
This should be fixed in next release if it isn't already