@zigrivers/scaffold 3.29.0 → 3.31.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 (86) hide show
  1. package/content/guides/AUTHORING.md +146 -0
  2. package/content/guides/cli/index.html +1855 -0
  3. package/content/guides/cli/index.md +206 -0
  4. package/content/guides/concepts/index.html +1970 -0
  5. package/content/guides/concepts/index.md +347 -0
  6. package/content/guides/dashboard/index.html +1913 -0
  7. package/content/guides/dashboard/index.md +264 -0
  8. package/content/guides/index.html +368 -15
  9. package/content/guides/install/.diagrams/diagram-0.svg +1 -0
  10. package/content/guides/install/.diagrams/manifest.json +3 -0
  11. package/content/guides/install/index.html +1653 -0
  12. package/content/guides/install/index.md +186 -0
  13. package/content/guides/knowledge/.diagrams/diagram-0.svg +1 -0
  14. package/content/guides/knowledge/.diagrams/manifest.json +3 -0
  15. package/content/guides/knowledge/index.html +1765 -0
  16. package/content/guides/knowledge/index.md +209 -0
  17. package/content/guides/knowledge-freshness/.diagrams/diagram-0.svg +1 -0
  18. package/content/guides/knowledge-freshness/.diagrams/manifest.json +3 -0
  19. package/content/guides/knowledge-freshness/index.html +2795 -0
  20. package/content/guides/knowledge-freshness/index.md +893 -0
  21. package/content/guides/mmr/index.html +407 -36
  22. package/content/guides/mmr/index.md +39 -16
  23. package/content/guides/multi-agent/.diagrams/diagram-0.svg +1 -0
  24. package/content/guides/multi-agent/.diagrams/manifest.json +3 -0
  25. package/content/guides/multi-agent/index.html +1715 -0
  26. package/content/guides/multi-agent/index.md +243 -0
  27. package/content/guides/observability/.diagrams/diagram-0.svg +1 -0
  28. package/content/guides/observability/.diagrams/diagram-1.svg +1 -0
  29. package/content/guides/observability/.diagrams/diagram-2.svg +1 -0
  30. package/content/guides/observability/.diagrams/diagram-3.svg +1 -0
  31. package/content/guides/observability/.diagrams/manifest.json +6 -0
  32. package/content/guides/observability/index.html +3257 -0
  33. package/content/guides/observability/index.md +1097 -0
  34. package/content/guides/pipeline/.diagrams/diagram-0.svg +1 -0
  35. package/content/guides/pipeline/.diagrams/diagram-1.svg +1 -0
  36. package/content/guides/pipeline/.diagrams/manifest.json +4 -0
  37. package/content/guides/pipeline/index.html +1973 -0
  38. package/content/guides/pipeline/index.md +387 -0
  39. package/content/guides/review-workflow/.diagrams/diagram-0.svg +1 -0
  40. package/content/guides/review-workflow/.diagrams/diagram-1.svg +1 -0
  41. package/content/guides/review-workflow/.diagrams/manifest.json +4 -0
  42. package/content/guides/review-workflow/index.html +1790 -0
  43. package/content/guides/review-workflow/index.md +248 -0
  44. package/dist/guides/build.d.ts +1 -1
  45. package/dist/guides/build.d.ts.map +1 -1
  46. package/dist/guides/build.js +21 -9
  47. package/dist/guides/build.js.map +1 -1
  48. package/dist/guides/build.test.js +47 -0
  49. package/dist/guides/build.test.js.map +1 -1
  50. package/dist/guides/chrome.d.ts.map +1 -1
  51. package/dist/guides/chrome.js +83 -12
  52. package/dist/guides/chrome.js.map +1 -1
  53. package/dist/guides/dashboard-theme.css +8 -0
  54. package/dist/guides/directives-cite.test.d.ts +2 -0
  55. package/dist/guides/directives-cite.test.d.ts.map +1 -0
  56. package/dist/guides/directives-cite.test.js +26 -0
  57. package/dist/guides/directives-cite.test.js.map +1 -0
  58. package/dist/guides/directives-tabs.test.js +47 -0
  59. package/dist/guides/directives-tabs.test.js.map +1 -1
  60. package/dist/guides/directives.d.ts +1 -0
  61. package/dist/guides/directives.d.ts.map +1 -1
  62. package/dist/guides/directives.js +38 -0
  63. package/dist/guides/directives.js.map +1 -1
  64. package/dist/guides/guides.css +268 -0
  65. package/dist/guides/index-page.d.ts.map +1 -1
  66. package/dist/guides/index-page.js +41 -8
  67. package/dist/guides/index-page.js.map +1 -1
  68. package/dist/guides/links.d.ts +14 -0
  69. package/dist/guides/links.d.ts.map +1 -0
  70. package/dist/guides/links.js +56 -0
  71. package/dist/guides/links.js.map +1 -0
  72. package/dist/guides/links.test.d.ts +2 -0
  73. package/dist/guides/links.test.d.ts.map +1 -0
  74. package/dist/guides/links.test.js +72 -0
  75. package/dist/guides/links.test.js.map +1 -0
  76. package/dist/guides/render.d.ts +1 -0
  77. package/dist/guides/render.d.ts.map +1 -1
  78. package/dist/guides/render.js +1 -1
  79. package/dist/guides/render.js.map +1 -1
  80. package/dist/guides/sanitize.d.ts.map +1 -1
  81. package/dist/guides/sanitize.js +5 -0
  82. package/dist/guides/sanitize.js.map +1 -1
  83. package/dist/guides/template.d.ts.map +1 -1
  84. package/dist/guides/template.js +7 -2
  85. package/dist/guides/template.js.map +1 -1
  86. package/package.json +2 -2
