Skip to content

Add OpenCode as 5th provider target#4

Open
muness wants to merge 3 commits intopbakaus:mainfrom
open-horizon-labs:feature/opencode-integration
Open

Add OpenCode as 5th provider target#4
muness wants to merge 3 commits intopbakaus:mainfrom
open-horizon-labs:feature/opencode-integration

Conversation

@muness
Copy link

@muness muness commented Jan 20, 2026

Love your skills! Working with some enterprise clients that use opencode and so want to include your work as part of the dev tooling manifest.

Open to feedback to make this acceptable, or will fallback to a fork if you'd rather not add opencode support, lmk!

Summary

  • Adds OpenCode support alongside Cursor, Claude Code, Gemini, and Codex
  • Commands output to .opencode/commands/*.md with description-only frontmatter and $ARGUMENTS placeholders
  • Skills use same SKILL.md format as Claude Code in .opencode/skills/<name>/
  • Includes install.sh script for easy installation
  • Full test coverage (21 tests)

Test plan

  • bun test tests/lib/transformers/opencode.test.js - all 21 tests pass
  • bun run build - generates correct output structure
  • Tested install.sh against real OpenCode project

Muness Castle and others added 3 commits January 20, 2026 15:40
- Add transformOpenCode() transformer for .opencode/ directory format
- Commands: description-only frontmatter, $ARGUMENTS placeholders
- Skills: Same SKILL.md format as Claude Code with reference files
- Include install.sh script for easy installation
- Add 21 tests for OpenCode transformer
- Update DEVELOP.md with OpenCode documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add JSDoc for all parameters including unused patterns (API consistency)
- Set executable permissions on install.sh via chmodSync
- Add try/finally for console mock restoration in tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 20, 2026

Someone is attempting to deploy a commit to the Paul Bakaus' projects Team on Vercel.

A member of the Team first needs to authorize it.

@muness
Copy link
Author

muness commented Jan 20, 2026

Alternative approach note: OpenCode also supports NPM-based plugins via @opencode-ai/plugin SDK for more complex integrations that need programmatic hooks (session events, tool interception, etc.).

For Impeccable's use case (prompt templates), the file-based approach is simpler and more maintainable:

  • No npm dependency
  • No build step
  • Native OpenCode discovery of commands/skills

If you ever want to add programmatic features (e.g., dynamic prompts, tool hooks), the SDK approach is available: https://opencode.ai/docs/plugins/

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