Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
netresearch avatar

Agent Rules

  • 543 installs
  • 69 repo stars
  • Updated August 2, 2026
  • netresearch/agent-rules-skill

agent-rules is a Claude Code plugin skill that generates AGENTS.md structure, repository file maps, and verification scripts for developers who need consistent agent conventions across every coding session.

About

agent-rules is a Claude Code skill and plugin from netresearch/agent-rules-skill that keeps AGENTS.md sections, file maps, and verification scripts synchronized with repository reality. Bundled bash scripts include generate-file-map.sh, verify-commands.sh, analyze-git-history.sh, and detect-utilities.sh under skills/agent-rules/scripts. Developers reach for agent-rules when onboarding AI agents to large repos and needing managed AGENTS-GENERATED blocks for overview and filemap tables without manual drift. The plugin enforces section order while allowing content edits, helping every agent session share the same structural conventions.

  • Claude Code plugin packaging with skills/ layout and .claude-plugin/plugin.json manifest.
  • Bundled bash scripts: verify-commands, generate-file-map, analyze-git-history, detect-utilities, extract-platform-files.
  • AGENTS.md managed sections with generated overview, filemap, golden samples, setup, and structure blocks.
  • Composer install path: netresearch/agent-rules-skill for PHP ecosystems adopting the plugin.
  • Golden sample pointer to skills/agent-rules/SKILL.md as the reference implementation pattern.

Agent Rules by the numbers

  • 543 all-time installs (skills.sh)
  • +37 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #95 of 782 Skill Development skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/netresearch/agent-rules-skill --skill agent-rules

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs543
repo stars69
Security audit2 / 3 scanners passed
Last updatedAugust 2, 2026
Repositorynetresearch/agent-rules-skill

How do you generate AGENTS.md for Claude Code?

Install and maintain a Claude Code agent-rules plugin that generates AGENTS.md structure, file maps, and verification scripts so repo conventions stay consistent for every agent session.

Who is it for?

Teams adopting Claude Code agent-rules plugins who need auto-generated AGENTS.md file maps and verification scripts for large repositories.

Skip if: Single-file scripts with no agent onboarding needs, or projects that do not use AGENTS.md or Claude Code plugin conventions.

When should I use this skill?

A developer installs or updates the agent-rules plugin, needs AGENTS.md file maps regenerated, or wants verify-commands checks for repo conventions.

What you get

Structured AGENTS.md with generated overview and filemap tables, plus verify-commands and file-map shell scripts aligned to the repo.

  • AGENTS.md file map
  • verification script results

By the numbers

  • Bundles at least 4 bash scripts: verify-commands, generate-file-map, analyze-git-history, detect-utilities

Files

SKILL.mdMarkdownGitHub ↗

<!-- Managed by agent: keep sections and order; edit content, not structure. Last updated: 2026-02-05 -->

AGENTS.md — agents

<!-- AGENTS-GENERATED:START overview -->

Overview

Claude Code skill/plugin providing AI agent capabilities <!-- AGENTS-GENERATED:END overview -->

<!-- AGENTS-GENERATED:START filemap -->

Key Files

FilePurpose
skills/agent-rules/scripts/verify-commands.sh!/usr/bin/env bash
skills/agent-rules/scripts/generate-file-map.sh!/usr/bin/env bash
skills/agent-rules/scripts/analyze-git-history.sh!/usr/bin/env bash
skills/agent-rules/scripts/detect-utilities.sh!/usr/bin/env bash
skills/agent-rules/scripts/extract-platform-files.sh!/usr/bin/env bash

<!-- AGENTS-GENERATED:END filemap -->

<!-- AGENTS-GENERATED:START golden-samples -->

Golden Samples (follow these patterns)

PatternReference
Standard implementationskills/agent-rules/SKILL.md

<!-- AGENTS-GENERATED:END golden-samples -->

<!-- AGENTS-GENERATED:START setup -->

