xp-gate / plugins
AGENTS.md4 starsChanged 6 months agoMITView on GitHub
Generated: 2026-11-04 Commit: eb2097b0 Branch: sprint/2026-11-03-02 Version: 0.37.0.0
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- githooks/AGENTS.mdAGENTS.md
- skills/delphi-review/AGENTS.mdAGENTS.md
- skills/sprint-flow/AGENTS.mdAGENTS.md
- skills/test-specification-alignment/AGENTS.mdAGENTS.md
- admin-template-guidelinesSkill
- batch-grill-meSkill
- delphi-reviewSkill
- domain-modelingSkill
- grillingSkill
- grill-with-docsSkill
- improve-codebase-architectureSkill
- ralph-loopSkill
- sprint-flowSkill
- test-driven-developmentSkill
- test-specification-alignmentSkill
- to-issuesSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
Do NOT edit plugins/*/skills/ directly — rebuild via scripts/build-plugin.sh.
- Very specific: line 59
Do NOT assume xp-gate CLI is installed in user environments — plugins must degrade gracefully (exit 0 when missing).
- Very specific: line 60
Do NOT mix platform-specific logic into shared/.
- Very specific: line 61
Do NOT skip the Delphi guard hook in claude-code/hooks/hooks.json — it's the IDE-side enforcement of HARD-GATE.
- Very specific: line 67
Graceful degradation everywhere: every plugin entrypoint works even without xp-gate CLI on PATH.
- Very specific: line 89
All 4 documented plugin issues (qoder manifest missing, claude-code/opencode incomplete skill bundles, missing tdd skill, OpenCode tool …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PLUGINS KNOWLEDGE BASE
Generated: 2026-11-04 Commit: eb2097b0 Branch: sprint/2026-11-03-02 Version: 0.37.0.0
OVERVIEW
Cross-platform plugin system for Claude Code, OpenCode, and Qoder. Shared skills + platform-specific hooks/tooling. All three platforms ship 8 skills each as of v0.9.1+.
STRUCTURE
plugins/
├── claude-code/
│ ├── .claude-plugin/plugin.json # Manifest (name=xp-gate, version=0.8.8, skills=./skills/)
│ ├── hooks/hooks.json # PreToolUse / PostToolUse / Stop hooks
│ ├── bin/
│ │ ├── xp-gate-check # PostToolUse: principles check (graceful degradation)
│ │ └── delphi-review-guard.sh # PreToolUse: blocks Edit/Write before Delphi APPROVED
│ └── skills/ # ⚠️ Currently bundles ONLY sprint-flow (1 skill)
├── opencode/
│ ├── index.ts # Plugin entry: 3 tools (gate-check, gate-principles, gate-arch)
│ ├── package.json # @opencode-ai/plugin dependency
│ ├── tsconfig.json # ESNext + bundler moduleResolution
│ └── skills/ # ⚠️ Currently bundles ONLY sprint-flow (1 skill)
├── qoder/
│ │ # ⚠️ NO manifest file (plugin.json / qoder.json missing)
│ └── skills/ # Bundles 7 skills:
│ # admin-template-guidelines, delphi-review,
│ # improve-codebase-architecture, ralph-loop,
│ # sprint-flow, test-specification-alignment, to-issues
│ # (missing only: test-driven-development — added in 0.8.x)
└── shared/ # Common cross-platform docs (when present)WHERE TO LOOK
| Task | Location | Notes |
| Claude manifest | claude-code/.claude-plugin/plugin.json | Defines name, version, skills path, hooks path |
| Claude hooks | claude-code/hooks/hooks.json | PreToolUse (Delphi guard), PostToolUse (principles), Stop |
| Delphi guard | claude-code/bin/delphi-review-guard.sh | Reads .sprint-state/delphi-reviewed.json |
| Principles check | claude-code/bin/xp-gate-check | Always exits 0 (non-blocking, advisory) |
| OpenCode entry | opencode/index.ts | tool() helper from @opencode-ai/plugin |
| OpenCode package | opencode/package.json | Published as @boyingliu01/opencode-plugin |
| Qoder skills | qoder/skills/ | 7 skill dirs; no manifest registered |
| Build script | ../scripts/build-plugin.sh | --platform claude-code|opencode|qoder |
| Copy script | ../scripts/copy-skills.sh | Full skill dir copy (preserves references/, templates/) |
| Plugin tests | ../scripts/test-plugins.mjs | npm run test:plugins |
CONVENTIONS
- Plugin skill mirrors are auto-populated by
build-plugin.sh— never hand-editplugins/*/skills/. Editskills/<name>/in repo root, then rebuild. - AGENTS.md files inside
skills/are byte-identical copies of the canonicalskills/<name>/AGENTS.md— propagated by the copy script. - Claude hooks degrade gracefully —
xp-gate-checkexits 0 even if the CLI isn't installed. - OpenCode plugin is TypeScript (compiled by bundler); Claude plugin is JSON+bash (no compile step).
- Both platforms share the same SKILL.md source — single source of truth in repo root
skills/<name>/.
ANTI-PATTERNS (THIS PROJECT)
- Do NOT edit
plugins/*/skills/directly — rebuild viascripts/build-plugin.sh. Changes will be overwritten. - Do NOT assume
xp-gateCLI is installed in user environments — plugins must degrade gracefully (exit 0 when missing). - Do NOT mix platform-specific logic into
shared/. - Do NOT skip the Delphi guard hook in
claude-code/hooks/hooks.json— it's the IDE-side enforcement of HARD-GATE.
UNIQUE STYLES
- Claude Code: JSON manifest + bash hooks + bin wrappers (no TypeScript compilation step at install time).
- OpenCode: TS module published as
@boyingliu01/opencode-plugin, registered via"plugin": ["./plugins/opencode"]inopencode.json. - Qoder: skills-only layout (no manifest yet — see Known Issues).
- Graceful degradation everywhere: every plugin entrypoint works even without
xp-gateCLI on PATH.
COMMANDS
# Build plugins
npm run build:plugins # Build all platforms
bash scripts/build-plugin.sh --platform claude-code # Single platform
bash scripts/build-plugin.sh --platform opencode
bash scripts/build-plugin.sh --platform qoder
# Test plugins (integration tests)
node scripts/test-plugins.mjs
# Install Claude plugin
/plugin install boyingliu01/xp-gate # From GitHub
# Register OpenCode plugin
# opencode.json: { "plugin": ["./plugins/opencode"] }KNOWN ISSUES (all resolved as of v0.9.2)
All 4 documented plugin issues (qoder manifest missing, claude-code/opencode incomplete skill bundles, missing tdd skill, OpenCode tool shell-out) were fixed in commits 1d2cff8 (#202/#203) and 0.8.9 (#208). See root AGENTS.md → "Known Drift History".
NOTES
- v0.4.0+: plugin system introduced.
- v0.8.x: plugin version bumped to 0.8.8 (synced from repo
VERSION). - OpenCode plugin exposes 3 tools:
gate-check,gate-principles,gate-arch, each shelling out toxp-gate check/principles/archsubcommands (fixes #208). test-plugins.mjsvalidates JSON manifests, version pinning, build outputs, and graceful-degradation behavior.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

