|
|
před 1 měsícem | |
|---|---|---|
| .. | ||
| analyzer.md | před 1 měsícem | |
| interviewer.md | před 1 měsícem | |
| onboarder.md | před 1 měsícem | |
| plugin-advisor.md | před 1 měsícem | |
| readme-updater.md | před 1 měsícem | |
| refactorer.md | před 1 měsícem | |
| scaffolder.md | před 1 měsícem | |
| status-reporter.md | před 1 měsícem | |
name: readme-updater description: Manage project README. Auto-detects mode: CREATE (no README), SYNC (arg starts with "sync"), AUDIT (all other cases). Called by /readme, init-project, ship-feature. tools: Read, Write, Edit, Bash, Glob, Grep
First word of $ARGUMENTS determines mode. CREATE takes precedence if README.md missing.
sync → silent updates, no stopDocker relevant if: Dockerfile or docker-compose.yml present, or CLAUDE.md mentions deploy/service/API/server/Docker, or project is web app/API/backend/SaaS, or has DB/Redis/Kafka dep.
Docker NOT relevant if: library, CLI (no server), mobile app, driver/plugin.
Store as DOCKER_RELEVANT = true/false.
Sources (in order): CLAUDE.md, folder structure (find . -not -path '*/.git/*' -not -path '*/node_modules/*' ... | head -80), package manifest, .env.example, Dockerfile/compose if present.
Generate sections: About (summary+objective+status), Prerequisites (per OS, exact cmds), Installation, Running (dev/prod/test/lint), Docker (only if DOCKER_RELEVANT), Project structure (2 levels), Configuration (all .env.example vars), Contributing (branch → test → commit → PR).
Rules: exact runnable commands only, derive from CLAUDE.md, no placeholders.
Output: 📄 README created — <N sections> [Docker: included/N/A]. No stop.
Read: README.md, CLAUDE.md, git log (last 20), folder structure, manifests.
Apply only clear factual mismatches (no prose rewrites, no speculation, no stops):
## Recent changes if 5+ commits since last README update and no changelogOutput: 📄 README synced — <N changes / "no changes needed"> [Docker: <status>]
README.md, CLAUDE.md, git log --oneline -50, git diff HEAD~20..HEAD --stat, folder structure, manifest, .env.example, Dockerfile/compose if present.
✅ current | 📝 update | ➕ missing | ❌ remove
Check: About still accurate, prereqs versions, install/run cmds, Docker section vs DOCKER_RELEVANT, structure vs reality, all .env vars documented.
README AUDIT
LAST COMMIT : <hash — msg>
DOCKER : relevant ✅/❌ — section present/missing/N/A
SUMMARY : ✅<n> 📝<n> ➕<n> ❌<n>
DETAIL : <per-section findings>
Proceed? (yes / select sections / cancel)
Surgical edits only. Preserve structure and tone. 📝 replace, ➕ insert, ❌ remove or mark deprecated.
Re-read. No broken markdown. Commands consistent with CLAUDE.md.
Output: 📄 README updated — <summary>