@hxp-tools/godplans 0.0.0-stage → 2.0.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 (144) hide show
  1. package/CHANGELOG.md +1176 -0
  2. package/LICENSE +21 -0
  3. package/PROMPT.md +4006 -0
  4. package/README.md +201 -2
  5. package/assets/README.md +11 -0
  6. package/assets/hero.svg +44 -0
  7. package/assets/plan-loop.svg +62 -0
  8. package/assets/quest-map.svg +80 -0
  9. package/bin/godplans.js +93 -0
  10. package/docs/ARCHITECTURE.md +136 -0
  11. package/docs/RELEASING.md +107 -0
  12. package/evals/README.md +295 -0
  13. package/evals/cases/brownfield-cli/EXPECTATIONS +15 -0
  14. package/evals/cases/brownfield-cli/INPUT/package.json +9 -0
  15. package/evals/cases/brownfield-cli/INPUT/src/cli.js +4 -0
  16. package/evals/cases/brownfield-cli/INPUT/src/format.js +3 -0
  17. package/evals/cases/brownfield-cli/INPUT/test/cli.test.js +7 -0
  18. package/evals/cases/brownfield-cli/REQUEST.baseline.md +10 -0
  19. package/evals/cases/brownfield-cli/REQUEST.md +10 -0
  20. package/evals/cases/compliance-refusal/EXPECTATIONS +4 -0
  21. package/evals/cases/compliance-refusal/REQUEST.baseline.md +9 -0
  22. package/evals/cases/compliance-refusal/REQUEST.md +8 -0
  23. package/evals/cases/greenfield-saas/EXPECTATIONS +21 -0
  24. package/evals/cases/greenfield-saas/REQUEST.baseline.md +11 -0
  25. package/evals/cases/greenfield-saas/REQUEST.md +11 -0
  26. package/evals/cases/nested-pillars/EXPECTATIONS +12 -0
  27. package/evals/cases/nested-pillars/REQUEST.baseline.md +10 -0
  28. package/evals/cases/nested-pillars/REQUEST.md +11 -0
  29. package/evals/cases/observability-evidence/EXPECTATIONS +10 -0
  30. package/evals/cases/observability-evidence/REQUEST.baseline.md +10 -0
  31. package/evals/cases/observability-evidence/REQUEST.md +11 -0
  32. package/evals/cases/product-business/EXPECTATIONS +18 -0
  33. package/evals/cases/product-business/REQUEST.baseline.md +13 -0
  34. package/evals/cases/product-business/REQUEST.md +14 -0
  35. package/evals/cases/product-form-routing/EXPECTATIONS +13 -0
  36. package/evals/cases/product-form-routing/REQUEST.baseline.md +11 -0
  37. package/evals/cases/product-form-routing/REQUEST.md +11 -0
  38. package/evals/cases/prose-integrity/EXPECTATIONS +19 -0
  39. package/evals/cases/prose-integrity/REQUEST.baseline.md +19 -0
  40. package/evals/cases/prose-integrity/REQUEST.md +20 -0
  41. package/evals/cases/replan-preserves-history/EXPECTATIONS +9 -0
  42. package/evals/cases/replan-preserves-history/INPUT/.godplans/PLAN.mdx +115 -0
  43. package/evals/cases/replan-preserves-history/INPUT/package.json +5 -0
  44. package/evals/cases/replan-preserves-history/REQUEST.baseline.md +10 -0
  45. package/evals/cases/replan-preserves-history/REQUEST.md +10 -0
  46. package/evals/cases/stale-prepublication/EXPECTATIONS +10 -0
  47. package/evals/cases/stale-prepublication/REQUEST.baseline.md +12 -0
  48. package/evals/cases/stale-prepublication/REQUEST.md +13 -0
  49. package/evals/cases/stale-source-evidence/EXPECTATIONS +10 -0
  50. package/evals/cases/stale-source-evidence/INPUT/package.json +8 -0
  51. package/evals/cases/stale-source-evidence/REQUEST.baseline.md +11 -0
  52. package/evals/cases/stale-source-evidence/REQUEST.md +12 -0
  53. package/evals/cases/weekend-library/EXPECTATIONS +19 -0
  54. package/evals/cases/weekend-library/REQUEST.baseline.md +10 -0
  55. package/evals/cases/weekend-library/REQUEST.md +11 -0
  56. package/evals/cases-roster.txt +19 -0
  57. package/evals/external/GRADE.schema.json +39 -0
  58. package/evals/external/README.md +42 -0
  59. package/evals/external/RUBRIC.md +32 -0
  60. package/evals/metrics/context-cost.json +154 -0
  61. package/evals/outcomes/README.md +65 -0
  62. package/evals/outcomes/cases/tenant-notes-api/REQUEST.baseline.md +14 -0
  63. package/evals/outcomes/cases/tenant-notes-api/REQUEST.md +13 -0
  64. package/evals/outcomes/cases/tenant-notes-api/VERIFY.sh +13 -0
  65. package/evals/outcomes/results/2026-07-23-tenant-notes-api-codex/README.md +93 -0
  66. package/evals/outcomes/results/2026-07-23-tenant-notes-api-codex/treatment/plan/PLAN.json +547 -0
  67. package/evals/runners/claude-baseline.sh +4 -0
  68. package/evals/runners/claude-grade.sh +3 -0
  69. package/evals/runners/claude.sh +4 -0
  70. package/evals/runners/codex-baseline.sh +181 -0
  71. package/evals/runners/codex-builder.sh +96 -0
  72. package/evals/runners/codex-godaudits.sh +84 -0
  73. package/evals/runners/codex.sh +147 -0
  74. package/evals/runners/gemini-baseline.sh +4 -0
  75. package/evals/runners/gemini-grade.sh +3 -0
  76. package/evals/runners/gemini.sh +4 -0
  77. package/evals/runners/vendor-cli.sh +257 -0
  78. package/evals/runners/vendor-grade.sh +82 -0
  79. package/install.sh +323 -0
  80. package/package.json +92 -4
  81. package/requirements/skills-ref.txt +2 -0
  82. package/scripts/build-catalog.js +114 -0
  83. package/scripts/build-prompt.sh +257 -0
  84. package/scripts/context-metrics.js +118 -0
  85. package/scripts/eval-external.js +226 -0
  86. package/scripts/eval-matrix.sh +172 -0
  87. package/scripts/eval-outcome.js +143 -0
  88. package/scripts/eval.sh +321 -0
  89. package/scripts/lint-parity.js +331 -0
  90. package/scripts/lint.sh +743 -0
  91. package/scripts/outcome-summary.js +126 -0
  92. package/scripts/release-check.sh +108 -0
  93. package/scripts/release-prepare.js +41 -0
  94. package/scripts/summarize-eval.js +91 -0
  95. package/scripts/summarize-matrix.js +101 -0
  96. package/scripts/version-sync.js +65 -0
  97. package/skills/godplans/SKILL.md +192 -0
  98. package/skills/godplans/references/agent-memory.md +168 -0
  99. package/skills/godplans/references/architecture.md +189 -0
  100. package/skills/godplans/references/build.md +130 -0
  101. package/skills/godplans/references/business.md +252 -0
  102. package/skills/godplans/references/code-quality.md +165 -0
  103. package/skills/godplans/references/compliance.md +59 -0
  104. package/skills/godplans/references/database.md +157 -0
  105. package/skills/godplans/references/deploy.md +146 -0
  106. package/skills/godplans/references/discovery.md +297 -0
  107. package/skills/godplans/references/doc-set.md +243 -0
  108. package/skills/godplans/references/exemplar.md +228 -0
  109. package/skills/godplans/references/launch.md +162 -0
  110. package/skills/godplans/references/llm.md +132 -0
  111. package/skills/godplans/references/observe.md +178 -0
  112. package/skills/godplans/references/plan-format.md +340 -0
  113. package/skills/godplans/references/product.md +130 -0
  114. package/skills/godplans/references/repo.md +184 -0
  115. package/skills/godplans/references/roadmap.md +158 -0
  116. package/skills/godplans/references/security.md +156 -0
  117. package/skills/godplans/references/seo.md +133 -0
  118. package/skills/godplans/references/stack.md +133 -0
  119. package/skills/godplans/references/style-genome.md +198 -0
  120. package/skills/godplans/references/ui.md +153 -0
  121. package/skills/godplans/references/ux.md +150 -0
  122. package/skills/godplans/schemas/PLAN.schema.json +275 -0
  123. package/skills/godplans/schemas/PLAN.v1.schema.json +258 -0
  124. package/skills/godplans/scripts/plan-halflife.sh +76 -0
  125. package/skills/godplans/scripts/style-stats.py +630 -0
  126. package/skills/godplans/scripts/validate-plan.sh +1709 -0
  127. package/skills/godplans/templates/PLAN.template.mdx +269 -0
  128. package/tests/agent-memory-guidance.sh +32 -0
  129. package/tests/build-catalog.sh +81 -0
  130. package/tests/codex-runner.sh +139 -0
  131. package/tests/eval-harness.sh +377 -0
  132. package/tests/evidence-harnesses.sh +243 -0
  133. package/tests/fixtures/plan-json-v1-1.13.0.json +472 -0
  134. package/tests/install-regression.sh +246 -0
  135. package/tests/lib/plan-schema-check.js +163 -0
  136. package/tests/lint-selftest.sh +582 -0
  137. package/tests/package-contents.sh +140 -0
  138. package/tests/portable-prompt.test.sh +261 -0
  139. package/tests/release-tooling.sh +204 -0
  140. package/tests/run.sh +14 -0
  141. package/tests/script-usage.sh +37 -0
  142. package/tests/style-stats.sh +170 -0
  143. package/tests/validate-plan.sh +1970 -0
  144. package/tests/vendor-runner.sh +291 -0
