readme-guardian
Skill5 starsChanged 4 days agoMITView on GitHub
Ensures the README.md is always up-to-date before pushing changes to GitHub. Automatically detects new features, dependencies, scripts, config changes, and architectural modifications, then updates the README accordingly. Trigger: PROACTIVELY before any git push, PR creation, or when user asks to update docs.
- Reads credentials
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alvaroofernaandez/avalword for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- alvaroofernaandez/aval★ 5100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- aval-architectureSkill
- aval-docsSkill
- aval-release-notesSkill
- aval-releaseSkill
- aval-testingSkill
- accessibilitySkill
- ai-sdk-5Skill
- architecture-evidenceSkill
- branch-prSkill
- chained-prSkill
- cognitive-doc-designSkill
- design-pipelineSkill
- design-refactorSkill
- docker-build-optimizedSkill
- docker-space-optimizerSkill
- herdrSkill
- issue-creation-proSkill
- kiri-dockerSkill
- kiri-healthSkill
- laws-of-uxSkill
- lightpanda-browserSkill
- mac-disk-cleanupSkill
- pdf-reportSkill
- plan-deckSkill
- prs-proSkill
- react-19Skill
- readme-portalSkill
- repo-prepSkill
- skill-creatorSkill
- strict-tddSkill
- tailwind-4Skill
- typescriptSkill
- work-unit-commitsSkill
- zod-4Skill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Before pushing or creating a PR, run this checklist:
- Distinctive: line 101
Test config → Update testing section
- Distinctive: line 123
Update metrics: if they changed significantly (file counts, component counts, etc.)
- Distinctive: line 148
After significant changes, recount:
- Distinctive: line 201
Test additions that don't change coverage thresholds
- Distinctive: line 210
Add this to the project or global CLAUDE.md skills table:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Skill: readme-guardian
When to Activate
This skill MUST activate PROACTIVELY (without being asked) in these scenarios:
- Before any
git push— check if README needs updating - Before creating a PR — ensure README reflects the changes in the PR
- After completing a feature/fix that changes architecture, dependencies, scripts, or config
- When the user explicitly asks to update docs, README, or documentation
Core Principle
The README is the first thing a new team member reads. If it's outdated, it's worse than having no README at all — it actively misleads. Every push to a shared repository MUST leave the README accurate.
Pre-Push Checklist
Before pushing or creating a PR, run this checklist:
1. Dependency Changes
git diff HEAD~1..HEAD -- package.json pnpm-lock.yaml yarn.lock | head -100Check for:
- New dependencies added → Add to tech stack table
- Major version bumps → Update version numbers
- Removed dependencies → Remove from README
- New dev tools → Add to relevant section
2. Script Changes
git diff HEAD~1..HEAD -- package.json | grep '"scripts"' -A 50Check for:
- New scripts → Add to scripts table
- Renamed scripts → Update references
- Removed scripts → Remove from table
3. Environment Variable Changes
git diff HEAD~1..HEAD -- .env.example src/lib/env.tsCheck for:
- New env vars → Add to env vars table with description
- Removed env vars → Remove from table
- Changed defaults → Update documentation
4. Architectural Changes
# New directories
git diff HEAD~1..HEAD --stat | grep -E '^\s*src/.*/' | head -20
# New route groups
git diff HEAD~1..HEAD --stat | grep 'app/' | head -20
# New components/hooks
git diff HEAD~1..HEAD --stat | grep -E '(components|hooks)/' | head -20Check for:
- New directories or modules → Update project structure tree
- New route groups → Update routing section
- New component categories → Update component organization
- New hooks → Update hooks listing
5. Configuration Changes
git diff HEAD~1..HEAD -- next.config.ts Dockerfile docker-compose.yml .github/workflows/ vitest.config.ts playwright.config.ts tsconfig.jsonCheck for:
- Docker changes → Update Docker section
- CI changes → Update CI/CD section
- Build config → Update relevant sections
- Test config → Update testing section
6. Security Changes
git diff HEAD~1..HEAD -- src/lib/security.ts src/lib/sanitize.ts src/lib/validation/ next.config.ts | grep -E '(CSP|header|security|validation)' | head -20Check for:
- New security headers → Update security table
- New validation schemas → Mention in security section
- CSP changes → Update security section
How to Update
Rules
- Match the existing style — read the current README first, maintain tone, formatting, emoji usage
- Only update what changed — do NOT rewrite sections that are already accurate
- Keep it in Spanish neutro — professional, no regional slang, no informal expressions
- Update metrics if they changed significantly (file counts, component counts, etc.)
- Mermaid diagrams — update if the architecture, flow, or pipeline changed
- Tables — keep them aligned and complete
- Do NOT add fluff — every line must be useful to a developer joining the team
What to Update (by change type)
| Change Type | README Sections to Update |
| New dependency | Stack tecnológico table |
| New script | Scripts disponibles table |
| New env var | Variables de entorno tables |
| New component dir | Estructura del proyecto tree |
| New hook | Estructura del proyecto tree, hooks count in metrics |
| Architecture change | Arquitectura diagram, Flujo de datos diagram |
| Auth change | Autenticación section + diagram |
| Pipeline change | Pipeline de facturas section + state diagram |
| Docker change | Docker section |
| CI change | CI/CD section + diagram |
| Security change | Seguridad table |
| i18n change | Internacionalización section |
| Test changes | Testing section, coverage targets |
Metrics to Keep Current
After significant changes, recount:
# TypeScript files
find src -name "*.ts" -o -name "*.tsx" | wc -l
# Components
find src/components -name "*.tsx" | wc -l
# Hooks
find src/hooks -maxdepth 1 -name "use-*.ts" | wc -l
# Tests
find src -path "*__tests__*" -name "*.test.*" | wc -l
# Translation keys (approximate)
cat src/messages/es.json | grep -c '":"'Anti-Patterns
- ❌ Pushing without checking if README is still accurate
- ❌ Adding a dependency without documenting it
- ❌ Creating a new module/directory without updating the structure tree
- ❌ Changing env vars without updating the table
- ❌ Rewriting the entire README when only one section changed
- ❌ Adding placeholder text like "TODO" or "coming soon"
- ❌ Using regional slang or informal language
- ❌ Outdated metrics (file counts, component counts)
- ❌ Mermaid diagrams that no longer reflect reality
Workflow Example
User: "Sube los cambios y haz PR"
Agent thinks:
1. What files changed? → git diff --stat
2. Do any changes affect README sections? → Check against checklist
3. If YES → Update README FIRST, then commit README update, then push/PR
4. If NO → Proceed with push/PR directlyWhen NOT to Update
- Typo fixes in code (no architectural impact)
- Code refactors that don't change public API or structure
- Test additions that don't change coverage thresholds
- Translation key additions (unless significantly changing the count)
- Style/CSS changes
- Bug fixes in existing features (unless they reveal a documentation error)
Integration with CLAUDE.md
Add this to the project or global CLAUDE.md skills table:
| Pushing code, creating PRs, updating documentation | readme-guardian |This ensures the skill activates automatically before any push or PR operation.
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.

