-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Summary
OpenCode.ai is an open-source AI coding agent with 80k+ GitHub stars that supports the AGENTS.md standard. However, it has its own skills discovery paths that APM doesn't currently target during apm install.
Current Behavior
When running apm install, skills are placed in:
.github/skills/→ VSCode/Copilot.claude/skills/→ Claude Code
OpenCode Skills Discovery
OpenCode looks for skills in these locations (docs):
.opencode/skills/<name>/SKILL.md(primary).claude/skills/<name>/SKILL.md(Claude-compatible)~/.config/opencode/skills/(global)~/.claude/skills/(global Claude-compatible)
Partial Compatibility
OpenCode has Claude-compatible discovery, so skills installed to .claude/skills/ are already picked up. However, users who only use --target vscode or don't have Claude tooling won't get OpenCode support.
Proposed Solution
During apm install, also output skills to .opencode/skills/<name>/SKILL.md when:
- OpenCode is detected (e.g.,
opencode.jsonexists in project), OR - A new
--target opencodeflag is used, OR .opencode/directory already exists
The SKILL.md format is identical to what APM already generates, so no transformation is needed—just an additional output path.
Alternative
Document that users should use --target claude or --target all to ensure OpenCode compatibility via the .claude/skills/ path.
References
- OpenCode docs: https://opencode.ai/docs/skills
- OpenCode GitHub: https://github.com/anomalyco/opencode