godpowers 3.0.1 → 3.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +26 -2
  2. package/README.md +24 -13
  3. package/RELEASE.md +21 -21
  4. package/SKILL.md +71 -112
  5. package/bin/install.js +10 -0
  6. package/lib/README.md +1 -0
  7. package/lib/cli-dispatch.js +40 -1
  8. package/lib/command-families.js +10 -2
  9. package/lib/install-profiles.js +4 -1
  10. package/lib/installer-args.js +22 -0
  11. package/lib/surface-profile.js +168 -0
  12. package/package.json +2 -2
  13. package/references/orchestration/GOD-MODE-RUNBOOK.md +9 -14
  14. package/references/orchestration/GOD-ORCHESTRATOR-RUNBOOK.md +31 -78
  15. package/references/shared/DASHBOARD-CONTRACT.md +66 -29
  16. package/references/shared/README.md +1 -1
  17. package/routing/god-demo.yaml +35 -0
  18. package/routing/god-first-run.yaml +34 -0
  19. package/routing/god-surface.yaml +39 -0
  20. package/routing/recipes/try-safely.yaml +26 -0
  21. package/skills/god-agent-audit.md +5 -6
  22. package/skills/god-archaeology.md +5 -6
  23. package/skills/god-audit.md +6 -7
  24. package/skills/god-automation-setup.md +6 -7
  25. package/skills/god-automation-status.md +6 -7
  26. package/skills/god-context-scan.md +7 -8
  27. package/skills/god-demo.md +53 -0
  28. package/skills/god-design-impact.md +5 -6
  29. package/skills/god-discuss.md +5 -6
  30. package/skills/god-docs.md +5 -10
  31. package/skills/god-doctor.md +8 -9
  32. package/skills/god-dogfood.md +7 -10
  33. package/skills/god-explore.md +5 -7
  34. package/skills/god-first-run.md +64 -0
  35. package/skills/god-help.md +77 -51
  36. package/skills/god-hygiene.md +5 -6
  37. package/skills/god-lifecycle.md +11 -13
  38. package/skills/god-list-assumptions.md +7 -8
  39. package/skills/god-locate.md +7 -8
  40. package/skills/god-map-codebase.md +5 -6
  41. package/skills/god-migrate.md +6 -15
  42. package/skills/god-next.md +16 -17
  43. package/skills/god-preflight.md +7 -8
  44. package/skills/god-progress.md +7 -8
  45. package/skills/god-reconcile.md +5 -6
  46. package/skills/god-reconstruct.md +5 -7
  47. package/skills/god-refactor.md +6 -7
  48. package/skills/god-roadmap-check.md +6 -7
  49. package/skills/god-scan.md +5 -9
  50. package/skills/god-spike.md +5 -6
  51. package/skills/god-standards.md +5 -6
  52. package/skills/god-status.md +12 -10
  53. package/skills/god-surface.md +61 -0
  54. package/skills/god-sync.md +4 -8
  55. package/skills/god-tech-debt.md +5 -6
  56. package/skills/god-test-runtime.md +4 -8
  57. package/skills/god-version.md +1 -1
  58. package/skills/god.md +53 -52