@@ -0,0 +1,206 @@
1
+ ---
2
+ title: Scaffold CLI Reference
3
+ topic: cli
4
+ description: Every scaffold command grouped by purpose — setup, navigation, observability, knowledge, validation, version
5
+ category: reference
6
+ order: 20
7
+ ---
8
+
9
+ ## Overview
10
+
11
+ This is a terse index of the whole `scaffold` command surface. It tells you
12
+ *which* command does *what* and points to the deep guides where a subsystem
13
+ earns its own page. For the full mental model of a subsystem, follow the links:
14
+
15
+ - **Pipeline navigation** (`next`, `run`, `complete`, `rework`, `skip`,
16
+ `reset`, `check`) is the day-to-day loop — see the [Pipeline guide](../pipeline/index.md).
17
+ - **Observability** (`observe event|progress|harvest|audit|ack`) is its own
18
+ large surface — see the [Build Observability guide](../observability/index.md).
19
+
20
+ Commands are registered on a single yargs root
21
+ (:cite[src/cli/index.ts:30]) and every command accepts the global options
22
+ `--format json`, `--auto`, `--verbose`, `--root <dir>`, and `--force`
23
+ (:cite[src/cli/index.ts:59]).
24
+
25
+ ## All commands at a glance
26
+
27
+ :::filter-table
28
+ | Command | Group | What it does |
29
+ | --- | --- | --- |
30
+ | `scaffold init` | Setup & adoption | Initialize scaffold for this project |
31
+ | `scaffold adopt` | Setup & adoption | Adopt an existing project into scaffold |
32
+ | `scaffold next` | Pipeline navigation | Show next eligible step(s) |
33
+ | `scaffold run <step>` | Pipeline navigation | Run a pipeline step (assemble + emit the prompt) |
34
+ | `scaffold complete <step>` | Pipeline navigation | Mark a step done (for steps run outside `scaffold run`) |
35
+ | `scaffold rework` | Pipeline navigation | Re-run steps by phase for depth/cleanup |
36
+ | `scaffold skip <step..>` | Pipeline navigation | Skip one or more steps |
37
+ | `scaffold reset [step]` | Pipeline navigation | Reset a step (or the whole pipeline) to pending |
38
+ | `scaffold check <step>` | Pipeline navigation | Check whether a conditional step applies here |
39
+ | `scaffold status` | Status & dashboard | Show pipeline progress and step statuses |
40
+ | `scaffold info [step]` | Status & dashboard | Show project info, or detail on one step |
41
+ | `scaffold list` | Status & dashboard | List methodologies, platform adapters, and tools |
42
+ | `scaffold decisions` | Status & dashboard | Show recorded decisions |
43
+ | `scaffold dashboard` | Status & dashboard | Open the visual pipeline dashboard in a browser |
44
+ | `scaffold observe event <type>` | Observability | Write a ledger event |
45
+ | `scaffold observe progress` | Observability | Show the build-progress snapshot (with `--replay`) |
46
+ | `scaffold observe audit` | Observability | Run the audit lenses and report findings |
47
+ | `scaffold observe ack <prefix-or-id>` | Observability | Acknowledge or reopen a finding by ID prefix |
48
+ | `scaffold observe harvest` | Observability | Flush a worktree ledger to the primary archive |
49
+ | `scaffold knowledge <subcommand>` | Knowledge | Manage knowledge entries (list|show|update|reset) |
50
+ | `scaffold knowledge-freshness <command>` | Knowledge | Run knowledge-base freshness audits |
51
+ | `scaffold validate` | Validation | Validate meta-prompts and config |
52
+ | `scaffold validate-knowledge` | Validation | Validate frontmatter on all knowledge entries |
53
+ | `scaffold version` | Version & update | Show version and check for updates |
54
+ | `scaffold update` | Version & update | Check for and display CLI updates |
55
+ | `scaffold build` | Platform & skills | Generate platform adapter output files |
56
+ | `scaffold skill <action>` | Platform & skills | Manage scaffold skills for Claude Code / shared agents |
57
+ | `scaffold guides [topic]` | Platform & skills | Open, list, or build the reference guides |
58
+ :::
59
+
60
+ ## Setup & adoption
61
+
62
+ Two entry points: `init` for a fresh project, `adopt` for an existing codebase.
63
+
64
+ - **`scaffold init`** (:cite[src/cli/commands/init.ts:151]) — scaffold a new
65
+ project: writes `.scaffold/` state and config. `--force` backs up and
66
+ reinitializes if `.scaffold/` already exists.
67
+ - **`scaffold adopt`** (:cite[src/cli/commands/adopt.ts:168]) — bring an
68
+ existing project under scaffold. `--dry-run` previews without writing.
69
+
70
+ ```bash
71
+ scaffold init
72
+ scaffold adopt --dry-run # preview what adoption would write
73
+ ```
74
+
75
+ ## Pipeline navigation
76
+
77
+ The core loop. `next` tells you what's eligible, `run` emits the assembled
78
+ prompt, `complete` records work done outside the CLI, and `rework`/`skip`/`reset`
79
+ adjust state. See the [Pipeline guide](../pipeline/index.md) for phase ordering
80
+ and dependencies.
81
+
82
+ - **`scaffold next`** (:cite[src/cli/commands/next.ts:28]) — show the next
83
+ eligible step(s) given current state and dependencies.
84
+ - **`scaffold run <step>`** (:cite[src/cli/commands/run.ts:45]) — assemble and
85
+ emit a pipeline step's prompt. `--depth`, `--instructions`, and `--service`
86
+ refine the run.
87
+ - **`scaffold complete <step>`** (:cite[src/cli/commands/complete.ts:28]) — mark
88
+ a step completed for work executed outside `scaffold run` (this is the hook
89
+ that fires phase-boundary audits — see the
90
+ [Observability guide](../observability/index.md)).
91
+ - **`scaffold rework`** (:cite[src/cli/commands/rework.ts:39]) — re-run steps by
92
+ phase for depth improvement or cleanup. `--phases`, `--through N`, `--exclude`.
93
+ - **`scaffold skip <step..>`** (:cite[src/cli/commands/skip.ts:35]) — skip one
94
+ or more steps; `--reason` records why.
95
+ - **`scaffold reset [step]`** (:cite[src/cli/commands/reset.ts:32]) — reset one
96
+ step, or the whole pipeline (guarded by `--confirm-reset`).
97
+ - **`scaffold check <step>`** (:cite[src/cli/commands/check.ts:115]) — report
98
+ whether a conditional step applies to this project type.
99
+
100
+ ```bash
101
+ scaffold next # what can I run now?
102
+ scaffold run user-stories # emit the prompt for a step
103
+ scaffold rework --through 3 # re-run phases 1 through 3
104
+ ```
105
+
106
+ ## Status & dashboard
107
+
108
+ Read-only views of project and pipeline state.
109
+
110
+ - **`scaffold status`** (:cite[src/cli/commands/status.ts:80]) — pipeline
111
+ progress and per-step status.
112
+ - **`scaffold info [step]`** (:cite[src/cli/commands/info.ts:26]) — project
113
+ summary, or detail on a single step.
114
+ - **`scaffold list`** (:cite[src/cli/commands/list.ts:74]) — available
115
+ methodologies, platform adapters, and tools.
116
+ - **`scaffold decisions`** (:cite[src/cli/commands/decisions.ts:23]) — recorded
117
+ decisions for the project.
118
+ - **`scaffold dashboard`** (:cite[src/cli/commands/dashboard.ts:77]) — generate
119
+ and open the visual pipeline dashboard.
120
+
121
+ ## Observability — `scaffold observe …`
122
+
123
+ `observe` is the build-observability surface: a durable event ledger, a fused
124
+ progress timeline, a multi-lens audit, and worktree-ledger harvesting. It
125
+ demands a subcommand (:cite[src/cli/commands/observe.ts:398]). This guide only
126
+ lists the verbs — the [Build Observability guide](../observability/index.md)
127
+ documents the event schemas, the nine audit lenses, verdicts, stall signals,
128
+ and config.
129
+
130
+ :::filter-table
131
+ | Subcommand | What it does |
132
+ | --- | --- |
133
+ | `observe event <type> --branch <branch> [--task-id <id>] [payload flags]` | Write one ledger event (`task_claimed`, `decision_recorded`, `blocker_hit`, …); `--branch` is required |
134
+ | `observe progress` | Snapshot of in-flight/completed work; `--replay` fuses git/gh/mmr/state/tests |
135
+ | `observe audit` | Run the audit lenses; exits `1` when blocked |
136
+ | `observe ack <prefix-or-id>` | Acknowledge or reopen a finding by ID prefix |
137
+ | `observe harvest` | Flush a worktree ledger to the primary archive; `--recover` sweeps stale ones |
138
+ :::
139
+
140
+ ```bash
141
+ scaffold observe progress --replay
142
+ scaffold observe audit --scope docs --profile full
143
+ scaffold observe ack 3a8c1f02 --status acknowledged --note "tracked in #412"
144
+ scaffold observe harvest --worktree ../wt-alice
145
+ ```
146
+
147
+ ## Knowledge
148
+
149
+ Two distinct command trees: `knowledge` manages the entries themselves;
150
+ `knowledge-freshness` audits them for staleness.
151
+
152
+ - **`scaffold knowledge <subcommand>`** (:cite[src/cli/commands/knowledge.ts:417])
153
+ — `list`, `show <name>`, `update <target> [instructions..]`, `reset <name>`
154
+ for global entries and local overrides.
155
+ - **`scaffold knowledge-freshness <command>`**
156
+ (:cite[src/cli/commands/knowledge-freshness.ts:12]) — the freshness-audit
157
+ family: `audit-prefilter`, `audit-run-entry`, `audit-apply`, `link-check`,
158
+ `lint-unsourced`, `anti-over-rewrite`, `deep-guidance-check`, `bump-version`.
159
+
160
+ ```bash
161
+ scaffold knowledge list
162
+ scaffold knowledge show react-state-management
163
+ ```
164
+
165
+ ## Validation
166
+
167
+ - **`scaffold validate`** (:cite[src/cli/commands/validate.ts:19]) — validate
168
+ meta-prompt frontmatter and config (the `make validate` gate).
169
+ - **`scaffold validate-knowledge`** (:cite[src/cli/commands/validate-knowledge.ts:20])
170
+ — validate frontmatter on all knowledge entries (volatility, last-reviewed,
171
+ sources, version-pin).
172
+
173
+ ## Version & update
174
+
175
+ - **`scaffold version`** (:cite[src/cli/commands/version.ts:78]) — show the
176
+ installed version and check for a newer one.
177
+ - **`scaffold update`** (:cite[src/cli/commands/update.ts:93]) — check for and
178
+ display available CLI updates.
179
+
180
+ ## Platform & skills
181
+
182
+ - **`scaffold build`** (:cite[src/cli/commands/build.ts:40]) — generate the
183
+ platform adapter output files from pipeline content.
184
+ - **`scaffold skill <action>`** (:cite[src/cli/commands/skill.ts:31]) — manage
185
+ scaffold skills for Claude Code and shared agents.
186
+ - **`scaffold guides [topic]`** (:cite[src/cli/commands/guides.ts:57]) — open,
187
+ list, or build the reference guides. `--list --format json` for discovery,
188
+ `--markdown` / `--print-path` for agents, `--build` to regenerate the HTML.
189
+
190
+ ```bash
191
+ scaffold guides --list --format json # discover guides (agents)
192
+ scaffold guides cli --markdown # read this guide's source
193
+ scaffold guides --build # regenerate index.html (maintainer/CI)
194
+ ```
195
+
196
+ :::callout{type=note}
197
+ **Agents read markdown, never HTML.** Use `scaffold guides <topic> --markdown`
198
+ or read the bundled `content/guides/<topic>/index.md` directly. The generated
199
+ `index.html` is for humans.
200
+ :::
201
+
202
+ ## See also
203
+
204
+ - [Pipeline guide](../pipeline/index.md) — phase ordering and the navigation loop.
205
+ - [Build Observability guide](../observability/index.md) — the full `observe`
206
+ subsystem.