godpowers 2.4.2 → 2.5.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.
- package/CHANGELOG.md +50 -0
- package/README.md +22 -6
- package/RELEASE.md +29 -35
- package/SKILL.md +5 -0
- package/agents/god-orchestrator.md +31 -1255
- package/bin/install.js +16 -107
- package/fixtures/gate/build-pass/.godpowers/build/STATE.md +10 -0
- package/fixtures/gate/harden-pass/.godpowers/harden/FINDINGS.md +14 -0
- package/fixtures/gate/repo-pass/.godpowers/repo/AUDIT.md +9 -0
- package/lib/artifact-map.js +60 -0
- package/lib/cli-dispatch.js +162 -0
- package/lib/command-families.js +10 -2
- package/lib/dashboard.js +3 -2
- package/lib/gate.js +271 -0
- package/lib/installer-args.js +11 -1
- package/lib/route-quality-sync.js +38 -0
- package/package.json +3 -2
- package/references/orchestration/GOD-MODE-RUNBOOK.md +19 -0
- package/references/orchestration/GOD-NEXT-RUNBOOK.md +32 -0
- package/references/orchestration/GOD-ORCHESTRATOR-RUNBOOK.md +1259 -0
- package/references/orchestration/README.md +6 -0
- package/references/shared/DASHBOARD-CONTRACT.md +93 -0
- package/references/shared/LOCKING.md +15 -0
- package/references/shared/README.md +2 -0
- package/routing/god-arch.yaml +1 -0
- package/routing/god-build.yaml +1 -0
- package/routing/god-design.yaml +1 -0
- package/routing/god-harden.yaml +1 -0
- package/routing/god-prd.yaml +1 -0
- package/routing/god-repo.yaml +1 -0
- package/routing/god-roadmap-check.yaml +1 -1
- package/routing/god-roadmap.yaml +1 -0
- package/routing/god-stack.yaml +1 -0
- package/skills/god-arch.md +3 -13
- package/skills/god-build.md +5 -14
- package/skills/god-deploy.md +1 -12
- package/skills/god-design.md +9 -12
- package/skills/god-feature.md +1 -12
- package/skills/god-harden.md +3 -13
- package/skills/god-hotfix.md +1 -12
- package/skills/god-launch.md +1 -12
- package/skills/god-link.md +1 -12
- package/skills/god-migrate.md +1 -3
- package/skills/god-mode.md +4 -0
- package/skills/god-next.md +34 -410
- package/skills/god-observe.md +1 -12
- package/skills/god-prd.md +3 -13
- package/skills/god-redo.md +1 -12
- package/skills/god-refactor.md +1 -12
- package/skills/god-repair.md +1 -12
- package/skills/god-repo.md +3 -13
- package/skills/god-restore.md +1 -12
- package/skills/god-roadmap-check.md +5 -0
- package/skills/god-roadmap.md +3 -13
- package/skills/god-rollback.md +1 -12
- package/skills/god-scan.md +1 -12
- package/skills/god-skip.md +1 -12
- package/skills/god-stack.md +3 -13
- package/skills/god-status.md +27 -204
- package/skills/god-story-build.md +1 -12
- package/skills/god-story-close.md +1 -12
- package/skills/god-story.md +1 -12
- package/skills/god-sync.md +1 -12
- package/skills/god-undo.md +1 -12
- package/skills/god-update-deps.md +1 -12
- package/skills/god-upgrade.md +1 -12
package/skills/god-next.md
CHANGED
|
@@ -12,429 +12,53 @@ description: |
|
|
|
12
12
|
|
|
13
13
|
# /god-next
|
|
14
14
|
|
|
15
|
-
The unified decision engine.
|
|
16
|
-
routing definitions, and user intent.
|
|
15
|
+
The unified decision engine. Route between commands based on disk state,
|
|
16
|
+
routing definitions, recipes, command families, and user intent.
|
|
17
17
|
|
|
18
18
|
## Runtime module resolution
|
|
19
19
|
|
|
20
|
-
Before reading routing data or calling runtime modules, resolve the Godpowers runtime root:
|
|
21
|
-
|
|
22
20
|
1. If `<projectRoot>/lib/router.js` exists, use the repository checkout runtime at `<projectRoot>`.
|
|
23
|
-
2. Otherwise use the installed bundle at `<tool-config-dir>/godpowers-runtime
|
|
21
|
+
2. Otherwise use the installed bundle at `<tool-config-dir>/godpowers-runtime`.
|
|
24
22
|
3. Read routing definitions from `<runtimeRoot>/routing/*.yaml` and recipes from `<runtimeRoot>/routing/recipes/*.yaml`.
|
|
25
|
-
4. Load `<runtimeRoot>/lib/command-families.js`
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
`dashboard.compute(projectRoot)`. Use `dashboard.render(result)` for the
|
|
29
|
-
shared dashboard section before adding route-specific detail.
|
|
30
|
-
6. If the checkout runtime and installed runtime differ, say which runtime root
|
|
31
|
-
was used. Only call the output a manual disk scan when `lib/dashboard.js`
|
|
32
|
-
cannot be loaded at all.
|
|
33
|
-
|
|
34
|
-
## Three modes of invocation
|
|
35
|
-
|
|
36
|
-
### Mode 1: After a command (post-completion routing)
|
|
37
|
-
The completing skill calls /god-next to determine what's next.
|
|
38
|
-
Reads `<runtimeRoot>/routing/<just-completed>.yaml`, gets `success-path.next-recommended`,
|
|
39
|
-
suggests it.
|
|
40
|
-
|
|
41
|
-
### Mode 2: Before a command (pre-flight)
|
|
42
|
-
User wants to run /god-X. /god-next checks prerequisites first.
|
|
43
|
-
Reads `<runtimeRoot>/routing/<X>.yaml`, evaluates prerequisites, proposes auto-completion
|
|
44
|
-
if any are missing.
|
|
45
|
-
|
|
46
|
-
### Mode 3: Standalone (state-driven)
|
|
47
|
-
User just ran /god-next. Auto-detects current project phase and suggests
|
|
48
|
-
the next logical command.
|
|
49
|
-
|
|
50
|
-
Before suggesting, read `.godpowers/prep/INITIAL-FINDINGS.md` and
|
|
51
|
-
`.godpowers/prep/IMPORTED-CONTEXT.md` if present. Use them to explain why the
|
|
52
|
-
next step is safe or why a migration-aware step such as `/god-prd`,
|
|
53
|
-
`/god-map-codebase`, or `/god-mode` is better. Prep artifacts are context only;
|
|
54
|
-
state.json and completed Godpowers artifacts remain authoritative.
|
|
55
|
-
|
|
56
|
-
If PRD is complete, DESIGN is missing, and initial findings, imported context,
|
|
57
|
-
the PRD, or the codebase show UI or product-experience signals, suggest
|
|
58
|
-
`/god-design` before `/god-arch`. DESIGN.md is early preparation for visible
|
|
59
|
-
workflows, not a replacement for architecture.
|
|
60
|
-
|
|
61
|
-
## Process for Mode 1 (post-completion)
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
A skill completes (e.g., /god-prd just finished)
|
|
65
|
-
|
|
|
66
|
-
v
|
|
67
|
-
Skill calls: /god-next --after=/god-prd
|
|
68
|
-
|
|
|
69
|
-
v
|
|
70
|
-
Read <runtimeRoot>/routing/god-prd.yaml
|
|
71
|
-
|
|
|
72
|
-
v
|
|
73
|
-
Get success-path.next-recommended (e.g., "/god-arch"), then apply any
|
|
74
|
-
conditional-next rule such as UI-detected -> "/god-design"
|
|
75
|
-
|
|
|
76
|
-
v
|
|
77
|
-
Read success-path.outcome when present. Use it to label contextual,
|
|
78
|
-
verdict-based, steady-state, session-end, and selection outcomes before
|
|
79
|
-
showing allowed next commands.
|
|
80
|
-
|
|
|
81
|
-
v
|
|
82
|
-
Display: "PRD complete: .godpowers/prd/PRD.md
|
|
83
|
-
Suggested next: /god-arch (design the architecture)"
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
If standards-check is configured at the gate:
|
|
87
|
-
```
|
|
88
|
-
|
|
|
89
|
-
v
|
|
90
|
-
Spawn god-standards-check on the produced artifact
|
|
91
|
-
|
|
|
92
|
-
v
|
|
93
|
-
If standards FAIL:
|
|
94
|
-
- Display failures with line refs and suggested fixes
|
|
95
|
-
- Suggest /god-redo with feedback OR /god-skip with reason
|
|
96
|
-
- Do NOT auto-progress
|
|
97
|
-
|
|
|
98
|
-
If standards PASS:
|
|
99
|
-
- Update state.json: tier.sub-step.status = done
|
|
100
|
-
- Display "Suggested next: /god-arch"
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
## Process for Mode 2 (pre-flight)
|
|
104
|
-
|
|
105
|
-
```
|
|
106
|
-
User types: /god-arch
|
|
107
|
-
|
|
|
108
|
-
v
|
|
109
|
-
The /god-arch skill calls: /god-next --before=/god-arch
|
|
110
|
-
|
|
|
111
|
-
v
|
|
112
|
-
Read <runtimeRoot>/routing/god-arch.yaml
|
|
113
|
-
|
|
|
114
|
-
v
|
|
115
|
-
For each prerequisite in prerequisites.required:
|
|
116
|
-
- Evaluate the check predicate
|
|
117
|
-
- If false: prerequisite is missing
|
|
118
|
-
|
|
|
119
|
-
v
|
|
120
|
-
If all prereqs satisfied: proceed with /god-arch
|
|
121
|
-
|
|
|
122
|
-
If some prereqs missing AND auto-completable:
|
|
123
|
-
- Display:
|
|
124
|
-
"/god-arch requires PRD to be complete (prereq missing).
|
|
125
|
-
The routing has auto-complete: /god-prd
|
|
126
|
-
Run /god-prd first? (yes/no)"
|
|
127
|
-
- If yes: invoke /god-prd, then return to /god-arch
|
|
128
|
-
- If no: abort or show what user needs to do manually
|
|
129
|
-
|
|
|
130
|
-
If prereqs missing and NOT auto-completable:
|
|
131
|
-
- Display what's needed
|
|
132
|
-
- Show how to fix manually
|
|
133
|
-
- Suggest /god-doctor for diagnosis
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
## Process for Mode 3 (standalone)
|
|
137
|
-
|
|
138
|
-
When the user asks a broad next-step question, use the family helpers before
|
|
139
|
-
falling back to raw route order:
|
|
140
|
-
|
|
141
|
-
- Capture intent routes through the capture ladder.
|
|
142
|
-
- Implementation intent routes through the work size ladder.
|
|
143
|
-
- Check or audit intent routes through the verification ladder.
|
|
144
|
-
- Duplicate trigger phrases use `resolveTrigger` so `continue`, `think through`,
|
|
145
|
-
`what happened`, `what's done`, and `where am i` pick the context-aware
|
|
146
|
-
command.
|
|
147
|
-
|
|
148
|
-
```
|
|
149
|
-
User types: /god-next
|
|
150
|
-
|
|
|
151
|
-
v
|
|
152
|
-
Read .godpowers/state.json (or PROGRESS.md as fallback)
|
|
153
|
-
|
|
|
154
|
-
v
|
|
155
|
-
Use <runtimeRoot>/lib/router.js suggestNext(projectRoot) <- structural next
|
|
156
|
-
|
|
|
157
|
-
v
|
|
158
|
-
For each tier in order:
|
|
159
|
-
- Find first non-done sub-step
|
|
160
|
-
- That's the suggested next command
|
|
161
|
-
- Before Tier 3, honor red gates such as unresolved safe sync
|
|
162
|
-
|
|
|
163
|
-
v
|
|
164
|
-
If all tiers done:
|
|
165
|
-
- Use <runtimeRoot>/lib/recipes.js suggestForState(projectRoot) <- scenario-aware
|
|
166
|
-
- Returns recipes matching current lifecycle phase
|
|
167
|
-
|
|
|
168
|
-
v
|
|
169
|
-
Display: "Suggested next: /god-arch
|
|
170
|
-
Why: PRD is complete; architecture is the next gate"
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
When the suggestion is based on state.json, also show the immediate route:
|
|
174
|
-
|
|
175
|
-
```
|
|
176
|
-
Path ahead:
|
|
177
|
-
1. Current: <tier>/<substep> - <status>
|
|
178
|
-
2. Next: /god-X - <why>
|
|
179
|
-
3. Then: /god-Y - <next gate, if known>
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
Keep the route to 3 lines unless the user asks for the full plan.
|
|
183
|
-
|
|
184
|
-
Also show planning visibility when the artifacts exist or are expected:
|
|
185
|
-
|
|
186
|
-
```
|
|
187
|
-
Planning visibility:
|
|
188
|
-
PRD: <done | pending | missing> <path when present>
|
|
189
|
-
Roadmap: <done | pending | missing> <path when present>
|
|
190
|
-
Current milestone: <roadmap milestone, tier, or next planning gate>
|
|
191
|
-
Completion: <pct>% <basis from state.json or PROGRESS.md>
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
## Proactive Sweep
|
|
195
|
-
|
|
196
|
-
Before returning a suggestion, run the proactive auto-invoke policy from the
|
|
197
|
-
master skill against disk state. This is read-only unless a Level 2 local helper
|
|
198
|
-
has a direct trigger.
|
|
199
|
-
|
|
200
|
-
Check these signals:
|
|
201
|
-
- `.godpowers/CHECKPOINT.md` missing, stale, or conflicting with `state.json`
|
|
202
|
-
- `.godpowers/REVIEW-REQUIRED.md` contains pending entries
|
|
203
|
-
- `.godpowers/SYNC-LOG.md` missing after code or artifact edits
|
|
204
|
-
- docs changed after code changed, or code changed after docs that claim
|
|
205
|
-
current behavior
|
|
206
|
-
- frontend-visible files changed and a known local, preview, staging, or
|
|
207
|
-
production URL is evidenced
|
|
208
|
-
- security-sensitive files changed
|
|
209
|
-
- dependency files changed
|
|
210
|
-
- full project run completed and hygiene has not run recently
|
|
211
|
-
|
|
212
|
-
Display the result:
|
|
213
|
-
|
|
214
|
-
```text
|
|
215
|
-
Proactive checks:
|
|
216
|
-
Checkpoint: <fresh | refreshed | stale, suggest /god-locate>
|
|
217
|
-
Reviews: <none | N pending, suggest /god-review-changes>
|
|
218
|
-
Sync: <fresh | suggest /god-sync | local linkage scan ran>
|
|
219
|
-
Docs: <fresh | suggest /god-docs | drift-check spawned>
|
|
220
|
-
Runtime: <not-applicable | suggest /god-test-runtime | browser test spawned>
|
|
221
|
-
Security: <clear | suggest /god-harden>
|
|
222
|
-
Dependencies: <clear | suggest /god-update-deps>
|
|
223
|
-
Hygiene: <fresh | suggest /god-hygiene>
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
Do not auto-run Level 3 agents from standalone `/god-next` unless the user
|
|
227
|
-
explicitly asked it to continue work. In standalone mode, Level 3 items become
|
|
228
|
-
the recommended command or a proposition option.
|
|
229
|
-
|
|
230
|
-
## Process for Mode 4 (intent-based)
|
|
231
|
-
|
|
232
|
-
```
|
|
233
|
-
User says: "I need to add a new feature mid-development"
|
|
234
|
-
|
|
|
235
|
-
v
|
|
236
|
-
/god-next consults <runtimeRoot>/lib/recipes.js matchIntent(text, projectRoot)
|
|
237
|
-
|
|
|
238
|
-
v
|
|
239
|
-
Returns ranked recipes matching:
|
|
240
|
-
- Intent keywords ("add new feature", "mid-development")
|
|
241
|
-
- State conditions (lifecycle-phase == in-arc)
|
|
242
|
-
|
|
|
243
|
-
v
|
|
244
|
-
Display top match with the recipe's sequence:
|
|
245
|
-
"Best match: add-feature-mid-arc-pause
|
|
246
|
-
Sequence:
|
|
247
|
-
1. /god-pause-work (Save current /god-mode project-run state)
|
|
248
|
-
2. /god-feature (Run feature workflow)
|
|
249
|
-
3. /god-resume-work (Restore project run)
|
|
250
|
-
|
|
251
|
-
Run this sequence? Or see other matches?"
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
This is the recipe-driven decision support: agents consult `<runtimeRoot>/routing/recipes/`
|
|
255
|
-
when user intent is fuzzy or doesn't map to a single command.
|
|
256
|
-
|
|
257
|
-
## Routing data
|
|
258
|
-
|
|
259
|
-
Routing definitions live in `<runtimeRoot>/routing/*.yaml`. Each command has a file:
|
|
260
|
-
- `<runtimeRoot>/routing/god-prd.yaml`
|
|
261
|
-
- `<runtimeRoot>/routing/god-arch.yaml`
|
|
262
|
-
- ...
|
|
263
|
-
|
|
264
|
-
These define prerequisites, execution, success-path, failure-path, and
|
|
265
|
-
endoff for each command.
|
|
266
|
-
|
|
267
|
-
The `<runtimeRoot>/lib/router.js` JS module provides programmatic queries:
|
|
268
|
-
- `getRouting(command)` - load a command's routing
|
|
269
|
-
- `checkPrerequisites(command, projectRoot)` - prereq check
|
|
270
|
-
- `getNextCommand(command)` - get success-path next
|
|
271
|
-
- `getStandards(command)` - get standards checks
|
|
272
|
-
- `suggestNext(projectRoot)` - state-driven suggestion
|
|
273
|
-
|
|
274
|
-
## Decision Tree
|
|
275
|
-
|
|
276
|
-
```
|
|
277
|
-
/god-next invoked
|
|
278
|
-
|
|
|
279
|
-
v
|
|
280
|
-
┌────── What flag? ──────┐
|
|
281
|
-
| |
|
|
282
|
-
v v
|
|
283
|
-
--before=X --after=X (no flag)
|
|
284
|
-
| | |
|
|
285
|
-
v v v
|
|
286
|
-
Check X's prereqs Get X's next Use suggestNext
|
|
287
|
-
| | |
|
|
288
|
-
v v |
|
|
289
|
-
Pass: proceed Standards check |
|
|
290
|
-
Fail+autocomp: on artifact |
|
|
291
|
-
offer to run | |
|
|
292
|
-
prereq cmd Pass: announce next |
|
|
293
|
-
Fail no autocomp: Fail: pause |
|
|
294
|
-
explain |
|
|
295
|
-
| | |
|
|
296
|
-
└──────────────┬───────────┴──────────────┘
|
|
297
|
-
v
|
|
298
|
-
Display suggestion + why
|
|
299
|
-
```
|
|
300
|
-
|
|
301
|
-
## Edge cases
|
|
302
|
-
|
|
303
|
-
### User wants to skip a prereq
|
|
304
|
-
`/god-arch --skip-prereqs` (advanced flag)
|
|
305
|
-
- Logs the skip with reason in events.jsonl
|
|
306
|
-
- Proceeds anyway
|
|
307
|
-
- Marks state as `re-invoked` flag if upstream artifacts are stale
|
|
308
|
-
|
|
309
|
-
### Multiple non-done sub-steps (parallel-safe)
|
|
310
|
-
e.g., after /god-arch, both /god-roadmap and /god-stack are eligible.
|
|
311
|
-
Display both with: "Run in any order. /god-roadmap is critical-path."
|
|
312
|
-
|
|
313
|
-
### State drift (artifact missing but state says done)
|
|
314
|
-
Detected by lib/state.detectDrift(). Suggest /god-repair.
|
|
315
|
-
|
|
316
|
-
### Safe sync blocks deploy
|
|
317
|
-
If `.godpowers/sync/SAFE-SYNC-PLAN.md` exists, or `.godpowers/CHECKPOINT.md`
|
|
318
|
-
states that safe sync is a blocking red gate, suggest
|
|
319
|
-
`/god-reconcile Release Truth And Safe Sync` before `/god-deploy`,
|
|
320
|
-
`/god-observe`, `/god-harden`, or `/god-launch`.
|
|
321
|
-
|
|
322
|
-
The blocker is cleared when `.godpowers/sync/SAFE-SYNC-DONE.md` or
|
|
323
|
-
`.godpowers/sync/SAFE-SYNC-RESOLVED.md` exists.
|
|
324
|
-
|
|
325
|
-
### Critical harden findings block launch
|
|
326
|
-
If `.godpowers/harden/FINDINGS.md` says the launch gate is blocked, or lists
|
|
327
|
-
unresolved Critical findings, `/god-launch` prerequisites fail through
|
|
328
|
-
`no-critical-findings`. This applies in default mode and `--yolo`.
|
|
329
|
-
|
|
330
|
-
### Steady state with multiple workflow options
|
|
331
|
-
If lifecycle-phase = steady-state-active, route by user intent if provided
|
|
332
|
-
(use the User Intent Map below).
|
|
333
|
-
|
|
334
|
-
## Steady-state User Intent Map
|
|
335
|
-
|
|
336
|
-
When in steady state, match keywords to workflows:
|
|
337
|
-
|
|
338
|
-
| Keyword | Suggest |
|
|
339
|
-
|---------|---------|
|
|
340
|
-
| feature, add, new functionality | /god-feature |
|
|
341
|
-
| production down, urgent, p0 | /god-hotfix |
|
|
342
|
-
| bug, broken, doesn't work | /god-debug |
|
|
343
|
-
| refactor, clean up, rename | /god-refactor |
|
|
344
|
-
| POC, prototype, spike, research | /god-spike |
|
|
345
|
-
| postmortem, RCA, incident review | /god-postmortem |
|
|
346
|
-
| upgrade, migrate, bump major | /god-upgrade |
|
|
347
|
-
| docs, documentation, README | /god-docs |
|
|
348
|
-
| deps, dependencies, audit | /god-update-deps |
|
|
349
|
-
| preflight, intake, audit before project run readiness, audit before pillars | /god-preflight |
|
|
350
|
-
| audit, score, quality check | /god-audit |
|
|
351
|
-
| health check, hygiene | /god-hygiene |
|
|
352
|
-
|
|
353
|
-
If mode detection indicates brownfield or bluefield and
|
|
354
|
-
`.godpowers/preflight/PREFLIGHT.md` is missing, prefer `/god-preflight` before
|
|
355
|
-
recommending archaeology, reconstruction, project-run readiness, pillars, or refactor work.
|
|
356
|
-
|
|
357
|
-
## Output Format
|
|
358
|
-
|
|
359
|
-
`/god-next` must emit the same Godpowers Dashboard shape used by
|
|
360
|
-
`/god-status`, then add routing detail and the proposition block.
|
|
361
|
-
Prefer the executable `lib/dashboard.js` output over manually recomputing the
|
|
362
|
-
same fields. If the module is unavailable, say
|
|
363
|
-
`Dashboard engine: unavailable, manual scan used`.
|
|
364
|
-
|
|
365
|
-
```text
|
|
366
|
-
Godpowers Next
|
|
367
|
-
|
|
368
|
-
Godpowers Dashboard
|
|
369
|
-
|
|
370
|
-
Source: runtime dashboard (lib/dashboard.js)
|
|
371
|
-
|
|
372
|
-
Current status:
|
|
373
|
-
State: proposal
|
|
374
|
-
Phase: [plain-language phase] (tier [human ordinal] of [human total])
|
|
375
|
-
Step: [current step label] (step [n] of [total steps])
|
|
376
|
-
Progress: [pct]% workflow progress ([done] of [total] tracked steps complete)
|
|
377
|
-
Worktree: [clean | modified files unstaged | staged changes | mixed]
|
|
378
|
-
Index: [untouched | staged files listed]
|
|
379
|
-
|
|
380
|
-
Planning visibility:
|
|
381
|
-
PRD: [done | pending | missing | deferred] [path when present]
|
|
382
|
-
Roadmap: [done | pending | missing | deferred] [path when present]
|
|
383
|
-
Current milestone: [roadmap milestone, phase, tier, or next planning gate]
|
|
384
|
-
Completion basis: [state.json, PROGRESS.md, artifacts, or audit score source]
|
|
385
|
-
|
|
386
|
-
Suggested next: [/god-X]
|
|
23
|
+
4. Load `<runtimeRoot>/lib/command-families.js` before resolving broad intent.
|
|
24
|
+
5. Load `<runtimeRoot>/lib/dashboard.js` and render the shared dashboard before route-specific detail.
|
|
25
|
+
6. If no dashboard module is available, say `Dashboard engine: unavailable, manual scan used`.
|
|
387
26
|
|
|
388
|
-
|
|
27
|
+
## Required references
|
|
389
28
|
|
|
390
|
-
|
|
391
|
-
1. Current: [tier/substep] - [status]
|
|
392
|
-
2. Next: [/god-X] - [why]
|
|
393
|
-
3. Then: [/god-Y or "recompute after gate"]
|
|
29
|
+
Read these references before producing a route recommendation:
|
|
394
30
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
Auto-complete available: /god-Y
|
|
398
|
-
Run /god-Y first? (yes/no/manual-info)
|
|
31
|
+
- `<runtimeRoot>/references/orchestration/GOD-NEXT-RUNBOOK.md` for invocation modes, route detail, and edge cases.
|
|
32
|
+
- `<runtimeRoot>/references/shared/DASHBOARD-CONTRACT.md` for the shared status and proposition shape.
|
|
399
33
|
|
|
400
|
-
|
|
401
|
-
Previous tier had standards failures. Address before proceeding:
|
|
402
|
-
- [failure 1]
|
|
403
|
-
- [failure 2]
|
|
404
|
-
Suggested: /god-redo [tier] OR /god-skip [tier] --reason="..."
|
|
34
|
+
## Invocation modes
|
|
405
35
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
Docs: [fresh | possible drift, suggest /god-docs]
|
|
411
|
-
Runtime: [not-applicable | known URL, suggest /god-test-runtime | no known URL, defer deployed verification]
|
|
412
|
-
Security: [clear | sensitive files changed, suggest /god-harden]
|
|
413
|
-
Dependencies: [clear | dependency files changed, suggest /god-update-deps]
|
|
414
|
-
Hygiene: [fresh | stale, suggest /god-hygiene]
|
|
36
|
+
- Post-completion: after a command finishes, read its routing file and announce the next gate.
|
|
37
|
+
- Pre-flight: before a target command runs, evaluate prerequisites and offer auto-completion when available.
|
|
38
|
+
- Standalone: when the user asks what is next, derive the recommendation from disk state.
|
|
39
|
+
- Intent-based: when the user uses fuzzy text, match recipes and command families before raw route order.
|
|
415
40
|
|
|
416
|
-
|
|
417
|
-
1. [missing prerequisite, blocker, pending review, or none]
|
|
41
|
+
## Decision rules
|
|
418
42
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
43
|
+
- Disk state beats chat memory.
|
|
44
|
+
- state.json and completed artifacts beat prep artifacts.
|
|
45
|
+
- INITIAL-FINDINGS.md and IMPORTED-CONTEXT.md explain context but do not override completed Godpowers artifacts.
|
|
46
|
+
- If PRD is complete, DESIGN is missing, and UI or product-experience signals exist, suggest `/god-design` before `/god-arch`.
|
|
47
|
+
- Safe sync blockers route to `/god-reconcile Release Truth And Safe Sync` before release-facing work.
|
|
48
|
+
- Unresolved Critical harden findings block `/god-launch` in default mode and under `--yolo`.
|
|
49
|
+
- Missing prerequisites should name the prerequisite, the route that can create it, and the smallest user decision needed.
|
|
50
|
+
- Standards failures should suggest `/god-redo` with feedback or `/god-skip` with a reason, then stop.
|
|
423
51
|
|
|
424
|
-
##
|
|
52
|
+
## Output contract
|
|
425
53
|
|
|
426
|
-
|
|
427
|
-
launched the selected command:
|
|
54
|
+
Render this sequence:
|
|
428
55
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
```
|
|
56
|
+
1. `Godpowers Next` heading.
|
|
57
|
+
2. Shared Godpowers Dashboard from `DASHBOARD-CONTRACT.md`.
|
|
58
|
+
3. Suggested next command and one-line reason.
|
|
59
|
+
4. Optional three-line path ahead when state allows it.
|
|
60
|
+
5. Optional pre-flight, standards, or blocker detail.
|
|
61
|
+
6. Proactive checks using the shared labels.
|
|
62
|
+
7. Proposition block unless the selected command already launched.
|
|
437
63
|
|
|
438
|
-
|
|
439
|
-
prerequisite. For standards failures, the partial option is `/god-redo` with
|
|
440
|
-
feedback and the complete option is blocked until the gate passes.
|
|
64
|
+
Keep the route preview to three lines unless the user asks for the full plan.
|
package/skills/god-observe.md
CHANGED
|
@@ -79,15 +79,4 @@ The reflog records every god-observe invocation as `op:god-observe` for `/god-un
|
|
|
79
79
|
|
|
80
80
|
## Locking
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
84
|
-
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
85
|
-
same holder; force-reclaimable if stale via `/god-repair`.
|
|
86
|
-
|
|
87
|
-
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
88
|
-
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
89
|
-
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
90
|
-
writer pauses or routes elsewhere via `/god-next`.
|
|
91
|
-
|
|
92
|
-
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
93
|
-
the full contract.
|
|
82
|
+
See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
|
package/skills/god-prd.md
CHANGED
|
@@ -30,7 +30,8 @@ Spawn the **god-pm** agent in a fresh context via the host platform's native age
|
|
|
30
30
|
After god-pm returns:
|
|
31
31
|
1. Verify `.godpowers/prd/PRD.md` exists on disk
|
|
32
32
|
2. Spawn god-auditor briefly to verify have-nots pass
|
|
33
|
-
3.
|
|
33
|
+
3. Run `npx godpowers gate --tier=prd --project=.` and do not proceed on a non-zero exit
|
|
34
|
+
4. Update `.godpowers/PROGRESS.md`: PRD status = done
|
|
34
35
|
|
|
35
36
|
## Pause Format
|
|
36
37
|
|
|
@@ -82,15 +83,4 @@ The reflog records every god-prd invocation as `op:god-prd` for `/god-undo`.
|
|
|
82
83
|
|
|
83
84
|
## Locking
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
87
|
-
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
88
|
-
same holder; force-reclaimable if stale via `/god-repair`.
|
|
89
|
-
|
|
90
|
-
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
91
|
-
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
92
|
-
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
93
|
-
writer pauses or routes elsewhere via `/god-next`.
|
|
94
|
-
|
|
95
|
-
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
96
|
-
the full contract.
|
|
86
|
+
See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
|
package/skills/god-redo.md
CHANGED
|
@@ -59,15 +59,4 @@ that originally produced the artifact. Updates the linkage map via
|
|
|
59
59
|
|
|
60
60
|
## Locking
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
64
|
-
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
65
|
-
same holder; force-reclaimable if stale via `/god-repair`.
|
|
66
|
-
|
|
67
|
-
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
68
|
-
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
69
|
-
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
70
|
-
writer pauses or routes elsewhere via `/god-next`.
|
|
71
|
-
|
|
72
|
-
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
73
|
-
the full contract.
|
|
62
|
+
See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
|
package/skills/god-refactor.md
CHANGED
|
@@ -146,15 +146,4 @@ in the linkage system:
|
|
|
146
146
|
|
|
147
147
|
## Locking
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
151
|
-
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
152
|
-
same holder; force-reclaimable if stale via `/god-repair`.
|
|
153
|
-
|
|
154
|
-
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
155
|
-
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
156
|
-
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
157
|
-
writer pauses or routes elsewhere via `/god-next`.
|
|
158
|
-
|
|
159
|
-
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
160
|
-
the full contract.
|
|
149
|
+
See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
|
package/skills/god-repair.md
CHANGED
|
@@ -68,15 +68,4 @@ Calls into `lib/drift-detector.js`, `lib/code-scanner.js`, `lib/reverse-sync.js`
|
|
|
68
68
|
|
|
69
69
|
## Locking
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
73
|
-
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
74
|
-
same holder; force-reclaimable if stale via `/god-repair`.
|
|
75
|
-
|
|
76
|
-
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
77
|
-
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
78
|
-
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
79
|
-
writer pauses or routes elsewhere via `/god-next`.
|
|
80
|
-
|
|
81
|
-
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
82
|
-
the full contract.
|
|
71
|
+
See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
|
package/skills/god-repo.md
CHANGED
|
@@ -22,7 +22,8 @@ Spawn the **god-repo-scaffolder** agent in a fresh context via the host platform
|
|
|
22
22
|
After god-repo-scaffolder returns:
|
|
23
23
|
1. Verify AUDIT.md exists on disk
|
|
24
24
|
2. Verify CI passes on the empty scaffold
|
|
25
|
-
3.
|
|
25
|
+
3. Run `npx godpowers gate --tier=repo --project=.` and do not proceed on a non-zero exit
|
|
26
|
+
4. Update `.godpowers/PROGRESS.md`: Repo status = done
|
|
26
27
|
|
|
27
28
|
## On Completion
|
|
28
29
|
|
|
@@ -35,15 +36,4 @@ Suggested next: /god-build (start building the first milestone)
|
|
|
35
36
|
|
|
36
37
|
## Locking
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
40
|
-
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
41
|
-
same holder; force-reclaimable if stale via `/god-repair`.
|
|
42
|
-
|
|
43
|
-
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
44
|
-
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
45
|
-
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
46
|
-
writer pauses or routes elsewhere via `/god-next`.
|
|
47
|
-
|
|
48
|
-
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
49
|
-
the full contract.
|
|
39
|
+
See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
|
package/skills/god-restore.md
CHANGED
|
@@ -77,15 +77,4 @@ to refresh linkage map.
|
|
|
77
77
|
|
|
78
78
|
## Locking
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
82
|
-
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
83
|
-
same holder; force-reclaimable if stale via `/god-repair`.
|
|
84
|
-
|
|
85
|
-
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
86
|
-
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
87
|
-
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
88
|
-
writer pauses or routes elsewhere via `/god-next`.
|
|
89
|
-
|
|
90
|
-
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
91
|
-
the full contract.
|
|
80
|
+
See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: god-roadmap-check
|
|
3
|
+
deprecated: true
|
|
4
|
+
replacement: god-reconcile
|
|
3
5
|
description: |
|
|
4
6
|
Check if user intent overlaps with the existing ROADMAP.md before doing
|
|
5
7
|
feature work. Returns: already-done, in-progress, enhancement,
|
|
@@ -12,6 +14,9 @@ description: |
|
|
|
12
14
|
|
|
13
15
|
# /god-roadmap-check
|
|
14
16
|
|
|
17
|
+
Deprecated: prefer `/god-reconcile` for new workflows. This command remains in
|
|
18
|
+
the full profile for backward compatibility with existing route references.
|
|
19
|
+
|
|
15
20
|
Reconcile intent against ROADMAP.md before adding work.
|
|
16
21
|
|
|
17
22
|
## Setup
|
package/skills/god-roadmap.md
CHANGED
|
@@ -23,7 +23,8 @@ Spawn the **god-roadmapper** agent in a fresh context via the host platform's na
|
|
|
23
23
|
After god-roadmapper returns:
|
|
24
24
|
1. Verify ROADMAP.md exists on disk
|
|
25
25
|
2. Spawn god-auditor to verify have-nots pass
|
|
26
|
-
3.
|
|
26
|
+
3. Run `npx godpowers gate --tier=roadmap --project=.` and do not proceed on a non-zero exit
|
|
27
|
+
4. Update `.godpowers/PROGRESS.md`: Roadmap status = done
|
|
27
28
|
|
|
28
29
|
## On Completion
|
|
29
30
|
|
|
@@ -63,15 +64,4 @@ The reflog records every god-roadmap invocation as `op:god-roadmap` for `/god-un
|
|
|
63
64
|
|
|
64
65
|
## Locking
|
|
65
66
|
|
|
66
|
-
|
|
67
|
-
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
68
|
-
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
69
|
-
same holder; force-reclaimable if stale via `/god-repair`.
|
|
70
|
-
|
|
71
|
-
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
72
|
-
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
73
|
-
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
74
|
-
writer pauses or routes elsewhere via `/god-next`.
|
|
75
|
-
|
|
76
|
-
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
77
|
-
the full contract.
|
|
67
|
+
See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
|
package/skills/god-rollback.md
CHANGED
|
@@ -74,15 +74,4 @@ fs operations (for artifact move).
|
|
|
74
74
|
|
|
75
75
|
## Locking
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
|
|
79
|
-
`linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
|
|
80
|
-
same holder; force-reclaimable if stale via `/god-repair`.
|
|
81
|
-
|
|
82
|
-
Read-only inspection commands (`/god-status`, `/god-doctor`,
|
|
83
|
-
`/god-locate`) do NOT block on the lock. Concurrent writers on
|
|
84
|
-
non-overlapping scopes are allowed; on overlapping scopes, the second
|
|
85
|
-
writer pauses or routes elsewhere via `/god-next`.
|
|
86
|
-
|
|
87
|
-
See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
|
|
88
|
-
the full contract.
|
|
77
|
+
See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
|