@@ -0,0 +1,34 @@
1
+ apiVersion: godpowers/v1
2
+ kind: CommandRouting
3
+ metadata:
4
+ command: /god-first-run
5
+ description: Guided first 10 minute onboarding
6
+ tier: 0
7
+ family: start
8
+
9
+ prerequisites:
10
+ required:
11
+ []
12
+
13
+ execution:
14
+ spawns: [built-in]
15
+ context: fresh
16
+ reads:
17
+ - .godpowers/state.json
18
+ writes:
19
+ []
20
+
21
+ success-path:
22
+ next-recommended: varies
23
+ outcome:
24
+ type: contextual
25
+ label: Context-specific next route
26
+ reason: The next route depends on whether Godpowers state exists.
27
+ allowed-next: [/god-demo, /god-init, /god-next, /god-help]
28
+
29
+ failure-path:
30
+ on-error: /god-doctor
31
+
32
+ endoff:
33
+ state-update: tier-0 updated for /god-first-run
34
+ events: [agent.start, agent.end]
@@ -0,0 +1,39 @@
1
+ apiVersion: godpowers/v1
2
+ kind: CommandRouting
3
+ metadata:
4
+ command: /god-surface
5
+ description: Runtime command surface profile switcher
6
+ tier: 0
7
+ family: configure
8
+
9
+ prerequisites:
10
+ required:
11
+ []
12
+
13
+ execution:
14
+ spawns: [built-in]
15
+ context: fresh
16
+ reads:
17
+ - lib/install-profiles.js
18
+ - lib/surface-profile.js
19
+ writes:
20
+ - <runtime>/GODPOWERS_PROFILE when --apply is used
21
+ - <runtime>/skills/ when --apply is used
22
+
23
+ standards:
24
+ gate-on-failure: pause-for-user
25
+
26
+ success-path:
27
+ next-recommended: /god-help
28
+ outcome:
29
+ type: deterministic
30
+ label: Surface profile previewed or applied
31
+ reason: The selected install profile controls which slash commands are visible in the target runtime.
32
+ allowed-next: [/god-help, /god-help all, /god-status]
33
+
34
+ failure-path:
35
+ on-error: /god-doctor
36
+
37
+ endoff:
38
+ state-update: tier-0 updated for /god-surface
39
+ events: [agent.start, agent.end]
@@ -0,0 +1,26 @@
1
+ apiVersion: godpowers/v1
2
+ kind: Recipe
3
+ metadata:
4
+ name: try-safely
5
+ category: starting
6
+ description: "Try Godpowers in a safe sandbox before touching the repo"
7
+
8
+ triggers:
9
+ intent-keywords:
10
+ - "try safely"
11
+ - "safe demo"
12
+ - "show me a demo"
13
+ - "sandbox"
14
+ - "proof before setup"
15
+ - "first run demo"
16
+
17
+ sequences:
18
+ default:
19
+ description: "Try Godpowers in a safe sandbox before touching the repo"
20
+ steps:
21
+ - command: "/god-demo"
22
+ why: "Runs the shipped sandbox proof without modifying the current project"
23
+ - command: "/god-first-run"
24
+ why: "Continues with guided onboarding after the proof"
25
+
26
+ default-sequence: default
@@ -64,12 +64,11 @@ Warnings:
64
64
  Infos: 97 missing-recommended-section suggestions across agents
65
65
  (run with --json for full list)
66
66
 
67
- Proposition:
68
- 1. Implement partial: fix the highest-priority error or warning
69
- 2. Implement complete: /god-agent-audit --fix for info-level placeholder sections only
70
- 3. Discuss more: /god-discuss agent contract findings
71
- 4. Inspect details: /god-agent-audit --json
72
- Recommended: [one option and why]
67
+ Next commands:
68
+ - /god-agent-audit --fix: Fix the highest-priority approved agent contract issue.
69
+ - /god-agent-audit --fix for info-level placeholder sections only: Run the full recommended path.
70
+ - /god-discuss agent contract findings: Resolve the open question before continuing.
71
+ - /god-agent-audit --json: Inspect details before changing files.
73
72
  ```
74
73
 
75
74
  ## Backward-compatibility promise
@@ -46,10 +46,9 @@ Suggested next:
46
46
  /god-tech-debt - assess and prioritize debt revealed
47
47
  /god-feature - now safe to add new work with archaeology in hand
48
48
 
49
- Proposition:
50
- 1. Implement partial: /god-tech-debt for only the highest-risk areas
51
- 2. Implement complete: /god-reconstruct then /god-audit for full brownfield alignment
52
- 3. Discuss more: /god-discuss the open tribal-knowledge questions
53
- 4. Run God Mode: /god-mode only after reconstruction or audit makes the state clear
54
- Recommended: /god-reconstruct when planning artifacts are missing or stale.
49
+ Next commands:
50
+ - /god-tech-debt for only the highest-risk areas: Run the smallest safe next step.
51
+ - /god-reconstruct then /god-audit for full brownfield alignment: Run the full recommended path.
52
+ - /god-discuss the open tribal-knowledge questions: Resolve the open question before continuing.
53
+ - /god-mode only after reconstruction or audit makes the state clear: Run the full autonomous project workflow when it fits.
55
54
  ```
