@garygentry/feature-forge 0.1.3 → 0.1.5

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 (189) hide show
  1. package/README.md +1 -1
  2. package/adapters/GENERATION-REPORT.md +5 -1
  3. package/adapters/claude/references/forge-config-schema.json +36 -10
  4. package/adapters/claude/references/pipeline-state-schema.json +4 -0
  5. package/adapters/claude/references/process-overview.md +14 -4
  6. package/adapters/claude/references/shared-conventions.md +46 -0
  7. package/adapters/claude/references/templates/specs-hygiene/AGENTS.md +23 -0
  8. package/adapters/claude/references/templates/specs-hygiene/CLAUDE.md +22 -0
  9. package/adapters/claude/skills/forge-0-epic/SKILL.md +7 -5
  10. package/adapters/claude/skills/forge-1-prd/SKILL.md +4 -2
  11. package/adapters/claude/skills/forge-5-loop/SKILL.md +18 -16
  12. package/adapters/claude/skills/forge-5-loop/references/result-reporting.md +13 -0
  13. package/adapters/claude/skills/forge-5-loop/references/runner-contract.md +40 -0
  14. package/adapters/claude/skills/forge-6-docs/SKILL.md +10 -0
  15. package/adapters/claude/skills/forge-bootstrap/SKILL.md +240 -0
  16. package/adapters/claude/skills/forge-bootstrap/references/templates/ci/github-actions.yml +12 -0
  17. package/adapters/claude/skills/forge-bootstrap/references/templates/generic/run.sh +3 -0
  18. package/adapters/claude/skills/forge-bootstrap/references/templates/generic/test.sh +13 -0
  19. package/adapters/claude/skills/forge-bootstrap/references/templates/go/go.mod +3 -0
  20. package/adapters/claude/skills/forge-bootstrap/references/templates/go/main.go +12 -0
  21. package/adapters/claude/skills/forge-bootstrap/references/templates/go/main_test.go +11 -0
  22. package/adapters/claude/skills/forge-bootstrap/references/templates/hygiene/AGENTS.md +24 -0
  23. package/adapters/claude/skills/forge-bootstrap/references/templates/hygiene/CLAUDE.md +25 -0
  24. package/adapters/claude/skills/forge-bootstrap/references/templates/hygiene/README.md +11 -0
  25. package/adapters/claude/skills/forge-bootstrap/references/templates/licenses/Apache-2.0/LICENSE +198 -0
  26. package/adapters/claude/skills/forge-bootstrap/references/templates/licenses/MIT/LICENSE +21 -0
  27. package/adapters/claude/skills/forge-bootstrap/references/templates/python/pyproject.toml +24 -0
  28. package/adapters/claude/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/__init__.py +5 -0
  29. package/adapters/claude/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/main.py +13 -0
  30. package/adapters/claude/skills/forge-bootstrap/references/templates/python/tests/test_smoke.py +8 -0
  31. package/adapters/claude/skills/forge-bootstrap/references/templates/rust/Cargo.toml +15 -0
  32. package/adapters/claude/skills/forge-bootstrap/references/templates/rust/src/lib.rs +7 -0
  33. package/adapters/claude/skills/forge-bootstrap/references/templates/rust/src/main.rs +5 -0
  34. package/adapters/claude/skills/forge-bootstrap/references/templates/rust/tests/smoke.rs +6 -0
  35. package/adapters/claude/skills/forge-bootstrap/references/templates/typescript/package.json +15 -0
  36. package/adapters/claude/skills/forge-bootstrap/references/templates/typescript/src/index.ts +4 -0
  37. package/adapters/claude/skills/forge-bootstrap/references/templates/typescript/test/smoke.test.ts +6 -0
  38. package/adapters/claude/skills/forge-bootstrap/references/templates/typescript/tsconfig.json +14 -0
  39. package/adapters/codex/references/forge-config-schema.json +36 -10
  40. package/adapters/codex/references/pipeline-state-schema.json +4 -0
  41. package/adapters/codex/references/process-overview.md +14 -4
  42. package/adapters/codex/references/shared-conventions.md +46 -0
  43. package/adapters/codex/references/templates/specs-hygiene/AGENTS.md +23 -0
  44. package/adapters/codex/references/templates/specs-hygiene/CLAUDE.md +22 -0
  45. package/adapters/codex/skills/forge-0-epic/forge-0-epic.md +7 -5
  46. package/adapters/codex/skills/forge-1-prd/forge-1-prd.md +4 -2
  47. package/adapters/codex/skills/forge-5-loop/forge-5-loop.md +18 -16
  48. package/adapters/codex/skills/forge-5-loop/references/result-reporting.md +13 -0
  49. package/adapters/codex/skills/forge-5-loop/references/runner-contract.md +40 -0
  50. package/adapters/codex/skills/forge-6-docs/forge-6-docs.md +10 -0
  51. package/adapters/codex/skills/forge-bootstrap/forge-bootstrap.md +239 -0
  52. package/adapters/codex/skills/forge-bootstrap/references/templates/ci/github-actions.yml +12 -0
  53. package/adapters/codex/skills/forge-bootstrap/references/templates/generic/run.sh +3 -0
  54. package/adapters/codex/skills/forge-bootstrap/references/templates/generic/test.sh +13 -0
  55. package/adapters/codex/skills/forge-bootstrap/references/templates/go/go.mod +3 -0
  56. package/adapters/codex/skills/forge-bootstrap/references/templates/go/main.go +12 -0
  57. package/adapters/codex/skills/forge-bootstrap/references/templates/go/main_test.go +11 -0
  58. package/adapters/codex/skills/forge-bootstrap/references/templates/hygiene/AGENTS.md +24 -0
  59. package/adapters/codex/skills/forge-bootstrap/references/templates/hygiene/CLAUDE.md +25 -0
  60. package/adapters/codex/skills/forge-bootstrap/references/templates/hygiene/README.md +11 -0
  61. package/adapters/codex/skills/forge-bootstrap/references/templates/licenses/Apache-2.0/LICENSE +198 -0
  62. package/adapters/codex/skills/forge-bootstrap/references/templates/licenses/MIT/LICENSE +21 -0
  63. package/adapters/codex/skills/forge-bootstrap/references/templates/python/pyproject.toml +24 -0
  64. package/adapters/codex/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/__init__.py +5 -0
  65. package/adapters/codex/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/main.py +13 -0
  66. package/adapters/codex/skills/forge-bootstrap/references/templates/python/tests/test_smoke.py +8 -0
  67. package/adapters/codex/skills/forge-bootstrap/references/templates/rust/Cargo.toml +15 -0
  68. package/adapters/codex/skills/forge-bootstrap/references/templates/rust/src/lib.rs +7 -0
  69. package/adapters/codex/skills/forge-bootstrap/references/templates/rust/src/main.rs +5 -0
  70. package/adapters/codex/skills/forge-bootstrap/references/templates/rust/tests/smoke.rs +6 -0
  71. package/adapters/codex/skills/forge-bootstrap/references/templates/typescript/package.json +15 -0
  72. package/adapters/codex/skills/forge-bootstrap/references/templates/typescript/src/index.ts +4 -0
  73. package/adapters/codex/skills/forge-bootstrap/references/templates/typescript/test/smoke.test.ts +6 -0
  74. package/adapters/codex/skills/forge-bootstrap/references/templates/typescript/tsconfig.json +14 -0
  75. package/adapters/copilot/references/forge-config-schema.json +36 -10
  76. package/adapters/copilot/references/pipeline-state-schema.json +4 -0
  77. package/adapters/copilot/references/process-overview.md +14 -4
  78. package/adapters/copilot/references/shared-conventions.md +46 -0
  79. package/adapters/copilot/references/templates/specs-hygiene/AGENTS.md +23 -0
  80. package/adapters/copilot/references/templates/specs-hygiene/CLAUDE.md +22 -0
  81. package/adapters/copilot/skills/forge-0-epic/forge-0-epic.md +7 -5
  82. package/adapters/copilot/skills/forge-1-prd/forge-1-prd.md +4 -2
  83. package/adapters/copilot/skills/forge-5-loop/forge-5-loop.md +18 -16
  84. package/adapters/copilot/skills/forge-5-loop/references/result-reporting.md +13 -0
  85. package/adapters/copilot/skills/forge-5-loop/references/runner-contract.md +40 -0
  86. package/adapters/copilot/skills/forge-6-docs/forge-6-docs.md +10 -0
  87. package/adapters/copilot/skills/forge-bootstrap/forge-bootstrap.md +239 -0
  88. package/adapters/copilot/skills/forge-bootstrap/references/templates/ci/github-actions.yml +12 -0
  89. package/adapters/copilot/skills/forge-bootstrap/references/templates/generic/run.sh +3 -0
  90. package/adapters/copilot/skills/forge-bootstrap/references/templates/generic/test.sh +13 -0
  91. package/adapters/copilot/skills/forge-bootstrap/references/templates/go/go.mod +3 -0
  92. package/adapters/copilot/skills/forge-bootstrap/references/templates/go/main.go +12 -0
  93. package/adapters/copilot/skills/forge-bootstrap/references/templates/go/main_test.go +11 -0
  94. package/adapters/copilot/skills/forge-bootstrap/references/templates/hygiene/AGENTS.md +24 -0
  95. package/adapters/copilot/skills/forge-bootstrap/references/templates/hygiene/CLAUDE.md +25 -0
  96. package/adapters/copilot/skills/forge-bootstrap/references/templates/hygiene/README.md +11 -0
  97. package/adapters/copilot/skills/forge-bootstrap/references/templates/licenses/Apache-2.0/LICENSE +198 -0
  98. package/adapters/copilot/skills/forge-bootstrap/references/templates/licenses/MIT/LICENSE +21 -0
  99. package/adapters/copilot/skills/forge-bootstrap/references/templates/python/pyproject.toml +24 -0
  100. package/adapters/copilot/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/__init__.py +5 -0
  101. package/adapters/copilot/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/main.py +13 -0
  102. package/adapters/copilot/skills/forge-bootstrap/references/templates/python/tests/test_smoke.py +8 -0
  103. package/adapters/copilot/skills/forge-bootstrap/references/templates/rust/Cargo.toml +15 -0
  104. package/adapters/copilot/skills/forge-bootstrap/references/templates/rust/src/lib.rs +7 -0
  105. package/adapters/copilot/skills/forge-bootstrap/references/templates/rust/src/main.rs +5 -0
  106. package/adapters/copilot/skills/forge-bootstrap/references/templates/rust/tests/smoke.rs +6 -0
  107. package/adapters/copilot/skills/forge-bootstrap/references/templates/typescript/package.json +15 -0
  108. package/adapters/copilot/skills/forge-bootstrap/references/templates/typescript/src/index.ts +4 -0
  109. package/adapters/copilot/skills/forge-bootstrap/references/templates/typescript/test/smoke.test.ts +6 -0
  110. package/adapters/copilot/skills/forge-bootstrap/references/templates/typescript/tsconfig.json +14 -0
  111. package/adapters/cursor/references/forge-config-schema.json +36 -10
  112. package/adapters/cursor/references/pipeline-state-schema.json +4 -0
  113. package/adapters/cursor/references/process-overview.md +14 -4
  114. package/adapters/cursor/references/shared-conventions.md +46 -0
  115. package/adapters/cursor/references/templates/specs-hygiene/AGENTS.md +23 -0
  116. package/adapters/cursor/references/templates/specs-hygiene/CLAUDE.md +22 -0
  117. package/adapters/cursor/skills/forge-0-epic/forge-0-epic.mdc +7 -5
  118. package/adapters/cursor/skills/forge-1-prd/forge-1-prd.mdc +4 -2
  119. package/adapters/cursor/skills/forge-5-loop/forge-5-loop.mdc +18 -16
  120. package/adapters/cursor/skills/forge-5-loop/references/result-reporting.md +13 -0
  121. package/adapters/cursor/skills/forge-5-loop/references/runner-contract.md +40 -0
  122. package/adapters/cursor/skills/forge-6-docs/forge-6-docs.mdc +10 -0
  123. package/adapters/cursor/skills/forge-bootstrap/forge-bootstrap.mdc +240 -0
  124. package/adapters/cursor/skills/forge-bootstrap/references/templates/ci/github-actions.yml +12 -0
  125. package/adapters/cursor/skills/forge-bootstrap/references/templates/generic/run.sh +3 -0
  126. package/adapters/cursor/skills/forge-bootstrap/references/templates/generic/test.sh +13 -0
  127. package/adapters/cursor/skills/forge-bootstrap/references/templates/go/go.mod +3 -0
  128. package/adapters/cursor/skills/forge-bootstrap/references/templates/go/main.go +12 -0
  129. package/adapters/cursor/skills/forge-bootstrap/references/templates/go/main_test.go +11 -0
  130. package/adapters/cursor/skills/forge-bootstrap/references/templates/hygiene/AGENTS.md +24 -0
  131. package/adapters/cursor/skills/forge-bootstrap/references/templates/hygiene/CLAUDE.md +25 -0
  132. package/adapters/cursor/skills/forge-bootstrap/references/templates/hygiene/README.md +11 -0
  133. package/adapters/cursor/skills/forge-bootstrap/references/templates/licenses/Apache-2.0/LICENSE +198 -0
  134. package/adapters/cursor/skills/forge-bootstrap/references/templates/licenses/MIT/LICENSE +21 -0
  135. package/adapters/cursor/skills/forge-bootstrap/references/templates/python/pyproject.toml +24 -0
  136. package/adapters/cursor/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/__init__.py +5 -0
  137. package/adapters/cursor/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/main.py +13 -0
  138. package/adapters/cursor/skills/forge-bootstrap/references/templates/python/tests/test_smoke.py +8 -0
  139. package/adapters/cursor/skills/forge-bootstrap/references/templates/rust/Cargo.toml +15 -0
  140. package/adapters/cursor/skills/forge-bootstrap/references/templates/rust/src/lib.rs +7 -0
  141. package/adapters/cursor/skills/forge-bootstrap/references/templates/rust/src/main.rs +5 -0
  142. package/adapters/cursor/skills/forge-bootstrap/references/templates/rust/tests/smoke.rs +6 -0
  143. package/adapters/cursor/skills/forge-bootstrap/references/templates/typescript/package.json +15 -0
  144. package/adapters/cursor/skills/forge-bootstrap/references/templates/typescript/src/index.ts +4 -0
  145. package/adapters/cursor/skills/forge-bootstrap/references/templates/typescript/test/smoke.test.ts +6 -0
  146. package/adapters/cursor/skills/forge-bootstrap/references/templates/typescript/tsconfig.json +14 -0
  147. package/adapters/gemini/gemini-extension.json +4 -0
  148. package/adapters/gemini/references/forge-config-schema.json +36 -10
  149. package/adapters/gemini/references/pipeline-state-schema.json +4 -0
  150. package/adapters/gemini/references/process-overview.md +14 -4
  151. package/adapters/gemini/references/shared-conventions.md +46 -0
  152. package/adapters/gemini/references/templates/specs-hygiene/AGENTS.md +23 -0
  153. package/adapters/gemini/references/templates/specs-hygiene/CLAUDE.md +22 -0
  154. package/adapters/gemini/skills/forge-0-epic/forge-0-epic.md +7 -5
  155. package/adapters/gemini/skills/forge-1-prd/forge-1-prd.md +4 -2
  156. package/adapters/gemini/skills/forge-5-loop/forge-5-loop.md +18 -16
  157. package/adapters/gemini/skills/forge-5-loop/references/result-reporting.md +13 -0
  158. package/adapters/gemini/skills/forge-5-loop/references/runner-contract.md +40 -0
  159. package/adapters/gemini/skills/forge-6-docs/forge-6-docs.md +10 -0
  160. package/adapters/gemini/skills/forge-bootstrap/forge-bootstrap.md +239 -0
  161. package/adapters/gemini/skills/forge-bootstrap/references/templates/ci/github-actions.yml +12 -0
  162. package/adapters/gemini/skills/forge-bootstrap/references/templates/generic/run.sh +3 -0
  163. package/adapters/gemini/skills/forge-bootstrap/references/templates/generic/test.sh +13 -0
  164. package/adapters/gemini/skills/forge-bootstrap/references/templates/go/go.mod +3 -0
  165. package/adapters/gemini/skills/forge-bootstrap/references/templates/go/main.go +12 -0
  166. package/adapters/gemini/skills/forge-bootstrap/references/templates/go/main_test.go +11 -0
  167. package/adapters/gemini/skills/forge-bootstrap/references/templates/hygiene/AGENTS.md +24 -0
  168. package/adapters/gemini/skills/forge-bootstrap/references/templates/hygiene/CLAUDE.md +25 -0
  169. package/adapters/gemini/skills/forge-bootstrap/references/templates/hygiene/README.md +11 -0
  170. package/adapters/gemini/skills/forge-bootstrap/references/templates/licenses/Apache-2.0/LICENSE +198 -0
  171. package/adapters/gemini/skills/forge-bootstrap/references/templates/licenses/MIT/LICENSE +21 -0
  172. package/adapters/gemini/skills/forge-bootstrap/references/templates/python/pyproject.toml +24 -0
  173. package/adapters/gemini/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/__init__.py +5 -0
  174. package/adapters/gemini/skills/forge-bootstrap/references/templates/python/src/{{PKG}}/main.py +13 -0
  175. package/adapters/gemini/skills/forge-bootstrap/references/templates/python/tests/test_smoke.py +8 -0
  176. package/adapters/gemini/skills/forge-bootstrap/references/templates/rust/Cargo.toml +15 -0
  177. package/adapters/gemini/skills/forge-bootstrap/references/templates/rust/src/lib.rs +7 -0
  178. package/adapters/gemini/skills/forge-bootstrap/references/templates/rust/src/main.rs +5 -0
  179. package/adapters/gemini/skills/forge-bootstrap/references/templates/rust/tests/smoke.rs +6 -0
  180. package/adapters/gemini/skills/forge-bootstrap/references/templates/typescript/package.json +15 -0
  181. package/adapters/gemini/skills/forge-bootstrap/references/templates/typescript/src/index.ts +4 -0
  182. package/adapters/gemini/skills/forge-bootstrap/references/templates/typescript/test/smoke.test.ts +6 -0
  183. package/adapters/gemini/skills/forge-bootstrap/references/templates/typescript/tsconfig.json +14 -0
  184. package/dist/cli.js +15 -2
  185. package/dist/manifest.d.ts +1 -1
  186. package/dist/rauf.d.ts +4 -4
  187. package/dist/rauf.js +3 -3
  188. package/dist/types.d.ts +1 -1
  189. package/package.json +1 -1
