agent-rules

Generate and verify AGENTS.md files with bash, jq, and git.

19|3|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/dirien/yet-another-agent-harness --skill agent-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-rules
Source: https://github.com/dirien/yet-another-agent-harness/tree/main/.claude/skills/agent-rules
Command: npx skills add https://github.com/dirien/yet-another-agent-harness --skill agent-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, jq, git, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Replaces scattered, inconsistent agent onboarding docs with a single reproducible generator and verification workflow so AI agents and maintainers can rely on up-to-date, machine-readable AGENTS.md files across a repository.

Core Features & Use Cases

  • Generate & Update: Create root and scoped AGENTS.md files from templates and repository facts.
  • Extraction & Verification: Extract commands, CI rules, file maps, ADRs, and verify commands using bash + jq + git before marking items as verified.
  • Compatibility: Auto-create CLAUDE.md / GEMINI.md symlinks and adapt outputs for multiple agent tools; useful for onboarding agents, standardizing agent rules, and auditing agent docs.
  • Automation Scripts & Heuristics: Includes detection scripts for scopes, utilities, heuristics, golden samples, and freshness checks to drive idempotent updates.

Quick Start

Run the agent-rules generator to produce or update AGENTS.md files, verify documented commands, and create agent-specific symlinks.

Frequently Asked Questions about agent-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate AGENTS.md files for AI agent onboarding?

Generate AGENTS.md files by running a bash-based generator that extracts repository facts, CI rules, and commands to create standardized, machine-readable agent instructions. The generator uses jq and git to analyze the repository and produce root or scoped AGENTS.md files from templates.

What is AGENTS.md used for in AI agent repositories?

AGENTS.md serves as a standardized instruction file for AI agents, replacing scattered onboarding documentation with a single source of truth. It provides machine-readable commands, file maps, and CI rules that agents and maintainers rely on for consistent repository interaction.

Can I use CLAUDE.md and GEMINI.md symlinks with AGENTS.md?

CLAUDE.md and GEMINI.md symlinks can be automatically created alongside AGENTS.md to ensure compatibility across multiple AI agent tools. The generation process handles symlink creation, adapting the output for different agent platforms while maintaining a single instruction source.

Do I need bash, jq, and git to verify AGENTS.md commands?

Bash, jq, and git are required dependencies to verify AGENTS.md commands, as the verification workflow relies on these tools to extract and test documented commands. The scripts enforce verification checkpoints to ensure all documented commands pass before marking items as verified.

What's the best way to standardize agent documentation across multiple scopes?

Standardize agent documentation across multiple scopes by using detection scripts that identify repository boundaries and generate scoped AGENTS.md files idempotently. The generator applies heuristics and freshness checks to drive consistent updates across all repository levels.

Why does my AI agent onboarding fail with inconsistent documentation?

AI agent onboarding fails with inconsistent documentation because agents encounter conflicting instructions across scattered files. Replacing these with a reproducible generator and verification workflow ensures agents interact with up-to-date, machine-readable AGENTS.md files that pass automated verification checkpoints.