@@ -52,15 +52,14 @@ After god-auditor returns:
52
52
  1. Verify AUDIT-REPORT.md exists on disk
53
53
  2. Display the summary table to the user
54
54
  3. If any artifact scored below 80%: suggest re-running the failing tier
55
- 4. End with a proposition block:
55
+ 4. End with a Next commands block:
56
56
 
57
57
  ```
58
- Proposition:
59
- 1. Implement partial: [rerun the single lowest-scoring tier or fix the top finding]
60
- 2. Implement complete: [rerun all failing tiers in priority order]
61
- 3. Discuss more: /god-discuss audit remediation plan
62
- 4. Run God Mode: /god-mode only when the audit has no blocking findings
63
- Recommended: [one option and why]
58
+ Next commands:
59
+ - /god-redo [tier]: Rerun the single lowest-scoring tier or fix the top finding.
60
+ - /god-audit: Re-run audit after failing tiers are repaired in priority order.
61
+ - /god-discuss audit remediation plan: Resolve the open question before continuing.
62
+ - /god-mode only when the audit has no blocking findings: Run the full autonomous project workflow when it fits.
64
63
  ```
65
64
 
66
65
  ## Output Format
@@ -129,15 +129,14 @@ Approval required:
129
129
  - Confirm any host-native schedule, routine, background agent, API trigger, or connector scope
130
130
  ```
131
131
 
132
- ## Proposition Closeout
132
+ ## Next Commands Closeout
133
133
 
134
134
  End with:
135
135
 
136
136
  ```text
137
- Proposition:
138
- 1. Implement partial: create one read-only automation after approval
139
- 2. Implement complete: create all safe read-only automations after approval
140
- 3. Discuss more: tune provider, cadence, or safety rules
141
- 4. Inspect status: /god-automation-status
142
- Recommended: <one option tied to provider capability and user risk>
137
+ Next commands:
138
+ - /god-automation-setup: Create one approved read-only automation.
139
+ - /god-automation-setup --all-safe: Create all approved safe read-only automations.
140
+ - /god-discuss automation policy: Tune provider, cadence, or safety rules.
141
+ - /god-automation-status: Inspect status before continuing.
143
142
  ```
@@ -59,17 +59,16 @@ Safety rules:
59
59
  - Default templates are read-only.
60
60
  ```
61
61
 
62
- ## Proposition Closeout
62
+ ## Next Commands Closeout
63
63
 
64
64
  End with:
65
65
 
66
66
  ```text
67
- Proposition:
68
- 1. Implement partial: /god-automation-setup for one safe read-only template
69
- 2. Implement complete: /god-automation-setup for all safe templates supported by the current host
70
- 3. Discuss more: /god-discuss automation policy and provider choice
71
- 4. Inspect status: /god-status to see project progress and automation status together
72
- Recommended: <one option tied to the detected provider>
67
+ Next commands:
68
+ - /god-automation-setup for one safe read-only template: Run the smallest safe next step.
69
+ - /god-automation-setup for all safe templates supported by the current host: Run the full recommended path.
70
+ - /god-discuss automation policy and provider choice: Resolve the open question before continuing.
71
+ - /god-status to see project progress and automation status together: Inspect status before continuing.
73
72
  ```
74
73
 
75
74
  If no provider is available, recommend manual `/god-next` or
@@ -88,17 +88,16 @@ Suggested next:
88
88
  2. Accept the 2 new todos: /god-check-todos
89
89
  ```
90
90
 
91
- ## Proposition Closeout
91
+ ## Next Commands Closeout
92
92
 
93
- End every context scan report with a proposition block:
93
+ End every context scan report with a Next commands block:
94
94
 
95
95
  ```
