Add OpenCode compatibility and AGENTS.md#7
Open
torgge wants to merge 1 commit into
Open
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
opencode.json— Root config declaringskills.paths: ["skills"]. Runningopencodefrom the repo root auto-discovers thematerial-3skill.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 thecwdcaveat.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 validateopencode.json(valid JSON + checks forskillskey in config and README).Verified against OpenCode source
All paths confirmed via the OpenCode codebase at
packages/opencode/src/skill/index.tsandpackages/core/src/v1/config/config.ts:ConfigV1.Infoparsesskills: { paths: ["skills"] }correctlydiscoverSkills()resolves relative paths againstprocess.cwd()isSkillFrontmatter()requires onlyname(string) — extra frontmatter fields are silently ignoredonExcessProperty: "ignore") silently skips the V1 skills format without errorsOpenCode installation methods supported
git clone ... && cd material-3-skill && opencode(must run from repo root due to relative path resolution in V1)ln -s .../skills/material-3 ~/.claude/skills/material-3(auto-loaded by OpenCode)~/.config/opencode/opencode.jsonskills.pathsCI:
./bin/cipasses.