agents-refine

Refines AGENTS.md rule files through a multi-model evaluation and patching loop.

2|3|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/spideynolove/claude-dotfiles --skill agents-refine-spideynolove
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agents-refine
Source: https://github.com/spideynolove/claude-dotfiles/tree/main/.claude-global-backup/skills/agents-refine
Command: npx skills add https://github.com/spideynolove/claude-dotfiles --skill agents-refine-spideynolove

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AGENTS.md rule files for AI coding agents drift out of date, contain vague or contradictory rules, and fail to prevent recurring mistakes. Manually auditing and improving them is slow and subjective. ## Core Features & Use Cases - Multi-model refinement loop: Claude (Opus) evaluates and patches the file, Codex independently reviews it, then Opus performs a final coherence polish across configurable rounds. - HLD and LLD modes: Automatically detects whether the file is a root-level (high-level design) or project-level (low-level design) AGENTS.md and enforces inheritance rules between them. - Bootstrap and dry-run support: Start from a Karpathy-style baseline when no AGENTS.md exists, or preview changes with --dry-run before writing. - Use Case: Your code review loop keeps flagging the same class of issue, signaling stale rules. Run /agents-refine to score the file on six axes, apply independent critiques from two models, and produce a tightened, contradiction-free rule set. ## Quick Start Run /agents-refine in the directory containing your AGENTS.md to iteratively evaluate and improve it through the Opus-Codex-Opus refinement loop.

Frequently Asked Questions about agents-refine

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

FAQPage Schema
How do I improve an AGENTS.md file for AI coding agents?

Run /agents-refine in the directory containing your AGENTS.md. It scores the file on six axes including completeness, precision, and enforceability, applies critiques from Claude and Codex, and writes a polished final version with a diff summary.

What is the difference between root HLD and project LLD AGENTS.md files?

Root HLD files hold high-level behavioral rules that apply everywhere, while project LLD files add tech-stack-specific rules and explicitly inherit from the root. The skill auto-detects the mode by searching parent directories for an existing AGENTS.md.

Can I preview AGENTS.md changes before writing them?

Yes, use the --dry-run flag to print the final refined version to stdout without overwriting the file. You can also control iteration depth with --rounds N, which defaults to 3 cycles.

Does agents-refine work if no AGENTS.md exists yet?

Yes, use the --bootstrap flag to start from a Karpathy-style baseline covering thinking before coding, simplicity, surgical changes, and goal-driven execution. The refinement loop then improves that baseline normally.

When should I re-run AGENTS.md refinement?

Re-run when your code review loop repeatedly flags the same issue class, when starting a project with a new tech stack, after major architectural refactors, or on a monthly cadence as a default maintenance rhythm.