96
- Proposition:
97
- 1. Implement partial: [first suggested action, usually /god-locate or /god-repair]
98
- 2. Implement complete: resolve all error and warn drifts, then rerun /god-context-scan
99
- 3. Discuss more: /god-discuss context drift
100
- 4. Inspect status: /god-status after re-orientation
101
- Recommended: [one option and why]
96
+ Next commands:
97
+ - /god-locate: Re-orient from checkpoint and disk state.
98
+ - /god-repair: Resolve state drift before continuing.
99
+ - /god-discuss context drift: Resolve the open question before continuing.
100
+ - /god-status after re-orientation: Inspect status before continuing.
102
101
  ```
103
102
 
104
103
  ## What this does NOT do
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: god-demo
3
+ description: |
4
+ Run a safe Godpowers sandbox proof using the shipped quick-proof fixture.
5
+ Shows disk-derived state, missing artifacts, host guarantees, and the next
6
+ command without modifying the user's project.
7
+
8
+ Triggers on: "god demo", "/god-demo", "show me a demo", "sandbox",
9
+ "try godpowers safely"
10
+ ---
11
+
12
+ # /god-demo
13
+
14
+ Show a safe sandbox proof before the user touches their project. This command
15
+ uses the shipped quick-proof fixture and does not write to the user's project.
16
+
17
+ ## Process
18
+
19
+ 1. Resolve `<runtimeRoot>/lib/quick-proof.js`.
20
+ 2. Call `quickProof.compute(projectRoot)`.
21
+ 3. Render `quickProof.render(result, { brief: true })` by default.
22
+ 4. If the user asks for full detail, render without `brief`.
23
+ 5. End with `Next commands:`.
24
+
25
+ ## Output Shape
26
+
27
+ ```text
28
+ The sandbox proof read a shipped fixture from disk and computed the next command without changing this repo.
29
+
30
+ Changed:
31
+ - No project files were modified.
32
+
33
+ Validation:
34
+ - quick-proof fixture: rendered disk state, missing PRD, host guarantees, and next command.
35
+
36
+ Next commands:
37
+ - /god-first-run: Continue the guided first-run path.
38
+ - /god-init: Initialize Godpowers in this project.
39
+ - /god-status --full: Inspect full status once a project exists.
40
+ ```
41
+
42
+ ## Terminal Equivalent
43
+
44
+ ```bash
45
+ npx godpowers demo --project=.
46
+ ```
47
+
48
+ ## Rules
49
+
50
+ - Never write to the current project.
51
+ - Prefer compact proof output.
52
+ - Keep fixture state separate from the user's project state.
53
+ - Mention host guarantees separately from fixture progress.
@@ -66,12 +66,11 @@ Transitive (depth 2):
66
66
  Recommendation: Run /god-design with this change to apply.
67
67
  god-design-reviewer will gate via two-stage review.
68
68
 
69
- Proposition:
70
- 1. Implement partial: /god-design for only the lowest-risk token or component change
71
- 2. Implement complete: /god-design with the full proposed change
72
- 3. Discuss more: /god-discuss the design tradeoff before changing files
73
- 4. Run God Mode: /god-mode only if this design change is part of a wider project run
74
- Recommended: apply the smallest design change first when severity is warning
69
+ Next commands:
70
+ - /god-design for only the lowest-risk token or component change: Run the smallest safe next step.
71
+ - /god-design with the full proposed change: Run the full recommended path.
72
+ - /god-discuss the design tradeoff before changing files: Resolve the open question before continuing.
73
+ - /god-mode only if this design change is part of a wider project run: Run the full autonomous project workflow when it fits.
75
74
  or higher.
76
75
  ```
77
76
 
@@ -73,10 +73,9 @@ Key findings:
73
73
 
74
74
  Suggested next: [the planning command this discussion was for]
75
75
 
76
- Proposition:
77
- 1. Implement partial: [smallest safe slice or planning command]
78
- 2. Implement complete: [full command that consumes this brief]
79
- 3. Discuss more: /god-discuss [specific unresolved question]
80
- 4. Run God Mode: /god-mode [scope] if the user wants autonomous execution
81
- Recommended: [one option and why]
76
+ Next commands:
77
+ - /god-next: Continue with the safest command that uses this discussion.
78
+ - /god-mode [scope]: Run the full command that consumes this brief when safe.
79
+ - /god-discuss [specific unresolved question]: Resolve the open question before continuing.
80
+ - /god-mode [scope] if the user wants autonomous execution: Run the full autonomous project workflow when it fits.
82
81
  ```
@@ -69,20 +69,15 @@ Godpowers may invoke docs work proactively in two ways:
69
69
  | Repo structural surface drift | Run `lib/repo-surface-sync.run` and include findings in docs scope | Do not invent routing or agent ownership prose without evidence |
70
70
  | `REVIEW-REQUIRED.md` contains docs drift items | Suggest `/god-review-changes` first | Do not auto-clear review items |
71
71
 
72
- When auto-invoked, show:
72
+ When auto-invoked, show a concise default note:
73
73
 
74
74
  ```text
