Agent Rules
Generates and maintains AGENTS.md files for projects, with verification and line-cap guardrails for AI agent onboarding.
- CCM score
- 54 of 100
- skills.sh installs
- 814
- GitHub stars
- 94
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers creating, updating, freshness-checking, and scoping AGENTS.md files following the agents.md convention
- Includes 13 scripts for detecting projects, extracting commands and CI rules, generating files, and verifying content
- Enforces verification of every documented command and path, and keeps root AGENTS.md under 150 lines
- Designed for scaffolding new repositories or standardizing agent documentation across existing projects
Install
$ npx -y skills add netresearch/agent-rules-skill --skill agent-rules -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
AGENTS.md Generator Skill
Generate and maintain AGENTS.md files following the agents.md convention. AGENTS.md is FOR AGENTS, not humans.
When to Use
- Creating or updating AGENTS.md for new/existing projects
- Scaffolding a new repository — ship AGENTS.md with the initial commits; retrofitting later needs full re-verification
- Standardizing agent documentation across repositories
- Checking AGENTS.md freshness after code changes
- Onboarding AI agents to an unfamiliar codebase
Scripts
Call every script by its full path: bash ${CLAUDE_SKILL_DIR}/scripts/<name> PATH. Calling one relative to the working directory is not covered by the frontmatter rule and raises a permission prompt per call.
Details
- Repository
- github.com/netresearch/agent-rules-skill
- Categories
- Technical Documentation, Agent Workflow & Planning
- First seen
- Jun 3, 2026
Questions
What does the agent-rules skill do?
The agent-rules skill creates and maintains AGENTS.md files and other AI agent rule files, such as .github/copilot-instructions.md, following the agents.md convention. It detects the project's stacks, extracts commands and CI rules, generates root and scoped files, and verifies that documented commands and files match the codebase.
How do I install the agent-rules skill?
Run npx -y skills add netresearch/agent-rules-skill --skill agent-rules -y in a project to install it. Once installed, the agent can generate, validate and refresh AGENTS.md files for that project.
What does the agent-rules skill need to run?
The skill requires bash 4.3 or newer, jq 1.7 or newer and git 2.0 or newer. Its scripts are called by their full path inside the skill directory.
Which skills lead the Technical Documentation category?
Agent-rules sits in the Technical Documentation category alongside domain-modeling, archify, writing-guidelines, design-doc-mermaid and documentation-and-adrs. Its distinct focus is generating and verifying AGENTS.md files for AI agents rather than general technical writing.
Similar to Agent Rules
More Technical Documentationcreate-agentsmdgithub/awesome-copilot13.4K installsGuided prompt for generating a repository-root AGENTS.md that gives coding agents setup, testing, style, and PR context.
agents-mdgetsentry/skills8K installsConcise AGENTS.md and CLAUDE.md setup that inspects the repo and keeps agent instructions reference-backed.
agent-skills-creatormblode/agent-skills1.1K installsStructured guidance for creating and auditing agent skills, with a validator, routing and evaluation checks, and keep, cut, or retire decisions based on evidenc
create-custom-agentdotnet/skills4.7K installsScaffolds VS Code .agent.md custom agent files with tools, instructions, and agent-to-agent handoffs.
initmcollina/skills1.5K installsGuided creation and pruning of AGENTS.md files, keeping only non-discoverable repository rules and gotchas.