From agent-rules
Generates and maintains AGENTS.md files for AI agents by detecting project structure, extracting commands, CI rules, and architecture boundaries. Useful for onboarding agents and standardizing documentation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agent-rules:agent-rulesThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate and maintain AGENTS.md files following the [agents.md convention](https://agents.md/). AGENTS.md is FOR AGENTS, not humans.
AGENTS.mdCLAUDE.mdassets/example-workflows/validate-agents.ymlassets/root-thin.mdassets/root-verbose.mdassets/scoped/backend-go.mdassets/scoped/backend-php.mdassets/scoped/backend-python.mdassets/scoped/backend-typescript.mdassets/scoped/claude-code-skill.mdassets/scoped/cli.mdassets/scoped/concourse.mdassets/scoped/ddev.mdassets/scoped/docker.mdassets/scoped/documentation.mdassets/scoped/examples.mdassets/scoped/frontend-typescript.mdassets/scoped/github-actions.mdassets/scoped/gitlab-ci.mdassets/scoped/oro-bundle.mdGenerate and maintain AGENTS.md files following the agents.md convention. AGENTS.md is FOR AGENTS, not humans.
| Script | Purpose |
|---|---|
scripts/generate-agents.sh PATH | Generate AGENTS.md files |
scripts/validate-structure.sh PATH | Validate structure compliance |
scripts/check-freshness.sh PATH | Check if files are outdated |
scripts/verify-content.sh PATH | Verify documented files/commands match codebase |
scripts/verify-commands.sh PATH | Verify documented commands execute |
scripts/score-agents.sh PATH | Grade AGENTS.md quality, worst-first |
scripts/detect-project.sh PATH | Detect language, version, build tools |
scripts/detect-scopes.sh PATH | Identify directories needing scoped files |
scripts/extract-commands.sh PATH | Extract commands from build configs |
scripts/extract-ci-rules.sh PATH | Extract CI quality gates and version matrix |
scripts/extract-architecture-rules.sh PATH | Extract module boundaries |
scripts/extract-adrs.sh PATH | Extract architectural decision records |
scripts/extract-github-rulesets.sh PATH | Extract GitHub rulesets and merge rules |
See references/scripts-guide.md for full options.
detect-project.sh + detect-scopes.sh to identify stacks and subsystemsextract-commands.sh, extract-ci-rules.sh, etc. to gather factsgenerate-agents.sh with --style=thin (default) or --verboseverify-content.sh + verify-commands.sh -- MANDATORY before doneUse --update to preserve human-curated content outside <!-- GENERATED --> markers.
ai-tool-compatibility.md)| File | Contents |
|---|---|
verification-guide.md | Verification steps, anti-bloat |
scripts-guide.md | Script options, validation checklist |
quality-rubric.md | Grading rubric |
ai-tool-compatibility.md | 16-agent compatibility matrix |
output-structure.md | Root/scoped sections |
git-hooks-setup.md | Hook framework setup |
examples/ | Complete examples |
ai-contribution-guidelines.md | "3 Cs" AI-contribution framework |
directory-coverage.md | Scoped-file coverage rationale |
feedback-memory-schema.md | Approved-learning file format |
Root: assets/root-thin.md (default) or root-verbose.md. Scoped: assets/scoped/, one per stack (Go/PHP/Python/TYPO3/Symfony/Oro/CLI/TS/skill-repo).
Go, PHP (Composer/Laravel/Symfony/TYPO3/Oro), TypeScript (React/Next/Vue/Node), Python (pip/poetry/ruff/mypy), Skill repos, Hybrid (auto-scoping).
agent-harness-skill — agent-readiness harness (CI enforcement).skill-repo-skill — skill-repo structure (plugin.json, licensing, releases).npx claudepluginhub netresearch/claude-code-marketplace --plugin agent-rulesCreates and maintains minimal AGENTS.md/CLAUDE.md files using research-backed best practices for concise, high-signal agent documentation under 60 lines.
Generates or updates AGENTS.md/CLAUDE.md files via project scanning and interactive Q&A. Use when setting up AI-assisted development or updating project instructions.
Generates AGENTS.md with project overview, setup commands, dev workflow, testing, code style, build/deployment guidelines for AI coding agents in repositories.