Skip to content

Add OpenCode compatibility and AGENTS.md#7

Open
torgge wants to merge 1 commit into
hamen:masterfrom
torgge:add-opencode-compatibility
Open

Add OpenCode compatibility and AGENTS.md#7
torgge wants to merge 1 commit into
hamen:masterfrom
torgge:add-opencode-compatibility

Conversation

@torgge

@torgge torgge commented Jun 5, 2026

Copy link
Copy Markdown

What changed

  • opencode.json — Root config declaring skills.paths: ["skills"]. Running opencode from the repo root auto-discovers the material-3 skill.
  • AGENTS.md — Agent instruction file with architecture map, platform hierarchy (Compose-first), verified facts agents commonly get wrong, structural constraints enforced by CI, versioning rules, and OpenCode-specific notes including the cwd caveat.
  • README.md — Added OpenCode install section with 3 options (clone+run, global registration, symlink to ~/.claude/skills/). Updated description to reflect multi-assistant portability.
  • CONTRIBUTING.md — Rephrased from "Claude Code skill" to "portable skill" to match the multi-assistant scope.
  • bin/ci + tests/plugin_layout_test.sh — Extended to validate opencode.json (valid JSON + checks for skills key in config and README).

Verified against OpenCode source

All paths confirmed via the OpenCode codebase at packages/opencode/src/skill/index.ts and packages/core/src/v1/config/config.ts:

  • ConfigV1.Info parses skills: { paths: ["skills"] } correctly
  • discoverSkills() resolves relative paths against process.cwd()
  • isSkillFrontmatter() requires only name (string) — extra frontmatter fields are silently ignored
  • V2 config parser (onExcessProperty: "ignore") silently skips the V1 skills format without errors

OpenCode installation methods supported

  1. Clone and rungit clone ... && cd material-3-skill && opencode (must run from repo root due to relative path resolution in V1)
  2. Symlinkln -s .../skills/material-3 ~/.claude/skills/material-3 (auto-loaded by OpenCode)
  3. Global registration — Add absolute path to ~/.config/opencode/opencode.json skills.paths

CI: ./bin/ci passes.

- Add opencode.json with skills.paths for auto-discovery when running opencode from repo root
- Add AGENTS.md with architecture map, platform hierarchy, verified facts, and structural constraints
- Update README.md with OpenCode install instructions (3 options: clone+run, global registration, symlink)
- Update CONTRIBUTING.md to reflect multi-assistant portable skill
- Update CI (bin/ci + tests/plugin_layout_test.sh) to validate opencode.json
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