@garygentry/feature-forge 0.2.12 → 0.2.13

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 (323) hide show
  1. package/adapters/GENERATION-REPORT.md +1 -0
  2. package/adapters/claude/.feature-forge-bundle.json +1 -1
  3. package/adapters/claude/references/forge-config-schema.json +5 -0
  4. package/adapters/claude/scripts/epic-manifest.py +209 -0
  5. package/adapters/claude/scripts/forge-bootstrap.py +1 -0
  6. package/adapters/claude/scripts/forge-init.sh +2 -0
  7. package/adapters/claude/skills/forge/SKILL.md +9 -1
  8. package/adapters/claude/skills/forge/references/pipeline-state-schema.json +191 -0
  9. package/adapters/claude/skills/forge/references/process-overview.md +143 -0
  10. package/adapters/claude/skills/forge/references/shared-conventions.md +283 -0
  11. package/adapters/claude/skills/forge/references/stage-exit-protocol.md +258 -0
  12. package/adapters/claude/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
  13. package/adapters/claude/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
  14. package/adapters/claude/skills/forge-0-epic/references/portable-root.md +71 -0
  15. package/adapters/claude/skills/forge-0-epic/references/shared-conventions.md +283 -0
  16. package/adapters/claude/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
  17. package/adapters/claude/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
  18. package/adapters/claude/skills/forge-1-prd/references/shared-conventions.md +283 -0
  19. package/adapters/claude/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
  20. package/adapters/claude/skills/forge-2-tech/SKILL.md +1 -1
  21. package/adapters/claude/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
  22. package/adapters/claude/skills/forge-2-tech/references/shared-conventions.md +283 -0
  23. package/adapters/claude/skills/forge-2-tech/references/stack-resolution.md +54 -0
  24. package/adapters/claude/skills/forge-2-tech/references/stacks/_generic.md +90 -0
  25. package/adapters/claude/skills/forge-2-tech/references/stacks/go.md +138 -0
  26. package/adapters/claude/skills/forge-2-tech/references/stacks/python.md +163 -0
  27. package/adapters/claude/skills/forge-2-tech/references/stacks/rust.md +151 -0
  28. package/adapters/claude/skills/forge-2-tech/references/stacks/typescript.md +111 -0
  29. package/adapters/claude/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
  30. package/adapters/claude/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
  31. package/adapters/claude/skills/forge-3-specs/references/shared-conventions.md +283 -0
  32. package/adapters/claude/skills/forge-3-specs/references/stacks/_generic.md +90 -0
  33. package/adapters/claude/skills/forge-3-specs/references/stacks/go.md +138 -0
  34. package/adapters/claude/skills/forge-3-specs/references/stacks/python.md +163 -0
  35. package/adapters/claude/skills/forge-3-specs/references/stacks/rust.md +151 -0
  36. package/adapters/claude/skills/forge-3-specs/references/stacks/typescript.md +111 -0
  37. package/adapters/claude/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
  38. package/adapters/claude/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
  39. package/adapters/claude/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
  40. package/adapters/claude/skills/forge-4-backlog/references/shared-conventions.md +283 -0
  41. package/adapters/claude/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
  42. package/adapters/claude/skills/forge-5-loop/references/forge-config-schema.json +236 -0
  43. package/adapters/claude/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
  44. package/adapters/claude/skills/forge-5-loop/references/shared-conventions.md +283 -0
  45. package/adapters/claude/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
  46. package/adapters/claude/skills/forge-6-docs/SKILL.md +4 -1
  47. package/adapters/claude/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
  48. package/adapters/claude/skills/forge-6-docs/references/shared-conventions.md +283 -0
  49. package/adapters/claude/skills/forge-fix/references/shared-conventions.md +283 -0
  50. package/adapters/claude/skills/forge-fix/references/stage-exit-protocol.md +258 -0
  51. package/adapters/claude/skills/forge-guide/references/forge-config-schema.json +236 -0
  52. package/adapters/claude/skills/forge-guide/references/process-overview.md +143 -0
  53. package/adapters/claude/skills/forge-guide/references/ralph-loop-contract.md +221 -0
  54. package/adapters/claude/skills/forge-guide/references/shared-conventions.md +283 -0
  55. package/adapters/claude/skills/forge-guide/references/stack-resolution.md +54 -0
  56. package/adapters/claude/skills/forge-guide/references/stacks/_generic.md +90 -0
  57. package/adapters/claude/skills/forge-guide/references/stacks/go.md +138 -0
  58. package/adapters/claude/skills/forge-guide/references/stacks/python.md +163 -0
  59. package/adapters/claude/skills/forge-guide/references/stacks/rust.md +151 -0
  60. package/adapters/claude/skills/forge-guide/references/stacks/typescript.md +111 -0
  61. package/adapters/claude/skills/forge-init/SKILL.md +1 -0
  62. package/adapters/claude/skills/forge-verify/SKILL.md +4 -3
  63. package/adapters/claude/skills/forge-verify/references/pipeline-state-schema.json +191 -0
  64. package/adapters/claude/skills/forge-verify/references/shared-conventions.md +283 -0
  65. package/adapters/claude/skills/forge-verify/references/verification-checklists.md +7 -0
  66. package/adapters/codex/.feature-forge-bundle.json +1 -1
  67. package/adapters/codex/references/forge-config-schema.json +5 -0
  68. package/adapters/codex/scripts/epic-manifest.py +209 -0
  69. package/adapters/codex/scripts/forge-bootstrap.py +1 -0
  70. package/adapters/codex/scripts/forge-init.sh +2 -0
  71. package/adapters/codex/skills/forge/SKILL.md +9 -1
  72. package/adapters/codex/skills/forge/references/pipeline-state-schema.json +191 -0
  73. package/adapters/codex/skills/forge/references/process-overview.md +143 -0
  74. package/adapters/codex/skills/forge/references/shared-conventions.md +283 -0
  75. package/adapters/codex/skills/forge/references/stage-exit-protocol.md +258 -0
  76. package/adapters/codex/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
  77. package/adapters/codex/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
  78. package/adapters/codex/skills/forge-0-epic/references/portable-root.md +71 -0
  79. package/adapters/codex/skills/forge-0-epic/references/shared-conventions.md +283 -0
  80. package/adapters/codex/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
  81. package/adapters/codex/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
  82. package/adapters/codex/skills/forge-1-prd/references/shared-conventions.md +283 -0
  83. package/adapters/codex/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
  84. package/adapters/codex/skills/forge-2-tech/SKILL.md +1 -1
  85. package/adapters/codex/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
  86. package/adapters/codex/skills/forge-2-tech/references/shared-conventions.md +283 -0
  87. package/adapters/codex/skills/forge-2-tech/references/stack-resolution.md +54 -0
  88. package/adapters/codex/skills/forge-2-tech/references/stacks/_generic.md +90 -0
  89. package/adapters/codex/skills/forge-2-tech/references/stacks/go.md +138 -0
  90. package/adapters/codex/skills/forge-2-tech/references/stacks/python.md +163 -0
  91. package/adapters/codex/skills/forge-2-tech/references/stacks/rust.md +151 -0
  92. package/adapters/codex/skills/forge-2-tech/references/stacks/typescript.md +111 -0
  93. package/adapters/codex/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
  94. package/adapters/codex/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
  95. package/adapters/codex/skills/forge-3-specs/references/shared-conventions.md +283 -0
  96. package/adapters/codex/skills/forge-3-specs/references/stacks/_generic.md +90 -0
  97. package/adapters/codex/skills/forge-3-specs/references/stacks/go.md +138 -0
  98. package/adapters/codex/skills/forge-3-specs/references/stacks/python.md +163 -0
  99. package/adapters/codex/skills/forge-3-specs/references/stacks/rust.md +151 -0
  100. package/adapters/codex/skills/forge-3-specs/references/stacks/typescript.md +111 -0
  101. package/adapters/codex/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
  102. package/adapters/codex/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
  103. package/adapters/codex/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
  104. package/adapters/codex/skills/forge-4-backlog/references/shared-conventions.md +283 -0
  105. package/adapters/codex/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
  106. package/adapters/codex/skills/forge-5-loop/references/forge-config-schema.json +236 -0
  107. package/adapters/codex/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
  108. package/adapters/codex/skills/forge-5-loop/references/shared-conventions.md +283 -0
  109. package/adapters/codex/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
  110. package/adapters/codex/skills/forge-6-docs/SKILL.md +4 -1
  111. package/adapters/codex/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
  112. package/adapters/codex/skills/forge-6-docs/references/shared-conventions.md +283 -0
  113. package/adapters/codex/skills/forge-fix/references/shared-conventions.md +283 -0
  114. package/adapters/codex/skills/forge-fix/references/stage-exit-protocol.md +258 -0
  115. package/adapters/codex/skills/forge-guide/references/forge-config-schema.json +236 -0
  116. package/adapters/codex/skills/forge-guide/references/process-overview.md +143 -0
  117. package/adapters/codex/skills/forge-guide/references/ralph-loop-contract.md +221 -0
  118. package/adapters/codex/skills/forge-guide/references/shared-conventions.md +283 -0
  119. package/adapters/codex/skills/forge-guide/references/stack-resolution.md +54 -0
  120. package/adapters/codex/skills/forge-guide/references/stacks/_generic.md +90 -0
  121. package/adapters/codex/skills/forge-guide/references/stacks/go.md +138 -0
  122. package/adapters/codex/skills/forge-guide/references/stacks/python.md +163 -0
  123. package/adapters/codex/skills/forge-guide/references/stacks/rust.md +151 -0
  124. package/adapters/codex/skills/forge-guide/references/stacks/typescript.md +111 -0
  125. package/adapters/codex/skills/forge-init/SKILL.md +1 -0
  126. package/adapters/codex/skills/forge-verify/SKILL.md +4 -3
  127. package/adapters/codex/skills/forge-verify/references/pipeline-state-schema.json +191 -0
  128. package/adapters/codex/skills/forge-verify/references/shared-conventions.md +283 -0
  129. package/adapters/codex/skills/forge-verify/references/verification-checklists.md +7 -0
  130. package/adapters/copilot/.feature-forge-bundle.json +1 -1
  131. package/adapters/copilot/references/forge-config-schema.json +5 -0
  132. package/adapters/copilot/scripts/epic-manifest.py +209 -0
  133. package/adapters/copilot/scripts/forge-bootstrap.py +1 -0
  134. package/adapters/copilot/scripts/forge-init.sh +2 -0
  135. package/adapters/copilot/skills/forge/forge.md +9 -1
  136. package/adapters/copilot/skills/forge/references/pipeline-state-schema.json +191 -0
  137. package/adapters/copilot/skills/forge/references/process-overview.md +143 -0
  138. package/adapters/copilot/skills/forge/references/shared-conventions.md +283 -0
  139. package/adapters/copilot/skills/forge/references/stage-exit-protocol.md +258 -0
  140. package/adapters/copilot/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
  141. package/adapters/copilot/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
  142. package/adapters/copilot/skills/forge-0-epic/references/portable-root.md +71 -0
  143. package/adapters/copilot/skills/forge-0-epic/references/shared-conventions.md +283 -0
  144. package/adapters/copilot/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
  145. package/adapters/copilot/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
  146. package/adapters/copilot/skills/forge-1-prd/references/shared-conventions.md +283 -0
  147. package/adapters/copilot/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
  148. package/adapters/copilot/skills/forge-2-tech/forge-2-tech.md +1 -1
  149. package/adapters/copilot/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
  150. package/adapters/copilot/skills/forge-2-tech/references/shared-conventions.md +283 -0
  151. package/adapters/copilot/skills/forge-2-tech/references/stack-resolution.md +54 -0
  152. package/adapters/copilot/skills/forge-2-tech/references/stacks/_generic.md +90 -0
  153. package/adapters/copilot/skills/forge-2-tech/references/stacks/go.md +138 -0
  154. package/adapters/copilot/skills/forge-2-tech/references/stacks/python.md +163 -0
  155. package/adapters/copilot/skills/forge-2-tech/references/stacks/rust.md +151 -0
  156. package/adapters/copilot/skills/forge-2-tech/references/stacks/typescript.md +111 -0
  157. package/adapters/copilot/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
  158. package/adapters/copilot/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
  159. package/adapters/copilot/skills/forge-3-specs/references/shared-conventions.md +283 -0
  160. package/adapters/copilot/skills/forge-3-specs/references/stacks/_generic.md +90 -0
  161. package/adapters/copilot/skills/forge-3-specs/references/stacks/go.md +138 -0
  162. package/adapters/copilot/skills/forge-3-specs/references/stacks/python.md +163 -0
  163. package/adapters/copilot/skills/forge-3-specs/references/stacks/rust.md +151 -0
  164. package/adapters/copilot/skills/forge-3-specs/references/stacks/typescript.md +111 -0
  165. package/adapters/copilot/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
  166. package/adapters/copilot/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
  167. package/adapters/copilot/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
  168. package/adapters/copilot/skills/forge-4-backlog/references/shared-conventions.md +283 -0
  169. package/adapters/copilot/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
  170. package/adapters/copilot/skills/forge-5-loop/references/forge-config-schema.json +236 -0
  171. package/adapters/copilot/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
  172. package/adapters/copilot/skills/forge-5-loop/references/shared-conventions.md +283 -0
  173. package/adapters/copilot/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
  174. package/adapters/copilot/skills/forge-6-docs/forge-6-docs.md +4 -1
  175. package/adapters/copilot/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
  176. package/adapters/copilot/skills/forge-6-docs/references/shared-conventions.md +283 -0
  177. package/adapters/copilot/skills/forge-fix/references/shared-conventions.md +283 -0
  178. package/adapters/copilot/skills/forge-fix/references/stage-exit-protocol.md +258 -0
  179. package/adapters/copilot/skills/forge-guide/references/forge-config-schema.json +236 -0
  180. package/adapters/copilot/skills/forge-guide/references/process-overview.md +143 -0
  181. package/adapters/copilot/skills/forge-guide/references/ralph-loop-contract.md +221 -0
  182. package/adapters/copilot/skills/forge-guide/references/shared-conventions.md +283 -0
  183. package/adapters/copilot/skills/forge-guide/references/stack-resolution.md +54 -0
  184. package/adapters/copilot/skills/forge-guide/references/stacks/_generic.md +90 -0
  185. package/adapters/copilot/skills/forge-guide/references/stacks/go.md +138 -0
  186. package/adapters/copilot/skills/forge-guide/references/stacks/python.md +163 -0
  187. package/adapters/copilot/skills/forge-guide/references/stacks/rust.md +151 -0
  188. package/adapters/copilot/skills/forge-guide/references/stacks/typescript.md +111 -0
  189. package/adapters/copilot/skills/forge-init/forge-init.md +1 -0
  190. package/adapters/copilot/skills/forge-verify/forge-verify.md +4 -3
  191. package/adapters/copilot/skills/forge-verify/references/pipeline-state-schema.json +191 -0
  192. package/adapters/copilot/skills/forge-verify/references/shared-conventions.md +283 -0
  193. package/adapters/copilot/skills/forge-verify/references/verification-checklists.md +7 -0
  194. package/adapters/cursor/.feature-forge-bundle.json +1 -1
  195. package/adapters/cursor/references/forge-config-schema.json +5 -0
  196. package/adapters/cursor/scripts/epic-manifest.py +209 -0
  197. package/adapters/cursor/scripts/forge-bootstrap.py +1 -0
  198. package/adapters/cursor/scripts/forge-init.sh +2 -0
  199. package/adapters/cursor/skills/forge/forge.mdc +9 -1
  200. package/adapters/cursor/skills/forge/references/pipeline-state-schema.json +191 -0
  201. package/adapters/cursor/skills/forge/references/process-overview.md +143 -0
  202. package/adapters/cursor/skills/forge/references/shared-conventions.md +283 -0
  203. package/adapters/cursor/skills/forge/references/stage-exit-protocol.md +258 -0
  204. package/adapters/cursor/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
  205. package/adapters/cursor/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
  206. package/adapters/cursor/skills/forge-0-epic/references/portable-root.md +71 -0
  207. package/adapters/cursor/skills/forge-0-epic/references/shared-conventions.md +283 -0
  208. package/adapters/cursor/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
  209. package/adapters/cursor/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
  210. package/adapters/cursor/skills/forge-1-prd/references/shared-conventions.md +283 -0
  211. package/adapters/cursor/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
  212. package/adapters/cursor/skills/forge-2-tech/forge-2-tech.mdc +1 -1
  213. package/adapters/cursor/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
  214. package/adapters/cursor/skills/forge-2-tech/references/shared-conventions.md +283 -0
  215. package/adapters/cursor/skills/forge-2-tech/references/stack-resolution.md +54 -0
  216. package/adapters/cursor/skills/forge-2-tech/references/stacks/_generic.md +90 -0
  217. package/adapters/cursor/skills/forge-2-tech/references/stacks/go.md +138 -0
  218. package/adapters/cursor/skills/forge-2-tech/references/stacks/python.md +163 -0
  219. package/adapters/cursor/skills/forge-2-tech/references/stacks/rust.md +151 -0
  220. package/adapters/cursor/skills/forge-2-tech/references/stacks/typescript.md +111 -0
  221. package/adapters/cursor/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
  222. package/adapters/cursor/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
  223. package/adapters/cursor/skills/forge-3-specs/references/shared-conventions.md +283 -0
  224. package/adapters/cursor/skills/forge-3-specs/references/stacks/_generic.md +90 -0
  225. package/adapters/cursor/skills/forge-3-specs/references/stacks/go.md +138 -0
  226. package/adapters/cursor/skills/forge-3-specs/references/stacks/python.md +163 -0
  227. package/adapters/cursor/skills/forge-3-specs/references/stacks/rust.md +151 -0
  228. package/adapters/cursor/skills/forge-3-specs/references/stacks/typescript.md +111 -0
  229. package/adapters/cursor/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
  230. package/adapters/cursor/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
  231. package/adapters/cursor/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
  232. package/adapters/cursor/skills/forge-4-backlog/references/shared-conventions.md +283 -0
  233. package/adapters/cursor/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
  234. package/adapters/cursor/skills/forge-5-loop/references/forge-config-schema.json +236 -0
  235. package/adapters/cursor/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
  236. package/adapters/cursor/skills/forge-5-loop/references/shared-conventions.md +283 -0
  237. package/adapters/cursor/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
  238. package/adapters/cursor/skills/forge-6-docs/forge-6-docs.mdc +4 -1
  239. package/adapters/cursor/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
  240. package/adapters/cursor/skills/forge-6-docs/references/shared-conventions.md +283 -0
  241. package/adapters/cursor/skills/forge-fix/references/shared-conventions.md +283 -0
  242. package/adapters/cursor/skills/forge-fix/references/stage-exit-protocol.md +258 -0
  243. package/adapters/cursor/skills/forge-guide/references/forge-config-schema.json +236 -0
  244. package/adapters/cursor/skills/forge-guide/references/process-overview.md +143 -0
  245. package/adapters/cursor/skills/forge-guide/references/ralph-loop-contract.md +221 -0
  246. package/adapters/cursor/skills/forge-guide/references/shared-conventions.md +283 -0
  247. package/adapters/cursor/skills/forge-guide/references/stack-resolution.md +54 -0
  248. package/adapters/cursor/skills/forge-guide/references/stacks/_generic.md +90 -0
  249. package/adapters/cursor/skills/forge-guide/references/stacks/go.md +138 -0
  250. package/adapters/cursor/skills/forge-guide/references/stacks/python.md +163 -0
  251. package/adapters/cursor/skills/forge-guide/references/stacks/rust.md +151 -0
  252. package/adapters/cursor/skills/forge-guide/references/stacks/typescript.md +111 -0
  253. package/adapters/cursor/skills/forge-init/forge-init.mdc +1 -0
  254. package/adapters/cursor/skills/forge-verify/forge-verify.mdc +4 -3
  255. package/adapters/cursor/skills/forge-verify/references/pipeline-state-schema.json +191 -0
  256. package/adapters/cursor/skills/forge-verify/references/shared-conventions.md +283 -0
  257. package/adapters/cursor/skills/forge-verify/references/verification-checklists.md +7 -0
  258. package/adapters/gemini/.feature-forge-bundle.json +1 -1
  259. package/adapters/gemini/gemini-extension.json +1 -1
  260. package/adapters/gemini/references/forge-config-schema.json +5 -0
  261. package/adapters/gemini/scripts/epic-manifest.py +209 -0
  262. package/adapters/gemini/scripts/forge-bootstrap.py +1 -0
  263. package/adapters/gemini/scripts/forge-init.sh +2 -0
  264. package/adapters/gemini/skills/forge/forge.md +9 -1
  265. package/adapters/gemini/skills/forge/references/pipeline-state-schema.json +191 -0
  266. package/adapters/gemini/skills/forge/references/process-overview.md +143 -0
  267. package/adapters/gemini/skills/forge/references/shared-conventions.md +283 -0
  268. package/adapters/gemini/skills/forge/references/stage-exit-protocol.md +258 -0
  269. package/adapters/gemini/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
  270. package/adapters/gemini/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
  271. package/adapters/gemini/skills/forge-0-epic/references/portable-root.md +71 -0
  272. package/adapters/gemini/skills/forge-0-epic/references/shared-conventions.md +283 -0
  273. package/adapters/gemini/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
  274. package/adapters/gemini/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
  275. package/adapters/gemini/skills/forge-1-prd/references/shared-conventions.md +283 -0
  276. package/adapters/gemini/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
  277. package/adapters/gemini/skills/forge-2-tech/forge-2-tech.md +1 -1
  278. package/adapters/gemini/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
  279. package/adapters/gemini/skills/forge-2-tech/references/shared-conventions.md +283 -0
  280. package/adapters/gemini/skills/forge-2-tech/references/stack-resolution.md +54 -0
  281. package/adapters/gemini/skills/forge-2-tech/references/stacks/_generic.md +90 -0
  282. package/adapters/gemini/skills/forge-2-tech/references/stacks/go.md +138 -0
  283. package/adapters/gemini/skills/forge-2-tech/references/stacks/python.md +163 -0
  284. package/adapters/gemini/skills/forge-2-tech/references/stacks/rust.md +151 -0
  285. package/adapters/gemini/skills/forge-2-tech/references/stacks/typescript.md +111 -0
  286. package/adapters/gemini/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
  287. package/adapters/gemini/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
  288. package/adapters/gemini/skills/forge-3-specs/references/shared-conventions.md +283 -0
  289. package/adapters/gemini/skills/forge-3-specs/references/stacks/_generic.md +90 -0
  290. package/adapters/gemini/skills/forge-3-specs/references/stacks/go.md +138 -0
  291. package/adapters/gemini/skills/forge-3-specs/references/stacks/python.md +163 -0
  292. package/adapters/gemini/skills/forge-3-specs/references/stacks/rust.md +151 -0
  293. package/adapters/gemini/skills/forge-3-specs/references/stacks/typescript.md +111 -0
  294. package/adapters/gemini/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
  295. package/adapters/gemini/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
  296. package/adapters/gemini/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
  297. package/adapters/gemini/skills/forge-4-backlog/references/shared-conventions.md +283 -0
  298. package/adapters/gemini/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
  299. package/adapters/gemini/skills/forge-5-loop/references/forge-config-schema.json +236 -0
  300. package/adapters/gemini/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
  301. package/adapters/gemini/skills/forge-5-loop/references/shared-conventions.md +283 -0
  302. package/adapters/gemini/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
  303. package/adapters/gemini/skills/forge-6-docs/forge-6-docs.md +4 -1
  304. package/adapters/gemini/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
  305. package/adapters/gemini/skills/forge-6-docs/references/shared-conventions.md +283 -0
  306. package/adapters/gemini/skills/forge-fix/references/shared-conventions.md +283 -0
  307. package/adapters/gemini/skills/forge-fix/references/stage-exit-protocol.md +258 -0
  308. package/adapters/gemini/skills/forge-guide/references/forge-config-schema.json +236 -0
  309. package/adapters/gemini/skills/forge-guide/references/process-overview.md +143 -0
  310. package/adapters/gemini/skills/forge-guide/references/ralph-loop-contract.md +221 -0
  311. package/adapters/gemini/skills/forge-guide/references/shared-conventions.md +283 -0
  312. package/adapters/gemini/skills/forge-guide/references/stack-resolution.md +54 -0
  313. package/adapters/gemini/skills/forge-guide/references/stacks/_generic.md +90 -0
  314. package/adapters/gemini/skills/forge-guide/references/stacks/go.md +138 -0
  315. package/adapters/gemini/skills/forge-guide/references/stacks/python.md +163 -0
  316. package/adapters/gemini/skills/forge-guide/references/stacks/rust.md +151 -0
  317. package/adapters/gemini/skills/forge-guide/references/stacks/typescript.md +111 -0
  318. package/adapters/gemini/skills/forge-init/forge-init.md +1 -0
  319. package/adapters/gemini/skills/forge-verify/forge-verify.md +4 -3
  320. package/adapters/gemini/skills/forge-verify/references/pipeline-state-schema.json +191 -0
  321. package/adapters/gemini/skills/forge-verify/references/shared-conventions.md +283 -0
  322. package/adapters/gemini/skills/forge-verify/references/verification-checklists.md +7 -0
  323. package/package.json +1 -1