75
- Auto-invoked:
76
- Trigger: docs and code changed in the same workflow
77
- Agent: god-docs-writer
78
- Local syncs:
79
- + repo-doc-sync: <safe mechanical fixes, prose review needed, or no-op>
80
- + repo-surface-sync: <structural surface fresh, scoped findings, or no-op>
81
- + docs-drift-check: <N claims checked, N drift items>
82
- Artifacts: .godpowers/docs/UPDATE-LOG.md or no-op
83
- Log: .godpowers/docs/UPDATE-LOG.md
75
+ Checked docs against changed code. Details were written to .godpowers/docs/UPDATE-LOG.md.
84
76
  ```
85
77
 
78
+ Use a detailed `Auto-invoked:` card only with `--verbose` or release-gate
79
+ debugging.
80
+
86
81
  ## Have-Nots
87
82
 
88
83
  Docs FAIL if:
@@ -48,7 +48,7 @@ Plain-text report grouped by severity:
48
48
  GODPOWERS DOCTOR
49
49
 
50
50
  Install: claude (~/.claude/)
51
- [OK] 117 skills installed
51
+ [OK] 120 skills installed
52
52
  [OK] 40 agents installed
53
53
  [OK] VERSION matches (2.3.1)
54
54
  [WARN] routing/god-doctor.yaml exists but skill file did not until now
@@ -68,17 +68,16 @@ Suggested next steps:
68
68
  2. /god-restore (review trash)
69
69
  ```
70
70
 
71
- ## Proposition Closeout
71
+ ## Next Commands Closeout
72
72
 
73
- End every human-readable doctor report with a proposition block:
73
+ End every human-readable doctor report with a Next commands block:
74
74
 
75
75
  ```
76
- Proposition:
77
- 1. Implement partial: [safest single fix or diagnostic follow-up]
78
- 2. Implement complete: /god-doctor --fix when all proposed fixes are safe categories
79
- 3. Discuss more: /god-discuss [highest-risk warning or unclear repair]
80
- 4. Inspect status: /god-status after repair
81
- Recommended: [one option and why it is safe]
76
+ Next commands:
77
+ - /god-doctor --fix: Run the safest approved repair category.
78
+ - /god-doctor --fix when all proposed fixes are safe categories: Run the full recommended path.
79
+ - /god-discuss [highest-risk warning or unclear repair]: Resolve the open question before continuing.
80
+ - /god-status after repair: Inspect status before continuing.
82
81
  ```
83
82
 
84
83
  If the report contains errors that need manual repair, do not recommend
@@ -27,12 +27,12 @@ Run deterministic messy-repo scenarios before release or after automation change
27
27
  1. Resolve the runtime root and load `lib/dogfood-runner.js`.
28
28
  2. Run `dogfood.runAll()` against `fixtures/dogfood/`.
29
29
  3. Report each scenario with pass or fail status.
30
- 4. If any scenario fails, auto-invoke the matching specialist by visible card:
30
+ 4. If any scenario fails, recommend the matching specialist with a concise note:
31
31
  - `god-greenfieldifier` for planning-system import failures.
32
32
  - `god-context-writer` for host capability or install surface failures.
33
33
  - `god-coordinator` for extension authoring or suite release failures.
34
34
  5. Do not edit user projects while running fixture scenarios.
35
- 6. End with the Godpowers Dashboard and make `/god-repair` the recommended
35
+ 6. End with a compact action brief and make `/god-repair` the recommended
36
36
  route when dogfood is red.
37
37
 
38
38
  ## CLI Equivalent
@@ -50,14 +50,11 @@ npx godpowers dogfood --json
50
50
  - [DECISION] The dogfood suite includes extension scaffold validation.
51
51
  - [DECISION] The dogfood suite includes a Mode D suite release dry-run.
52
52
 
