clevotics-claude-bootstrap 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clevotics-claude-bootstrap",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Claude Code skill that splits one Project Plan.md into PRD, ARCHITECTURE, DESIGN, a phased PLAN and a CLAUDE.md",
5
5
  "bin": {
6
6
  "clevotics-claude-bootstrap": "bin/cli.js"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: project-bootstrap
3
- description: Turn a single project plan markdown file (e.g. "Project Plan.md") into a structured doc set - PRD.md, ARCHITECTURE.md, DESIGN.md, PLAN.md split into small numbered phases with exit criteria - and finish by writing a short CLAUDE.md that routes to them. Use when a repo has only a plan file and the user asks to bootstrap, split, structure or set up the project docs, or says "start this project from the plan".
3
+ description: Turn a single project plan markdown file (e.g. "Project Plan.md") into a structured doc set - PRD.md, ARCHITECTURE.md, DESIGN.md, PLAN.md split into small numbered phases with exit criteria - and finish by writing a short CLAUDE.md that routes to them. Also restructures an existing project that already has a CLAUDE.md, code or docs, without losing any of it. Use when the user asks to bootstrap, split, structure, restructure or set up the project docs, or says "start this project from the plan".
4
4
  ---
5
5
 
6
6
  # Project Bootstrap
@@ -37,6 +37,18 @@ Add an extra doc only when the source has a large self-contained topic (an exter
37
37
  6. **Move the source plan** into `docs/` unchanged (`git mv` if tracked)
38
38
  7. Report: files created, phase count, decisions you made on the user's behalf, open questions left
39
39
 
40
+ ## Existing project mode
41
+
42
+ Use this mode instead of steps 1 to 6 when the repo already has a `CLAUDE.md`, any of the target docs, or real code. The rule: restructure, never lose anything
43
+
44
+ 1. **Inventory first.** Read the existing `CLAUDE.md`, every `.md` under the root and `docs/`, the package / build files, and `git log --oneline -30`. Note what is already built
45
+ 2. **Show the mapping before writing.** Tell the user which existing section goes to which new doc, which files get created, and which get rewritten. Wait for a go-ahead, since this rewrites their instructions
46
+ 3. **Back up before rewriting.** Copy the current `CLAUDE.md` to `docs/CLAUDE.md.bak` (and any doc you will restructure, same pattern). The user deletes the backups once happy
47
+ 4. **Keep every rule.** Each rule, command and convention in the old `CLAUDE.md` either stays in the new `CLAUDE.md` or moves to the doc that owns it with a link back. Product and architecture explanations move out; hard rules, commands and routing stay
48
+ 5. **Keep existing docs that already fit.** If a doc already covers one bucket (e.g. an `API.md` that is the architecture), keep its name and route to it from `CLAUDE.md` instead of creating a duplicate
49
+ 6. **Plan from where the code is, not from zero.** Work already in the code and git history becomes DONE phases at the top of `PLAN.md`, each with a short Result line ("existing before bootstrap"). Remaining work from the plan or the old docs becomes TODO phases following the phase rules below
50
+ 7. **Verify nothing was dropped.** Before reporting, list each heading of the old `CLAUDE.md` and where its content now lives. Any heading without a home is a bug - fix it before reporting
51
+
40
52
  ## Phase rules (PLAN.md)
41
53
 
42
54
  A phase is the unit Claude finishes in one sitting, end to end