Skip to content

feat: add OpenCode support#47

Open
rhighs wants to merge 1 commit intoblader:mainfrom
rhighs:feat/opencode-support
Open

feat: add OpenCode support#47
rhighs wants to merge 1 commit intoblader:mainfrom
rhighs:feat/opencode-support

Conversation

@rhighs
Copy link

@rhighs rhighs commented Feb 28, 2026

Summary

This PR makes the skill work with both Claude Code and OpenCode.

What changed

SKILL.md - two new frontmatter fields:

  • license: MIT - OpenCode surfaces this in skill listings
  • compatibility: claude-code opencode - explicitly declares which tools this skill targets

The existing fields (version, allowed-tools) are Claude Code-specific and are silently ignored by OpenCode, so there is no breakage.

README.md - reorganized Installation and Usage sections:

  • Split into Claude Code and OpenCode subsections, each with clone and manual-copy commands
  • Added a note that a single clone into ~/.claude/skills/ covers both tools, since OpenCode scans that path for compatibility
  • Removed the duplicate Manual install/update section left over from the original structure

Why this works without forking the skill file

OpenCode skill discovery scans multiple locations, including /.claude/skills/ as a Claude-compatible path. So users who already have the skill installed for Claude Code get OpenCode support for free. The native OpenCode path (/.config/opencode/skills/) is also documented for users who only use OpenCode.

The SKILL.md body is loaded identically by both tools as the agent system prompt when /humanizer is invoked.

Install paths

Tool Path
Claude Code ~/.claude/skills/humanizer/SKILL.md
OpenCode (native) ~/.config/opencode/skills/humanizer/SKILL.md
Both (single clone) ~/.claude/skills/humanizer/SKILL.md

- Add license and compatibility fields to SKILL.md frontmatter so the
  skill is explicitly marked as compatible with both claude-code and opencode
- Update README with OpenCode installation instructions covering both the
  native ~/.config/opencode/skills/ path and the claude-compatible path
- Clarify that a single clone into ~/.claude/skills/ works for both tools
  since OpenCode scans that path for compatibility
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.

1 participant