package/README.md CHANGED
@@ -1,3 +1,202 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <img src="assets/hero.svg" alt="godplans 2.0.0. Plan everything before anything. Status board lists 19 domains, one command, critic gate 85 of 100, validated plan gate, and .godplans/ artifacts." width="100%">
3
+ </p>
2
4
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
5
+ <p align="center">
6
+ <a href="https://github.com/hannsxpeter/godplans/actions/workflows/lint.yml"><img alt="verify" src="https://github.com/hannsxpeter/godplans/actions/workflows/lint.yml/badge.svg"></a>
7
+ <a href="https://www.npmjs.com/package/@hxp-tools/godplans"><img alt="npm" src="https://img.shields.io/npm/v/@hxp-tools/godplans.svg"></a>
8
+ <a href="CHANGELOG.md"><img alt="version" src="https://img.shields.io/badge/version-2.0.0-blue"></a>
9
+ <a href="skills/godplans/SKILL.md"><img alt="agent skills" src="https://img.shields.io/badge/Agent%20Skills-compatible-2f6fed"></a>
10
+ <a href="LICENSE"><img alt="license" src="https://img.shields.io/badge/license-MIT-blue"></a>
11
+ </p>
12
+
13
+ <h3 align="center">Plan everything before anything.</h3>
14
+
15
+ <p align="center"><em>You answer a few hard questions. godplans writes the plan. Any coding agent clears the checkboxes.</em></p>
16
+
17
+ godplans turns an idea or an existing codebase into one audit-aware master plan
18
+ (`.godplans/PLAN.mdx`) before application code is written. Nineteen planning
19
+ domains force the decisions that are expensive to reverse. Anticipatable audit
20
+ checks become task acceptance criteria. A self-contained validator keeps the
21
+ plan honest. Sibling of [godpowers](https://github.com/hannsxpeter/godpowers)
22
+ and [godaudits](https://github.com/hannsxpeter/godaudits). Part of
23
+ [`@hxp-tools`](https://www.npmjs.com/org/hxp-tools).
24
+
25
+ ---
26
+
27
+ ## Press start
28
+
29
+ ```bash
30
+ npx @hxp-tools/godplans@latest
31
+ # or install the skill into your harnesses:
32
+ npx skills add hannsxpeter/godplans
33
+ # or from source:
34
+ git clone https://github.com/hannsxpeter/godplans
35
+ cd godplans && sh install.sh
36
+ ```
37
+
38
+ Then, inside your agent, clear the first level:
39
+
40
+ | Host | First run |
41
+ |---|---|
42
+ | Claude Code, Cursor, VS Code, Factory | `/godplans I want to build ...` |
43
+ | Codex | `$godplans` |
44
+ | Windsurf | `@godplans` |
45
+
46
+ Everything lands in `.godplans/`. Planning is read-only against your app code.
47
+
48
+ ### Claude Code plugin (alternative)
49
+
50
+ ```text
51
+ /plugin marketplace add hannsxpeter/godplans
52
+ /plugin install godplans@godplans
53
+ ```
54
+
55
+ Claude Code prefixes plugin skills, so the command becomes `/godplans:godplans`.
56
+
57
+ ---
58
+
59
+ ## The quest map
60
+
61
+ One command. Five levels. Each writes or unlocks artifacts under `.godplans/`.
62
+
63
+ <p align="center">
64
+ <img src="assets/quest-map.svg" alt="Quest map with five levels: greenfield, brownfield, replan, approve, execute." width="100%">
65
+ </p>
66
+
67
+ | Level | Clear it with | Reward |
68
+ |---|---|---|
69
+ | 1. Greenfield | `/godplans` on a new idea | `PLAN.mdx` |
70
+ | 2. Brownfield | `/godplans` in an existing repo | cited real file paths |
71
+ | 3. Replan | `/godplans` when reality moved | completed work kept |
72
+ | 4. Approve | set `status: approved` | agents may build |
73
+ | 5. Execute | any coding agent | checkboxes clear to `done` |
74
+
75
+ The game layer is a map, not a scoreboard. There are no points or XP. The real
76
+ gates are the critic scores (85 of 100 per domain) and the machine-checked
77
+ validator.
78
+
79
+ <details>
80
+ <summary>What the 19 domains cover</summary>
81
+
82
+ | Area | Question |
83
+ |---|---|
84
+ | Product | What to build and for whom? |
85
+ | Business | Who pays, for what, and how success is measured? |
86
+ | Architecture | How do the pieces fit under load? |
87
+ | Stack | On what technology? |
88
+ | Database | How is data modeled, indexed, and protected? |
89
+ | Security | How is it kept from being broken into or abused? |
90
+ | AI integration | Are model calls safe, costed, and evaluated? |
91
+ | UX | Do the real journeys work end to end? |
92
+ | UI | Is the interface accessible and finished? |
93
+ | Search visibility | Can search and answer engines find it? |
94
+ | Code quality | Is it readable, tested, and safe to change? |
95
+ | Style genome | Does new code match the neighborhood? |
96
+ | Agent memory | Do AI instruction files actually load? |
97
+ | Repository | Is the project set up for others? |
98
+ | Build | Is anything stubbed or faked? |
99
+ | Roadmap | Is the sequence coherent and honest? |
100
+ | Deploy | Can it ship and roll back? |
101
+ | Observe | Would you know when it breaks? |
102
+ | Launch | Is it ready for the public? |
103
+
104
+ A domain that does not apply yet is deferred behind a trigger or excluded with
105
+ a reason. A command-line tool does not get a hollow search-visibility section.
106
+
107
+ </details>
108
+
109
+ ---
110
+
111
+ ## Plan loop
112
+
113
+ <p align="center">
114
+ <img src="assets/plan-loop.svg" alt="Plan loop: orient, ask, decide, grade, emit, execute." width="100%">
115
+ </p>
116
+
117
+ **What you get**
118
+
119
+ | File | What it is |
120
+ |---|---|
121
+ | `PLAN.mdx` | Readable master plan with checkbox tasks |
122
+ | `PLAN.json` | Typed sidecar for tools that should not parse MDX |
123
+ | `validate-plan.sh` | Self-contained companion that proves the plan contract |
124
+
125
+ A task looks like this:
126
+
127
+ ```markdown
128
+ - [ ] GP-203 [W2.1] Add workspace scoping to the expenses table
129
+ - Files: db/migrations/003_expenses_workspace.sql, src/db/expenses.ts
130
+ - Depends on: GP-104
131
+ - Acceptance: every expenses query filters on workspace_id
132
+ - Verify: `npm run test:tenancy`
133
+ - Requirements: R-2.3, R-SEC-4
134
+ ```
135
+
136
+ Lifecycle: `planning -> approved -> executing -> done`. Agents refuse to build
137
+ from an unapproved plan. Only a passing final verification phase can mark it
138
+ `done`.
139
+
140
+ ```bash
141
+ bash .godplans/validate-plan.sh --allow-planning .godplans/PLAN.mdx
142
+ bash .godplans/validate-plan.sh .godplans/PLAN.mdx
143
+ bash .godplans/validate-plan.sh --drift-check 1 .godplans/PLAN.mdx
144
+ ```
145
+
146
+ ---
147
+
148
+ ## Why plan first
149
+
150
+ An audit that finds a missing tenant-isolation policy after three weeks has
151
+ found a rewrite. A plan that requires that policy before the first migration
152
+ has prevented one.
153
+
154
+ godplans closes the gap between planning tools and after-the-fact auditors by
155
+ moving anticipatable checks into the blueprint. Sibling auditors live in
156
+ [auditor-suite](https://github.com/hannsxpeter/auditor-suite). Execution and
157
+ evidence-backed "done" live in
158
+ [godpowers](https://github.com/hannsxpeter/godpowers). End-of-build scoring
159
+ lives in [godaudits](https://github.com/hannsxpeter/godaudits).
160
+
161
+ "Audit-aware" means fewer preventable findings. It does not mean guaranteed
162
+ audit-clean, and it does not replace tests or an independent review.
163
+
164
+ ---
165
+
166
+ ## Works with your tools
167
+
168
+ | Tool | Install path | Invoke |
169
+ |---|---|---|
170
+ | Claude Code | `~/.claude/skills/godplans` | `/godplans` |
171
+ | Codex CLI | `~/.agents/skills/godplans` | `$godplans` |
172
+ | Cursor / VS Code / Copilot | `.agents` and `.claude` paths | `/godplans` |
173
+ | Windsurf | compat paths; native Windsurf skills | `@godplans` |
174
+ | Gemini CLI / OpenCode / Amp | `~/.agents/skills/godplans` | auto |
175
+ | Any chat UI | paste [PROMPT.md](PROMPT.md) | manual |
176
+
177
+ No skill support? Paste [PROMPT.md](PROMPT.md) and attach lazy modules from
178
+ `skills/godplans/references/` as needed.
179
+
180
+ ---
181
+
182
+ ## Docs
183
+
184
+ | Path | Role |
185
+ |---|---|
186
+ | [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) | Sources, generators, artifacts, checks |
187
+ | [`docs/RELEASING.md`](docs/RELEASING.md) | Release checklist |
188
+ | [`MAINTAINING.md`](MAINTAINING.md) | Maintainer rituals |
189
+ | [`CHANGELOG.md`](CHANGELOG.md) | Release history |
190
+ | [`CONTRIBUTING.md`](CONTRIBUTING.md) | Style rules before a PR |
191
+
192
+ ## Development
193
+
194
+ ```bash
195
+ npm test
196
+ npm run lint
197
+ npm run check
198
+ ```
199
+
200
+ ## License
201
+
202
+ [MIT](LICENSE).
@@ -0,0 +1,11 @@
1
+ # Brand assets
2
+
3
+ | File | Use |
4
+ |---|---|
5
+ | `hero.svg` | README banner |
6
+ | `quest-map.svg` | Five playable levels |
7
+ | `plan-loop.svg` | Plan loop: orient through execute |
8
+
9
+ Palette matches the hxp-tools product family (warm dark board, amber accent
10
+ `#E8A54B`). SVG embeds keep type on a documented fallback stack so GitHub and
11
+ npm render the same board.
@@ -0,0 +1,44 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 420" width="1200" height="420" role="img" aria-labelledby="t d">
2
+ <title id="t">godplans 2.0.0</title>
3
+ <desc id="d">godplans wordmark with the line: plan everything before anything. A status board lists 19 domains, one command, a critic gate at 85 of 100, and .godplans/ artifacts.</desc>
4
+ <style>
5
+ .sans{font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif}
6
+ .mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace}
7
+ </style>
8
+ <rect x="0.5" y="0.5" width="1199" height="419" rx="10" fill="#14110E" stroke="#2E2820"/>
9
+ <path d="M1 44H1199V11a10 10 0 0 0-10-10H11A10 10 0 0 0 1 11Z" fill="#1C1814"/>
10
+ <line x1="1" y1="44" x2="1199" y2="44" stroke="#2E2820"/>
11
+ <text x="32" y="28" class="mono" font-size="13" font-weight="700" fill="#E8A54B" letter-spacing="1.5">GODPLANS 2.0.0</text>
12
+ <text x="600" y="28" class="mono" font-size="13" fill="#A09078" text-anchor="middle">@hxp-tools/godplans</text>
13
+ <text x="1168" y="28" class="mono" font-size="13" fill="#A09078" text-anchor="end">PRESS START /godplans</text>
14
+
15
+ <text x="52" y="168" class="sans" font-size="92" font-weight="800" fill="#F5EFE4" letter-spacing="-3">godplans</text>
16
+ <rect x="52" y="188" width="56" height="6" fill="#E8A54B"/>
17
+ <text x="52" y="238" class="sans" font-size="28" font-weight="600" fill="#F5EFE4">Plan everything before anything.</text>
18
+ <text x="52" y="276" class="sans" font-size="28" font-weight="600" fill="#F5EFE4">One command. One checkbox plan.</text>
19
+ <text x="52" y="318" class="sans" font-size="17" fill="#A09078">Nineteen domains. Critic gate. Any coding agent can execute it.</text>
20
+
21
+ <g transform="translate(776 76)">
22
+ <rect width="392" height="270" rx="4" fill="#1C1814" stroke="#2E2820"/>
23
+ <text x="20" y="31" class="mono" font-size="12" font-weight="700" fill="#A09078" letter-spacing="2">STATUS BOARD</text>
24
+ <line x1="0" y1="46" x2="392" y2="46" stroke="#2E2820"/>
25
+ <g class="sans" font-size="17" fill="#F5EFE4">
26
+ <text x="20" y="80">Domains</text>
27
+ <text x="20" y="124">Interface</text>
28
+ <text x="20" y="168">Critic gate</text>
29
+ <text x="20" y="212">Plan gate</text>
30
+ <text x="20" y="256">Artifacts</text>
31
+ </g>
32
+ <g class="mono" font-size="22" font-weight="700" fill="#E8A54B" text-anchor="end">
33
+ <text x="372" y="80">19</text>
34
+ <text x="372" y="124">1 COMMAND</text>
35
+ <text x="372" y="168">85 / 100</text>
36
+ <text x="372" y="212">VALIDATED</text>
37
+ <text x="372" y="256">.godplans/</text>
38
+ </g>
39
+ <g stroke="#2E2820">
40
+ <line x1="0" y1="90" x2="392" y2="90"/><line x1="0" y1="134" x2="392" y2="134"/>
41
+ <line x1="0" y1="178" x2="392" y2="178"/><line x1="0" y1="222" x2="392" y2="222"/>
42
+ </g>
43
+ </g>
44
+ </svg>
@@ -0,0 +1,62 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 420" width="1200" height="420" role="img" aria-labelledby="t d">
2
+ <title id="t">godplans plan loop</title>
3
+ <desc id="d">How a plan run works. Orient picks the mode. Ask three to five hard questions. Decide across nineteen domains. Grade with an independent critic. Emit PLAN.mdx. Execute checkbox by checkbox.</desc>
4
+ <style>
5
+ .sans{font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif}
6
+ .mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace}
7
+ </style>
8
+ <rect x="0.5" y="0.5" width="1199" height="419" rx="10" fill="#14110E" stroke="#2E2820"/>
9
+ <path d="M1 44H1199V11a10 10 0 0 0-10-10H11A10 10 0 0 0 1 11Z" fill="#1C1814"/>
10
+ <line x1="1" y1="44" x2="1199" y2="44" stroke="#2E2820"/>
11
+ <text x="32" y="28" class="mono" font-size="13" font-weight="700" fill="#E8A54B" letter-spacing="1.5">PLAN LOOP</text>
12
+ <text x="1168" y="28" class="mono" font-size="13" fill="#A09078" text-anchor="end">NO XP REAL GATES</text>
13
+
14
+ <g transform="translate(36 84)">
15
+ <rect width="176" height="280" rx="4" fill="#1C1814" stroke="#E8A54B"/>
16
+ <text x="20" y="48" class="mono" font-size="28" font-weight="700" fill="#E8A54B">1</text>
17
+ <text x="20" y="88" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Orient</text>
18
+ <text x="20" y="120" class="sans" font-size="13" fill="#A09078">Greenfield,</text>
19
+ <text x="20" y="142" class="sans" font-size="13" fill="#A09078">brownfield, replan.</text>
20
+ <text x="20" y="250" class="mono" font-size="12" fill="#E8A54B">phase 0</text>
21
+ </g>
22
+ <g transform="translate(228 84)">
23
+ <rect width="176" height="280" rx="4" fill="#1C1814" stroke="#2E2820"/>
24
+ <text x="20" y="48" class="mono" font-size="28" font-weight="700" fill="#E8A54B">2</text>
25
+ <text x="20" y="88" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Ask</text>
26
+ <text x="20" y="120" class="sans" font-size="13" fill="#A09078">Three to five</text>
27
+ <text x="20" y="142" class="sans" font-size="13" fill="#A09078">hard questions.</text>
28
+ <text x="20" y="250" class="mono" font-size="12" fill="#E8A54B">discovery</text>
29
+ </g>
30
+ <g transform="translate(420 84)">
31
+ <rect width="176" height="280" rx="4" fill="#1C1814" stroke="#2E2820"/>
32
+ <text x="20" y="48" class="mono" font-size="28" font-weight="700" fill="#E8A54B">3</text>
33
+ <text x="20" y="88" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Decide</text>
34
+ <text x="20" y="120" class="sans" font-size="13" fill="#A09078">Nineteen domains.</text>
35
+ <text x="20" y="142" class="sans" font-size="13" fill="#A09078">Audit checks invert.</text>
36
+ <text x="20" y="250" class="mono" font-size="12" fill="#E8A54B">domain passes</text>
37
+ </g>
38
+ <g transform="translate(612 84)">
39
+ <rect width="176" height="280" rx="4" fill="#1C1814" stroke="#2E2820"/>
40
+ <text x="20" y="48" class="mono" font-size="28" font-weight="700" fill="#E8A54B">4</text>
41
+ <text x="20" y="88" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Grade</text>
42
+ <text x="20" y="120" class="sans" font-size="13" fill="#A09078">Independent critic.</text>
43
+ <text x="20" y="142" class="sans" font-size="13" fill="#A09078">Pass at 85 of 100.</text>
44
+ <text x="20" y="250" class="mono" font-size="12" fill="#E8A54B">phase 6</text>
45
+ </g>
46
+ <g transform="translate(804 84)">
47
+ <rect width="176" height="280" rx="4" fill="#1C1814" stroke="#2E2820"/>
48
+ <text x="20" y="48" class="mono" font-size="28" font-weight="700" fill="#E8A54B">5</text>
49
+ <text x="20" y="88" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Emit</text>
50
+ <text x="20" y="120" class="sans" font-size="13" fill="#A09078">PLAN.mdx plus</text>
51
+ <text x="20" y="142" class="sans" font-size="13" fill="#A09078">validator companion.</text>
52
+ <text x="20" y="250" class="mono" font-size="12" fill="#E8A54B">.godplans/</text>
53
+ </g>
54
+ <g transform="translate(996 84)">
55
+ <rect width="168" height="280" rx="4" fill="#1C1814" stroke="#2E2820"/>
56
+ <text x="20" y="48" class="mono" font-size="28" font-weight="700" fill="#E8A54B">6</text>
57
+ <text x="20" y="88" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Execute</text>
58
+ <text x="20" y="120" class="sans" font-size="13" fill="#A09078">Any agent clears</text>
59
+ <text x="20" y="142" class="sans" font-size="13" fill="#A09078">checkbox tasks.</text>
60
+ <text x="20" y="250" class="mono" font-size="12" fill="#E8A54B">verify cmds</text>
61
+ </g>
62
+ </svg>
@@ -0,0 +1,80 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 420" width="1200" height="420" role="img" aria-labelledby="t d">
2
+ <title id="t">godplans quest map</title>
3
+ <desc id="d">Five levels. 01 greenfield plans a new idea. 02 brownfield extends an existing codebase. 03 replan preserves completed work. 04 approve unlocks building. 05 execute clears checkbox tasks.</desc>
4
+ <style>
5
+ .sans{font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif}
6
+ .mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace}
7
+ </style>
8
+ <rect x="0.5" y="0.5" width="1199" height="419" rx="10" fill="#14110E" stroke="#2E2820"/>
9
+ <path d="M1 44H1199V11a10 10 0 0 0-10-10H11A10 10 0 0 0 1 11Z" fill="#1C1814"/>
10
+ <line x1="1" y1="44" x2="1199" y2="44" stroke="#2E2820"/>
11
+ <text x="32" y="28" class="mono" font-size="13" font-weight="700" fill="#E8A54B" letter-spacing="1.5">QUEST MAP</text>
12
+ <text x="1168" y="28" class="mono" font-size="13" fill="#A09078" text-anchor="end">FIVE LEVELS ONE PLAN FILE</text>
13
+
14
+ <g transform="translate(28 76)">
15
+ <rect width="220" height="300" rx="4" fill="#1C1814" stroke="#E8A54B"/>
16
+ <text x="18" y="48" class="mono" font-size="34" font-weight="700" fill="#E8A54B">01</text>
17
+ <text x="18" y="84" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Greenfield</text>
18
+ <text x="18" y="108" class="sans" font-size="13" fill="#A09078">Brand new idea</text>
19
+ <line x1="18" y1="128" x2="202" y2="128" stroke="#2E2820"/>
20
+ <text x="18" y="152" class="mono" font-size="10" fill="#A09078" letter-spacing="1.5">CLEAR IT WITH</text>
21
+ <text x="18" y="178" class="mono" font-size="14" font-weight="700" fill="#F5EFE4">/godplans</text>
22
+ <line x1="18" y1="214" x2="202" y2="214" stroke="#2E2820"/>
23
+ <text x="18" y="242" class="sans" font-size="12" fill="#A09078">Reward:</text>
24
+ <text x="18" y="264" class="mono" font-size="13" fill="#E8A54B">PLAN.mdx</text>
25
+ <rect x="136" y="18" width="66" height="22" rx="3" fill="#E8A54B"/>
26
+ <text x="169" y="33" class="mono" font-size="12" font-weight="700" fill="#14110E" text-anchor="middle" letter-spacing="1.5">START</text>
27
+ </g>
28
+ <g transform="translate(260 76)">
29
+ <rect width="220" height="300" rx="4" fill="#1C1814" stroke="#2E2820"/>
30
+ <text x="18" y="48" class="mono" font-size="34" font-weight="700" fill="#E8A54B">02</text>
31
+ <text x="18" y="84" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Brownfield</text>
32
+ <text x="18" y="108" class="sans" font-size="13" fill="#A09078">Extend what exists</text>
33
+ <line x1="18" y1="128" x2="202" y2="128" stroke="#2E2820"/>
34
+ <text x="18" y="152" class="mono" font-size="10" fill="#A09078" letter-spacing="1.5">CLEAR IT WITH</text>
35
+ <text x="18" y="178" class="mono" font-size="13" font-weight="700" fill="#F5EFE4">/godplans</text>
36
+ <text x="18" y="198" class="mono" font-size="13" font-weight="700" fill="#F5EFE4">in this repo</text>
37
+ <line x1="18" y1="230" x2="202" y2="230" stroke="#2E2820"/>
38
+ <text x="18" y="258" class="sans" font-size="12" fill="#A09078">Reward: cited</text>
39
+ <text x="18" y="280" class="mono" font-size="13" fill="#E8A54B">file paths</text>
40
+ </g>
41
+ <g transform="translate(492 76)">
42
+ <rect width="220" height="300" rx="4" fill="#1C1814" stroke="#2E2820"/>
43
+ <text x="18" y="48" class="mono" font-size="34" font-weight="700" fill="#E8A54B">03</text>
44
+ <text x="18" y="84" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Replan</text>
45
+ <text x="18" y="108" class="sans" font-size="13" fill="#A09078">Reality moved</text>
46
+ <line x1="18" y1="128" x2="202" y2="128" stroke="#2E2820"/>
47
+ <text x="18" y="152" class="mono" font-size="10" fill="#A09078" letter-spacing="1.5">CLEAR IT WITH</text>
48
+ <text x="18" y="178" class="mono" font-size="13" font-weight="700" fill="#F5EFE4">/godplans</text>
49
+ <text x="18" y="198" class="mono" font-size="13" font-weight="700" fill="#F5EFE4">replan</text>
50
+ <line x1="18" y1="230" x2="202" y2="230" stroke="#2E2820"/>
51
+ <text x="18" y="258" class="sans" font-size="12" fill="#A09078">Reward: keep</text>
52
+ <text x="18" y="280" class="mono" font-size="13" fill="#E8A54B">done work</text>
53
+ </g>
54
+ <g transform="translate(724 76)">
55
+ <rect width="220" height="300" rx="4" fill="#1C1814" stroke="#2E2820"/>
56
+ <text x="18" y="48" class="mono" font-size="34" font-weight="700" fill="#E8A54B">04</text>
57
+ <text x="18" y="84" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Approve</text>
58
+ <text x="18" y="108" class="sans" font-size="13" fill="#A09078">Unlock building</text>
59
+ <line x1="18" y1="128" x2="202" y2="128" stroke="#2E2820"/>
60
+ <text x="18" y="152" class="mono" font-size="10" fill="#A09078" letter-spacing="1.5">CLEAR IT WITH</text>
61
+ <text x="18" y="178" class="mono" font-size="13" font-weight="700" fill="#F5EFE4">status:</text>
62
+ <text x="18" y="198" class="mono" font-size="13" font-weight="700" fill="#F5EFE4">approved</text>
63
+ <line x1="18" y1="230" x2="202" y2="230" stroke="#2E2820"/>
64
+ <text x="18" y="258" class="sans" font-size="12" fill="#A09078">Reward: agents</text>
65
+ <text x="18" y="280" class="mono" font-size="13" fill="#E8A54B">may build</text>
66
+ </g>
67
+ <g transform="translate(956 76)">
68
+ <rect width="216" height="300" rx="4" fill="#1C1814" stroke="#2E2820"/>
69
+ <text x="18" y="48" class="mono" font-size="34" font-weight="700" fill="#E8A54B">05</text>
70
+ <text x="18" y="84" class="sans" font-size="20" font-weight="700" fill="#F5EFE4">Execute</text>
71
+ <text x="18" y="108" class="sans" font-size="13" fill="#A09078">Clear the boxes</text>
72
+ <line x1="18" y1="128" x2="198" y2="128" stroke="#2E2820"/>
73
+ <text x="18" y="152" class="mono" font-size="10" fill="#A09078" letter-spacing="1.5">CLEAR IT WITH</text>
74
+ <text x="18" y="178" class="mono" font-size="13" font-weight="700" fill="#F5EFE4">any coding</text>
75
+ <text x="18" y="198" class="mono" font-size="13" font-weight="700" fill="#F5EFE4">agent</text>
76
+ <line x1="18" y1="230" x2="198" y2="230" stroke="#2E2820"/>
77
+ <text x="18" y="258" class="sans" font-size="12" fill="#A09078">Reward:</text>
78
+ <text x="18" y="280" class="mono" font-size="13" fill="#E8A54B">status done</text>
79
+ </g>
80
+ </svg>
@@ -0,0 +1,93 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ // Installs the godplans skill into supported coding-agent skill directories.
5
+ // Thin Node wrapper around install.sh so `npx @hxp-tools/godplans` works.
6
+
7
+ const { spawnSync } = require('child_process');
8
+ const fs = require('fs');
9
+ const path = require('path');
10
+
11
+ const ROOT = path.resolve(__dirname, '..');
12
+ const INSTALLER = path.join(ROOT, 'install.sh');
13
+ const PKG = require('../package.json');
14
+
15
+ const COLORS = {
16
+ reset: '\x1b[0m',
17
+ bold: '\x1b[1m',
18
+ dim: '\x1b[2m',
19
+ cyan: '\x1b[36m',
20
+ green: '\x1b[32m',
21
+ red: '\x1b[31m',
22
+ };
23
+
24
+ function c(color, text) {
25
+ return COLORS[color] + text + COLORS.reset;
26
+ }
27
+
28
+ function usage() {
29
+ console.log(`
30
+ ${c('bold', 'godplans')} ${c('dim', 'v' + PKG.version)}
31
+ Plan everything before anything.
32
+
33
+ ${c('bold', 'Usage')}
34
+ npx @hxp-tools/godplans@latest
35
+ npx @hxp-tools/godplans@latest --project
36
+ npx @hxp-tools/godplans@latest --tools claude,codex
37
+ npx @hxp-tools/godplans@latest --uninstall
38
+ npx @hxp-tools/godplans@latest --help
39
+
40
+ ${c('bold', 'After install')}
41
+ Restart your coding agent, then run:
42
+ /godplans I want to build ...
43
+
44
+ ${c('bold', 'Requirements')}
45
+ A POSIX host with sh. Windows is not supported by the installer.
46
+ `);
47
+ }
48
+
49
+ function main(argv) {
50
+ const args = argv.slice(2);
51
+ if (args.includes('--help') || args.includes('-h')) {
52
+ usage();
53
+ return 0;
54
+ }
55
+ if (args.includes('--version') || args.includes('-v')) {
56
+ console.log(PKG.version);
57
+ return 0;
58
+ }
59
+
60
+ if (process.platform === 'win32') {
61
+ console.error(c('red', 'godplans installer does not support Windows.'));
62
+ console.error('Clone the repository on a POSIX host and run sh install.sh --copy.');
63
+ return 2;
64
+ }
65
+
66
+ if (!fs.existsSync(INSTALLER)) {
67
+ console.error(c('red', 'install.sh missing from package.'));
68
+ return 2;
69
+ }
70
+
71
+ console.log(c('cyan', 'godplans') + ' ' + c('dim', 'v' + PKG.version));
72
+ console.log(c('dim', 'Installing the skill...'));
73
+ console.log('');
74
+
75
+ const result = spawnSync('sh', [INSTALLER].concat(args), {
76
+ cwd: ROOT,
77
+ stdio: 'inherit',
78
+ env: process.env,
79
+ });
80
+
81
+ if (result.error) {
82
+ console.error(c('red', String(result.error.message || result.error)));
83
+ return 1;
84
+ }
85
+ if (result.status === 0) {
86
+ console.log('');
87
+ console.log(c('green', 'Next: restart your agent, then run /godplans with your idea.'));
88
+ console.log(c('dim', 'Docs: ' + (PKG.homepage || 'https://github.com/hannsxpeter/godplans')));
89
+ }
90
+ return result.status == null ? 1 : result.status;
91
+ }
92
+
93
+ process.exitCode = main(process.argv);