multi-harness-plugin-template
AGENTS.md0 starsChanged 2 months agoMITView on GitHub
This repository is one agent plugin that installs in Claude Code, Cursor, and Codex from a single source tree. The repository root is the plugin root. Full reference: docs/develop_plugin.md. - Components live at the repo root — skills/<name>/SKILL.md, commands/<name>.md, agents/<name>.md, rules/<name>.mdc (Cursor only). Never put them inside a .*-plugin/ directory; they are silently ignored there. - Every component file needs YAML frontmatter with name and description (rules: description only). A skill's description must say when to invoke it. - Three…
In this repositoryOne other file it gives its agents.
- example-skillSkill
The file
Files
Agent instructions
This repository is one agent plugin that installs in Claude Code, Cursor, and
Codex from a single source tree. The repository root is the plugin root. Full
reference: docs/develop_plugin.md.
Rules
- Components live at the repo root —
skills/<name>/SKILL.md,commands/<name>.md,agents/<name>.md,rules/<name>.mdc(Cursor only). Never put them inside a.*-plugin/directory; they are silently ignored there. - Every component file needs YAML frontmatter with
nameanddescription(rules:descriptiononly). A skill'sdescriptionmust say when to invoke it. - Three manifests, kept parallel —
.claude-plugin/plugin.json,.cursor-plugin/plugin.json, and.codex-plugin/plugin.json.nameandversionmust match; bump all three together. Codex puts display fields (displayName,category, …) underinterface. package.jsonis the pi manifest — itsname,version, anddescriptiontrack the other manifests; its"pi"key mapsskills→./skillsandprompts→./commands. Keep thepi-packagekeyword. Commands must stay plain Markdown +$ARGUMENTS/$1to work as pi prompt templates..claude-plugin/marketplace.jsonis generated — never edit it. Change.claude-plugin/plugin.json(ormarketplace.config.json, which holds the catalog-onlycategory), then runscripts/gen_catalog.sh.- Reference bundled files through
${CLAUDE_PLUGIN_ROOT}, e.g.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/foo.py". Never use absolute or../paths. Codex expands it only in hook commands; see the docs for MCP servers. - opencode loads the plugin through
.opencode-plugin/— a dependency-free adapter (index.js) that registers the rootskills/,commands/,agents/, and.mcp.jsonat runtime. Don't copy components into it. Itspackage.jsonname/versionmust match the manifests; bump it with them. Only flat frontmatter keys carry over, andmodelonly inprovider/modelform. - MCP servers go in two files —
.mcp.json(Claude Code, Codex) andmcp.json(Cursor), with the same servers.
Before you finish
scripts/gen_catalog.sh # if any plugin.json changed
scripts/validate_plugin.sh --strict # must end with "Validation passed."The task is not done until the validator exits 0.
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.

