Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Automatically sync AGENTS.md files into Claude Code path-specific rules — no manual setup, no copy-paste.
Claude Code has a native path-specific rules system that injects context based on which files you're editing. agent-rules bridges the popular AGENTS.md convention to that system automatically.
On every session start it:
AGENTS.md files in your repository (respects .gitignore).claude/rules/agents/ with YAML frontmatter that sets the path scopeAGENTS.md was deleted/plugin install agent-rules@claude-extensions
After installing, add the generated directory to your .gitignore — the files are auto-generated and shouldn't be committed:
# Claude Code — generated from AGENTS.md files
.claude/rules/agents/
The output path and frontmatter are derived from where each AGENTS.md lives:
| Source file | Generated rule | Applies to |
|---|---|---|
AGENTS.md | .claude/rules/agents/AGENTS.md | **/* (whole repo) |
src/api/AGENTS.md | .claude/rules/agents/src/api/AGENTS.md | src/api/**/* |
docs/AGENTS.md | .claude/rules/agents/docs/AGENTS.md | docs/**/* |
Example — root AGENTS.md:
# Project Guidelines
This is a TypeScript project. Always:
- Use strict mode
- Write tests for new features
- Follow the ESLint configuration
Becomes .claude/rules/agents/AGENTS.md:
---
paths:
- "**/*"
---
# Project Guidelines
This is a TypeScript project. Always:
- Use strict mode
- Write tests for new features
- Follow the ESLint configuration
your-repo/
├── AGENTS.md # general project guidelines → **/*
├── src/
│ ├── api/AGENTS.md # API conventions → src/api/**/*
│ └── ui/AGENTS.md # UI conventions → src/ui/**/*
└── docs/AGENTS.md # docs guidelines → docs/**/*
Claude picks up whichever rules match the files you're working with.
Each git repository is processed independently. When you open a parent repo, only that repo's AGENTS.md files are synced — submodules manage their own rules when opened as a workspace. This prevents rule conflicts and matches git's model of independent repositories.
Issues and pull requests welcome at claude-contrib/claude-extensions.
MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub claude-contrib/claude-extensions --plugin agent-rulesPlugins from other owners that cover similar ground