@codewizard-dt/bootstrap 6.0.0 → 6.1.0

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.
Files changed (44) hide show
  1. package/LICENSE.md +105 -0
  2. package/README.md +12 -0
  3. package/lib/scripts/README.md +4 -3
  4. package/lib/scripts/bootstrap-prefs.js +25 -2
  5. package/lib/scripts/git-prefs.js +123 -0
  6. package/lib/scripts/install-global.sh +3 -0
  7. package/lib/scripts/merge-gitignore.sh +11 -5
  8. package/lib/scripts/migrate-project.sh +1 -1
  9. package/lib/scripts/rename-wiki-ids.js +2 -2
  10. package/lib/scripts/sync-wiki-scaffold.sh +5 -11
  11. package/lib/scripts/templates/CLAUDE-wiki.md +1 -1
  12. package/lib/scripts/templates/bootstrap-prefs-schema.json +1 -1
  13. package/lib/scripts/templates/guides/stubs/serena.md +4 -1
  14. package/lib/scripts/templates/settings-deny.json +1 -1
  15. package/lib/scripts/templates/wiki/conventions.md +1 -1
  16. package/lib/scripts/templates/wiki/work/tasks/lifecycle.md +1 -1
  17. package/lib/skills/README.md +2 -1
  18. package/lib/skills/_shared/ARCHIVE-WORK-ITEM.md +2 -2
  19. package/lib/skills/_shared/ID-RESOLUTION.md +2 -2
  20. package/lib/skills/_shared/LOG-APPEND.md +34 -0
  21. package/lib/skills/_shared/SKILL-BOILERPLATE.md +1 -1
  22. package/lib/skills/adr-create/SKILL.md +2 -2
  23. package/lib/skills/adr-deprecate/SKILL.md +1 -1
  24. package/lib/skills/adr-extract/SKILL.md +1 -1
  25. package/lib/skills/adr-finalize/SKILL.md +2 -1
  26. package/lib/skills/autopilot/SKILL.md +1 -1
  27. package/lib/skills/bug-assess/SKILL.md +1 -1
  28. package/lib/skills/bug-triage/SKILL.md +1 -1
  29. package/lib/skills/git-commit/SKILL.md +18 -27
  30. package/lib/skills/prd-create/SKILL.md +2 -2
  31. package/lib/skills/prd-deprecate/SKILL.md +1 -1
  32. package/lib/skills/prd-finalize/SKILL.md +1 -1
  33. package/lib/skills/socratic-qa/SKILL.md +163 -0
  34. package/lib/skills/task-create/SKILL.md +1 -1
  35. package/lib/skills/uat-create/SKILL.md +1 -1
  36. package/lib/skills/uat-skip/SKILL.md +19 -29
  37. package/lib/skills/uat-walk/UAT-CORE.md +1 -1
  38. package/lib/skills/wiki-archive/SKILL.md +1 -1
  39. package/lib/skills/wiki-ingest/SKILL.md +1 -1
  40. package/lib/skills/wiki-lint/SKILL.md +1 -1
  41. package/lib/skills/wiki-query/SKILL.md +1 -1
  42. package/lib/skills/wiki-rotate-log/SKILL.md +14 -24
  43. package/lib/skills/wiki-tidy/SKILL.md +5 -12
  44. package/package.json +3 -3
@@ -1,13 +1,15 @@
1
1
  ---
2
2
  name: wiki-rotate-log
3
- description: Rotate wiki/log.md into a timestamped archive file when it grows past ~500 lines; create a fresh log.md with an archive-pointer header
3
+ description: Rotate wiki/log.md into a timestamped archive file when it grows past 200 lines; create a fresh log.md with an archive-pointer header. Forced, not a nudge — no confirmation is asked.
4
4
  category: wiki
5
5
  model: claude-sonnet-5
6
6
  ---
7
7
 
8
8
  # Wiki Rotate Log
9
9
 
