From mblode-agent-skills
Audits and writes AGENTS.md files using execution-first standards. Checks commands, gotchas, and signal-to-noise ratio. Use when asked to audit, review, score, refactor, or improve agent instruction files, fix stale commands, reduce bloat, or asking "my AGENTS.md is bad", "help me write a CLAUDE.md", or "improve my agent instructions".
npx claudepluginhub joshuarweaver/cascade-code-general-misc-4 --plugin mblode-agent-skillsThis skill uses the workspace's default tool permissions.
AGENTS.md is the source of truth for agent instructions. Always write to AGENTS.md, never directly to CLAUDE.md. Symlink CLAUDE.md so Claude Code loads it:
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
AGENTS.md is the source of truth for agent instructions. Always write to AGENTS.md, never directly to CLAUDE.md. Symlink CLAUDE.md so Claude Code loads it:
ln -s AGENTS.md CLAUDE.md
AGENTS.md files are execution contracts, not knowledge bases.
Litmus test for every line: "Would removing this cause the agent to make a mistake?" If no, cut it. Bloated instruction files cause agents to ignore actual rules.
| File | Read When |
|---|---|
references/quick-checklist.md | Default: fast triage (10 checks, target >= 8/10) |
references/quality-criteria.md | Full audit mode or when quick audit fails |
references/refactor-workflow.md | File is bloated (>150 lines) or low-signal |
references/root-content-guidance.md | Deciding what stays in root vs separate files |
references/templates.md | Drafting new file or rebuilding from scratch |
Input: AGENTS.md with stale commands and generic advice
Quick audit result: 5/10 (Fail)
Key issues: Missing test command, generic "follow best practices" advice, dead link to deleted folder
Fix: Add npm test, replace generic advice with specific gotcha, remove dead link
After: 9/10 (Pass)
Default path:
references/quick-checklist.md (10 checks)references/quality-criteria.md) only when quick audit fails, file is high-risk, or user requests itProgressive loading:
references/refactor-workflow.md only for low-signal files (below target score, stale commands, or root file over ~150 lines)references/templates.md only when drafting a new file or rebuilding from scratchreferences/root-content-guidance.md only when deciding what stays in root vs moved outCopy this checklist to track progress:
Audit Progress:
- [ ] Step 1: Discover files
- [ ] Step 2: Select audit mode (quick or full)
- [ ] Step 3: Run audit against checklist
- [ ] Step 4: Report findings with score table
- [ ] Step 5: Propose minimal diffs
- [ ] Step 6: Validate changes
- [ ] Step 7: Apply and verify
Run:
find . \( -name "AGENTS.md" -o -name "CLAUDE.md" -o -name "CLAUDE.local.md" \) 2>/dev/null | sort
Also check for a home-level file: ~/.claude/CLAUDE.md (applies to all sessions).
AGENTS.md is the source of truth. If a project has a CLAUDE.md that is not a symlink to AGENTS.md, recommend renaming it to AGENTS.md and creating the symlink:
mv CLAUDE.md AGENTS.md
ln -s AGENTS.md CLAUDE.md
Instruction files can exist at multiple levels — project root, parent directories, and child directories are all loaded automatically. CLAUDE.local.md is the gitignored personal variant. Audit each level independently.
For monorepos, include workspace-level AGENTS.md files.
references/quick-checklist.mdreferences/quality-criteria.mdOutput a concise report before edits:
## AGENTS.md Audit Report
| File | Mode | Score | Grade | Key Issues |
|------|------|-------|-------|------------|
| ./AGENTS.md | Quick | 6/10 | Fail | Missing test command, stale path, doc-heavy section |
@path/to/file.md import syntaxShow each proposed change with rationale and a diff snippet.
Validation loop:
dev, test, build, lint/typecheck) when applicable