Yet-another-agent-harness agent-rules
Use when creating or updating AGENTS.md files, .github/copilot-instructions.md, or other AI agent rule files, onboarding AI agents to a project, standardizing agent documentation, or when anyone mentions AGENTS.md, agent rules, project onboarding, or codebase documentation for AI agents.
install
source · Clone the upstream repo
git clone https://github.com/dirien/yet-another-agent-harness
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/dirien/yet-another-agent-harness "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/agent-rules" ~/.claude/skills/dirien-yet-another-agent-harness-agent-rules && rm -rf "$T"
manifest:
.claude/skills/agent-rules/SKILL.mdsource content
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
- Standardizing agent documentation across repositories
- Checking if AGENTS.md files are current with recent code changes
- Onboarding AI agents to an unfamiliar codebase
Scripts
| Script | Purpose |
|---|---|
| Generate AGENTS.md files |
| Validate structure compliance |
| Check if files are outdated |
| Verify documented files/commands match codebase |
| Verify documented commands execute |
| Detect language, version, build tools |
| Identify directories needing scoped files |
| Extract commands from build configs |
| Extract CI quality gates and version matrix |
| Extract module boundaries |
| Extract architectural decision records |
| Extract GitHub rulesets and merge rules |
See
references/scripts-guide.md for full options.
Workflow
- Detect:
+detect-project.sh
to identify stacks and subsystemsdetect-scopes.sh - Extract:
,extract-commands.sh
, etc. to gather factsextract-ci-rules.sh - Generate:
withgenerate-agents.sh
(default) or--style=thin--verbose - Verify:
+verify-content.sh
-- MANDATORY before doneverify-commands.sh
Use
--update to preserve human-curated content outside <!-- GENERATED --> markers.
Core Principles
- Structured over Prose -- tables parse faster than paragraphs
- Never Fabricate -- only document what exists; verify every command and path
- Pointer Principle -- point to files, don't duplicate content
- Auto Symlinks -- CLAUDE.md/GEMINI.md symlinks by default (see
)ai-tool-compatibility.md
References
| File | Contents |
|---|---|
| Verification steps, design principles |
| Script options, validation checklist |
| 16-agent compatibility matrix |
| Root/scoped sections |
| Hook framework detection and setup |
| Complete examples |
Templates
Root:
assets/root-thin.md (default), root-verbose.md. Scoped: assets/scoped/ -- backend-go.md, backend-php.md, python-modern.md, typo3.md, symfony.md, skill-repo.md, cli.md, frontend-typescript.md, oro.md.
Supported Projects
Go, PHP (Composer/Laravel/Symfony/TYPO3/Oro), TypeScript (React/Next/Vue/Node), Python (pip/poetry/ruff/mypy), Skill repos, Hybrid (multi-stack with auto-scoping).