intent-planner 0.13.1

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 (334) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +225 -0
  3. package/README.md +225 -0
  4. package/bin/cli.mjs +289 -0
  5. package/package.json +46 -0
  6. package/src/install.mjs +527 -0
  7. package/templates/en/agents/claude/CLAUDE.md +62 -0
  8. package/templates/en/agents/codex/AGENTS.md +62 -0
  9. package/templates/en/agents/gemini/GEMINI.md +62 -0
  10. package/templates/en/claude/skills/CONTRACT.md +86 -0
  11. package/templates/en/claude/skills/intent-compass/SKILL.md +55 -0
  12. package/templates/en/claude/skills/intent-compass/rules/algo-qoc.md +62 -0
  13. package/templates/en/claude/skills/intent-compass/rules/constraint-surfacing.md +41 -0
  14. package/templates/en/claude/skills/intent-discover/SKILL.md +63 -0
  15. package/templates/en/claude/skills/intent-discover/rules/algo-drift-analysis.md +34 -0
  16. package/templates/en/claude/skills/intent-discover/rules/algo-gore-lite.md +35 -0
  17. package/templates/en/claude/skills/intent-discover/rules/algo-impact-analysis.md +37 -0
  18. package/templates/en/claude/skills/intent-discover/rules/algo-intent-recovery.md +39 -0
  19. package/templates/en/claude/skills/intent-discover/rules/designer-questions.md +78 -0
  20. package/templates/en/claude/skills/intent-discover/rules/drift-terrain.md +105 -0
  21. package/templates/en/claude/skills/intent-discover/rules/mode-selection.md +31 -0
  22. package/templates/en/claude/skills/intent-export-cc-sdd/SKILL.md +88 -0
  23. package/templates/en/claude/skills/intent-export-cc-sdd/rules/drift-export-check.md +75 -0
  24. package/templates/en/claude/skills/intent-export-cc-sdd/rules/export-questions.md +23 -0
  25. package/templates/en/claude/skills/intent-export-cc-sdd/rules/map-cc-sdd.md +62 -0
  26. package/templates/en/claude/skills/intent-export-openspec/SKILL.md +90 -0
  27. package/templates/en/claude/skills/intent-export-openspec/rules/drift-export-check.md +50 -0
  28. package/templates/en/claude/skills/intent-export-openspec/rules/export-questions.md +23 -0
  29. package/templates/en/claude/skills/intent-export-openspec/rules/map-openspec.md +75 -0
  30. package/templates/en/claude/skills/intent-from-spec/SKILL.md +60 -0
  31. package/templates/en/claude/skills/intent-from-spec/rules/extract-intent.md +56 -0
  32. package/templates/en/claude/skills/intent-from-spec/rules/gap-readout.md +54 -0
  33. package/templates/en/claude/skills/intent-from-spec/rules/load-bearing.md +48 -0
  34. package/templates/en/claude/skills/intent-from-spec/rules/omission-recap.md +42 -0
  35. package/templates/en/claude/skills/intent-improve/SKILL.md +70 -0
  36. package/templates/en/claude/skills/intent-improve/rules/improve-axes.md +121 -0
  37. package/templates/en/claude/skills/intent-overview/SKILL.md +63 -0
  38. package/templates/en/claude/skills/intent-overview/rules/aggregate-sources.md +61 -0
  39. package/templates/en/claude/skills/intent-overview/rules/gap-readout.md +54 -0
  40. package/templates/en/claude/skills/intent-overview/rules/mermaid-tree.md +78 -0
  41. package/templates/en/claude/skills/intent-overview/rules/progress-readout.md +119 -0
  42. package/templates/en/claude/skills/intent-packets/SKILL.md +97 -0
  43. package/templates/en/claude/skills/intent-packets/rules/algo-additive-slicing.md +55 -0
  44. package/templates/en/claude/skills/intent-packets/rules/algo-characterization-test.md +40 -0
  45. package/templates/en/claude/skills/intent-packets/rules/algo-example-mapping.md +47 -0
  46. package/templates/en/claude/skills/intent-packets/rules/algo-migration-slicing.md +47 -0
  47. package/templates/en/claude/skills/intent-packets/rules/decision-slots.md +88 -0
  48. package/templates/en/claude/skills/intent-packets/rules/export-route.md +54 -0
  49. package/templates/en/claude/skills/intent-packets/rules/first-packet.md +35 -0
  50. package/templates/en/claude/skills/intent-packets/rules/packet-format.md +207 -0
  51. package/templates/en/claude/skills/intent-packets/rules/walking-skeleton.md +35 -0
  52. package/templates/en/claude/skills/intent-release-note/SKILL.md +58 -0
  53. package/templates/en/claude/skills/intent-release-note/rules/format-changelog.md +40 -0
  54. package/templates/en/claude/skills/intent-release-note/rules/format-github-releases.md +41 -0
  55. package/templates/en/claude/skills/intent-release-note/rules/format-select.md +32 -0
  56. package/templates/en/claude/skills/intent-release-note/rules/source-scope.md +42 -0
  57. package/templates/en/claude/skills/intent-status/SKILL.md +171 -0
  58. package/templates/en/claude/skills/intent-status/rules/decision-table.md +47 -0
  59. package/templates/en/claude/skills/intent-to-spec/SKILL.md +68 -0
  60. package/templates/en/claude/skills/intent-to-spec/rules/fabrication-guard.md +41 -0
  61. package/templates/en/claude/skills/intent-to-spec/rules/format-integrated.md +42 -0
  62. package/templates/en/claude/skills/intent-to-spec/rules/format-nonprogram.md +45 -0
  63. package/templates/en/claude/skills/intent-to-spec/rules/format-upstream.md +41 -0
  64. package/templates/en/claude/skills/intent-to-spec/rules/source-scope.md +50 -0
  65. package/templates/en/claude/skills/intent-validate/SKILL.md +80 -0
  66. package/templates/en/claude/skills/intent-validate/rules/validate-checks.md +121 -0
  67. package/templates/en/claude/skills/intent-writeback/SKILL.md +71 -0
  68. package/templates/en/claude/skills/intent-writeback/rules/writeback-protocol.md +139 -0
  69. package/templates/en/codex/skills/CONTRACT.md +77 -0
  70. package/templates/en/codex/skills/intent-compass/SKILL.md +52 -0
  71. package/templates/en/codex/skills/intent-compass/rules/algo-qoc.md +62 -0
  72. package/templates/en/codex/skills/intent-compass/rules/constraint-surfacing.md +41 -0
  73. package/templates/en/codex/skills/intent-discover/SKILL.md +60 -0
  74. package/templates/en/codex/skills/intent-discover/rules/algo-drift-analysis.md +34 -0
  75. package/templates/en/codex/skills/intent-discover/rules/algo-gore-lite.md +35 -0
  76. package/templates/en/codex/skills/intent-discover/rules/algo-impact-analysis.md +37 -0
  77. package/templates/en/codex/skills/intent-discover/rules/algo-intent-recovery.md +39 -0
  78. package/templates/en/codex/skills/intent-discover/rules/designer-questions.md +78 -0
  79. package/templates/en/codex/skills/intent-discover/rules/drift-terrain.md +105 -0
  80. package/templates/en/codex/skills/intent-discover/rules/mode-selection.md +31 -0
  81. package/templates/en/codex/skills/intent-export-cc-sdd/SKILL.md +85 -0
  82. package/templates/en/codex/skills/intent-export-cc-sdd/rules/drift-export-check.md +75 -0
  83. package/templates/en/codex/skills/intent-export-cc-sdd/rules/export-questions.md +23 -0
  84. package/templates/en/codex/skills/intent-export-cc-sdd/rules/map-cc-sdd.md +62 -0
  85. package/templates/en/codex/skills/intent-export-openspec/SKILL.md +87 -0
  86. package/templates/en/codex/skills/intent-export-openspec/rules/drift-export-check.md +50 -0
  87. package/templates/en/codex/skills/intent-export-openspec/rules/export-questions.md +23 -0
  88. package/templates/en/codex/skills/intent-export-openspec/rules/map-openspec.md +75 -0
  89. package/templates/en/codex/skills/intent-from-spec/SKILL.md +58 -0
  90. package/templates/en/codex/skills/intent-from-spec/rules/extract-intent.md +56 -0
  91. package/templates/en/codex/skills/intent-from-spec/rules/gap-readout.md +54 -0
  92. package/templates/en/codex/skills/intent-from-spec/rules/load-bearing.md +48 -0
  93. package/templates/en/codex/skills/intent-from-spec/rules/omission-recap.md +42 -0
  94. package/templates/en/codex/skills/intent-improve/SKILL.md +67 -0
  95. package/templates/en/codex/skills/intent-improve/rules/improve-axes.md +121 -0
  96. package/templates/en/codex/skills/intent-overview/SKILL.md +61 -0
  97. package/templates/en/codex/skills/intent-overview/rules/aggregate-sources.md +61 -0
  98. package/templates/en/codex/skills/intent-overview/rules/gap-readout.md +54 -0
  99. package/templates/en/codex/skills/intent-overview/rules/mermaid-tree.md +78 -0
  100. package/templates/en/codex/skills/intent-overview/rules/progress-readout.md +119 -0
  101. package/templates/en/codex/skills/intent-packets/SKILL.md +94 -0
  102. package/templates/en/codex/skills/intent-packets/rules/algo-additive-slicing.md +55 -0
  103. package/templates/en/codex/skills/intent-packets/rules/algo-characterization-test.md +40 -0
  104. package/templates/en/codex/skills/intent-packets/rules/algo-example-mapping.md +47 -0
  105. package/templates/en/codex/skills/intent-packets/rules/algo-migration-slicing.md +47 -0
  106. package/templates/en/codex/skills/intent-packets/rules/decision-slots.md +88 -0
  107. package/templates/en/codex/skills/intent-packets/rules/export-route.md +54 -0
  108. package/templates/en/codex/skills/intent-packets/rules/first-packet.md +35 -0
  109. package/templates/en/codex/skills/intent-packets/rules/packet-format.md +207 -0
  110. package/templates/en/codex/skills/intent-packets/rules/walking-skeleton.md +35 -0
  111. package/templates/en/codex/skills/intent-release-note/SKILL.md +56 -0
  112. package/templates/en/codex/skills/intent-release-note/rules/format-changelog.md +40 -0
  113. package/templates/en/codex/skills/intent-release-note/rules/format-github-releases.md +41 -0
  114. package/templates/en/codex/skills/intent-release-note/rules/format-select.md +32 -0
  115. package/templates/en/codex/skills/intent-release-note/rules/source-scope.md +42 -0
  116. package/templates/en/codex/skills/intent-status/SKILL.md +169 -0
  117. package/templates/en/codex/skills/intent-status/rules/decision-table.md +47 -0
  118. package/templates/en/codex/skills/intent-to-spec/SKILL.md +66 -0
  119. package/templates/en/codex/skills/intent-to-spec/rules/fabrication-guard.md +41 -0
  120. package/templates/en/codex/skills/intent-to-spec/rules/format-integrated.md +42 -0
  121. package/templates/en/codex/skills/intent-to-spec/rules/format-nonprogram.md +45 -0
  122. package/templates/en/codex/skills/intent-to-spec/rules/format-upstream.md +41 -0
  123. package/templates/en/codex/skills/intent-to-spec/rules/source-scope.md +50 -0
  124. package/templates/en/codex/skills/intent-validate/SKILL.md +78 -0
  125. package/templates/en/codex/skills/intent-validate/rules/validate-checks.md +121 -0
  126. package/templates/en/codex/skills/intent-writeback/SKILL.md +68 -0
  127. package/templates/en/codex/skills/intent-writeback/rules/writeback-protocol.md +139 -0
  128. package/templates/en/intent/README.md +118 -0
  129. package/templates/en/intent/cc-sdd/README.md +28 -0
  130. package/templates/en/intent/compass-archive/README.md +9 -0
  131. package/templates/en/intent/compass-archive/archive/.gitkeep +0 -0
  132. package/templates/en/intent/compass-archive.md +7 -0
  133. package/templates/en/intent/constraint-library.md +32 -0
  134. package/templates/en/intent/constraint-starters.md +58 -0
  135. package/templates/en/intent/context-cost-cues.md +55 -0
  136. package/templates/en/intent/deltas/README.md +11 -0
  137. package/templates/en/intent/deltas/archive/.gitkeep +0 -0
  138. package/templates/en/intent/deltas.md +34 -0
  139. package/templates/en/intent/drift-log/README.md +11 -0
  140. package/templates/en/intent/drift-log/archive/.gitkeep +0 -0
  141. package/templates/en/intent/drift-log.md +41 -0
  142. package/templates/en/intent/drift-patterns.md +68 -0
  143. package/templates/en/intent/export-log/README.md +12 -0
  144. package/templates/en/intent/export-log/archive/.gitkeep +0 -0
  145. package/templates/en/intent/export-log.md +6 -0
  146. package/templates/en/intent/glossary.md +23 -0
  147. package/templates/en/intent/intent-compass.md +55 -0
  148. package/templates/en/intent/intent-tree.md +59 -0
  149. package/templates/en/intent/milestones/README.md +10 -0
  150. package/templates/en/intent/milestones/archive/.gitkeep +0 -0
  151. package/templates/en/intent/milestones.md +22 -0
  152. package/templates/en/intent/mode.local.md +23 -0
  153. package/templates/en/intent/mode.md +32 -0
  154. package/templates/en/intent/modes/README.md +28 -0
  155. package/templates/en/intent/modes/behavior-unknown.md +57 -0
  156. package/templates/en/intent/modes/feature-growth.md +57 -0
  157. package/templates/en/intent/modes/non-code.md +46 -0
  158. package/templates/en/intent/modes/refactor.md +56 -0
  159. package/templates/en/intent/modes/standard.md +50 -0
  160. package/templates/en/intent/nl-spec/README.md +18 -0
  161. package/templates/en/intent/openspec/proposal.md +15 -0
  162. package/templates/en/intent/openspec/spec-delta.md +25 -0
  163. package/templates/en/intent/overview/README.md +18 -0
  164. package/templates/en/intent/packets/README.md +29 -0
  165. package/templates/en/intent/packets/index.md +6 -0
  166. package/templates/en/intent/packets/plan.md +23 -0
  167. package/templates/en/intent/release-note/README.md +18 -0
  168. package/templates/en/intent/scripts/intent-check.mjs +786 -0
  169. package/templates/en/intent/scripts/pre-push +27 -0
  170. package/templates/en/intent/spec-ingest/README.md +18 -0
  171. package/templates/ja/agents/claude/CLAUDE.md +62 -0
  172. package/templates/ja/agents/codex/AGENTS.md +62 -0
  173. package/templates/ja/agents/gemini/GEMINI.md +62 -0
  174. package/templates/ja/claude/skills/CONTRACT.md +90 -0
  175. package/templates/ja/claude/skills/intent-compass/SKILL.md +55 -0
  176. package/templates/ja/claude/skills/intent-compass/rules/algo-qoc.md +62 -0
  177. package/templates/ja/claude/skills/intent-compass/rules/constraint-surfacing.md +41 -0
  178. package/templates/ja/claude/skills/intent-discover/SKILL.md +63 -0
  179. package/templates/ja/claude/skills/intent-discover/rules/algo-drift-analysis.md +34 -0
  180. package/templates/ja/claude/skills/intent-discover/rules/algo-gore-lite.md +35 -0
  181. package/templates/ja/claude/skills/intent-discover/rules/algo-impact-analysis.md +37 -0
  182. package/templates/ja/claude/skills/intent-discover/rules/algo-intent-recovery.md +39 -0
  183. package/templates/ja/claude/skills/intent-discover/rules/designer-questions.md +78 -0
  184. package/templates/ja/claude/skills/intent-discover/rules/drift-terrain.md +105 -0
  185. package/templates/ja/claude/skills/intent-discover/rules/mode-selection.md +31 -0
  186. package/templates/ja/claude/skills/intent-export-cc-sdd/SKILL.md +88 -0
  187. package/templates/ja/claude/skills/intent-export-cc-sdd/rules/drift-export-check.md +75 -0
  188. package/templates/ja/claude/skills/intent-export-cc-sdd/rules/export-questions.md +23 -0
  189. package/templates/ja/claude/skills/intent-export-cc-sdd/rules/map-cc-sdd.md +62 -0
  190. package/templates/ja/claude/skills/intent-export-openspec/SKILL.md +90 -0
  191. package/templates/ja/claude/skills/intent-export-openspec/rules/drift-export-check.md +50 -0
  192. package/templates/ja/claude/skills/intent-export-openspec/rules/export-questions.md +23 -0
  193. package/templates/ja/claude/skills/intent-export-openspec/rules/map-openspec.md +75 -0
  194. package/templates/ja/claude/skills/intent-from-spec/SKILL.md +60 -0
  195. package/templates/ja/claude/skills/intent-from-spec/rules/extract-intent.md +56 -0
  196. package/templates/ja/claude/skills/intent-from-spec/rules/gap-readout.md +54 -0
  197. package/templates/ja/claude/skills/intent-from-spec/rules/load-bearing.md +48 -0
  198. package/templates/ja/claude/skills/intent-from-spec/rules/omission-recap.md +42 -0
  199. package/templates/ja/claude/skills/intent-improve/SKILL.md +70 -0
  200. package/templates/ja/claude/skills/intent-improve/rules/improve-axes.md +121 -0
  201. package/templates/ja/claude/skills/intent-overview/SKILL.md +63 -0
  202. package/templates/ja/claude/skills/intent-overview/rules/aggregate-sources.md +61 -0
  203. package/templates/ja/claude/skills/intent-overview/rules/gap-readout.md +54 -0
  204. package/templates/ja/claude/skills/intent-overview/rules/mermaid-tree.md +78 -0
  205. package/templates/ja/claude/skills/intent-overview/rules/progress-readout.md +119 -0
  206. package/templates/ja/claude/skills/intent-packets/SKILL.md +97 -0
  207. package/templates/ja/claude/skills/intent-packets/rules/algo-additive-slicing.md +55 -0
  208. package/templates/ja/claude/skills/intent-packets/rules/algo-characterization-test.md +40 -0
  209. package/templates/ja/claude/skills/intent-packets/rules/algo-example-mapping.md +47 -0
  210. package/templates/ja/claude/skills/intent-packets/rules/algo-migration-slicing.md +47 -0
  211. package/templates/ja/claude/skills/intent-packets/rules/decision-slots.md +88 -0
  212. package/templates/ja/claude/skills/intent-packets/rules/export-route.md +54 -0
  213. package/templates/ja/claude/skills/intent-packets/rules/first-packet.md +35 -0
  214. package/templates/ja/claude/skills/intent-packets/rules/packet-format.md +207 -0
  215. package/templates/ja/claude/skills/intent-packets/rules/walking-skeleton.md +35 -0
  216. package/templates/ja/claude/skills/intent-release-note/SKILL.md +58 -0
  217. package/templates/ja/claude/skills/intent-release-note/rules/format-changelog.md +40 -0
  218. package/templates/ja/claude/skills/intent-release-note/rules/format-github-releases.md +41 -0
  219. package/templates/ja/claude/skills/intent-release-note/rules/format-select.md +32 -0
  220. package/templates/ja/claude/skills/intent-release-note/rules/source-scope.md +42 -0
  221. package/templates/ja/claude/skills/intent-status/SKILL.md +171 -0
  222. package/templates/ja/claude/skills/intent-status/rules/decision-table.md +47 -0
  223. package/templates/ja/claude/skills/intent-to-spec/SKILL.md +68 -0
  224. package/templates/ja/claude/skills/intent-to-spec/rules/fabrication-guard.md +41 -0
  225. package/templates/ja/claude/skills/intent-to-spec/rules/format-integrated.md +42 -0
  226. package/templates/ja/claude/skills/intent-to-spec/rules/format-nonprogram.md +45 -0
  227. package/templates/ja/claude/skills/intent-to-spec/rules/format-upstream.md +41 -0
  228. package/templates/ja/claude/skills/intent-to-spec/rules/source-scope.md +50 -0
  229. package/templates/ja/claude/skills/intent-validate/SKILL.md +80 -0
  230. package/templates/ja/claude/skills/intent-validate/rules/validate-checks.md +121 -0
  231. package/templates/ja/claude/skills/intent-writeback/SKILL.md +71 -0
  232. package/templates/ja/claude/skills/intent-writeback/rules/writeback-protocol.md +139 -0
  233. package/templates/ja/codex/skills/CONTRACT.md +81 -0
  234. package/templates/ja/codex/skills/intent-compass/SKILL.md +52 -0
  235. package/templates/ja/codex/skills/intent-compass/rules/algo-qoc.md +62 -0
  236. package/templates/ja/codex/skills/intent-compass/rules/constraint-surfacing.md +41 -0
  237. package/templates/ja/codex/skills/intent-discover/SKILL.md +60 -0
  238. package/templates/ja/codex/skills/intent-discover/rules/algo-drift-analysis.md +34 -0
  239. package/templates/ja/codex/skills/intent-discover/rules/algo-gore-lite.md +35 -0
  240. package/templates/ja/codex/skills/intent-discover/rules/algo-impact-analysis.md +37 -0
  241. package/templates/ja/codex/skills/intent-discover/rules/algo-intent-recovery.md +39 -0
  242. package/templates/ja/codex/skills/intent-discover/rules/designer-questions.md +78 -0
  243. package/templates/ja/codex/skills/intent-discover/rules/drift-terrain.md +105 -0
  244. package/templates/ja/codex/skills/intent-discover/rules/mode-selection.md +31 -0
  245. package/templates/ja/codex/skills/intent-export-cc-sdd/SKILL.md +85 -0
  246. package/templates/ja/codex/skills/intent-export-cc-sdd/rules/drift-export-check.md +75 -0
  247. package/templates/ja/codex/skills/intent-export-cc-sdd/rules/export-questions.md +23 -0
  248. package/templates/ja/codex/skills/intent-export-cc-sdd/rules/map-cc-sdd.md +62 -0
  249. package/templates/ja/codex/skills/intent-export-openspec/SKILL.md +87 -0
  250. package/templates/ja/codex/skills/intent-export-openspec/rules/drift-export-check.md +50 -0
  251. package/templates/ja/codex/skills/intent-export-openspec/rules/export-questions.md +23 -0
  252. package/templates/ja/codex/skills/intent-export-openspec/rules/map-openspec.md +75 -0
  253. package/templates/ja/codex/skills/intent-from-spec/SKILL.md +58 -0
  254. package/templates/ja/codex/skills/intent-from-spec/rules/extract-intent.md +56 -0
  255. package/templates/ja/codex/skills/intent-from-spec/rules/gap-readout.md +54 -0
  256. package/templates/ja/codex/skills/intent-from-spec/rules/load-bearing.md +48 -0
  257. package/templates/ja/codex/skills/intent-from-spec/rules/omission-recap.md +42 -0
  258. package/templates/ja/codex/skills/intent-improve/SKILL.md +67 -0
  259. package/templates/ja/codex/skills/intent-improve/rules/improve-axes.md +121 -0
  260. package/templates/ja/codex/skills/intent-overview/SKILL.md +61 -0
  261. package/templates/ja/codex/skills/intent-overview/rules/aggregate-sources.md +61 -0
  262. package/templates/ja/codex/skills/intent-overview/rules/gap-readout.md +54 -0
  263. package/templates/ja/codex/skills/intent-overview/rules/mermaid-tree.md +78 -0
  264. package/templates/ja/codex/skills/intent-overview/rules/progress-readout.md +119 -0
  265. package/templates/ja/codex/skills/intent-packets/SKILL.md +94 -0
  266. package/templates/ja/codex/skills/intent-packets/rules/algo-additive-slicing.md +55 -0
  267. package/templates/ja/codex/skills/intent-packets/rules/algo-characterization-test.md +40 -0
  268. package/templates/ja/codex/skills/intent-packets/rules/algo-example-mapping.md +47 -0
  269. package/templates/ja/codex/skills/intent-packets/rules/algo-migration-slicing.md +47 -0
  270. package/templates/ja/codex/skills/intent-packets/rules/decision-slots.md +88 -0
  271. package/templates/ja/codex/skills/intent-packets/rules/export-route.md +54 -0
  272. package/templates/ja/codex/skills/intent-packets/rules/first-packet.md +35 -0
  273. package/templates/ja/codex/skills/intent-packets/rules/packet-format.md +207 -0
  274. package/templates/ja/codex/skills/intent-packets/rules/walking-skeleton.md +35 -0
  275. package/templates/ja/codex/skills/intent-release-note/SKILL.md +56 -0
  276. package/templates/ja/codex/skills/intent-release-note/rules/format-changelog.md +40 -0
  277. package/templates/ja/codex/skills/intent-release-note/rules/format-github-releases.md +41 -0
  278. package/templates/ja/codex/skills/intent-release-note/rules/format-select.md +32 -0
  279. package/templates/ja/codex/skills/intent-release-note/rules/source-scope.md +42 -0
  280. package/templates/ja/codex/skills/intent-status/SKILL.md +169 -0
  281. package/templates/ja/codex/skills/intent-status/rules/decision-table.md +47 -0
  282. package/templates/ja/codex/skills/intent-to-spec/SKILL.md +66 -0
  283. package/templates/ja/codex/skills/intent-to-spec/rules/fabrication-guard.md +41 -0
  284. package/templates/ja/codex/skills/intent-to-spec/rules/format-integrated.md +42 -0
  285. package/templates/ja/codex/skills/intent-to-spec/rules/format-nonprogram.md +45 -0
  286. package/templates/ja/codex/skills/intent-to-spec/rules/format-upstream.md +41 -0
  287. package/templates/ja/codex/skills/intent-to-spec/rules/source-scope.md +50 -0
  288. package/templates/ja/codex/skills/intent-validate/SKILL.md +78 -0
  289. package/templates/ja/codex/skills/intent-validate/rules/validate-checks.md +121 -0
  290. package/templates/ja/codex/skills/intent-writeback/SKILL.md +68 -0
  291. package/templates/ja/codex/skills/intent-writeback/rules/writeback-protocol.md +139 -0
  292. package/templates/ja/intent/README.md +118 -0
  293. package/templates/ja/intent/cc-sdd/README.md +28 -0
  294. package/templates/ja/intent/compass-archive/README.md +9 -0
  295. package/templates/ja/intent/compass-archive/archive/.gitkeep +0 -0
  296. package/templates/ja/intent/compass-archive.md +7 -0
  297. package/templates/ja/intent/constraint-library.md +32 -0
  298. package/templates/ja/intent/constraint-starters.md +58 -0
  299. package/templates/ja/intent/context-cost-cues.md +55 -0
  300. package/templates/ja/intent/deltas/README.md +11 -0
  301. package/templates/ja/intent/deltas/archive/.gitkeep +0 -0
  302. package/templates/ja/intent/deltas.md +34 -0
  303. package/templates/ja/intent/drift-log/README.md +11 -0
  304. package/templates/ja/intent/drift-log/archive/.gitkeep +0 -0
  305. package/templates/ja/intent/drift-log.md +41 -0
  306. package/templates/ja/intent/drift-patterns.md +68 -0
  307. package/templates/ja/intent/export-log/README.md +12 -0
  308. package/templates/ja/intent/export-log/archive/.gitkeep +0 -0
  309. package/templates/ja/intent/export-log.md +6 -0
  310. package/templates/ja/intent/glossary.md +23 -0
  311. package/templates/ja/intent/intent-compass.md +55 -0
  312. package/templates/ja/intent/intent-tree.md +59 -0
  313. package/templates/ja/intent/milestones/README.md +10 -0
  314. package/templates/ja/intent/milestones/archive/.gitkeep +0 -0
  315. package/templates/ja/intent/milestones.md +22 -0
  316. package/templates/ja/intent/mode.local.md +23 -0
  317. package/templates/ja/intent/mode.md +32 -0
  318. package/templates/ja/intent/modes/README.md +28 -0
  319. package/templates/ja/intent/modes/behavior-unknown.md +57 -0
  320. package/templates/ja/intent/modes/feature-growth.md +57 -0
  321. package/templates/ja/intent/modes/non-code.md +46 -0
  322. package/templates/ja/intent/modes/refactor.md +56 -0
  323. package/templates/ja/intent/modes/standard.md +50 -0
  324. package/templates/ja/intent/nl-spec/README.md +18 -0
  325. package/templates/ja/intent/openspec/proposal.md +15 -0
  326. package/templates/ja/intent/openspec/spec-delta.md +25 -0
  327. package/templates/ja/intent/overview/README.md +18 -0
  328. package/templates/ja/intent/packets/README.md +29 -0
  329. package/templates/ja/intent/packets/index.md +6 -0
  330. package/templates/ja/intent/packets/plan.md +23 -0
  331. package/templates/ja/intent/release-note/README.md +18 -0
  332. package/templates/ja/intent/scripts/intent-check.mjs +786 -0
  333. package/templates/ja/intent/scripts/pre-push +27 -0
  334. package/templates/ja/intent/spec-ingest/README.md +18 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Yoshishige Tsuji
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.
package/README.en.md ADDED
@@ -0,0 +1,225 @@
1
+ # intent-planner
2
+
3
+ ![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg) ![node](https://img.shields.io/badge/node-%3E%3D18.17-brightgreen)
4
+
5
+ README: [日本語](README.md) | [English](README.en.md)
6
+
7
+ You ask an AI to "just handle this nicely," and each individual change looks fine — yet the whole thing slowly heads somewhere other than what you had in mind. Sound familiar?
8
+
9
+ intent-planner is a tool for putting "what you want to do" and "what you can't compromise on" into words together with the AI, **before** you ask it to work. Aligning the direction up front keeps things from drifting bit by bit along the way.
10
+
11
+ What you do is simple: you take the fuzzy idea in your head and organize it by answering the AI's questions. No special knowledge required.
12
+
13
+ Installing it only adds a few commands and one folder, `.intent/`. **It never rewrites your files or code** (all it writes is notes inside `.intent/`).
14
+
15
+ > 📌 In more technical terms: intent-planner is a **"Pre-spec Steering Layer" for AI coding agents (Claude Code / Codex)**. It slots in one stage before you write the spec, keeping cross-cutting intent and design direction in effect as steering context throughout implementation. The detailed engineer-facing story is in the [later half](#sec-prespec).
16
+
17
+ ---
18
+
19
+ ## Which one is you?
20
+
21
+ There are roughly three ways to use it. They get more technical from top to bottom, so read from whichever is closest to you.
22
+
23
+ | If you're… | How you use it | Section |
24
+ |---|---|---|
25
+ | 📝 **Not writing code** (planning, research, document-making) | As a tool to organize your thinking and produce a readable deliverable (article outline, manual, research notes, etc.) | [① If you don't write code](#sec-no-code) |
26
+ | 💻 **Asking the AI to implement** (everyday development) | Insert one stage **before** writing the spec, to organize intent before handing off | [② Asking the AI to implement (Pre-spec Steering Layer)](#sec-prespec) |
27
+ | 🔁 **Wanting it fully automated** | Let an outer loop (`/loop`, etc.) **self-drive** the intent → implement → reflect cycle | [③ Run the whole thing automatically (full IDD)](#sec-full-idd) |
28
+
29
+ > The detailed feature usage (modes, command list, enforcement, drift-watch, etc.) is collected in [docs/guide.en.md](docs/guide.en.md). This README focuses on "how to start in your situation."
30
+
31
+ ---
32
+
33
+ ## To begin: the whole picture in 3 minutes
34
+
35
+ intent-planner is one round-trip loop: organize the intent **before** asking the AI to implement, and write the learnings back into the documents **after**.
36
+
37
+ ```
38
+ 1. Organize intent 2. Hand off 3. Implement 4. Write back
39
+ discover → compass export (AI implements) writeback
40
+ → packets → improve
41
+ └────── when in doubt, status (where you are + one next move) ──────┘
42
+ ```
43
+
44
+ Each step's deliverable is Markdown under the `.intent/` folder. Review it before moving on. **When in doubt, `/intent-status`** tells you where you are and recommends exactly one "next move".
45
+
46
+ ### Requirements
47
+
48
+ - **Claude Code** / **Codex** / **Gemini CLI** (selected via `--agent`)
49
+ - **Node.js** (only to run the installer; zero runtime dependencies)
50
+ - [cc-sdd](https://github.com/gotalab/cc-sdd) or [OpenSpec](https://github.com/Fission-AI/OpenSpec) (optional; if you use them as the handoff target)
51
+
52
+ ### Install
53
+
54
+ ```bash
55
+ # At the root of your project (defaults to Claude Code)
56
+ npx intent-planner
57
+
58
+ # If you use Codex
59
+ npx intent-planner --agent codex
60
+
61
+ # If you use Gemini CLI
62
+ npx intent-planner --agent gemini
63
+
64
+ # To check first what will happen
65
+ npx intent-planner --dry-run
66
+ ```
67
+
68
+ On install, a "thin entry that teaches how to use it" (`CLAUDE.md` for Claude Code, `AGENTS.md` for Codex, `GEMINI.md` for Gemini CLI) and a scaffold `.intent/` folder are placed for the AI you use. An existing `CLAUDE.md` / `AGENTS.md` / `GEMINI.md` is respected and never overwritten. For detailed options, see [the installation section of docs/guide.en.md](docs/guide.en.md#installation-options).
69
+
70
+ **For engineers who write code**: after working out the intent, the recommended path is to bridge into [cc-sdd](https://github.com/gotalab/cc-sdd) or [OpenSpec](https://github.com/Fission-AI/OpenSpec) drafts via `/intent-export-cc-sdd` and proceed with the spec-driven implementation flow (intent is the upstream layer; cc-sdd / OpenSpec is downstream).
71
+
72
+ ---
73
+
74
+ <a id="sec-no-code"></a>
75
+
76
+ ## ① If you don't write code
77
+
78
+ intent-planner was originally for people building programs with AI, but you can also use it as a tool to **organize the ideas in your head into a "readable deliverable"**. Outlining an article, summarizing what you researched, drafting a proposal — that's the path here.
79
+
80
+ It's easy to use. When you run `/intent-discover`, the AI asks you "what do you want to do?", and you just answer. The AI sees "this is document-making" and switches to a way of working that pulls your writing together (`non-code` mode).
81
+
82
+ ```
83
+ /intent-discover ← organize what you want to do / think through (the AI asks you questions)
84
+ → /intent-compass ← decide what you "can't compromise on"
85
+ → /intent-to-spec ← pull it into a readable form (article outline, manual, research notes, etc.)
86
+ ```
87
+
88
+ - The final `/intent-to-spec` pulls what you organized into one readable document. Parts without a clear basis get an "inferred" mark, so you can tell whether the AI has padded the story on its own.
89
+ - The finished document goes into the `.intent/nl-spec/` folder.
90
+
91
+ > If you don't write code, this is enough. The sections below are for people building programs, so feel free to skip them.
92
+
93
+ ---
94
+
95
+ <a id="sec-prespec"></a>
96
+
97
+ ## ② Asking the AI to implement (Pre-spec Steering Layer)
98
+
99
+ From here on it's for engineers. The most basic use of intent-planner is to insert just one stage **before** writing the spec, organizing intent before handing off to implementation. The organized intent flows straight into the spec-driven flow of [cc-sdd](https://github.com/gotalab/cc-sdd) or [OpenSpec](https://github.com/Fission-AI/OpenSpec).
100
+
101
+ As the name "Pre-spec" and "Steering" suggests, the criteria you set here keep steering the AI throughout implementation.
102
+
103
+ ### How to proceed
104
+
105
+ Run these in order, reviewing each step's deliverable.
106
+
107
+ ```
108
+ /intent-discover → /intent-compass → /intent-packets → /intent-export-cc-sdd
109
+ (organize the picture) (criteria to uphold) (decompose into units) (hand off to the tool)
110
+ ```
111
+
112
+ 1. **`/intent-discover`** — the AI asks questions about your problem or idea and builds the overall picture of the intent.
113
+ 2. **`/intent-compass`** — builds the decision criteria: "the state to aim for", "directions not to take", "invariants that must not break". This becomes the steering handed to the AI on every implementation run.
114
+ 3. **`/intent-packets`** — splits into work units (packets) that can be handed to implementation. It recommends one unit to start with, with a reason.
115
+ 4. **`/intent-export-cc-sdd`** (or `/intent-export-openspec`) — converts the selected work unit into a draft for the implementation tool.
116
+
117
+ After that you run the cc-sdd / OpenSpec spec flow (requirements → design → tasks → implementation). intent-planner produces only the draft; the spec body is generated by the implementation tool, and you review it at each phase.
118
+
119
+ ### What's good about this (Before / After)
120
+
121
+ An example of how a vague one-line request gets concrete when run through intent-planner (subject: a login feature).
122
+
123
+ **Before** — the request to the AI is just this:
124
+
125
+ ```
126
+ Just build the login feature nicely
127
+ ```
128
+
129
+ The interpretation of "nicely" is left to the AI, which tends to fall into stopgaps — growing its own password auth, going down an implementation that doesn't fit the existing auth foundation.
130
+
131
+ **After** — running discover → compass → packets turns the same request into this:
132
+
133
+ - **Goal (with measurable criteria)**: a first-time user can complete login within 2 minutes (measured from start to dashboard display)
134
+ - **Invariant (to uphold)**: don't break compatibility with the existing OAuth providers (Google / GitHub)
135
+ - **Direction not to take**: don't add your own password auth
136
+ - **Work units**:
137
+ 1. **P1: OAuth callback E2E** — thread the thinnest path through first
138
+ 2. **P2: error states and retry UI**
139
+ 3. **P3: audit log**
140
+
141
+ The first recommendation is P1. Threading the thinnest path first lets you clear the biggest uncertainty (redirect config, session management) at the start.
142
+
143
+ Because this goal / invariant / direction-not-to-take keeps being handed to the AI on every run from P2 onward, the criteria "don't grow your own auth" and "don't break the existing providers" keep working.
144
+
145
+ ### After implementation (keep growing it)
146
+
147
+ So it isn't "build once and done", write the learnings from implementation back into the intent documents.
148
+
149
+ - **`/intent-writeback`** — records what you learned during implementation (newly decided things, invariant violations, implicit behavior) and reflects only what you approve into the documents.
150
+ - **`/intent-improve`** — at a milestone after several units, detects and fixes the gaps between documents and implementation in bulk.
151
+
152
+ With this, `.intent/` becomes a living decision criterion that stays in sync with implementation reality.
153
+
154
+ ---
155
+
156
+ <a id="sec-full-idd"></a>
157
+
158
+ ## ③ Run the whole thing automatically (full IDD)
159
+
160
+ In ②, a human looked at `/intent-status` and advanced each next move by hand. Instead, delegating the driving to an outer loop like `/loop` lets you **self-drive the whole intent → implementation → write-back cycle**. This is using intent-planner to run a full round as **Intent Driven Development (IDD)**.
161
+
162
+ intent-planner itself records "which stage it's at (state)", but embeds no mechanism (a state machine) to advance that state automatically. That's why the driving can be pushed outside.
163
+
164
+ ```
165
+ /loop /intent-status
166
+ → the outer loop picks up the "next move" status emits,
167
+ advances export of the next work unit → implementation → writeback,
168
+ and returns to status — repeating this
169
+ ```
170
+
171
+ The only difference from ② is **who holds the driving**. Either way, what decides the next thing to build is the Intent (the organized intent, and the "next move" status emits).
172
+
173
+ > ### ⚠️ The cost of self-driving (make sure you understand it)
174
+ >
175
+ > The commands that rewrite documents (discover / compass / packets / writeback / improve / export) **intentionally assume human approval** — a brake against unsupervised development (vibe coding). Skipping approval with `/loop` trades speed for losing the following:
176
+ >
177
+ > - **The chance to notice drift** — fewer chances to notice "this drifts from the intent" at each stage
178
+ > - **Protection of the documents** — a wrong learning could be reflected into the intent documents as-is
179
+ > - **Review of heavy branches** — filling in questions a human should settle, without approval, could fix a guess as a settled fact
180
+ >
181
+ > **The recommendation is hybrid.** Delegate the inner "implement → test → fix" to `/loop` to spin fast, and have a human cut in at the seams (compass confirmation, packet decomposition, writeback approval, settling heavy questions). The read-only commands (status / validate / overview) need no approval, so they keep emitting decision material safely inside `/loop`. Rather than "running everything approval-less", "concentrating approval on the one point that matters" is the way to balance lightness and safety.
182
+ >
183
+ > The self-driving mechanism and caveats are in [the "running it on a loop" section of docs/guide.en.md](docs/guide.en.md#notes-when-running-it-on-a-loop-loop); the theoretical background is in [the "state, yes — state machine, no" section of docs/theory.md](docs/theory.md).
184
+
185
+ ---
186
+
187
+ ## When to use it
188
+
189
+ You can also enter from a concrete situation.
190
+
191
+ | Situation | What intent-planner does | How |
192
+ |---|---|---|
193
+ | Pull together documents, research, planning (no code) | Organize the intent and generate a readable deliverable directly | [①](#sec-no-code) |
194
+ | Start a new product or feature AI-first | Verbalize the intent and criteria before implementation, so steering works from the first line | [②](#sec-prespec) |
195
+ | Build a PoC or personal project solo | Opt in at the entry to the designer-role questions (measurable success criteria, walking skeleton, hypothesis and falsification criteria) | [②](#sec-prespec) |
196
+ | Ask for a large refactor | Build the criteria first that prevent changes that "work correctly but drift from the design intent" | [②](#sec-prespec) |
197
+ | Legacy code whose specs are unknown | Reverse-engineer the intent from observable behavior and document it | [②](#sec-prespec) |
198
+ | Add features to a running system | Decompose into addition units that account for the impact on what exists | [②](#sec-prespec) |
199
+ | Self-drive from planning through implementation and write-back | Delegate the driving to an outer loop; the human approves only the one point that matters | [③](#sec-full-idd) |
200
+
201
+ ---
202
+
203
+ ## Safe to adopt
204
+
205
+ - **It does not change your application code.** All it writes is Markdown under `.intent/` (writeback / improve reflect only what you approve).
206
+ - **It does not overwrite existing files** (except when you pass `--force`). You can check first with `--dry-run`.
207
+ - **The check layers (enforcement / drift-watch) default to off**, and nothing changes unless you configure them. A git hook is placed only when you explicitly pass `--enforce`.
208
+ - **Zero runtime dependencies** (Node standard modules only). No resident process, no sending anything to an external service.
209
+
210
+ ---
211
+
212
+ ## Want to know more
213
+
214
+ - **How each feature works** — modes, command-by-command, file layout, enforcement, drift-watch, coined-term management, constraint starters, etc. → [docs/guide.en.md](docs/guide.en.md)
215
+ - **Why this procedure** — its correspondence to requirements engineering and software architecture research, with references → [docs/theory.md](docs/theory.md) (Japanese)
216
+
217
+ It's designed so that, even without knowing the theory, following the flow and answering the questions fills in the deliverables you need. The docs are for reference when you want one more level of detail.
218
+
219
+ ---
220
+
221
+ ## License
222
+
223
+ MIT © Yoshishige Tsuji
224
+
225
+ This project's development uses tooling derived from [cc-sdd](https://github.com/gotalab/cc-sdd) (MIT, © 2025 gotalab). The distributed artifacts (the npm package and this repository's `templates/`, etc.) contain no cc-sdd-derived files.
package/README.md ADDED
@@ -0,0 +1,225 @@
1
+ # intent-planner
2
+
3
+ ![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg) ![node](https://img.shields.io/badge/node-%3E%3D18.17-brightgreen)
4
+
5
+ README: [日本語](README.md) | [English](README.en.md)
6
+
7
+ AI に「いい感じにやっておいて」とお願いすると、ひとつひとつは悪くないのに、全体としてだんだん思っていたのと違う方向へ進んでいく——そんな経験はないでしょうか。
8
+
9
+ intent-planner は、AI に作業を頼む**前に**、「何をしたいのか」「これだけは外したくない」を AI といっしょに言葉にしておくための道具です。先に向きを合わせておくと、途中で少しずつズレていくのを防げます。
10
+
11
+ やることはシンプルで、頭の中にあるぼんやりした考えを、AI が質問してくれるのに答えながら整理していくだけ。むずかしい知識はいりません。
12
+
13
+ 導入しても増えるのは、いくつかのコマンドと `.intent/` というフォルダ1つだけ。**あなたのファイルやコードを勝手に書き換えることはありません**(書き込むのは `.intent/` の中のメモだけです)。
14
+
15
+ > 📌 もう少し技術的に言うと: intent-planner は **AI コーディングエージェント(Claude Code / Codex)向けの "Pre-spec Steering Layer"** です。spec(仕様)を書く一段手前に挟んで、横断的な意図と設計方針を steering context として実装中ずっと効かせます。エンジニア向けの詳しい話は[後半](#sec-prespec)から。
16
+
17
+ ---
18
+
19
+ ## 自分はどの使い方かな?
20
+
21
+ 使い方は大きく3通り。上から順にだんだん技術寄りになっていくので、自分に近いところから読んでください。
22
+
23
+ | こんな人 | 使い方 | 読む章 |
24
+ |---|---|---|
25
+ | 📝 **コードは書かない**(企画・調査・文書づくり) | 考えを整理して、読める成果物(記事の構成案・手順書・調査メモなど)を作る道具として | [① コードを書かない人へ](#sec-no-code) |
26
+ | 💻 **AI に実装を頼む**(ふだんの開発) | 仕様を書く**手前**に1段はさんで、意図を整えてから実装に渡す | [② AI に実装を頼むとき(Pre-spec Steering Layer)](#sec-prespec) |
27
+ | 🔁 **まるごと自動で回したい** | 意図→実装→ふりかえりのサイクルを、外側のループ(`/loop` など)で**自走**させる | [③ まるごと自動で回す(full IDD)](#sec-full-idd) |
28
+
29
+ > 各機能の細かい使い方(モード・コマンド一覧・enforcement・drift-watch など)は [docs/guide.md](docs/guide.md) にまとめてあります。この README は「自分の状況でどう始めるか」に絞っています。
30
+
31
+ ---
32
+
33
+ ## はじめに:3分でわかる全体像
34
+
35
+ intent-planner は、AI に実装を頼む**前**に意図を整理し、実装の**あと**に学びを文書へ戻す、ひとめぐりのループです。
36
+
37
+ ```
38
+ ①意図を整理する ②実装に渡す ③実装する ④学びを戻す
39
+ discover → compass export (AI が実装) writeback
40
+ → packets → improve
41
+ └─────────── 迷ったら status(現在地と次の一手を1つ教える)───────────┘
42
+ ```
43
+
44
+ 各ステップの成果物は `.intent/` フォルダの中の Markdown です。レビューしてから次へ進めます。**迷ったら `/intent-status`** が、いまどこにいて次に何をすればいいかを1つだけ教えてくれます。
45
+
46
+ ### 必要なもの
47
+
48
+ - **Claude Code** / **Codex** / **Gemini CLI**(`--agent` で選択)
49
+ - **Node.js**(インストーラの実行に使うだけ。動作時の依存はゼロ)
50
+ - [cc-sdd](https://github.com/gotalab/cc-sdd) や [OpenSpec](https://github.com/Fission-AI/OpenSpec)(任意。実装に渡す先として使う場合)
51
+
52
+ ### インストール
53
+
54
+ ```bash
55
+ # プロジェクトのルートで(既定は Claude Code)
56
+ npx intent-planner
57
+
58
+ # Codex を使う場合
59
+ npx intent-planner --agent codex
60
+
61
+ # Gemini CLI を使う場合
62
+ npx intent-planner --agent gemini
63
+
64
+ # 何が起きるか先に確認したいとき
65
+ npx intent-planner --dry-run
66
+ ```
67
+
68
+ 導入すると、使う AI に合わせて「使い方を教える薄い入口」(Claude Code なら `CLAUDE.md`、Codex なら `AGENTS.md`、Gemini CLI なら `GEMINI.md`)と、雛形の `.intent/` フォルダが置かれます。既存の `CLAUDE.md` / `AGENTS.md` / `GEMINI.md` があれば上書きせず尊重します。詳しいオプションは [docs/guide.md のインストール節](docs/guide.md#インストールのオプション)を参照してください。
69
+
70
+ **コードを書くエンジニアの方へ**: intent で意図を詰めたあとは、`/intent-export-cc-sdd` で [cc-sdd](https://github.com/gotalab/cc-sdd) または [OpenSpec](https://github.com/Fission-AI/OpenSpec) の下書きへ橋渡しし、spec 駆動の実装フローへ進むのが推奨です(intent は手前のレイヤー、cc-sdd / OpenSpec が下流)。
71
+
72
+ ---
73
+
74
+ <a id="sec-no-code"></a>
75
+
76
+ ## ① コードを書かない人へ
77
+
78
+ intent-planner はもともと AI でプログラムを作る人向けですが、**頭の中の考えを整理して「読める成果物」にまとめる**道具としても使えます。記事の構成を練る、調べたことをまとめる、企画書をつくる——そんなときの道筋です。
79
+
80
+ 使い方はかんたん。`/intent-discover` を実行すると、AI が「何をしたいんですか?」と質問してくれるので、それに答えていくだけ。AI のほうで「これは文書づくりですね」と見て、文章をまとめる進め方(`non-code` モード)に切り替えてくれます。
81
+
82
+ ```
83
+ /intent-discover ← したいこと・考えたいことを整理(AI が質問してくれる)
84
+ → /intent-compass ← 「これは外したくない」という方針を決める
85
+ → /intent-to-spec ← 記事の構成案・手順書・調査メモなど、読める形にまとめる
86
+ ```
87
+
88
+ - 最後の `/intent-to-spec` で、整理した内容を1本の読める文書にまとめてくれます。はっきりした根拠のない部分には「推測」の印が付くので、AI が勝手に話を盛っていないか見分けられます。
89
+ - できあがった文書は `.intent/nl-spec/` というフォルダに入ります。
90
+
91
+ > コードを書かない人は、ここまでで十分です。この先の章はプログラムを作る人向けなので、読み飛ばして大丈夫です。
92
+
93
+ ---
94
+
95
+ <a id="sec-prespec"></a>
96
+
97
+ ## ② AI に実装を頼むとき(Pre-spec Steering Layer)
98
+
99
+ ここからはエンジニア向けです。intent-planner のいちばん基本の使い方は、仕様(spec)を書く**手前**に1段だけ挟んで、意図を整理してから実装に渡すこと。整理した意図は、そのまま [cc-sdd](https://github.com/gotalab/cc-sdd) や [OpenSpec](https://github.com/Fission-AI/OpenSpec) の spec 駆動フローへ引き継げます。
100
+
101
+ 「Pre-spec(仕様の手前)」「Steering(舵取り)」の名のとおり、ここで決めた基準が実装中ずっと AI の舵取りをし続けます。
102
+
103
+ ### 進め方
104
+
105
+ 各ステップの成果物をレビューしながら、この順に進めます。
106
+
107
+ ```
108
+ /intent-discover → /intent-compass → /intent-packets → /intent-export-cc-sdd
109
+ (全体像を整理) (守るべき基準) (作業単位に分解) (実装ツールへ引き継ぎ)
110
+ ```
111
+
112
+ 1. **`/intent-discover`** — 課題やアイデアについて AI が質問し、意図の全体像を組み立てます。
113
+ 2. **`/intent-compass`** — 「目指す姿」「進んではいけない方向」「壊してはいけない不変則」などの判断基準を作ります。これが実装中の AI に毎回渡る舵になります。
114
+ 3. **`/intent-packets`** — 実装に渡せる作業単位(packet)に分けます。最初に着手すべき単位を理由つきで1つ薦めてくれます。
115
+ 4. **`/intent-export-cc-sdd`**(または `/intent-export-openspec`)— 選んだ作業単位を実装ツールの下書きに変換します。
116
+
117
+ そのあとは cc-sdd / OpenSpec の spec フロー(requirements → design → tasks → 実装)を回します。intent-planner が作るのは下書きまでで、spec の本体は実装ツールが生成し、各フェーズであなたがレビューします。
118
+
119
+ ### このとき何がうれしいのか(Before / After)
120
+
121
+ 曖昧な依頼1行が、intent-planner を通すとどう具体化されるかの例です(題材: ログイン機能)。
122
+
123
+ **Before** — AI への依頼はこれだけ:
124
+
125
+ ```
126
+ ログイン機能をいい感じに作って
127
+ ```
128
+
129
+ 「いい感じ」の解釈は AI 任せになり、独自のパスワード認証を生やす・既存の認証基盤と合わない実装に進むなど、その場しのぎに流れがちです。
130
+
131
+ **After** — discover → compass → packets を通すと、同じ依頼がこうなります:
132
+
133
+ - **ゴール(計測基準つき)**: 初回ユーザーが2分以内にログインを完了できる(開始〜ダッシュボード表示で計測)
134
+ - **不変則(守ること)**: 既存の OAuth provider(Google / GitHub)との互換性を壊さない
135
+ - **進んではいけない方向**: 独自のパスワード認証を追加しない
136
+ - **作業単位**:
137
+ 1. **P1: OAuth callback の E2E** — 一番細い経路を最初に貫通させる
138
+ 2. **P2: エラー状態と再試行 UI**
139
+ 3. **P3: 監査ログ**
140
+
141
+ 最初に薦められるのは P1。一番細い経路を先に通すことで、最大の不確実性(リダイレクト設定・セッション管理)を最初に潰せるからです。
142
+
143
+ このゴール・不変則・進んではいけない方向が、P2 以降の実装でも AI に毎回渡り続けるので、「独自認証を生やさない」「既存 provider を壊さない」という基準が効き続けます。
144
+
145
+ ### 実装が終わったら(育て続ける)
146
+
147
+ 「作って終わり」にしないために、実装の学びを意図の文書へ戻します。
148
+
149
+ - **`/intent-writeback`** — 実装で分かったこと(新しく決まったこと・不変則の違反・暗黙の挙動)を記録し、あなたが承認した分だけ文書へ反映します。
150
+ - **`/intent-improve`** — 数件こなした節目に、文書と実装のズレをまとめて検出して直します。
151
+
152
+ これで `.intent/` は実装の現実と同期し続ける、生きた判断基準になります。
153
+
154
+ ---
155
+
156
+ <a id="sec-full-idd"></a>
157
+
158
+ ## ③ まるごと自動で回す(full IDD)
159
+
160
+ ②では人が `/intent-status` を見て次の一手を毎回手で進めました。代わりに、`/loop` のような外側のループに駆動を委ねると、**意図→実装→書き戻しのサイクル全体を自走**させられます。これが intent-planner を **Intent Driven Development(IDD)** として一周まるごと回す使い方です。
161
+
162
+ intent-planner 自身は「いま何工程目か(state)」を記録しますが、それを自動で次へ進める仕組み(状態機械)は内蔵していません。だから駆動を外に出せます。
163
+
164
+ ```
165
+ /loop /intent-status
166
+ → status が出す「次の一手」を外側のループが拾い、
167
+ 次の作業単位の export → 実装 → writeback まで進めて、
168
+ また status に戻る — これを繰り返す
169
+ ```
170
+
171
+ ②との違いは**駆動を誰が握るか**だけです。どちらでも、次に何を作るかを決めているのは Intent(整理した意図と、status が出す「次の一手」)です。
172
+
173
+ > ### ⚠️ 自走させるときの代償(必ず把握してください)
174
+ >
175
+ > 文書を書き換えるコマンド(discover / compass / packets / writeback / improve / export)は、**意図的に人間の承認を前提**にしています。無監視で走り続ける開発(vibe coding)への歯止めです。`/loop` で承認を飛ばすと、速さと引き換えに次を失います:
176
+ >
177
+ > - **ズレに気づく機会** — 各段で「意図とズレている」と気づく機会が減る
178
+ > - **文書の保護** — 誤った学びがそのまま意図文書に反映されうる
179
+ > - **重い分岐のレビュー** — 人が確定すべき問いを承認なしで埋めると、推測が確定として固定されうる
180
+ >
181
+ > **おすすめはハイブリッド**です。内側の「実装→テスト→修正」は `/loop` に委ねて速く回し、段の切れ目(compass 確定・packet 分解・writeback 承認・重い問いの確定)では人が割り込む。読むだけのコマンド(status / validate / overview)は承認不要なので、`/loop` の中でも安全に判断材料を出し続けます。「全部を承認レスで回す」より「**効く一点に承認を集中する**」のが、軽さと安全を両立させる使い方です。
182
+ >
183
+ > 自走の仕組みと注意点は [docs/guide.md の「自動で回す」節](docs/guide.md#自動で回すloopときの注意)に、理論的背景は [docs/theory.md の「状態は持つが、状態機械は持たない」節](docs/theory.md)にまとめています。
184
+
185
+ ---
186
+
187
+ ## こんなときに
188
+
189
+ 具体的な状況からも入れます。
190
+
191
+ | 状況 | intent-planner がやること | 使い方 |
192
+ |---|---|---|
193
+ | 文書・調査・企画をまとめたい(コードを書かない) | 意図を整理し、読める成果物を直接生成する | [①](#sec-no-code) |
194
+ | 新規プロダクト・機能を AI 主導で作り始めたい | 作りたいものの意図と基準を実装前に言語化し、最初の1行から舵を効かせる | [②](#sec-prespec) |
195
+ | PoC・個人開発を1人で作りたい | 詰めの問い(計測できる成功基準・最小貫通・仮説と反証条件)を入口で選べる | [②](#sec-prespec) |
196
+ | 大規模リファクタを頼みたい | 「正しく動くが設計意図からズレる」変更を防ぐ基準を先に作る | [②](#sec-prespec) |
197
+ | レガシーで仕様が分からない | 観測できる振る舞いから意図を逆算して文書化する | [②](#sec-prespec) |
198
+ | 稼働中システムに機能追加したい | 既存への影響を踏まえた追加単位に分解する | [②](#sec-prespec) |
199
+ | 計画から実装・書き戻しまで自走させたい | 外側のループに駆動を委ね、人は効く一点だけ承認する | [③](#sec-full-idd) |
200
+
201
+ ---
202
+
203
+ ## 安心して使うために
204
+
205
+ - **アプリのコードは変更しません**。書くのは `.intent/` の中の Markdown だけです(writeback / improve も承認した分しか反映しません)。
206
+ - **既存ファイルは上書きしません**(`--force` を指定したときを除く)。まず `--dry-run` で確認できます。
207
+ - **検査系(enforcement / drift-watch)は既定 off** で、設定しない限り動作は何も変わりません。git フックは `--enforce` を明示したときだけ配置します。
208
+ - **動作時の依存ゼロ**(Node 標準モジュールのみ)。常駐プロセスも、外部サービスへの送信もありません。
209
+
210
+ ---
211
+
212
+ ## もっと知りたい
213
+
214
+ - **各機能の使い方** — モード・コマンド逐条・ファイル構成・enforcement・drift-watch・造語管理・制約叩き台など → [docs/guide.md](docs/guide.md)
215
+ - **なぜこの手順なのか** — 要求工学・ソフトウェアアーキテクチャ研究との対応、参考文献つき → [docs/theory.md](docs/theory.md)
216
+
217
+ 理論を知らなくても、フローに沿って質問に答えていけば必要な成果物が埋まるように設計しています。docs は「もう一段くわしく知りたくなったとき」の参照用です。
218
+
219
+ ---
220
+
221
+ ## ライセンス
222
+
223
+ MIT © Yoshishige Tsuji
224
+
225
+ 本プロジェクトの開発には [cc-sdd](https://github.com/gotalab/cc-sdd)(MIT, © 2025 gotalab)由来のツーリングを使用しています。配布物(npm パッケージおよび本リポジトリの `templates/` 等)に cc-sdd 由来のファイルは含まれません。