agentleFS
boyingliu01boyingliu01/xp-gate/plugins/AGENTS.md

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

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
  1. Very specific:

    Do NOT edit plugins/*/skills/ directly — rebuild via scripts/build-plugin.sh.

    line 58
  2. Very specific:

    Do NOT assume xp-gate CLI is installed in user environments — plugins must degrade gracefully (exit 0 when missing).

    line 59
  3. Very specific:

    Do NOT mix platform-specific logic into shared/.

    line 60
  4. Very specific:

    Do NOT skip the Delphi guard hook in claude-code/hooks/hooks.json — it's the IDE-side enforcement of HARD-GATE.

    line 61
  5. Very specific:

    Graceful degradation everywhere: every plugin entrypoint works even without xp-gate CLI on PATH.

    line 67
  6. Very specific:

    All 4 documented plugin issues (qoder manifest missing, claude-code/opencode incomplete skill bundles, missing tdd skill, OpenCode tool …

    line 89

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

TaskLocationNotes
Claude manifestclaude-code/.claude-plugin/plugin.jsonDefines name, version, skills path, hooks path
Claude hooksclaude-code/hooks/hooks.jsonPreToolUse (Delphi guard), PostToolUse (principles), Stop
Delphi guardclaude-code/bin/delphi-review-guard.shReads .sprint-state/delphi-reviewed.json
Principles checkclaude-code/bin/xp-gate-checkAlways exits 0 (non-blocking, advisory)
OpenCode entryopencode/index.tstool() helper from @opencode-ai/plugin
OpenCode packageopencode/package.jsonPublished as @boyingliu01/opencode-plugin
Qoder skillsqoder/skills/7 skill dirs; no manifest registered
Build script../scripts/build-plugin.sh--platform claude-code|opencode|qoder
Copy script../scripts/copy-skills.shFull skill dir copy (preserves references/, templates/)
Plugin tests../scripts/test-plugins.mjsnpm run test:plugins

CONVENTIONS

  • Plugin skill mirrors are auto-populated by build-plugin.sh — never hand-edit plugins/*/skills/. Edit skills/<name>/ in repo root, then rebuild.
  • AGENTS.md files inside skills/ are byte-identical copies of the canonical skills/<name>/AGENTS.md — propagated by the copy script.
  • Claude hooks degrade gracefully — xp-gate-check exits 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 via scripts/build-plugin.sh. Changes will be overwritten.
  • Do NOT assume xp-gate CLI 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"] in opencode.json.
  • Qoder: skills-only layout (no manifest yet — see Known Issues).
  • Graceful degradation everywhere: every plugin entrypoint works even without xp-gate CLI 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 to xp-gate check/principles/arch subcommands (fixes #208).
  • test-plugins.mjs validates JSON manifests, version pinning, build outputs, and graceful-degradation behavior.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.