agents-md-fixer
Skill5 starsChanged 21 days agoMITView on GitHub
Trim bloated `AGENTS.md` files into concise pointers to canonical `docs/*.md` rules. Use when agent guidance duplicates repo documentation. This skill changes only `AGENTS.md`; use documentation skills for README or `docs/` changes.
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- arch-docsSkill
- book-to-markdownSkill
- docset-updaterSkill
- humanizerSkill
- news-release-docsSkill
- pdf-guideSkill
- readme-docsSkill
- screenshot-docsSkill
- see-also-docsSkill
- setup-install-usage-docsSkill
- bptools-writer-expertSkill
- color-accessibility-expertSkill
- css-creative-expertSkill
- game-design-expertSkill
- geometry-expertSkill
- glass-expertSkill
- hic-human-interact-expertSkill
- openscad-3d-printing-expertSkill
- podman-expertSkill
- postgresql-expertSkill
- pyside6-engineerSkill
- rust-code-expertSkill
- solid-js-expertSkill
- svg-creator-expertSkill
- typescript-engineerSkill
- ui-ux-engineerSkill
- vision-expertSkill
- wasm-rust-expertSkill
- webwork-writer-expertSkill
- delegate-manager-to-subagentsSkill
- gas-town-workflowSkill
- hang-checkSkill
- html-game-parallel-builderSkill
- parallel-planSkill
- stay-busySkill
- repo-rules-readerSkill
- blueprint-plan-drafterSkill
- ideonomy-plainSkill
- ideonomy-richSkill
- make-goalSkill
- modest-plan-drafterSkill
- audit-code-reviewerSkill
- old-python-code-reviewSkill
- prune-testsSkill
- unit-test-starterSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Use the docs/REPO_STYLE.md AGENTS.md files policy for size and structure.
- Distinctive: line 21
Keep only items that are repo-specific and load-bearing:
- Distinctive: line 33
Test invocation cheat-line specific to this repo.
- Very specific: line 48
Commit-message and changelog rules already in docs/CHANGELOG.md or docs/REPO_STYLE.md.
- Distinctive: line 61
If this line were removed today, would an agent's behavior change on a real task?
- Very specific: line 69
Read the current AGENTS.md and the docs/ index.
- Very specific: line 70
Check wc -l AGENTS.md against the repository policy.
- Very specific: line 96
No duplication of canonical docs/*.md content.
- Distinctive: line 97
Every external concept is referenced by path, not restated.
- Distinctive: line 98
No deletion of genuinely repo-specific operational rules.
- Distinctive: line 99
No new sections with content that has no enforcement or no concrete action.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md fixer
Goal
Make AGENTS.md a tiny pointer file. It should mostly be bare paths into
docs/*.md, not prose. This skill audits and tightly rewrites it using the
repository's load-bearing rules.
AGENTS.md is agent-facing. Reference docs by bare path
(docs/PYTHON_STYLE.md), not Markdown links.
Use the docs/REPO_STYLE.md AGENTS.md files policy for size and structure.
Required content (keep)
Keep only items that are repo-specific and load-bearing:
- Bare path pointers to canonical style docs that exist in this repo, for example
docs/REPO_STYLE.md,docs/PYTHON_STYLE.md,docs/MARKDOWN_STYLE.md,docs/PYTEST_STYLE.md, anddocs/CHANGELOG.md. - Repo-specific runtime quirks: interpreter bootstrap, env activation, container entry, non-default install paths.
- Non-obvious workflow constraints actually enforced in this repo (example:
"humans run
git commit", branch policy, hook behavior). - Test invocation cheat-line specific to this repo.
- Any user-injected directive marked as overriding defaults (preserve it verbatim).
Frivolous content (cut or move)
Flag and remove these patterns:
- Long philosophy or "why we believe X" paragraphs. Move the canonical
version to
docs/REPO_STYLE.md, or delete if already covered there. - Restated style rules already in
docs/PYTHON_STYLE.md,docs/MARKDOWN_STYLE.md, ordocs/REPO_STYLE.md. - Aspirational guidance with no enforcement and no concrete action.
- Generic AI etiquette unrelated to this repo (tone, manners, hedging advice).
- Commit-message and changelog rules already in
docs/CHANGELOG.mdordocs/REPO_STYLE.md. - "Future considerations" sections with no owner and no date.
Manager judgment rubric
For each line or section, answer in order. Stop at the first "yes" that demands action.
- Is this repo-specific (would it differ in a sibling repo)? If no, cut or replace with a link to the canonical doc.
- Is the same rule already written in a
docs/*.mdfile? If yes, replace with a link to that file. - If this line were removed today, would an agent's behavior change on a real task? If no, cut.
- Is the canonical home a sibling doc that already exists? If yes, move
the content there and link from
AGENTS.md. - Otherwise, keep, and trim wording to a single short bullet.
Workflow
- Read the current
AGENTS.mdand thedocs/index. - Check
wc -l AGENTS.mdagainst the repository policy. If it is already a tight pointer file and passes the rubric, report no action needed and stop. - For each section, apply the rubric. Categorize each as one of:
keep,link-only,move-to-docs, ordelete. - For
move-to-docsitems, identify the rightdocs/*.mdtarget using the recommended common docs list indocs/REPO_STYLE.md. If the target doc does not exist yet, do not create it here. Note it as a follow-up fordocset-updater,setup-install-usage-docs, orarch-docs. - Rewrite
AGENTS.mdminimally with short sentence-case headings and-bullets. - Preserve any user instruction explicitly marked as overriding defaults.
Markdown house rules
- ASCII only; escape symbols like
αif needed. - Sentence case headings, short headings (3-6 words).
- Bullets use
-, one idea per bullet. - Reference docs by bare path, optionally in backticks; do not use Markdown link syntax.
Quality bar
- Final
AGENTS.mdis small: prefer about 15 non-blank lines, hard cap about 50. Smaller is always better. If you cannot get under 50, more content belongs indocs/*.md. - Most of the file is bare path pointers into
docs/*.md, not prose. - No duplication of canonical
docs/*.mdcontent. - Every external concept is referenced by path, not restated.
- No deletion of genuinely repo-specific operational rules.
- No new sections with content that has no enforcement or no concrete action.
Inputs to inspect
- Current
AGENTS.mdcontent. - The list of files under
docs/(so the skill can choose link targets that actually exist). - Any standing override already marked for verbatim preservation.
Output
- The applied
AGENTS.mdpatch with minimal edits. - A change log with three short lists:
moved: each chunk moved intodocs/*.md, with the destination file.linked: each chunk replaced by a bare path pointer, with the target.deleted: each chunk deleted, with one sentence of justification.
- A short follow-up list of
docs/*.mdstubs that should exist, naming the skill that owns each one (docset-updater,setup-install-usage-docs,arch-docs, orreadme-docs).
References
docs/REPO_STYLE.md: "AGENTS.md files" section sets the 100-150 line target and the "concise and operational" rule.docs/MARKDOWN_STYLE.md: heading and link conventions used in the rewrite.../readme-docs/SKILL.md: sibling single-artifact standardizer with the same shape.
In a docset refresh, run after the linked docs/*.md files exist and alongside
screenshot-docs; this skill owns only AGENTS.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

