agents-md/SKILL.md
Reconcile AGENTS.md files — fix inaccuracies, trim noise, preserve useful context. Use when working in a folder with AGENTS.md, or at session end after architectural decisions.
npx skillsauth add snqb/my-skills agents-mdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
AGENTS.md answers: "What do I need to know to work here effectively?"
Not documentation (too distant), not code comments (too granular). The middle layer that captures:
"update agents for countries/kg"
"reconcile agents in monitoring/"
"agents-md ."
A 60-line file with useful content beats a 20-line file missing key context.
Keep:
Remove:
lscd <target_directory>
cat AGENTS.md 2>/dev/null || echo "No AGENTS.md"
grep -oP '(?<=<!-- Updated: )\d{4}-\d{2}-\d{2}' AGENTS.md
LAST_UPDATE=$(git log -1 --format=%ci -- AGENTS.md 2>/dev/null | cut -d' ' -f1)
[ -z "$LAST_UPDATE" ] && LAST_UPDATE="1970-01-01"
git log --since="$LAST_UPDATE" --name-status --oneline -- . | head -40
grep -oE '[a-zA-Z0-9_/.-]+\.(py|js|ts|sh|md|json|yaml|yml)' AGENTS.md | sort -u | while read f; do
[ ! -e "$f" ] && echo "STALE: $f"
done
For functions/classes, grep or use code-intelligence skill.
| Question | If Yes | |----------|--------| | Is it wrong? | Fix immediately — worst kind of AGENTS.md | | Is it stale? | Remove or update | | Is it useful? | Keep, maybe condense | | Is it noise? | Remove | | Is it generic? | Remove — agent knows "best practices" |
Show before/after comparison with clear categories:
"This also affects
../AGENTS.md— want me to suggest an update?"
Don't auto-propagate. Suggest, get approval.
<!-- Updated: YYYY-MM-DD -->
# folder_name
...content...
Use sections that fit. Skip empty ones:
<!-- Updated: YYYY-MM-DD -->
# folder_name
> One-line purpose
## How It Works
Mental model, data flow — can use simple diagram:
input → process → output
## Gotchas
- Non-obvious thing that will bite you
- Another gotcha
## Recipes
### How to Add X
1. Step one
2. Step two
```python
example_code()
command to run
fragile.py — reason why
## Line Budget (Guidelines)
| Level | Range |
|-------|-------|
| Project root | 60-120 lines |
| Major subsystem | 30-60 lines |
| Leaf directory | 15-40 lines |
Skip AGENTS.md entirely if:
- Directory is tiny and obvious
- Parent already covers it
- Nothing non-obvious to say
## Quality Checklist
Before finalizing:
- [ ] All file paths exist
- [ ] All function/class names exist
- [ ] No factual errors
- [ ] No generic filler
- [ ] Recipes still work
- [ ] Useful context preserved
## Example Reconciliation
**Before (100 lines, has errors):**
```markdown
## Quick Navigation
- `__init__.py`, `loader.py`, `helpers.py` ← noise, ls does this
## Architecture
┌──────────────────────┐
│ ASCII box │ ← noise
└──────────────────────┘
## Best Practices
1. Never hardcode strings ← generic
2. Use type hints ← generic
Use the `I18nKey` Enum... ← WRONG: it's a Literal
After (55 lines, accurate):
## How It Works
get_text(state, key) → helpers extracts country → loader imports texts → cached Pydantic field
## Gotchas
- `I18nKey` is a Literal, not Enum — don't edit manually ← FIXED
- Texts live at project root, not here
## Recipes
### Adding a Translation
1. Add to base model
2. Override in country texts
3. Regenerate: `python scripts/generate_i18n_keys.py`
Result: 45% smaller, all useful content preserved, error fixed.
documentation
Enrich Markdown articles with inline Wikipedia links. First mention of each notable entity gets a hyperlink. Use when asked to add wiki links, enrich, or add references to .md files.
development
Structured visual QA: screenshot → batch issues → fix all → verify. Replaces the 300-cycle screenshot→edit death spiral. Optional bishkek review as exit gate. Use when building/polishing UI with browser testing, or when user asks for N iterations/reviews.
development
Find complex code, analyze intent, recommend battle-tested library replacements. Uses radon/eslint for detection, GitHub quality search for alternatives.
research
Research real-world UI patterns from curated galleries (Collect UI, Component Gallery, Mobbin). Use when exploring what exists: dropdowns, accordions, inputs, navigation, cards, modals, etc.