skills/local/cali-agents-md-validator/SKILL.md
[Cali] Validate project AGENTS.md files against best practices and the canonical template. Use when: user says 'validate agents md', 'check agents md quality', 'audit my agents md', or after creating/updating AGENTS.md. Checks: structure, size, content quality, template compliance, and provides fix recommendations. Can offer automatic corrections via ask tool.
npx skillsauth add renatocaliari/agent-sync-public-skills cali-agents-md-validatorInstall 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.
Validates AGENTS.md files against 10 criteria from industry research and the canonical nyosegawa template.
test -f AGENTS.md && echo "pass" || echo "fail"
lines=$(wc -l < AGENTS.md)
if [ "$lines" -gt 150 ]; then echo "fail: $lines lines (max 150)"; else echo "pass"; fi
Source: ETH Zurich research shows >150 lines causes "silent rule dropout"
grep -q "^## Commands\|^##commands\|^# Commands" AGENTS.md && echo "pass" || echo "fail"
Source: OpenAI Codex, GitHub analysis — copy-pasteable commands are essential
grep -q "^## Don'ts\|^##don'ts\|^# Don'ts" AGENTS.md && echo "pass" || echo "fail"
Source: GitHub 2500+ repos analysis — explicit prohibitions prevent common errors
grep -qiE "(api_key|secret|password|token|credential).*=.*['\"][a-zA-Z0-9]{20,}" AGENTS.md && echo "fail" || echo "pass"
Source: GitHub analysis — #1 most common constraint in AGENTS.md files
grep -qE "(React|Vue|Angular|Go|Node|Python|Java) *[0-9]+\.[0-9]+" AGENTS.md && echo "pass" || echo "warn: no exact versions found"
Source: Augment Code, Inngest repo — "React 19" not just "React"
# Check if AGENTS.md has long prose sections (>20 lines of description)
awk '/^##.*Architecture|^##.*Overview/,/^##[^#]/' AGENTS.md | wc -l | \
awk '{if ($1 > 20) print "warn: consider moving architectural details to README"; else print "pass"}'
Source: ETH Zurich — arch sections increase cost without improving success
head -50 AGENTS.md | grep -q "^## Don'ts\|^## Commands\|^## Rule\|^## Rule #1" && echo "pass" || echo "warn: critical rules may be buried"
Source: "Lost in the middle" phenomenon — LLMs pay most attention to first/last 25%
# Check for inline content that should be references
grep -c "@file:\|references/" AGENTS.md | \
awk '{if ($1 == 0) print "warn: consider using /skill:name for extended docs"; else print "pass"}'
Source: Progressive disclosure pattern — reference skills, don't paste content
# Check for required sections: Commands + Don't + (Architecture OR Stack)
has_commands=$(grep -q "^## Commands" AGENTS.md && echo 1 || echo 0)
has_donts=$(grep -q "^## Don'ts" AGENTS.md && echo 1 || echo 0)
has_arch=$(grep -q "^## Architecture\|^## Stack" AGENTS.md && echo 1 || echo 0)
if [ "$has_commands" -eq 1 ] && [ "$has_donts" -eq 1 ] && [ "$has_arch" -eq 1 ]; then
echo "pass"
else
missing=""
[ "$has_commands" -eq 0 ] && missing="$missing Commands"
[ "$has_donts" -eq 0 ] && missing="$missing Don'ts"
[ "$has_arch" -eq 0 ] && missing="$missing Architecture/Stack"
echo "warn: missing:$missing"
fi
Source: nyosegawa template — Commands + Don'ts + Architecture are the core sections
Execute the validation script:
bash references/validate-agents-md.sh
Or run manually:
# Count lines
lines=$(wc -l < AGENTS.md)
echo "Lines: $lines"
# Check sections
grep -E "^## " AGENTS.md
Show the user a clear report:
📊 AGENTS.md Validation Report
✅ R1: File exists
✅ R2: 75 lines (max 150)
✅ R3: Commands section found
✅ R4: Don'ts section found
✅ R5: No secrets detected
✅ R6: Stack has exact versions (Go 1.26, Node >=20)
✅ R7: No architectural bloat
✅ R8: Critical rules in first 50 lines
⚠️ R9: No /skill:name references found
✅ R10: Template compliance: Commands + Don'ts + Architecture
Result: 9/10 passed, 1 warning
Use the ask tool to offer corrections:
ask_user_question({
questions: [{
question: "How would you like to proceed?",
header: "Action",
options: [
{ label: "Auto-fix warnings", description: "I'll apply recommended fixes automatically" },
{ label: "Show recommendations", description: "I'll explain each warning with specific suggestions" },
{ label: "Skip fixes", description: "Just record the report, no changes needed" }
]
}]
})
For each warning/failure, generate a fix:
R2 (too long): Offer to trim sections, move content to references R3 (no Commands): Generate Commands section from package.json/Makefile R4 (no Don'ts): Generate Don'ts section from common project errors R5 (secrets found): Immediately remove and warn R6 (no versions): Detect versions from go.mod/package.json R7 (arch bloat): Suggest moving to README R8 (rules buried): Offer to reorder sections R9 (no skill refs): Add /skill:name references for extended docs R10 (template non-compliant): Restructure to match template
After applying fixes, re-run validation to confirm improvement.
The canonical template structure (from nyosegawa/agents-md-generator):
# AGENTS.md
## Project Overview
[Brief description]
## Commands
| Command | Description |
|---------|-------------|
| `npm run dev` | Start dev server |
## Architecture
[Key decisions and patterns]
## Conventions
- Code style rules
- File naming
## Don'ts
- Things to never do
Our extensions (valid in our ecosystem):
/skill:cali-agents-md-generator"references/validate-agents-md.sh — Bash validation scripttools
Extrai métricas estruturadas, cálculos e estimativas de transcripts de entrevistas com clientes do Sommelier de IA. Produz um JSON com dores, frequências, tempo gasto, pessoas envolvidas, economia potencial, ROI e recomendações financeiras. Projetado para alimentar o cali-degustia-diagnostico ou integrar com dashboards/planilhas.
tools
Guia a coleta de depoimentos de clientes do Sommelier de IA no momento certo do processo, usando a abordagem de Hormozi: pedir depois da primeira evidência de resultado, nunca na entrega. Gera depoimentos mais autênticos e reduz a sensação de que o cliente está sendo "solicitado".
development
[stelow] Full UX critique for visual interfaces. Accepts a live URL, source code directory, or screenshot image. Evaluates accessibility (WCAG AA), Nielsen's 10 heuristics, visual hierarchy, cognitive load, consistency, mobile responsiveness, AI slop, emotional journey, and design personas — then generates a classified gap report. Standalone or integrated into stelow and stelow-product-testing-execution.
development
Building trust through perception and guarantee mechanisms. Covers ten pillars to materialize trust, guarantee types from unconditional to anti-guarantees, and strategic approaches for different contexts.