style(bmad-module): apply prettier formatting to README and SKILL

Formatting-only; no content changes. Brings both docs in line with the
repo's prettier config (a leftover from the .js→.mjs migration).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
pbean 2026-05-28 19:30:23 -07:00
parent bd63b83f72
commit ce461c09cc
2 changed files with 22 additions and 22 deletions

View File

@ -36,7 +36,7 @@ bmad-module list [--json]
- **`remove`** without `--purge` preserves `_bmad/custom/<code>/` so a - **`remove`** without `--purge` preserves `_bmad/custom/<code>/` so a
re-install picks the customizations back up. `--purge` deletes them. re-install picks the customizations back up. `--purge` deletes them.
- **Hooks / MCP / LSP / Claude subagents** declared in the module manifest - **Hooks / MCP / LSP / Claude subagents** declared in the module manifest
are *copied* but NOT auto-activated by this skill. Use Claude Code's are _copied_ but NOT auto-activated by this skill. Use Claude Code's
plugin manager to wire them up. plugin manager to wire them up.
## Implementation ## Implementation

View File

@ -33,11 +33,11 @@ plugin via its `.claude-plugin/plugin.json` manifest.
The user's request maps to exactly one of: The user's request maps to exactly one of:
| Verb | Phrasing | | Verb | Phrasing |
|---|---| | --------- | ---------------------------------------------------------------------- |
| `install` | "install module X", "add the X module", "set up X" | | `install` | "install module X", "add the X module", "set up X" |
| `update` | "update module X", "upgrade X", "pull the latest X" | | `update` | "update module X", "upgrade X", "pull the latest X" |
| `remove` | "remove module X", "uninstall X", "delete X module" | | `remove` | "remove module X", "uninstall X", "delete X module" |
| `list` | "list modules", "what modules are installed", "show installed modules" | | `list` | "list modules", "what modules are installed", "show installed modules" |
If the verb is ambiguous (e.g. the user says "manage modules"), ASK which If the verb is ambiguous (e.g. the user says "manage modules"), ASK which
@ -96,27 +96,27 @@ suggest workarounds beyond what the script's message itself suggests
## EXIT CODES ## EXIT CODES
| Code | Meaning | | Code | Meaning |
|---|---| | ---- | ------------------------------------------------------------------------------------------------------------- |
| 0 | success | | 0 | success |
| 2 | usage error (bad/missing args or flags) | | 2 | usage error (bad/missing args or flags) |
| 5 | skill runtime files missing/corrupt — reinstall the skill (a setup/packaging problem, NOT a module rejection) | | 5 | skill runtime files missing/corrupt — reinstall the skill (a setup/packaging problem, NOT a module rejection) |
| 10 | no `_bmad/` directory in project — run `bmad install` first | | 10 | no `_bmad/` directory in project — run `bmad install` first |
| 20 | missing or invalid `.claude-plugin/plugin.json` in source | | 20 | missing or invalid `.claude-plugin/plugin.json` in source |
| 21 | module uses a reserved `bmad.code` | | 21 | module uses a reserved `bmad.code` |
| 30 | prefix collision with an already-installed module | | 30 | prefix collision with an already-installed module |
| 40 | module would write outside its `_bmad/<code>/` root | | 40 | module would write outside its `_bmad/<code>/` root |
| 50 | filesystem commit (atomic swap) failed | | 50 | filesystem commit (atomic swap) failed |
| 60 | network or `git clone` failed | | 60 | network or `git clone` failed |
| 70 | path traversal detected in manifest | | 70 | path traversal detected in manifest |
| 80 | update aborted: locally modified files would be overwritten | | 80 | update aborted: locally modified files would be overwritten |
| 90 | no such installed module (for `update`/`remove`) | | 90 | no such installed module (for `update`/`remove`) |
## EXAMPLES ## EXAMPLES
User: "Install the devlog module from acme/acme-devlog" User: "Install the devlog module from acme/acme-devlog"
→ Confirm, then run: → Confirm, then run:
`node …/scripts/bmad-module.mjs install acme/acme-devlog` `node …/scripts/bmad-module.mjs install acme/acme-devlog`
User: "Try installing examples/minimal/acme-md-lint first as a dry-run" User: "Try installing examples/minimal/acme-md-lint first as a dry-run"
→ Run with `--dry-run`, show the plan, then ask whether to proceed for real. → Run with `--dry-run`, show the plan, then ask whether to proceed for real.