@@ -34,6 +34,10 @@ Check `{resolvedFeatureDir}/backlog.json` (or `{backlogDir}/{feature}/backlog.js
34
34
 
35
35
  Also check `.pipeline-state.json` for `stages.forge-5-loop`. If it exists and has status `in-progress` (some items incomplete), include this in the warning: "The rauf loop has not fully completed — {done}/{total} items done. Documentation may need updates after remaining items are implemented."
36
36
 
37
+ ### Impl-Verify Backstop
38
+
39
+ Check `.pipeline-state.json` for `stages.forge-verify-impl`. If it is **absent** or has status `"skipped"`, use `AskUserQuestion` to warn: "Implementation hasn't been verified yet. It's recommended to run `/feature-forge:forge-verify {feature} impl` first to audit the loop's output. Generate docs anyway?" This mirrors `forge-4-backlog`'s pre-stage verification check and backstops a skipped impl-verify regardless of how the loop ended. If `stages.forge-verify-impl` shows it already ran (`findings-applied`, `findings-reported`, or `passed`), proceed with no warning.
40
+
37
41
  ### Epic-Level Documentation (epic members only)
38
42
 
39
43
  If the resolved feature has an `epic` back-pointer in its `.pipeline-state.json`, run:
@@ -109,6 +113,11 @@ Present the plan and use `AskUserQuestion` to get the user's confirmation.
109
113
  - Specs are the source of truth for design intent; code is the source of truth for behavior
110
114
  - Read the actual source code to verify your documentation is correct
111
115
 
116
+ **Don't cite or link spec files in the generated docs.**
117
+ - Read the specs freely for context, but the docs you write are shipped implementation artifacts — they must be self-contained
118
+ - Never link or reference `PRD.md`, `tech-spec.md`, or the numbered implementation specs (`specs/{feature}/NN-*.md`); these are pre-implementation artifacts that may be archived or deleted
119
+ - Reference only the code, runtime contracts/configuration, and other generated docs. If you need to convey design intent, write it directly into the doc rather than pointing at a spec
120
+
112
121
  **Match existing conventions.**
113
122
  - If other features' docs use a specific heading structure, follow it
114
123
  - If they include diagrams, include diagrams
@@ -172,6 +181,7 @@ Write pipeline state conforming to `references/pipeline-state-schema.json`.
172
181
  ## Gotchas
173
182
 
174
183
  - Don't just rephrase the specs. Documentation should explain the implemented system, not the planned system. Read the actual code.
184
+ - Don't cite spec files (PRD.md, tech-spec.md, numbered specs) as sources or "further reading" in the generated docs — specs are pre-implementation artifacts that may not survive. Keep the docs self-contained; link only to code, configuration, and other docs.
175
185
  - If the implementation doesn't exist yet (backlog hasn't been run), document based on specs but note prominently that docs are pre-implementation and may need updating.
176
186
  - API reference should include actual function signatures from the code, not from the spec (they may differ).
177
187
  - Don't generate docs that will immediately be stale. Focus on concepts, architecture, and patterns rather than line-by-line code walkthroughs.
@@ -0,0 +1,239 @@
1
+ ---
2
+ # GENERATED — DO NOT EDIT. Source: skills/forge-bootstrap/SKILL.md. Regenerate: python3 scripts/build-adapters.py
3
+ name: forge-bootstrap
4
+ description: Scaffold a brand-new empty repository to a pipeline-ready, green baseline (structure, toolchain, passing lint+test, forge.config.json), then optionally chain into the pipeline. Use when the user runs /feature-forge:forge-bootstrap or asks to bootstrap/scaffold a new empty project for forge. Do NOT trigger on a non-empty repo (that is forge-init), or for general project setup outside the forge pipeline.
5
+ ---
6
+
7
+ # Bootstrap a Greenfield Repo
8
+
9
+ Take a **brand-new, empty** repository to a pipeline-ready, **green** baseline — a
10
+ scaffolded stack, a valid `forge.config.json`, and a passing lint+test — then optionally
11
+ chain into the pipeline (Mode B). You own the **conversation and decisions only**; every
12
+ mechanic (the greenfield gate, `git init`, scaffolding, the config write, the toolchain
13
+ probe, the commit) is delegated to the helper `scripts/forge-bootstrap.py`. Never inline
14
+ file generation, template contents, the config field list, or the greenfield allow-list —
15
+ they live in the helper and templates, referenced here, never duplicated.
16
+
17
+ `<target-dir>` below is the project being bootstrapped (default `.`, or the argument) — it is
18
+ **distinct from `$R`**, the plugin root. Drive control flow off the helper's exit codes and
19
+ JSON: **0** = ok, **1** = actionable findings, **2** = usage/IO **or** verify
20
+ toolchain-missing.
21
+
22
+ ## Host adaptation (conversational fallback)
23
+
24
+ If the `AskUserQuestion` tool is available, ask the interview questions through it. If it is
25
+ **not** available (a non-Claude host such as Codex), emit the same questions as a single
26
+ **numbered text list** — each line one question with its options in brackets and the default
27
+ marked — then **stop and wait for a single text reply**. Parse the reply positionally
28
+ (answer N → question N); re-prompt only the unparseable items. The question content (text,
29
+ options, defaults) and the conditional gating (Q4 skipped for go/rust/generic; Q6a only for
30
+ monorepo; Q8 only after a verified-green baseline) are **identical** across both paths — only
31
+ the rendering changes. Never assume answers; always wait for the reply.
32
+
33
+ Emit any context as plain text, then route **all** questions through `AskUserQuestion` (or the
34
+ fallback) — never as inline prose questions, which stall the session.
35
+
36
+ ## Flow (Mode A — default)
37
+
38
+ ```
39
+ 1. Portable-root prelude → locate $R
40
+ 2. check → gate + recovery detection
41
+ ├─ eligible:false (exit 1) → Greenfield refusal — STOP
42
+ └─ resumeMarker != null → Resume / restart / cancel
43
+ 3. Interview → assemble the Answers payload
44
+ 4. scaffold --answers <json> → git init if absent; compose templates; write config;
45
+ track artifacts into the sentinel
46
+ 5. verify → toolchain probe + lint/test per member
47
+ ├─ toolchainPresent:false (2) → Missing toolchain: scaffold-anyway-unverified vs abort
48
+ ├─ green:false (exit 1) → Not-green: surface failures, offer fix/abort
49
+ └─ green:true (exit 0) → proceed
50
+ 6. commit [--stage-only per Q9] → stage exact tracked list; single baseline commit;
51
+ remove the sentinel before staging
52
+ 7. Completion summary / Mode B hand-off
53
+ ```
54
+
55
+ ### Step 1 — locate the helper
56
+
57
+ Every bash invocation begins with the byte-identical portable-root prelude, then calls the
58
+ helper. Pass `--specs-dir ./specs` (the default) so the gate allow-lists the specs directory.
59
+
60
+ ```bash
61
+ R="$(for d in "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/*/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done)"
62
+ [ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
63
+ python3 "$R/scripts/forge-bootstrap.py" check "<target-dir>" --json --specs-dir ./specs
64
+ ```
65
+
66
+ Never hardcode a plugin path or a `~/.claude/...` path — always go through `$R`.
67
+
68
+ ### Step 2 — gate (`check`)
69
+
70
+ Read `CheckResult{eligible, disqualifying[], resumeMarker}`.
71
+
72
+ - **`eligible:false` (exit 1) → Greenfield refusal.** Name **every** path in `disqualifying[]`
73
+ verbatim, then direct the user to the right tool — run `forge-init`, then `forge-1-prd`.
74
+ **Touch no files** and STOP (the gate is read-only).
75
+
76
+ ```
77
+ This repo is not empty — forge-bootstrap only scaffolds a brand-new project.
78
+ Disqualifying files found:
79
+ - package.json
80
+ - src/index.ts
81
+ To set forge up on an existing project, run: /feature-forge:forge-init
82
+ Then start the pipeline with: /feature-forge:forge-1-prd <feature>
83
+ ```
84
+
85
+ - **`resumeMarker != null` → Partial-state detected.** A `.forge-bootstrap.json` sentinel
86
+ from this tool's own prior run exists — do **not** treat it as a refusal. Surface the prior
87
+ run's `startedAt` and `artifactsWritten[]`, then ask **resume / restart / cancel**:
88
+ - **Resume** — reuse the sentinel's mirrored `answers` (no re-interview), re-run `scaffold`
89
+ (idempotent — the helper skips already-recorded files), continue from step 5.
90
+ - **Restart** — discard the partial: delete the recorded `artifactsWritten[]` tree + the `.forge-bootstrap.json` sentinel (a skill-orchestration step — the helper has no clean subcommand), then run the interview and `scaffold` fresh.
91
+ - **Cancel** — stop without changes.
92
+
93
+ You perform no cleanup yourself; you only render the choice and dispatch the subcommand.
94
+
95
+ ### Step 3 — interview
96
+
97
+ Ask exactly these, in order. Resolved answers become the `Answers` payload handed to
98
+ `scaffold --answers`.
99
+
100
+ | # | Question | Default / seed rule | Options |
101
+ |---|----------|---------------------|---------|
102
+ | Q1 | Project name? | default = target directory basename (confirm) | free-text, pre-filled |
103
+ | Q2 | One-line purpose? | no default; seeds README + config | free-text |
104
+ | Q3 | Language / stack? | required | `typescript` / `python` / `go` / `rust` / `generic` |
105
+ | Q4 | Package manager? | **only when the stack has a choice** — TS: `npm`/`pnpm`/`yarn`, Python: `uv`/`poetry`/`pip`; **skipped** for go/rust/generic | the stack's options |
106
+ | Q5 | License? | **detect & pre-select** from a pre-existing `LICENSE` (see gating); else default `MIT`. The helper keeps an existing `LICENSE` (REQ-SCAF-09) | `MIT` / `Apache-2.0` / `none` |
107
+ | Q6 | Single package or monorepo? | default `single` | `single` / `monorepo` |
108
+ | Q6a | (monorepo only) member count, then per-member name + stack | no default; one member each (mixed-language allowed) | loop |
109
+ | Q7 | Chain into the pipeline now (Mode B)? | default `no` | `no, scaffold only` / `yes, chain in` |
110
+ | Q8 | (Mode B only) First build: feature or epic? | asked **only after a verified-green baseline** | `feature` / `epic` |
111
+ | Q9 | Commit the baseline, or leave it staged? | default `commit` | `commit` / `stage only` |
112
+
113
+ Gating: Q4 is asked only when the chosen stack has a package-manager choice; Q6a only when
114
+ Q6 = `monorepo` (each member gets a `path` like `packages/<name>`; a single package is one
115
+ member with `path = "."`); Q7 may be asked up-front, but Q8 / Mode B launch are gated on a
116
+ verified-green, committed baseline (see below). You may also offer an optional
117
+ "generate a CI workflow (lint+test)?" question, setting `Answers.ci`.
118
+
119
+ License detect-and-seed (Q5, REQ-SCAF-09): when a `LICENSE` already exists in the target
120
+ (an allowed-meta file the gate let through), **read its first lines** and pre-select the
121
+ matching Q5 default — "MIT License" → `MIT`, "Apache License" → `Apache-2.0`, otherwise
122
+ keep the default and note the unrecognized license. The helper never overwrites the existing
123
+ `LICENSE`; this only seeds the interview default. Also set `Answers.author` from
124
+ `git config user.name` (fallback: the project name) and `Answers.host` to `claude` when
125
+ running on a Claude host (so the helper emits `CLAUDE.md` alongside `AGENTS.md`), else leave
126
+ it null.
127
+
128
+ **Assemble the payload.** Build one `Answers` JSON object — `projectName`, `purpose`,
129
+ `layout`, `license`, `members[]`, `modeB`, `modeBTarget`, `ci`, `commitStyle`, `author`,
130
+ `host` — and pass it verbatim to `scaffold --answers '<json>'`. Invent no fields beyond that
131
+ schema. Two fields come from your runtime, not the interview: `author` from `git config
132
+ user.name` (else the project name; it is the LICENSE copyright holder), and `host` — `"claude"`
133
+ when running under a Claude host (e.g. `AskUserQuestion` is available), else `"codex"`/`"other"`.
134
+ `host` drives the host-conditional agent file: the helper always emits `AGENTS.md` and adds
135
+ `CLAUDE.md` only when `host == "claude"`.
136
+
137
+ ```bash
138
+ R="$(for d in "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/*/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done)"
139
+ [ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
140
+ python3 "$R/scripts/forge-bootstrap.py" scaffold "<target-dir>" --json --answers '<Answers JSON>'
141
+ ```
142
+
143
+ ### Step 5 — verify
144
+
145
+ ```bash
146
+ R="$(for d in "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/*/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done)"
147
+ [ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
148
+ python3 "$R/scripts/forge-bootstrap.py" verify "<target-dir>" --json --answers '<Answers JSON>'
149
+ ```
150
+
151
+ Read `VerifyResult{green, toolchainPresent, lint[], test[]}`.
152
+
153
+ - **`toolchainPresent:false` (exit 2) → Missing toolchain.** Warn, naming which stack's
154
+ toolchain is missing. Ask **scaffold-anyway (unverified) vs abort**. If scaffold-anyway,
155
+ proceed to commit and mark the baseline **unverified** in the summary — never claim green
156
+ you could not verify. If abort, stop; the sentinel stays in-progress for a later resume. An
157
+ unverified baseline **disqualifies Mode B** (no override).
158
+ - **`green:false` with `toolchainPresent:true` (exit 1) → Not-green.** Surface the failing
159
+ `CommandOutcome` entries (command + member) verbatim; offer abort or retry-after-investigation.
160
+ Do not silently proceed to a "green" summary.
161
+ - **`green:true` (exit 0)** → proceed to commit.
162
+
163
+ ### Step 6 — commit
164
+
165
+ Invoke `commit` (or `commit --stage-only`, per Q9). Helper-owned: it stages the **exact
166
+ tracked list** (never `git add -A`/`--force`/`--no-verify`), makes a single baseline commit,
167
+ and removes the sentinel before staging so it never enters history. Read
168
+ `CommitResult{committed, commitHash, staged[]}`. On commit failure, surface the error and
169
+ leave the sentinel in-progress (resumable) — do **not** declare success.
170
+
171
+ ```bash
172
+ R="$(for d in "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/*/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done)"
173
+ [ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
174
+ python3 "$R/scripts/forge-bootstrap.py" commit "<target-dir>" --json --answers '<Answers JSON>' [--stage-only]
175
+ ```
176
+
177
+ ## Completion summary
178
+
179
+ Render the human-facing summary from the helper's JSON (`VerifyResult` + `CommitResult`). State:
180
+ created artifacts (from `CommitResult.staged[]`, including any kept pre-existing meta file);
181
+ resolved stack(s) (single, or each monorepo member's name + stack); the **verification
182
+ verdict** — `green` or `unverified` (never "green" for an unverified baseline); the commit
183
+ state (with `commitHash`, or staged-only); and the exact next command. In Mode B, **launch**
184
+ the next stage instead of printing the command.
185
+
186
+ ```
187
+ Bootstrap complete — pipeline-ready baseline.
188
+ Stack: python (uv)
189
+ Created: pyproject.toml, src/acme_svc/..., tests/test_smoke.py, .gitignore,
190
+ README.md, LICENSE, AGENTS.md, CLAUDE.md, forge.config.json
191
+ Kept: (none — README/LICENSE generated fresh)
192
+ Verification: green (mypy ✓ pytest ✓)
193
+ Commit: baseline committed (a1b2c3d)
194
+ Next step: /feature-forge:forge-1-prd <feature>
195
+ ```
196
+
197
+ Unverified variant:
198
+
199
+ ```
200
+ Verification: UNVERIFIED — toolchain not found on this machine; lint+test were not run.
201
+ Install the toolchain and re-run verify before relying on the baseline.
202
+ ```
203
+
204
+ ## Mode B hand-off (opt-in)
205
+
206
+ Mode B is **opt-in** (Q7; default Mode A) and **agent-driven** — it hands skill-to-skill to
207
+ the next pipeline stage, not through the helper.
208
+
209
+ **Gate:** launch the next stage **only after both** a verified-green baseline
210
+ (`VerifyResult.green == true`) **and** a successful commit (`CommitResult.committed == true`).
211
+ If the baseline is unverified or not-green, you MUST NOT launch the next stage and MUST NOT
212
+ even ask Q8 — fall back to the Mode A summary with the next command printed. There is no
213
+ "launch anyway on red" path.
214
+
215
+ When the gate passes:
216
+
217
+ 1. Ask Q8 — feature vs epic — if not already resolved.
218
+ 2. **Feature:** invoke `forge-1-prd <feature>` skill-to-skill, seeding `<feature>` from a
219
+ confirmed, kebab-cased name.
220
+ 3. **Epic:** invoke `forge-0-epic <epic>` skill-to-skill. Seed the epic name and initial
221
+ decomposition from the project name + purpose (Q1/Q2), **propose it, let the user
222
+ edit/approve**, then launch.
223
+ 4. **Launch** that stage instead of printing its command.
224
+
225
+ Mode B auto-launches **only the immediate next stage**; every subsequent pipeline stage stays
226
+ a normal, user-driven step. The hand-off is always skill-to-skill, never via the helper.
227
+
228
+ ## The four terminal outcomes
229
+
230
+ Every run ends in exactly one explicit, actionable outcome — make it explicit in your output;
231
+ no run ends silently:
232
+
233
+ - **Success** — `commit` exit 0 + green (or unverified-but-proceeded) → completion summary, or
234
+ Mode B launch.
235
+ - **Greenfield refusal** — `check` `eligible:false` → name `disqualifying[]`, point to
236
+ `forge-init` + `forge-1-prd`, touch nothing.
237
+ - **Missing toolchain** — `verify` `toolchainPresent:false` (exit 2) → scaffold-anyway-unverified
238
+ vs abort; mark **unverified**.
239
+ - **Partial-state detected** — `check` `resumeMarker != null` → resume / restart / cancel.
@@ -0,0 +1,12 @@
1
+ name: ci
2
+ on:
3
+ push:
4
+ branches: ["**"]
5
+ pull_request:
6
+
7
+ jobs:
8
+ verify:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ # <<MEMBER_STEPS>>
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ # Entrypoint for the scaffolded baseline.
3
+ echo "Hello from {{PROJECT_NAME}}"
@@ -0,0 +1,13 @@
1
+ #!/bin/sh
2
+ # Behavioral test: run the entrypoint and assert its output.
3
+ set -eu
4
+
5
+ actual="$(./run.sh)"
6
+ expected="Hello from {{PROJECT_NAME}}"
7
+
8
+ if [ "$actual" != "$expected" ]; then
9
+ printf 'FAIL: expected %s but got %s\n' "$expected" "$actual" >&2
10
+ exit 1
11
+ fi
12
+
13
+ printf 'PASS: run.sh produced the expected greeting\n'
@@ -0,0 +1,12 @@
1
+ package main
2
+
3
+ import "fmt"
4
+
5
+ // greet returns the project greeting for name.
6
+ func greet(name string) string {
7
+ return "Hello from " + name
8
+ }
9
+
10
+ func main() {
11
+ fmt.Println(greet("{{PROJECT_NAME}}"))
12
+ }
@@ -0,0 +1,11 @@
1
+ package main
2
+
3
+ import "testing"
4
+
5
+ func TestGreet(t *testing.T) {
6
+ got := greet("world")
7
+ want := "Hello from world"
8
+ if got != want {
9
+ t.Errorf("greet(\"world\") = %q, want %q", got, want)
10
+ }
11
+ }
@@ -0,0 +1,24 @@
1
+ # Agent Instructions — {{PROJECT_NAME}}
2
+
3
+ ## Project Purpose
4
+
5
+ {{PURPOSE}}
6
+
7
+ ## Getting Started
8
+
9
+ This project was scaffolded by forge-bootstrap. To continue development:
10
+
11
+ 1. Review `forge.config.json` for the project configuration.
12
+ 2. Run the forge pipeline (forge-1-prd → forge-0-epic → forge-3-specs → forge-4-backlog) to plan and implement features.
13
+ 3. Use `forge-5-loop` to drive autonomous implementation.
14
+
15
+ ## Conventions
16
+
17
+ - Follow the patterns established in the existing codebase.
18
+ - Keep `forge.config.json` up to date with any changes to stack or commands.
19
+
20
+ ## Specs are pre-implementation
21
+
22
+ - Documents under `specs/` (PRDs, tech specs, numbered implementation specs) establish the backlog. They are **not** kept in sync with the code as it evolves.
23
+ - Do not flag or "fix" divergence between a finalized spec and the implementation — code is the source of truth for behavior.
24
+ - It's fine for `specs/` artifacts and `backlog.json` to reference specs for provenance, but implementation artifacts (source code, generated skills/agents, configs, docs) must not reference spec files, which may be archived or deleted after a feature ships.
@@ -0,0 +1,25 @@
1
+ # Claude Instructions — {{PROJECT_NAME}}
2
+
3
+ ## Project Purpose
4
+
5
+ {{PURPOSE}}
6
+
7
+ ## Getting Started
8
+
9
+ This project was scaffolded by forge-bootstrap. To continue development:
10
+
11
+ 1. Review `forge.config.json` for the project configuration.
12
+ 2. Run the forge pipeline (forge-1-prd → forge-0-epic → forge-3-specs → forge-4-backlog) to plan and implement features.
13
+ 3. Use `forge-5-loop` to drive autonomous implementation.
14
+
15
+ ## Working with Claude
16
+
17
+ - Use `/feature-forge:forge` to enter the forge pipeline for new features.
18
+ - The `forge.config.json` at the project root defines the stack, commands, and pipeline settings.
19
+ - Follow the patterns established in the existing codebase.
20
+
21
+ ## Specs are pre-implementation
22
+
23
+ - Documents under `specs/` (PRDs, tech specs, numbered implementation specs) establish the backlog. They are **not** kept in sync with the code as it evolves.
24
+ - Don't flag or "fix" divergence between a finalized spec and the implementation — code is the source of truth for behavior.
25
+ - It's fine for `specs/` artifacts and `backlog.json` to reference specs for provenance, but implementation artifacts (source code, generated skills/agents, configs, docs) must not reference spec files, which may be archived or deleted after a feature ships.
@@ -0,0 +1,11 @@
1
+ # {{PROJECT_NAME}}
2
+
3
+ {{PURPOSE}}
4
+
5
+ ## License
6
+
7
+ This project is licensed under {{LICENSE}}.
8
+
9
+ ---
10
+
11
+ _Scaffolded by [forge-bootstrap](https://github.com/feature-forge/feature-forge)._
@@ -0,0 +1,198 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of discussing and
55
+ improving the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and included
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by the combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or any patent
81
+ claims embodied in the Work constitute direct or indirect patent
82
+ infringement, then any patent licenses granted to You under this
83
+ License for that Work shall terminate as of the date such litigation
84
+ is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative
92
+ Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text
107
+ file distributed as part of the Derivative Works; within
108
+ the Source form or documentation, if provided along with the
109
+ Derivative Works; or, within a display generated by the
110
+ Derivative Works, if and wherever such third-party notices
111
+ normally appear. The contents of the NOTICE file are for
112
+ informational purposes only and do not modify the License.
113
+ You may add Your own attribution notices within Derivative
114
+ Works that You distribute, alongside or in addition to the
115
+ NOTICE text from the Work, provided that such additional
116
+ attribution notices cannot be construed as modifying the
117
+ License.
118
+
119
+ You may add Your own license statement for Your modifications and
120
+ may provide additional grant of rights to use, copy, modify, merge,
121
+ publish, distribute, sublicense, and/or sell copies of the
122
+ Contribution, and to permit persons to whom the Contribution is
123
+ furnished to do so, provided that Your use, reproduction, and
124
+ distribution of the Work otherwise complies with the conditions
125
+ stated in this License.
126
+
127
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
128
+ any Contribution intentionally submitted for inclusion in the Work
129
+ by You to the Licensor shall be under the terms and conditions of
130
+ this License, without any additional terms or conditions.
131
+ Notwithstanding the above, nothing herein shall supersede or modify
132
+ the terms of any separate license agreement you may have executed
133
+ with Licensor regarding such Contributions.
134
+
135
+ 6. Trademarks. This License does not grant permission to use the trade
136
+ names, trademarks, service marks, or product names of the Licensor,
137
+ except as required for reasonable and customary use in describing the
138
+ origin of the Work and reproducing the content of the NOTICE file.
139
+
140
+ 7. Disclaimer of Warranty. Unless required by applicable law or
141
+ agreed to in writing, Licensor provides the Work (and each
142
+ Contributor provides its Contributions) on an "AS IS" BASIS,
143
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
144
+ implied, including, without limitation, any conditions of
145
+ TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
146
+ PARTICULAR PURPOSE. You are solely responsible for determining
147
+ the appropriateness of using or reproducing the Work and assume any
148
+ risks associated with Your exercise of permissions under this License.
149
+
150
+ 8. Limitation of Liability. In no event and under no legal theory,
151
+ whether in tort (including negligence), contract, or otherwise,
152
+ unless required by applicable law (such as deliberate and grossly
153
+ negligent acts) or agreed to in writing, shall any Contributor be
154
+ liable to You for damages, including any direct, indirect, special,
155
+ incidental, or exemplary damages of any character arising as a
156
+ result of this License or out of the use or inability to use the
157
+ Work (including but not limited to damages for loss of goodwill,
158
+ work stoppage, computer failure or malfunction, or all other
159
+ commercial damages or losses), even if such Contributor has been
160
+ advised of the possibility of such damages.
161
+
162
+ 9. Accepting Warranty or Additional Liability. While redistributing
163
+ the Work or Derivative Works thereof, You may choose to offer,
164
+ and charge a fee for, acceptance of support, warranty, indemnity,
165
+ or other liability obligations and/or rights consistent with this
166
+ License. However, in accepting such obligations, You may offer only
167
+ conditions consistent on your own behalf and on Your sole
168
+ responsibility, not on behalf of any other Contributor, and only if
169
+ You agree to indemnify, defend, and hold each Contributor harmless
170
+ for any liability incurred by, or claims asserted against, such
171
+ Contributor by reason of your accepting any such warranty or
172
+ additional liability.
173
+
174
+ END OF TERMS AND CONDITIONS
175
+
176
+ APPENDIX: How to apply the Apache License to your work.
177
+
178
+ To apply the Apache License to your work, attach the following
179
+ boilerplate notice, with the fields enclosed by brackets "[]"
180
+ replaced with your own identifying information. (Don't include
181
+ the brackets!) The text should be enclosed in the appropriate
182
+ comment syntax for the file format in use. We also recommend that
183
+ a file or directory name be included, with the "full path" if
184
+ practical.
185
+
186
+ Copyright {{YEAR}} {{AUTHOR}}
187
+
188
+ Licensed under the Apache License, Version 2.0 (the "License");
189
+ you may not use this file except in compliance with the License.
190
+ You may obtain a copy of the License at
191
+
192
+ http://www.apache.org/licenses/LICENSE-2.0
193
+
194
+ Unless required by applicable law or agreed to in writing, software
195
+ distributed under the License is distributed on an "AS IS" BASIS,
196
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
197
+ See the License for the specific language governing permissions and
198
+ limitations under the License.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) {{YEAR}} {{AUTHOR}}
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,24 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "{{PROJECT_NAME}}"
7
+ version = "0.0.0"
8
+ description = "{{PURPOSE}}"
9
+ requires-python = ">=3.10"
10
+ dependencies = []
11
+
12
+ [project.optional-dependencies]
13
+ dev = ["mypy>=1.8", "pytest>=8.0"]
14
+
15
+ [tool.setuptools.packages.find]
16
+ where = ["src"]
17
+
18
+ [tool.mypy]
19
+ files = ["src", "tests"]
20
+ strict = true
21
+
22
+ [tool.pytest.ini_options]
23
+ pythonpath = ["src"]
24
+ testpaths = ["tests"]
@@ -0,0 +1,5 @@
1
+ """Package root for {{PKG}}."""
2
+
3
+ from {{PKG}}.main import greet
4
+
5
+ __all__ = ["greet"]