@@ -0,0 +1,90 @@
1
+ # Generic Stack Profile
2
+
3
+ Language-neutral guidance for projects without a dedicated stack profile. Use this as a fallback when no matching `references/stacks/{stack}.md` exists.
4
+
5
+ ## Discovery Protocol
6
+
7
+ Identify the project's stack by checking for these manifest and build files:
8
+
9
+ | File | Stack |
10
+ |------|-------|
11
+ | `package.json` | Node.js / Bun (JavaScript/TypeScript) |
12
+ | `pyproject.toml`, `setup.py`, `setup.cfg` | Python |
13
+ | `go.mod` | Go |
14
+ | `Cargo.toml` | Rust |
15
+ | `pom.xml`, `build.gradle`, `build.gradle.kts` | Java / Kotlin |
16
+ | `*.csproj`, `*.sln` | .NET (C#/F#) |
17
+ | `mix.exs` | Elixir |
18
+ | `Gemfile` | Ruby |
19
+ | `Package.swift` | Swift |
20
+
21
+ Also check for:
22
+ - **Lock files**: Reveal the package manager (`bun.lockb`, `uv.lock`, `poetry.lock`, `go.sum`, `Cargo.lock`, etc.)
23
+ - **Workspace/monorepo configs**: `turbo.json`, `nx.json`, `lerna.json`, `pants.toml`, `Cargo workspace`, Go workspace `go.work`
24
+ - **CI configuration**: `.github/workflows/`, `Makefile`, `justfile` — often reveals build and test commands
25
+
26
+ ## Archetype Adaptations
27
+
28
+ ### 00-core-definitions.md
29
+
30
+ The shared type/data contract document. Language-neutral name for what TypeScript calls "core types and interfaces." Contents should include:
31
+
32
+ - **Data structures**: The primary types, classes, structs, records, or models that define the feature's domain. Use the project's idiomatic type system (dataclasses, structs, interfaces, schemas, etc.)
33
+ - **Error/exception hierarchy**: Base error type and domain-specific subtypes with structured properties. Every language has a mechanism for this (exception classes, error types, Result enums, etc.)
34
+ - **Constants and enumerations**: Shared values referenced across the feature
35
+ - **Public contracts**: Function signatures, protocols, interfaces, or traits that define the feature's API surface
36
+
37
+ **Documentation rule**: Every type/structure must have documentation comments in the project's convention (JSDoc, docstrings, godoc, rustdoc, etc.)
38
+
39
+ **Export rule**: Everything must be accessible through the module's entry point following project conventions.
40
+
41
+ ### 01-architecture-layout.md
42
+
43
+ How the feature is structured in the project:
44
+
45
+ - **Directory tree**: Full layout (not abbreviated)
46
+ - **Project manifest**: Dependencies, entry points, build scripts
47
+ - **Build/compiler configuration**: Key options
48
+ - **Module export structure**: What each entry point exposes
49
+ - **Build and deployment considerations**
50
+
51
+ ### NN-testing-strategy.md
52
+
53
+ - **Testing framework and tooling**: Match project conventions
54
+ - **Unit test approach**: What to test, what to mock/stub
55
+ - **Integration test approach**: Cross-module interaction testing
56
+ - **Test fixtures and factories**
57
+ - **Coverage targets**
58
+ - **Test file location conventions**
59
+
60
+ ## Spec Conventions
61
+
62
+ When writing implementation specs:
63
+ - Include complete type definitions and function signatures in the project's language — not pseudocode
64
+ - Include documentation comments on every public type and function
65
+ - Include error handling for every operation
66
+ - Include example usage where it aids clarity
67
+ - Cross-reference other spec documents by filename
68
+
69
+ ## Verification Adaptations
70
+
71
+ Replace stack-specific checks with these generic equivalents:
72
+
73
+ | Stack-specific check | Generic equivalent |
74
+ |---------------------|-------------------|
75
+ | "Valid TypeScript syntax" | "Valid syntax in the project's language" |
76
+ | "Barrel exports (index.ts)" | "Module exports/entry points follow project conventions" |
77
+ | "bun run typecheck passes" | "`{typeCheckCommand}` passes" (from forge.config.json) |
78
+ | "bun test passes" | "`{testCommand}` passes" (from forge.config.json) |
79
+ | "JSDoc on every field" | "Documentation comments on every field" |
80
+ | "tsconfig.json extends root" | "Build configuration follows project conventions" |
81
+
82
+ ## Acceptance Criteria Patterns
83
+
84
+ Use these placeholder patterns in backlog items. Replace `{typeCheckCommand}`, `{testCommand}`, and `{module}` with values from `forge.config.json` and the project structure:
85
+
86
+ - `{typeCheckCommand} passes for {module}`
87
+ - `{testCommand} passes for {module}`
88
+ - `{module}/[entry point] exports [expected symbols]`
89
+ - `[dependency manifest] includes [new dependency]`
90
+ - `[build command] succeeds`
@@ -0,0 +1,138 @@
1
+ # Go Stack Profile
2
+
3
+ Stack-specific guidance for Go projects (1.21+).
4
+
5
+ ## Stack Identity
6
+
7
+ - **Language**: Go 1.21+ (required for `slog` stdlib logging, `slices`/`maps` packages, improved generics)
8
+ - **Build system**: `go build`, `go install` (no external build tool required)
9
+ - **Module system**: Go modules (`go.mod` / `go.sum`)
10
+ - **Philosophy**: Simplicity-first — prefer the standard library, add dependencies only when justified
11
+
12
+ ## Discovery Checklist
13
+
14
+ When examining a Go project, check for:
15
+
16
+ - **Module definition**: `go.mod` (module path, Go version, dependencies)
17
+ - **Dependency lock**: `go.sum` (checksums for reproducible builds)
18
+ - **Entry points**: `cmd/` directory (for CLIs, services, or multiple binaries)
19
+ - **Private packages**: `internal/` directory (compiler-enforced encapsulation)
20
+ - **Public packages**: `pkg/` directory (if used — not all projects follow this convention)
21
+ - **Build automation**: `Makefile`, `Taskfile.yml`, `mage` targets
22
+ - **Configuration**: `.golangci.yml` or `.golangci.yaml` (linter config)
23
+ - **Code generation**: `go generate` directives, `//go:generate` comments, `tools.go` for tool dependencies
24
+ - **Framework**: Check imports for chi, gin, echo, fiber (routers), or stdlib `net/http`
25
+ - **Database**: Check for sqlx, pgx, ent, gorm, or `database/sql`
26
+
27
+ ## Archetype Conventions
28
+
29
+ ### 00-core-definitions.md (Go)
30
+
31
+ - **Structs**: Use `struct` types with json/db tags (e.g., `` `json:"name" db:"name"` ``). Document every exported field with a comment.
32
+ - **Interfaces**: Keep small and behavior-focused (1–3 methods). Define at the consumer site, not the implementation site. Name with `-er` suffix where natural (e.g., `Reader`, `Validator`).
33
+ - **Error types**: Custom types implementing the `error` interface. Use `errors.New` for sentinel errors, `fmt.Errorf` with `%w` for wrapping. Group domain errors in a dedicated `errors.go` file.
34
+ - **Constants**: Use `iota` for sequential constants, typed constants for domain values, `const` blocks for related groups
35
+ - **Type aliases and generics**: Use sparingly. Generic types when the abstraction genuinely applies across multiple concrete types.
36
+ - **No barrel exports**: Go uses package-level visibility (`Exported` vs `unexported`); there is no index file pattern.
37
+
38
+ ### 01-architecture-layout.md (Go)
39
+
40
+ - **Standard project layout**:
41
+ - `cmd/<binary-name>/main.go` — entry points (one per binary)
42
+ - `internal/` — private application code (compiler-enforced)
43
+ - `pkg/` — public library code (optional, some projects skip this)
44
+ - `api/` — OpenAPI specs, protobuf definitions, API contracts
45
+ - `configs/` — configuration file templates
46
+ - `scripts/` — build, install, analysis scripts
47
+ - **go.mod**: Module path matching the repo URL (e.g., `github.com/user/repo`), minimum Go version, direct and indirect dependencies
48
+ - **Package design**: One package per directory, package name matches directory name, package-level `doc.go` for documentation
49
+ - **Build considerations**: Cross-compilation with `GOOS`/`GOARCH`, build tags for platform-specific code, `ldflags` for version injection
50
+
51
+ ### NN-testing-strategy.md (Go)
52
+
53
+ - **Framework**: `testing` package from stdlib (no external framework required)
54
+ - **Test file location**: `*_test.go` files in the same package (white-box) or `_test` package suffix (black-box)
55
+ - **Table-driven tests**: Standard pattern using slice of test structs with `t.Run()` subtests
56
+ - **Test helpers**: Functions accepting `testing.TB` with `t.Helper()` call at top
57
+ - **Mocking**: Interfaces + manual mocks, or testify/mock, gomock, mockgen if project uses them
58
+ - **Assertions**: stdlib `if got != want` pattern, or testify `assert`/`require` if project uses it
59
+ - **Integration tests**: Build tags (`//go:build integration`) to separate from unit tests
60
+ - **Benchmarks**: `func BenchmarkXxx(b *testing.B)` with `b.N` loop
61
+ - **Test fixtures**: `testdata/` directory (ignored by Go tooling), `TestMain` for setup/teardown
62
+
63
+ ## Spec Quality Rules
64
+
65
+ - All Go code must be valid syntax with complete type information — not pseudocode
66
+ - Follow Go idioms:
67
+ - Return `error` as the last return value — never panic for expected failures
68
+ - Accept interfaces, return structs (depend on behavior, produce concrete types)
69
+ - Design meaningful zero values (a zero-valued struct should be usable or clearly invalid)
70
+ - No getters — use the field name directly (e.g., `user.Name` not `user.GetName()`)
71
+ - Use embedding for composition, not inheritance
72
+ - `context.Context` as the first parameter for any function that may block or be cancelled
73
+ - `error` as the last return value for any function that can fail
74
+ - Include complete function signatures with named return values where they improve clarity
75
+ - Document every exported type, function, and method with a comment starting with the identifier name
76
+ - Use `//nolint` directives only with a justification comment
77
+
78
+ ## Verification Specifics
79
+
80
+ - **Static analysis**: `go vet ./...` (catches common mistakes)
81
+ - **Linting**: `golangci-lint run` (if `.golangci.yml` exists or CI uses it)
82
+ - **Testing**: `go test ./...` (all packages)
83
+ - **Building**: `go build ./...` (ensures all packages compile)
84
+ - **Formatting**: `gofmt -l .` or `goimports -l .` (should produce no output)
85
+ - **Module tidiness**: `go mod tidy` (ensures `go.mod` and `go.sum` are consistent)
86
+
87
+ ## Testing
88
+
89
+ - **Framework**: `testing` stdlib package
90
+ - **Test command**: `go test ./...` for all, `go test -v -run TestName ./pkg/...` for specific
91
+ - **Table-driven tests**: Idiomatic pattern — slice of anonymous structs with `name`, input, and expected fields
92
+ - **Subtests**: `t.Run("case name", func(t *testing.T) { ... })` for grouped assertions
93
+ - **Assertions**: testify `assert`/`require` (if project uses it), otherwise manual `if` checks with `t.Errorf`
94
+ - **Coverage**: `go test -coverprofile=coverage.out ./...` then `go tool cover -html=coverage.out`
95
+ - **Race detection**: `go test -race ./...` for concurrency safety
96
+ - **Fuzzing**: `func FuzzXxx(f *testing.F)` (Go 1.18+)
97
+
98
+ ## Common Frameworks
99
+
100
+ | Category | Options |
101
+ |----------|---------|
102
+ | HTTP router | net/http (stdlib), chi, gin, echo, fiber |
103
+ | Database | database/sql (stdlib), sqlx, pgx, ent, gorm |
104
+ | Migrations | golang-migrate, goose, atlas |
105
+ | CLI | cobra, urfave/cli, kong |
106
+ | Logging | log/slog (stdlib), zerolog, zap |
107
+ | Configuration | viper, envconfig, koanf |
108
+ | Dependency injection | wire, fx, dig |
109
+ | gRPC | google.golang.org/grpc, connect-go |
110
+ | Testing | testify, gomock, go-cmp |
111
+
112
+ ## Example: Project-Level Override
113
+
114
+ Create `.feature-forge/stack-decisions.md` (legacy alias: `.claude/references/stack-decisions.md`) in your project root:
115
+
116
+ ```markdown
117
+ # Stack Decisions
118
+
119
+ ## Runtime & Build
120
+ - Go 1.22 with standard go toolchain
121
+ - Makefile for build automation
122
+
123
+ ## Backend
124
+ - chi for HTTP routing
125
+ - sqlx with PostgreSQL
126
+ - log/slog for structured logging
127
+
128
+ ## Testing
129
+ - testify for assertions and mocking
130
+ - Table-driven tests with t.Run() subtests
131
+ - Build tag `integration` for integration tests
132
+
133
+ ## Conventions
134
+ - Standard project layout (cmd/, internal/, pkg/)
135
+ - golangci-lint with project .golangci.yml
136
+ - Context as first parameter, error as last return
137
+ - Interfaces defined at consumer site
138
+ ```
@@ -0,0 +1,163 @@
1
+ # Python Stack Profile
2
+
3
+ Stack-specific guidance for Python projects (3.10+).
4
+
5
+ ## Stack Identity
6
+
7
+ - **Language**: Python 3.10+ (required for modern type hint syntax: `X | Y` unions, `match` statements)
8
+ - **Package management**: pip, uv, poetry, pdm, or pipenv (check for respective lock/config files)
9
+ - **Type checking**: mypy, pyright, or pytype
10
+ - **Linting**: ruff, flake8, pylint
11
+
12
+ ## Discovery Checklist
13
+
14
+ When examining a Python project, check for:
15
+
16
+ - **Project manifest**: `pyproject.toml` (modern), `setup.py`/`setup.cfg` (legacy), `requirements.txt` (minimal)
17
+ - **Package manager**: `uv.lock` (uv), `poetry.lock` (poetry), `pdm.lock` (pdm), `Pipfile.lock` (pipenv)
18
+ - **Monorepo**: `pants.toml` (Pants), `BUILD` files (Bazel), `nx.json` with Python plugins, or plain workspace structure
19
+ - **Framework**: FastAPI, Django, Flask, Starlette, Litestar
20
+ - **Database**: SQLAlchemy, Django ORM, Tortoise ORM, SQLModel
21
+ - **Validation**: Pydantic, attrs, marshmallow
22
+ - **Testing**: pytest (dominant), unittest
23
+ - **Type checking**: `mypy.ini`, `pyrightconfig.json`, or `[tool.mypy]` / `[tool.pyright]` in `pyproject.toml`
24
+
25
+ ## Archetype Conventions
26
+
27
+ ### 00-core-definitions.md (Python)
28
+
29
+ - **Data structures**: Use `dataclasses` for simple data containers, Pydantic `BaseModel` for validated/serializable models. Use `TypedDict` for dict-shaped data.
30
+ - **Type aliases**: Use `type` statements (3.12+) or `TypeAlias` annotation
31
+ - **Union types**: Use `X | Y` syntax (3.10+)
32
+ - **Protocols**: Use `typing.Protocol` for structural subtyping (Python's equivalent of interfaces)
33
+ - **Error/exception hierarchy**: Base exception class inheriting from `Exception` (or a more specific built-in); domain-specific subclasses with typed attributes
34
+ - **Constants and enumerations**: Use `enum.Enum`, `enum.StrEnum`, or module-level constants with `Final` annotation
35
+ - **Module exports**: Define `__all__` in `__init__.py` for explicit public API
36
+
37
+ ### 01-architecture-layout.md (Python)
38
+
39
+ - **Project layout**: `src/` layout (recommended) or flat layout
40
+ - **pyproject.toml**: `[project]` table with `name`, `dependencies`, `optional-dependencies`, `[project.scripts]` for CLI entry points
41
+ - **Tool configuration**: `[tool.pytest.ini_options]`, `[tool.mypy]`, `[tool.ruff]` sections in `pyproject.toml`
42
+ - **Module entry points**: `__init__.py` files with explicit `__all__` lists for re-exports
43
+ - **Namespace packages**: When applicable, `py.typed` marker for PEP 561 compliance
44
+
45
+ ### Monorepo conventions (if applicable)
46
+
47
+ - **Workspace structure**: `packages/` or `libs/` directories with individual `pyproject.toml` per package
48
+ - **Internal dependencies**: Path dependencies in `pyproject.toml` or editable installs
49
+ - **Build coordination**: Pants, Bazel, or Makefile-based orchestration
50
+
51
+ ## Spec Quality Rules
52
+
53
+ - All Python code must be valid syntax with complete type annotations — not pseudocode
54
+ - Use Google-style or NumPy-style docstrings consistently (match project convention)
55
+ - Include `Args`, `Returns`, `Raises` sections in docstrings for every public function
56
+ - Use `Protocol` classes to define interfaces/contracts
57
+ - Include explicit import statements in all code examples
58
+ - Use `async def` for asynchronous operations where applicable
59
+
60
+ ### Example: Well-Specified Function
61
+
62
+ ```python
63
+ class SessionExpiredError(AuthError):
64
+ """Raised when a session token has expired.
65
+
66
+ Attributes:
67
+ expired_at: When the session expired.
68
+ """
69
+
70
+ def __init__(self, expired_at: datetime) -> None:
71
+ self.expired_at = expired_at
72
+ super().__init__(
73
+ code="SESSION_EXPIRED",
74
+ message=f"Session expired at {expired_at.isoformat()}",
75
+ )
76
+
77
+
78
+ async def refresh_session_token(
79
+ current_token: str,
80
+ *,
81
+ max_age: timedelta = SESSION_DURATION,
82
+ refresh_threshold: timedelta = REFRESH_THRESHOLD,
83
+ signing_key: bytes,
84
+ ) -> str | None:
85
+ """Refresh a session token if it's within the refresh threshold.
86
+
87
+ Returns a new token with an extended expiry, or None if the session
88
+ is not eligible for refresh (valid but outside threshold).
89
+
90
+ Args:
91
+ current_token: The JWT string from the session cookie.
92
+ max_age: Maximum age of a token eligible for refresh.
93
+ refresh_threshold: How close to expiry before refresh is allowed.
94
+ signing_key: Secret key for signing the new token.
95
+
96
+ Returns:
97
+ New session token string, or None if refresh is not possible.
98
+
99
+ Raises:
100
+ SessionExpiredError: If the token has already expired.
101
+ TokenValidationError: If the token signature is invalid.
102
+ """
103
+ ...
104
+ ```
105
+
106
+ ## Verification Specifics
107
+
108
+ - **Type checking**: `mypy .`, `mypy src/`, `pyright`, or `pyright src/`
109
+ - **Linting**: `ruff check .` or `flake8`
110
+ - **Formatting**: `ruff format --check .` or `black --check .`
111
+ - **Import validation**: `mypy` with `--strict` or `--disallow-untyped-defs` catches missing type annotations
112
+ - **Module export validation**: `__all__` lists in `__init__.py` match spec's public API
113
+
114
+ ## Testing
115
+
116
+ - **Framework**: pytest (with `conftest.py` for fixtures)
117
+ - **Fixtures**: Define in `conftest.py` at appropriate scope (session, module, function)
118
+ - **Mocking**: `unittest.mock.patch`, `monkeypatch` fixture, or `pytest-mock`
119
+ - **Coverage**: `pytest-cov` with `--cov=src/` flag
120
+ - **Test file location**: `tests/` directory mirroring `src/` structure, or co-located `test_*.py` files
121
+ - **Async testing**: `pytest-asyncio` for async function tests
122
+ - **Type testing**: Runtime checks with `isinstance()`, static checks with `reveal_type()`
123
+
124
+ ## Common Frameworks
125
+
126
+ | Category | Options |
127
+ |----------|---------|
128
+ | Web (async) | FastAPI, Starlette, Litestar |
129
+ | Web (sync) | Django, Flask |
130
+ | Database ORM | SQLAlchemy, Django ORM, SQLModel, Tortoise ORM |
131
+ | Migrations | Alembic (SQLAlchemy), Django migrations |
132
+ | Validation | Pydantic, attrs, marshmallow |
133
+ | Task queues | Celery, Dramatiq, Huey, ARQ |
134
+ | CLI | Click, Typer, argparse |
135
+ | HTTP client | httpx, aiohttp, requests |
136
+
137
+ ## Example: Project-Level Override
138
+
139
+ Create `.feature-forge/stack-decisions.md` (legacy alias: `.claude/references/stack-decisions.md`) in your project root:
140
+
141
+ ```markdown
142
+ # Stack Decisions
143
+
144
+ ## Runtime & Build
145
+ - Python 3.12 with uv for package management
146
+ - src/ layout with pyproject.toml
147
+
148
+ ## Backend
149
+ - FastAPI for HTTP framework
150
+ - SQLAlchemy 2.0 with PostgreSQL (async)
151
+ - Pydantic v2 for validation and serialization
152
+
153
+ ## Testing
154
+ - pytest with pytest-asyncio
155
+ - Factory Boy for test fixtures
156
+ - Coverage target: 90%
157
+
158
+ ## Conventions
159
+ - Google-style docstrings
160
+ - ruff for linting and formatting
161
+ - mypy with --strict for type checking
162
+ - __all__ exports in every __init__.py
163
+ ```
@@ -0,0 +1,151 @@
1
+ # Rust Stack Profile
2
+
3
+ Stack-specific guidance for Rust projects (stable channel).
4
+
5
+ ## Stack Identity
6
+
7
+ - **Language**: Rust (stable channel, edition 2021 or later)
8
+ - **Build system**: Cargo (`cargo build`, `cargo test`, `cargo run`)
9
+ - **Package registry**: crates.io (dependencies declared in `Cargo.toml`)
10
+ - **Philosophy**: Zero-cost abstractions, ownership model for memory safety, fearless concurrency
11
+
12
+ ## Discovery Checklist
13
+
14
+ When examining a Rust project, check for:
15
+
16
+ - **Project manifest**: `Cargo.toml` (package metadata, dependencies, features, workspace config)
17
+ - **Dependency lock**: `Cargo.lock` (exact dependency versions for reproducible builds)
18
+ - **Library entry**: `src/lib.rs` (library crate root)
19
+ - **Binary entry**: `src/main.rs` (binary crate root), or `src/bin/` for multiple binaries
20
+ - **Build script**: `build.rs` (compile-time code generation, native library linking)
21
+ - **Cargo config**: `.cargo/config.toml` (target-specific settings, linker config, aliases)
22
+ - **Workspace**: `[workspace]` table in root `Cargo.toml` with `members` list
23
+ - **Framework**: Check `Cargo.toml` dependencies for actix-web, axum, rocket (web), clap (CLI), tokio (async)
24
+ - **Async runtime**: tokio, async-std, smol
25
+ - **Serialization**: serde, serde_json, serde_yaml
26
+
27
+ ## Archetype Conventions
28
+
29
+ ### 00-core-definitions.md (Rust)
30
+
31
+ - **Structs**: Use `struct` types with derive macros (`#[derive(Debug, Clone, Serialize, Deserialize)]`). Document every public field with `///` doc comments.
32
+ - **Enums**: Use for sum types / discriminated unions. Each variant documents its purpose. Exhaustive `match` for control flow.
33
+ - **Traits**: Define shared behavior contracts. Keep focused (single responsibility). Use associated types for output types, generics for input types.
34
+ - **Error types**: `thiserror::Error` for library errors (typed, specific), `anyhow::Error` for application errors (erased, convenient). Define `type Result<T> = std::result::Result<T, MyError>` aliases per module.
35
+ - **Type aliases**: Use `type` for complex generic instantiations (e.g., `type DbPool = Pool<Postgres>`)
36
+ - **Newtypes**: Single-field tuple structs for type safety (e.g., `struct UserId(Uuid)`)
37
+ - **Constants**: `const` for compile-time values, `static` for global state (rarely needed), `lazy_static!` or `std::sync::LazyLock` for runtime-initialized globals
38
+
39
+ ### 01-architecture-layout.md (Rust)
40
+
41
+ - **Single crate structure**:
42
+ - `src/lib.rs` — library root, declares modules with `mod` statements
43
+ - `src/main.rs` — binary entry point, imports from library crate
44
+ - `src/<module>.rs` or `src/<module>/mod.rs` — submodules
45
+ - `tests/` — integration tests (each file is a separate crate)
46
+ - `examples/` — runnable examples (`cargo run --example name`)
47
+ - `benches/` — benchmarks (`cargo bench`)
48
+ - **Cargo workspace** (multi-crate):
49
+ - Root `Cargo.toml` with `[workspace]` and `members = ["crates/*"]`
50
+ - Shared dependencies via `[workspace.dependencies]` with `{ workspace = true }` in member crates
51
+ - Internal crate references as path dependencies
52
+ - **Cargo.toml**: `[package]` (name, version, edition), `[dependencies]`, `[dev-dependencies]`, `[build-dependencies]`, `[features]` for conditional compilation
53
+ - **Module visibility**: `pub`, `pub(crate)`, `pub(super)` for fine-grained access control. Re-exports via `pub use` in parent modules.
54
+
55
+ ### NN-testing-strategy.md (Rust)
56
+
57
+ - **Framework**: Built-in `#[test]` attribute (no external framework required)
58
+ - **Unit tests**: `#[cfg(test)] mod tests { ... }` at bottom of each source file (white-box, access to private items)
59
+ - **Integration tests**: `tests/` directory, each `.rs` file is a separate test crate (black-box, only public API)
60
+ - **Test assertions**: `assert!`, `assert_eq!`, `assert_ne!` macros; custom messages as format string arguments
61
+ - **Doc tests**: Code blocks in `///` doc comments run as tests with `cargo test`
62
+ - **Examples**: `examples/` directory, verified to compile with `cargo test`, runnable with `cargo run --example`
63
+ - **Test fixtures**: Builder pattern structs, helper functions in `tests/common/mod.rs`
64
+ - **Async tests**: `#[tokio::test]` attribute for async test functions
65
+ - **Property testing**: `proptest` or `quickcheck` crates for generative testing
66
+ - **Snapshot testing**: `insta` crate for snapshot/approval testing
67
+
68
+ ## Spec Quality Rules
69
+
70
+ - All Rust code must be valid syntax with complete type annotations — not pseudocode
71
+ - Follow Rust idioms:
72
+ - `Result<T, E>` for fallible operations — never panic for expected failures
73
+ - `Option<T>` for nullable/optional values — never use sentinel values
74
+ - Ownership and borrowing: specify whether a function takes ownership (`T`), borrows (`&T`), or mutably borrows (`&mut T`). Note when `Clone` is required.
75
+ - Lifetime annotations when the compiler cannot infer them — document why a lifetime relationship exists
76
+ - Derive macros for common traits (`Debug`, `Clone`, `PartialEq`, `Eq`, `Hash`, `Serialize`, `Deserialize`)
77
+ - `impl` blocks for methods — group inherent methods and trait implementations separately
78
+ - Pattern matching with `match` for control flow over enums and `Result`/`Option`
79
+ - `?` operator for error propagation — avoid manual `match` on `Result` when `?` suffices
80
+ - Document every public item with `///` doc comments including `# Examples` sections for non-trivial APIs
81
+ - Use `#[must_use]` on functions whose return values should not be ignored
82
+ - Include complete `use` statements in all code examples
83
+
84
+ ## Verification Specifics
85
+
86
+ - **Type checking**: `cargo check` (fast compile without codegen — catches all type errors)
87
+ - **Linting**: `cargo clippy` (idiomatic Rust lints, catches common mistakes)
88
+ - **Testing**: `cargo test` (unit tests, integration tests, doc tests, examples)
89
+ - **Documentation**: `cargo doc --no-deps` (ensures documentation compiles, catches broken links)
90
+ - **Formatting**: `cargo fmt --check` (ensures code matches `rustfmt` style)
91
+ - **Unsafe audit**: `cargo geiger` (if security-sensitive — counts unsafe blocks)
92
+
93
+ ## Testing
94
+
95
+ - **Framework**: Built-in test harness (`#[test]`, `#[cfg(test)]`)
96
+ - **Test command**: `cargo test` for all, `cargo test test_name` for specific, `cargo test --lib` for unit only
97
+ - **Unit tests**: `#[cfg(test)] mod tests` at bottom of source files
98
+ - **Integration tests**: `tests/` directory, each file is a separate crate
99
+ - **Doc tests**: Code in `///` comments, verified by `cargo test --doc`
100
+ - **Assertions**: `assert!`, `assert_eq!`, `assert_ne!` with optional format messages
101
+ - **Async tests**: `#[tokio::test]` macro for async test functions
102
+ - **Snapshot testing**: `insta` crate with `assert_snapshot!` / `assert_debug_snapshot!`
103
+ - **Coverage**: `cargo llvm-cov` or `cargo tarpaulin`
104
+ - **Benchmarks**: `criterion` crate or built-in `#[bench]` (nightly)
105
+
106
+ ## Common Frameworks
107
+
108
+ | Category | Options |
109
+ |----------|---------|
110
+ | Web (async) | axum, actix-web, rocket, warp |
111
+ | Serialization | serde, serde_json, serde_yaml, toml |
112
+ | Async runtime | tokio, async-std, smol |
113
+ | Database | sqlx, diesel, sea-orm |
114
+ | Migrations | sqlx-cli, diesel-cli, refinery |
115
+ | CLI | clap, argh, structopt (legacy) |
116
+ | Observability | tracing, tracing-subscriber, metrics |
117
+ | HTTP client | reqwest, hyper, ureq (blocking) |
118
+ | Middleware | tower, tower-http, actix middleware |
119
+ | Error handling | thiserror (library), anyhow (application), eyre |
120
+
121
+ ## Example: Project-Level Override
122
+
123
+ Create `.feature-forge/stack-decisions.md` (legacy alias: `.claude/references/stack-decisions.md`) in your project root:
124
+
125
+ ```markdown
126
+ # Stack Decisions
127
+
128
+ ## Runtime & Build
129
+ - Rust stable (edition 2021)
130
+ - Cargo workspace with crates/ directory
131
+
132
+ ## Backend
133
+ - axum for HTTP framework
134
+ - sqlx with PostgreSQL (compile-time query checking)
135
+ - tokio as async runtime
136
+
137
+ ## Serialization & Validation
138
+ - serde for serialization/deserialization
139
+ - Custom validation via trait implementations
140
+
141
+ ## Testing
142
+ - Built-in #[test] with assert macros
143
+ - Integration tests in tests/ directory
144
+ - insta for snapshot testing
145
+
146
+ ## Conventions
147
+ - thiserror for library error types, anyhow in binary
148
+ - tracing for structured logging
149
+ - cargo clippy must pass with no warnings
150
+ - All public APIs documented with /// and examples
151
+ ```
@@ -0,0 +1,111 @@
1
+ # TypeScript Stack Profile
2
+
3
+ Stack-specific guidance for TypeScript projects (Node.js/Bun, monorepo or single-package).
4
+
5
+ ## Stack Identity
6
+
7
+ - **Language**: TypeScript
8
+ - **Runtime**: Node.js or Bun (check `package.json` `engines` field and lock files)
9
+ - **Package management**: npm, pnpm, yarn, or bun (check for respective lock files)
10
+ - **Common monorepo tools**: Turborepo (`turbo.json`), Nx (`nx.json`), Lerna (`lerna.json`)
11
+
12
+ ## Discovery Checklist
13
+
14
+ When examining a TypeScript project, check for:
15
+
16
+ - **Runtime**: Bun or Node.js (check `package.json` for which)
17
+ - **Package management**: Check for `bun.lockb`, `pnpm-lock.yaml`, `package-lock.json`, or `yarn.lock`
18
+ - **Monorepo**: Check for `turbo.json` (Turborepo), `nx.json` (Nx), or `lerna.json` (Lerna)
19
+ - **Framework**: Check existing packages for Hono, Express, Fastify, etc.
20
+ - **Frontend**: Check for React, Vue, Svelte, etc.
21
+ - **Routing**: Check for TanStack Router, React Router, Next.js, etc.
22
+ - **Database**: Check for Drizzle, Prisma, TypeORM, etc.
23
+ - **Validation**: Check for Zod, Yup, io-ts, etc.
24
+ - **UI Components**: Check for shadcn/ui, Radix, MUI, etc.
25
+ - **Styling**: Check for Tailwind (v3 or v4), CSS Modules, styled-components, etc.
26
+
27
+ ## Archetype Conventions
28
+
29
+ ### 00-core-definitions.md (TypeScript)
30
+
31
+ - **Type aliases and union types**: Use `type` declarations for unions, intersections, utility types
32
+ - **Core interfaces**: Define with `interface` keyword, JSDoc on every field
33
+ - **Error class hierarchy**: Base error class extending `Error` with `code: string` property; domain-specific subclasses with typed properties
34
+ - **Constants and enums**: Use `const` declarations and `as const` assertions; prefer string union types over `enum`
35
+ - **Utility types**: Generic helpers like `Result<T, E>`, `Optional<T>`, etc.
36
+ - **Barrel exports**: Export everything from `src/index.ts`
37
+
38
+ ### 01-architecture-layout.md (TypeScript)
39
+
40
+ - **Package.json**: `name`, `exports` map (subpath exports like `.`, `./server`, `./client`, `./react`), `dependencies`, `devDependencies`, `scripts`
41
+ - **tsconfig.json**: Key compiler options, extends root config
42
+ - **Barrel export structure**: What each `index.ts` re-exports
43
+ - **Build considerations**: Bundle vs unbundled, ESM vs CJS
44
+
45
+ ### Monorepo conventions
46
+
47
+ - **Package naming**: `@repo/{name}` for shared packages, `@starter/{name}` for app-specific (adapt to project convention)
48
+ - **Internal dependencies**: Reference as `@repo/{package}` in `package.json`
49
+ - **Workspace protocol**: `"@repo/config": "workspace:*"` in pnpm, `"@repo/config": "*"` in bun
50
+
51
+ ## Spec Quality Rules
52
+
53
+ - All TypeScript must be valid syntax — not pseudocode
54
+ - Include complete interfaces with generics where applicable
55
+ - Use discriminated unions for result types (e.g., `{ success: true; data: T } | { success: false; error: E }`)
56
+ - Every interface field must have JSDoc explaining its purpose
57
+ - Include explicit import paths in all code examples
58
+ - Use `async/await` for asynchronous operations (not raw Promises)
59
+
60
+ ## Verification Specifics
61
+
62
+ - **Type checking**: `bun run typecheck`, `tsc --noEmit`, or `npx tsc --noEmit`
63
+ - **Barrel export validation**: Every `index.ts` re-exports what the spec says
64
+ - **Cross-package type checks**: `bun run typecheck` (or equivalent) passes for both the feature package AND packages that depend on it
65
+ - **Import path validation**: All import paths resolve correctly per the `exports` map in `package.json`
66
+
67
+ ## Testing
68
+
69
+ - **Framework**: Vitest (most common in modern TS), Jest, or testing-library
70
+ - **Test file location**: Co-located (`*.test.ts` next to source) or in `__tests__/` directories
71
+ - **Fixture patterns**: Factory functions, test builders
72
+ - **Type testing**: `expectTypeOf` from vitest for type-level assertions
73
+
74
+ ## Common Frameworks
75
+
76
+ | Category | Options |
77
+ |----------|---------|
78
+ | Backend | Hono, Express, Fastify, Koa |
79
+ | Frontend | React, Vue, Svelte, Solid |
80
+ | Routing | TanStack Router, React Router, Next.js App Router |
81
+ | Database | Drizzle, Prisma, TypeORM, Kysely |
82
+ | Validation | Zod, Valibot, Yup, io-ts |
83
+ | UI Components | shadcn/ui, Radix, MUI, Mantine |
84
+ | Styling | Tailwind CSS, CSS Modules, styled-components, vanilla-extract |
85
+
86
+ ## Example: Project-Level Override
87
+
88
+ Create `.feature-forge/stack-decisions.md` (legacy alias: `.claude/references/stack-decisions.md`) in your project root:
89
+
90
+ ```markdown
91
+ # Stack Decisions
92
+
93
+ ## Runtime & Build
94
+ - Bun 1.x for runtime and package management
95
+ - Turborepo for monorepo orchestration
96
+
97
+ ## Backend
98
+ - Hono for HTTP framework
99
+ - Drizzle ORM with PostgreSQL
100
+ - Zod for runtime validation
101
+
102
+ ## Frontend
103
+ - React 19 with TanStack Router (SPA-first)
104
+ - shadcn/ui component library
105
+ - Tailwind CSS v4 with oklch color theming
106
+
107
+ ## Conventions
108
+ - Barrel exports from index.ts in every package
109
+ - Package naming: @repo/{name} for shared, @starter/{name} for app-specific
110
+ - Vitest for testing
111
+ ```