Commit Graph

2 Commits

Author SHA1 Message Date
nick 4d0b0fdcd1 feat(installer): add badge prompt and auto-create README if missing
- Interactive prompt asks "Add BMAD badge to your README?" (default yes)
- --no-badge skips the prompt and disables badge
- --yes accepts badge by default
- If user wants badge but no README exists, creates README.md with
  project name and badge

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-05-01 15:36:50 +08:00
nick 707de90238 feat(installer): auto-inject BMAD version badge into project README
Lightweight installer integration that adds a dynamic BMAD version badge
to the project README during `bmad install`. The badge is powered by the
existing bmad-badge.vercel.app service (from terryso/bmad-badge, issue #2174).

- New badge.js module: resolves git remote, finds README, injects/removes badge
- Badge is added after install, shown in the install summary
- `--no-badge` flag to opt out
- Badge is removed during `bmad uninstall` when modules are removed
- Idempotent: re-running install skips if badge already present

Closes #2174

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-05-01 13:45:25 +08:00