claude-code-plugins
AGENTS.md1 starsChanged 11 months agoMITView on GitHub
This repository hosts Claude Code plugins, skills, commands, hooks, and supporting documentation. Use this file as a light contributor guide and defer to CLAUDE.md for authoritative project rules. - For any Claude Code workflows (commands, skills, plugins, hooks, agents), invoke plugins/claude-ecosystem/skills/docs-management and follow the official documentation it loads. - Markdown linting guidance lives in plugins/code-quality/skills/markdown-linting. - Examples live in README.md, but defer to skills for current usage. - Formatting follows .editorconfig (2 spaces by default, 4 spaces for Python/C#, PowerShell…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository9 other files it gives its agents.
- .claude/audit/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/anti-duplication.mdcCursor rule
- .cursor/rules/claude-code-plugins.mdcCursor rule
- .cursor/rules/claude-skills.mdcCursor rule
- .cursor/rules/cursor-rules-best-practices.mdcCursor rule
- .cursor/rules/git-commit-attribution.mdcCursor rule
- .cursor/rules/official-docs.mdcCursor rule
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Use Python 3.13+ for spaCy-backed operations.
- Very specific: line 49
Use the Git-related skills as the source of truth for commit conventions and PR requirements (see plugins/git/skills/, especially push and …
- Distinctive: line 51
Keep this file minimal to avoid duplicating guidance that already lives in skills.
- Distinctive: line 56
Read CLAUDE.md in the repo root first.
- Distinctive: line 57
If instructions conflict, update or follow CLAUDE.md and keep this file minimal to avoid duplication.
- Very specific: line 59
Before executing any workflow from plugins/*/commands, always open and follow the corresponding skill SKILL.md.
- Distinctive: line 66
Do not execute scripts until you have:
- Very specific: line 72
When a skill is referenced by name or path, open its SKILL.md and follow the documented workflow and precedence rules.
- Very specific: line 74
If a user mentions a specific product or ecosystem (e.g., Codex CLI, Claude, Gemini, Cursor), first scan available skills with rg --files …
- Very specific: line 78
Before stating a skill is missing, list skills with rg --files -g "SKILL.md" and check for a matching path.
- Very specific: line 86
Use plugins/openai-ecosystem/skills/codex-cli-docs for Codex CLI docs.
- Distinctive: line 106
Always read CLAUDE.md first.
- Distinctive: line 110
Keep this section minimal: CLAUDE.md is the canonical list of memory files.
- Very specific: line 123
Use docs-management doc_id code-claude-com-docs-en-plugin-marketplaces for schema and field details.
- Very specific: line 146
Use rg --files for discovery.
- Very specific: line 148
Use docs-management doc_ids code-claude-com-docs-en-plugins-reference and code-claude-com-docs-en-plugin-marketplaces for canonical schemas.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Repository Guidelines
This repository hosts Claude Code plugins, skills, commands, hooks, and supporting
documentation. Use this file as a light contributor guide and defer to
CLAUDE.md for authoritative project rules.
Project Structure & Module Organization
plugins/<plugin-name>/: primary plugin content (seeplugin.json).skills/<skill-name>/SKILL.md: skill definitions with YAML frontmatter.commands/: slash commands (verb-phrase names).agents/: subagent definitions.hooks/: hook configuration and scripts.
.claude/: agent memory, operational rules, and workflow guidance..claude-plugin/: local marketplace and plugin manifests.specs/: design specs, audits, and planning docs..github/workflows/: CI, including Markdown linting.
Build, Test, and Development Commands
- For any Claude Code workflows (commands, skills, plugins, hooks, agents),
invoke
plugins/claude-ecosystem/skills/docs-managementand follow the official documentation it loads. - Markdown linting guidance lives in
plugins/code-quality/skills/markdown-linting. - Examples live in
README.md, but defer to skills for current usage.
Coding Style & Naming Conventions
- Formatting follows
.editorconfig(2 spaces by default, 4 spaces for Python/C#, PowerShell uses CRLF). - For Claude Code naming and metadata conventions, invoke
plugins/claude-ecosystem/skills/docs-management. - Markdown linting rules are defined in
.markdownlint-cli2.jsonc; use themarkdown-lintingskill for guidance rather than duplicating details here.
Testing Guidelines
- For Claude Code testing guidance, invoke
plugins/claude-ecosystem/skills/docs-management. - Python testing conventions are documented in
plugins/code-quality/skills/python. - Plugin-specific tests live alongside their skills; follow the relevant
SKILL.mdinstructions when present. - Use Python 3.13+ for spaCy-backed operations.
Commit & Pull Request Guidelines
- Use the Git-related skills as the source of truth for commit conventions and
PR requirements (see
plugins/git/skills/, especiallypushandhooks). - Keep this file minimal to avoid duplicating guidance that already lives in skills.
Agent-Specific Instructions
- Read
CLAUDE.mdin the repo root first; it is the single source of truth. - If instructions conflict, update or follow
CLAUDE.mdand keep this file minimal to avoid duplication. - Before executing any workflow from
plugins/*/commands, always open and follow the corresponding skillSKILL.md. Read the entire referenced chain (use progressive disclosure) for that command: any files referenced by the command, the skill, and their referenced files needed for execution details. - For any
SKILL.md, apply the same progressive disclosure rule: read all directly referenced files needed to understand and execute the skill, then follow references one hop at a time until execution details are complete. - Do not execute scripts until you have:
- confirmed required CLI arguments from the script or skill docs,
- checked whether a dev mode environment variable is required,
- reconciled any missing steps or flags in the command doc vs the skill.
- Link, don’t duplicate: consolidate guidance into one canonical location and reference it elsewhere.
- When a skill is referenced by name or path, open its
SKILL.mdand follow the documented workflow and precedence rules. - If a user mentions a specific product or ecosystem (e.g., Codex CLI, Claude,
Gemini, Cursor), first scan available skills with
rg --files -g "SKILL.md"and select the most relevantSKILL.mdbefore proceeding. - Before stating a skill is missing, list skills with
rg --files -g "SKILL.md"and check for a matching path. - For platform or framework changes, consult official documentation via the
appropriate skill (Claude Code:
docs-management, Gemini:gemini-cli-docs, Codex CLI:codex-cli-docs).
Codex CLI Guidance (OpenAI)
- Use
plugins/openai-ecosystem/skills/codex-cli-docsfor Codex CLI docs; keep this file lean and defer details to that skill. - Prompting: include clear code pointers (greppable identifiers, stack traces, snippets) and explicit verification steps; split large tasks; paste logs for debugging; specify tool constraints when needed.
- Instruction discovery: Codex layers global and project
AGENTS.mdfiles withAGENTS.override.mdtaking precedence; fallback filenames and size limits are configured in~/.codex/config.toml(project_doc_fallback_filenames,project_doc_max_bytes);CODEX_HOMEchanges the global scope. - Sandbox/approvals: network is off by default; approvals are required outside the workspace; prefer read-only in non-versioned folders and be cautious with full access or enabling web search.
- Configuration:
~/.codex/config.tomlis shared by CLI and IDE; use profiles, feature flags under[features], and.rulesto pre-approve command prefixes when appropriate. - Windows: prefer WSL for stronger sandboxing; native Windows sandbox support is experimental.
Claude Code Startup Parity (Static Memory)
- Always read
CLAUDE.mdfirst. It is the single source of truth for repo rules. - Immediately after, read every memory file referenced in
CLAUDE.md(all "Always Loaded" and "Context-Dependent" entries, plus the topics index). Do not skip any; treat this as mandatory startup. - Keep this section minimal:
CLAUDE.mdis the canonical list of memory files.
Claude Code Plugin + Skill Shim (Cursor Parity)
- Mirrors
.cursor/rules/claude-code-plugins.mdcand.cursor/rules/claude-skills.mdcso Codex has the same plugin/skill context. - Plugin discovery order:
plugins/(repo source of plugins)~/.claude/plugins/marketplaces/<marketplace>/<plugin>/(installed plugins).claude/plugins/(project-local plugins)
- Marketplace catalogs:
.claude-plugin/marketplace.json(local marketplace)~/.claude/marketplace.json(global marketplace)- Use docs-management doc_id
code-claude-com-docs-en-plugin-marketplacesfor schema and field details.
- Plugin components and defaults (canonical in doc_id
code-claude-com-docs-en-plugins-reference):- Commands:
commands/(Markdown with frontmatter) - Agents:
agents/(Markdown with frontmatter) - Skills:
skills/<skill-name>/SKILL.md(+ optional references/scripts) - Hooks:
hooks/hooks.json(or inline inplugin.json) - MCP servers:
.mcp.json(or inline inplugin.json)
- Commands:
plugin.jsondefines metadata and optional custom paths;${CLAUDE_PLUGIN_ROOT}resolves the installed plugin root for hooks, MCP servers, and scripts.- Skill execution: follow the "Agent-Specific Instructions" section plus the
referenced
SKILL.mdworkflow and precedence rules.
Claude Code Component Inventory (Always Refresh)
- Maintain a session inventory of Claude components from:
- Repo
.claude/(agents, skills, commands, hooks, output styles, MCP config). - Repo
plugins/(per-plugin skills, agents, commands, hooks, MCP servers, output styles, and manifests). - User/global plugins under
~/.claude/plugins/marketplaces/(Windows:%USERPROFILE%\.claude\plugins\marketplaces\), plus any project.claude/plugins/entries.
- Repo
- Use
rg --filesfor discovery. If sandbox blocks user-scope paths, request approval or ask the user to provide the list. - Use docs-management doc_ids
code-claude-com-docs-en-plugins-referenceandcode-claude-com-docs-en-plugin-marketplacesfor canonical schemas.
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.