10
- Rotate `wiki/log.md` into a timestamped archive file (`log-YYYY_MM_DD_HHMMSS.md`) when it exceeds ~500 lines. Create a fresh `log.md` with an archive-pointer header. **Never truncate** — all content moves to the timestamped file.
10
+ Rotate `wiki/log.md` into a timestamped archive file (`log-YYYY_MM_DD_HHMMSS.md`) when it reaches **200 lines**. Create a fresh `log.md` with an archive-pointer header. **Never truncate** — all content moves to the timestamped file.
11
+
12
+ **This is forced, not advisory.** At or above the threshold, rotation happens — it is never a question put to the user ("rotate now?", "proceed anyway?"). This is also the canonical rotation mechanic other skills defer to (`lib/skills/_shared/LOG-APPEND.md` runs Steps 2 and 4 below as part of every log append, unconditionally, whenever any skill's append would otherwise push the file over threshold) — do not duplicate these steps elsewhere; point at this file instead.
11
13
 
12
14
  The timestamp (to the second) makes every archive filename unique by construction, so repeated rotations never collide — no half-year or sequence-suffix logic needed.
13
15
 
@@ -17,8 +19,8 @@ The timestamp (to the second) makes every archive filename unique by constructio
17
19
 
18
20
  Read `wiki/log.md`. Count the total number of lines.
19
21
 
20
- - If line count is **under 500**: report the count and warn the user: "The log has N lines — rotation is recommended at ~500. Proceed anyway? (yes / no)"
21
- - If line count is **500 or more**: proceed directly.
22
+ - If line count is **under 200**: report the count ("Log has N lines — under the 200-line rotation threshold, nothing to do.") and stop. No question is asked.
23
+ - If line count is **200 or more**: proceed directly to Step 2 — forced, no confirmation.
22
24
 
23
25
  ## Step 2: Determine the archive filename
24
26
 
@@ -26,24 +28,9 @@ Generate a timestamp to the second using Bash: `date +%Y_%m_%d_%H%M%S`.
26
28
 
27
29
  The archive filename is `log-<timestamp>.md` — e.g. `log-2026_06_14_153012.md`. Because the timestamp is unique to the second, no collision check or suffix logic is needed.
28
30
 
29
- ## Step 3: Confirm with the user
30
-
31
- Show the plan:
32
- ```
33
- Log rotation plan:
34
- Current: wiki/log.md (N lines)
35
- Archive: wiki/log-2026_06_14_153012.md
36
- New log: wiki/log.md (empty, with archive pointer)
37
-
38
- The existing log.md will be renamed — no content is deleted.
39
- Proceed? (yes / no)
40
- ```
41
-
42
- Wait for confirmation.
31
+ ## Step 3: Rotate (forced — no confirmation)
43
32
 
44
- ## Step 4: Rotate
45
-
46
- 1. **Rename** `wiki/log.md` → `wiki/log-<timestamp>.md` using Bash `mv`.
33
+ 1. **Rename** `wiki/log.md` → `wiki/log-<timestamp>.md` using Bash `git mv` (plain `mv` only when the project is not a git repo).
47
34
  2. **Check** for any existing archive pointers in the old log (lines starting with `> Archives:`). If present, carry them forward into the new log.
48
35
  3. **Create** a new `wiki/log.md` with:
49
36
 
@@ -66,25 +53,28 @@ Operations: `scaffold`, `ingest`, `query`, `lint`, `decision`, `task`, `bug`, `r
66
53
  ---
67
54
 
68
55
  ## [YYYY-MM-DD] rotate | log.md rotated — N lines archived to log-<timestamp>.md
69
- Previous log archived to log-<timestamp>.md. Fresh log started.
56
+ Previous log archived to log-<timestamp>.md (forced rotation at the 200-line threshold). Fresh log started.
70
57
  ```
71
58
 
72
59
  Replace `<timestamp>` with the actual timestamp and `N` with the entry count. The `[YYYY-MM-DD]` date prefix on the rotation entry stays date-only (matching all other log entries) — only the archive filename carries the full timestamp. If there were prior archive pointers, add them to the `> Archives:` line separated by ` · `.
73
60
 
74
- ## Step 5: Report
61
+ ## Step 4: Report
75
62
 
76
63
  Confirm rotation is complete:
77
64
  ```
78
- Done. wiki/log.md rotated:
65
+ Done. wiki/log.md rotated (forced, 200-line threshold reached):
79
66
  - N lines moved to wiki/log-2026_06_14_153012.md
80
67
  - New wiki/log.md created with archive pointer
81
68
  ```
82
69
 
70
+ When invoked by `lib/skills/_shared/LOG-APPEND.md` as part of another skill's append, this report is folded into that skill's own summary rather than shown standalone — say in one line that a forced rotation occurred, then continue with the caller's own report.
71
+
83
72
  ---
84
73
 
85
74
  ## CRITICAL rules
86
75
 
87
76
  - **Never delete** any log content — rotation is renaming + creating a new file.
88
77
  - **Never edit** the archived file after renaming.
78
+ - **Never ask for confirmation** at or above the threshold. Rotation is forced; the only non-rotating outcome is being under threshold, which needs no question either.
89
79
  - The `> Archives:` header line in the new `log.md` must link to ALL prior archive files, not just the most recent one.
90
80
  - The first entry in the new `log.md` must be the rotation event itself.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: wiki-tidy
3
- description: One-shot wiki cleanup — runs lint, archives terminal tasks/UAT/bugs, and rotates the log if overgrown, in sequence with user confirmation at each phase
3
+ description: One-shot wiki cleanup — runs lint and archive sweeps with user confirmation, then force-rotates the log if overgrown (no confirmation on rotation itself)
4
4
  category: wiki
5
5
  model: claude-sonnet-5
6
6
  user-invocable: true
@@ -8,7 +8,7 @@ user-invocable: true
8
8
 
9
9
  # Wiki Tidy
10
10
 
11
- Three-phase cleanup for a neglected wiki. Runs in order: **lint → archive → rotate-log**. Each phase summarises its findings and asks for confirmation before making changes. You can stop after any phase.
11
+ Three-phase cleanup for a neglected wiki. Runs in order: **lint → archive → rotate-log**. Phases 1 and 2 summarise their findings and ask for confirmation before making changes; you can stop after either. **Phase 3 is forced** — log rotation at threshold is never a question, so it always runs to completion once reached (unless the skill was already stopped in an earlier phase).
12
12
 
13
13
  ---
14
14
 
@@ -72,14 +72,7 @@ If the user types `stop`, end the skill here. Otherwise continue to Phase 3.
72
72
 
73
73
  ## Phase 3: Rotate log
74
74
 
75
- Run `/wiki-rotate-log`:
76
-
77
- 1. Read `wiki/log.md` and count the total number of lines.
78
- 2. If under 500: report the count and ask **"Log has N lines (threshold: 500). Rotate anyway? (yes / no / stop)"**. If `no`, skip this phase; if `stop`, end the skill.
79
- 3. If 500 or more: proceed directly.
80
- 4. Determine the archive filename: generate a timestamp with `date +%Y_%m_%d_%H%M%S` and use `log-<timestamp>.md` (unique to the second — no collision handling needed).
81
- 5. Show the rotation plan and ask **"Proceed with rotation? (yes / no)"**.
82
- 6. On confirmation: rename `wiki/log.md` → `wiki/log-<timestamp>.md`, create a fresh `wiki/log.md` with an archive-pointer header and a `rotate` entry as its first log line.
75
+ Run `/wiki-rotate-log` exactly as written — **forced, no confirmation asked**. It checks `wiki/log.md`'s line count itself: at or above 200 lines it rotates unconditionally (no "rotate anyway?" question, this phase is not a nudge); under 200 it reports the count and does nothing. Do not restate its steps here.
83
76
 
84
77
  ---
85
78
 
@@ -100,5 +93,5 @@ Wiki tidy complete.
100
93
 
101
94
  - Follow each sub-skill's CRITICAL rules exactly — they take precedence over brevity.
102
95
  - Never move an active item. Never move a roadmap, decision or requirement (they close in place). Never edit archived file content (tasks/UAT/bugs). Never delete anything.
103
- - Always confirm with the user before applying changes in each phase.
104
- - `stop` at any phase prompt ends the skill immediately without proceeding further.
96
+ - Always confirm with the user before applying changes in Phases 1 and 2. Phase 3 (log rotation) is forced at threshold — no confirmation is asked there, by design.
97
+ - `stop` at a Phase 1 or 2 prompt ends the skill immediately without proceeding further.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codewizard-dt/bootstrap",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Bootstrap Claude Code projects with an LLM Wiki, reusable skills, hooks, and MCP setup",
5
5
  "homepage": "https://github.com/codewizard-dt/bootstrap-wiki#readme",
6
6
  "bugs": {
@@ -10,8 +10,8 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/codewizard-dt/bootstrap-wiki.git"
12
12
  },
13
- "license": "ISC",
14
- "author": "",
13
+ "license": "SEE LICENSE IN LICENSE.md",
14
+ "author": "David Taylor",
15
15
  "type": "commonjs",
16
16
  "bin": {
17
17
  "bootstrap": "bin/cli.js"