Setup & environment

  • Plugin: agents v2.8.0
  • Skills: 1 skill(s) in skills/
  • Install: composer require netresearch/agent-rules-skill

<!-- AGENTS-GENERATED:END setup -->

<!-- AGENTS-GENERATED:START structure -->

Directory structure

.claude-plugin/
  plugin.json          → Plugin manifest (name, version, skills)
skills/
  <skill-name>/
    SKILL.md           → Skill definition and instructions
    assets/            → Templates, reference docs
    scripts/           → Shell scripts for automation
    references/        → Examples, golden samples

<!-- AGENTS-GENERATED:END structure -->

<!-- AGENTS-GENERATED:START commands -->

Build & tests

  • Lint scripts: shellcheck skills/*/scripts/*.sh
  • Validate plugin: jq . .claude-plugin/plugin.json

<!-- AGENTS-GENERATED:END commands -->

<!-- AGENTS-GENERATED:START code-style -->

Code style & conventions

  • SKILL.md: Clear, actionable instructions for AI agents
  • Shell scripts: Follow ShellCheck recommendations
  • Templates: Use `` syntax for variables
  • Keep skills focused on one domain/task
  • Include checkpoints for verification
  • Provide golden samples for pattern demonstration

<!-- AGENTS-GENERATED:END code-style -->

<!-- AGENTS-GENERATED:START skill-design -->

Skill design principles

  • Actionable: Tell agents WHAT to do, not just WHAT things are
  • Verifiable: Include checkpoints agents can run to verify work
  • Scoped: One skill = one domain (don't mix concerns)
  • Referenced: Point to golden samples, not generic examples
  • Minimal: Include only what agents need; avoid documentation bloat

<!-- AGENTS-GENERATED:END skill-design -->

<!-- AGENTS-GENERATED:START security -->

Security & safety

  • Never include secrets or credentials in skills
  • Validate all user inputs in scripts
  • Use placeholder values in examples: your-api-key, example.com
  • Review generated content for sensitive information

<!-- AGENTS-GENERATED:END security -->

<!-- AGENTS-GENERATED:START checklist -->

PR/commit checklist

  • [ ] ShellCheck passes: shellcheck skills/*/scripts/*.sh
  • [ ] SKILL.md instructions are clear and actionable
  • [ ] Templates use whole-line placeholders (not inline)
  • [ ] Golden samples exist for key patterns
  • [ ] Checkpoints are verifiable
  • [ ] plugin.json version updated if releasing

<!-- AGENTS-GENERATED:END checklist -->

<!-- AGENTS-GENERATED:START examples -->

Patterns to Follow

Prefer looking at real code in this repo over generic examples.
See Golden Samples section above for files that demonstrate correct patterns.

<!-- AGENTS-GENERATED:END examples -->

<!-- AGENTS-GENERATED:START help -->

When stuck

  • Check existing skills for patterns
  • Review Claude Code documentation
  • Test skills with claude --skill <name>
  • Check root AGENTS.md for project conventions

<!-- AGENTS-GENERATED:END help -->

Example GitHub Actions workflow for validating AGENTS.md file

Related skills

How it compares

Choose agent-rules when standardizing AGENTS.md and verification scripts for Claude Code; use generic documentation skills when agents do not need repo-specific file maps.

FAQ

Which scripts does agent-rules include?

agent-rules bundles bash scripts including verify-commands.sh, generate-file-map.sh, analyze-git-history.sh, and detect-utilities.sh under skills/agent-rules/scripts. They regenerate AGENTS.md maps and validate repo conventions.

What does agent-rules write into AGENTS.md?

agent-rules maintains managed AGENTS-GENERATED overview and filemap sections in AGENTS.md with a fixed section order. Developers edit content while scripts keep file maps and verification aligned to the repository.

Is Agent Rules safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Skill Developmentintegrationsdocs

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.