53
- ## Auto-Invoke Card
53
+ ## Automatic Work Note
54
54
 
55
55
  ```text
56
- Auto-invoked:
57
- Trigger: /god-dogfood scenario failure
58
- Agent: <god-greenfieldifier | god-context-writer | god-coordinator | none, local runtime only>
59
- Local syncs:
60
- + dogfood-runner: <pass, fail, or skipped reason>
61
- Artifacts: fixture-only unless repair is explicitly requested
62
- Log: none
56
+ Dogfood scenarios finished. Fixture details stayed in the run output unless repair was explicitly requested.
63
57
  ```
58
+
59
+ Use a detailed `Auto-invoked:` card only with `--verbose` or release-gate
60
+ debugging.
@@ -48,11 +48,9 @@ Idea explored. Suggested framing:
48
48
  Suggested next: /god-init (commit to this framing) or /god-explore again
49
49
  (if you want to try another angle)
50
50
 
51
- Proposition:
52
- 1. Implement partial: /god-init with this framing and stop after PRD
53
- 2. Implement complete: /god-mode with this framing for the full project run
54
- 3. Discuss more: /god-explore again with the weakest assumption
55
- 4. Run God Mode: /god-mode if the user is ready to build now
56
- Recommended: /god-init when the framing feels stable enough to turn into
57
- requirements.
51
+ Next commands:
52
+ - /god-init with this framing and stop after PRD: Run the smallest safe next step.
53
+ - /god-mode with this framing for the full project run: Run the full recommended path.
54
+ - /god-explore again with the weakest assumption: Resolve the open question before continuing.
55
+ - /god-mode if the user is ready to build now: Run the full autonomous project workflow when it fits.
58
56
  ```
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: god-first-run
3
+ description: |
4
+ Guide a first-time user through the first 10 minutes of Godpowers with one
5
+ recommended command and a few concrete alternatives. Never list the full
6
+ command catalog by default.
7
+
8
+ Triggers on: "god first run", "/god-first-run", "first time",
9
+ "getting started", "start using godpowers"
10
+ ---
11
+
12
+ # /god-first-run
13
+
14
+ Guide the user through the first 10 minutes. Keep the response short,
15
+ decisive, and state-aware. Do not list the full catalog unless the user asks
16
+ for `/god-help all`.
17
+
18
+ ## Process
19
+
20
+ 1. Check whether `.godpowers/state.json` exists.
21
+ 2. If no project state exists, recommend `/god-demo` first when the user wants
22
+ proof, otherwise recommend `/god-init`.
23
+ 3. If project state exists, recommend `/god-next`.
24
+ 4. Mention at most three alternatives.
25
+ 5. End with `Next commands:`.
26
+
27
+ ## Output Shape
28
+
29
+ For a fresh directory:
30
+
31
+ ```text
32
+ You have not initialized Godpowers here yet, so the first useful move is a safe proof or project init.
33
+
34
+ Next commands:
35
+ - /god-demo: Try the shipped sandbox without touching this repo.
36
+ - /god-init: Initialize Godpowers in this project now.
37
+ - /god-surface --profile=core --dry-run: Preview the smallest installed command surface.
38
+ - /god-help all: Show the complete catalog only if you want it.
39
+ ```
40
+
41
+ For an initialized project:
42
+
43
+ ```text
44
+ Godpowers state already exists here, so continue from disk instead of starting over.
45
+
46
+ Next commands:
47
+ - /god-next: Continue with the safest state-derived next step.
48
+ - /god-status --full: Inspect the complete dashboard and proactive checks.
49
+ - /god-help continue: See continue commands only.
50
+ ```
51
+
52
+ ## Rules
53
+
54
+ - Do not explain routing internals.
55
+ - Do not show more than four commands.
56
+ - Do not show every installed command.
57
+ - Prefer `/god-demo` when the user asks for proof or is unsure.
58
+ - Prefer `/god-init` when the user says they are ready to use the current repo.
59
+ - Prefer `/god-next` when `.godpowers/state.json` exists.
60
+
61
+ ## Implementation
62
+
63
+ Built-in, no spawned agent. Reads `.godpowers/state.json` and may call
64
+ `<runtimeRoot>/lib/dashboard.js` for the next route when state exists.