red64-cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/README.md +454 -0
  2. package/dist/cli/parseArgs.d.ts +16 -0
  3. package/dist/cli/parseArgs.d.ts.map +1 -0
  4. package/dist/cli/parseArgs.js +172 -0
  5. package/dist/cli/parseArgs.js.map +1 -0
  6. package/dist/cli/validateFlags.d.ts +22 -0
  7. package/dist/cli/validateFlags.d.ts.map +1 -0
  8. package/dist/cli/validateFlags.js +24 -0
  9. package/dist/cli/validateFlags.js.map +1 -0
  10. package/dist/cli.d.ts +7 -0
  11. package/dist/cli.d.ts.map +1 -0
  12. package/dist/cli.js +90 -0
  13. package/dist/cli.js.map +1 -0
  14. package/dist/components/App.d.ts +20 -0
  15. package/dist/components/App.d.ts.map +1 -0
  16. package/dist/components/App.js +35 -0
  17. package/dist/components/App.js.map +1 -0
  18. package/dist/components/CommandRouter.d.ts +21 -0
  19. package/dist/components/CommandRouter.d.ts.map +1 -0
  20. package/dist/components/CommandRouter.js +30 -0
  21. package/dist/components/CommandRouter.js.map +1 -0
  22. package/dist/components/GlobalConfig.d.ts +26 -0
  23. package/dist/components/GlobalConfig.d.ts.map +1 -0
  24. package/dist/components/GlobalConfig.js +30 -0
  25. package/dist/components/GlobalConfig.js.map +1 -0
  26. package/dist/components/index.d.ts +9 -0
  27. package/dist/components/index.d.ts.map +1 -0
  28. package/dist/components/index.js +9 -0
  29. package/dist/components/index.js.map +1 -0
  30. package/dist/components/init/CompleteStep.d.ts +11 -0
  31. package/dist/components/init/CompleteStep.d.ts.map +1 -0
  32. package/dist/components/init/CompleteStep.js +15 -0
  33. package/dist/components/init/CompleteStep.js.map +1 -0
  34. package/dist/components/init/ErrorStep.d.ts +14 -0
  35. package/dist/components/init/ErrorStep.d.ts.map +1 -0
  36. package/dist/components/init/ErrorStep.js +36 -0
  37. package/dist/components/init/ErrorStep.js.map +1 -0
  38. package/dist/components/init/FetchStep.d.ts +15 -0
  39. package/dist/components/init/FetchStep.d.ts.map +1 -0
  40. package/dist/components/init/FetchStep.js +33 -0
  41. package/dist/components/init/FetchStep.js.map +1 -0
  42. package/dist/components/init/SetupStep.d.ts +14 -0
  43. package/dist/components/init/SetupStep.d.ts.map +1 -0
  44. package/dist/components/init/SetupStep.js +78 -0
  45. package/dist/components/init/SetupStep.js.map +1 -0
  46. package/dist/components/init/SteeringStep.d.ts +12 -0
  47. package/dist/components/init/SteeringStep.d.ts.map +1 -0
  48. package/dist/components/init/SteeringStep.js +43 -0
  49. package/dist/components/init/SteeringStep.js.map +1 -0
  50. package/dist/components/init/WelcomeStep.d.ts +12 -0
  51. package/dist/components/init/WelcomeStep.d.ts.map +1 -0
  52. package/dist/components/init/WelcomeStep.js +52 -0
  53. package/dist/components/init/WelcomeStep.js.map +1 -0
  54. package/dist/components/init/index.d.ts +11 -0
  55. package/dist/components/init/index.d.ts.map +1 -0
  56. package/dist/components/init/index.js +10 -0
  57. package/dist/components/init/index.js.map +1 -0
  58. package/dist/components/init/types.d.ts +98 -0
  59. package/dist/components/init/types.d.ts.map +1 -0
  60. package/dist/components/init/types.js +6 -0
  61. package/dist/components/init/types.js.map +1 -0
  62. package/dist/components/screens/AbortScreen.d.ts +14 -0
  63. package/dist/components/screens/AbortScreen.d.ts.map +1 -0
  64. package/dist/components/screens/AbortScreen.js +181 -0
  65. package/dist/components/screens/AbortScreen.js.map +1 -0
  66. package/dist/components/screens/ApprovalScreen.d.ts +24 -0
  67. package/dist/components/screens/ApprovalScreen.d.ts.map +1 -0
  68. package/dist/components/screens/ApprovalScreen.js +82 -0
  69. package/dist/components/screens/ApprovalScreen.js.map +1 -0
  70. package/dist/components/screens/HelpScreen.d.ts +20 -0
  71. package/dist/components/screens/HelpScreen.d.ts.map +1 -0
  72. package/dist/components/screens/HelpScreen.js +70 -0
  73. package/dist/components/screens/HelpScreen.js.map +1 -0
  74. package/dist/components/screens/InitScreen.d.ts +15 -0
  75. package/dist/components/screens/InitScreen.d.ts.map +1 -0
  76. package/dist/components/screens/InitScreen.js +420 -0
  77. package/dist/components/screens/InitScreen.js.map +1 -0
  78. package/dist/components/screens/ListScreen.d.ts +14 -0
  79. package/dist/components/screens/ListScreen.d.ts.map +1 -0
  80. package/dist/components/screens/ListScreen.js +57 -0
  81. package/dist/components/screens/ListScreen.js.map +1 -0
  82. package/dist/components/screens/ProgressScreen.d.ts +26 -0
  83. package/dist/components/screens/ProgressScreen.d.ts.map +1 -0
  84. package/dist/components/screens/ProgressScreen.js +64 -0
  85. package/dist/components/screens/ProgressScreen.js.map +1 -0
  86. package/dist/components/screens/ResumeScreen.d.ts +14 -0
  87. package/dist/components/screens/ResumeScreen.d.ts.map +1 -0
  88. package/dist/components/screens/ResumeScreen.js +108 -0
  89. package/dist/components/screens/ResumeScreen.js.map +1 -0
  90. package/dist/components/screens/ScreenProps.d.ts +12 -0
  91. package/dist/components/screens/ScreenProps.d.ts.map +1 -0
  92. package/dist/components/screens/ScreenProps.js +5 -0
  93. package/dist/components/screens/ScreenProps.js.map +1 -0
  94. package/dist/components/screens/StartScreen.d.ts +26 -0
  95. package/dist/components/screens/StartScreen.d.ts.map +1 -0
  96. package/dist/components/screens/StartScreen.js +1021 -0
  97. package/dist/components/screens/StartScreen.js.map +1 -0
  98. package/dist/components/screens/StatusScreen.d.ts +14 -0
  99. package/dist/components/screens/StatusScreen.d.ts.map +1 -0
  100. package/dist/components/screens/StatusScreen.js +115 -0
  101. package/dist/components/screens/StatusScreen.js.map +1 -0
  102. package/dist/components/screens/index.d.ts +15 -0
  103. package/dist/components/screens/index.d.ts.map +1 -0
  104. package/dist/components/screens/index.js +12 -0
  105. package/dist/components/screens/index.js.map +1 -0
  106. package/dist/components/ui/ErrorBoundary.d.ts +34 -0
  107. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  108. package/dist/components/ui/ErrorBoundary.js +37 -0
  109. package/dist/components/ui/ErrorBoundary.js.map +1 -0
  110. package/dist/components/ui/ErrorDisplay.d.ts +20 -0
  111. package/dist/components/ui/ErrorDisplay.d.ts.map +1 -0
  112. package/dist/components/ui/ErrorDisplay.js +12 -0
  113. package/dist/components/ui/ErrorDisplay.js.map +1 -0
  114. package/dist/components/ui/ErrorRecoveryPrompt.d.ts +30 -0
  115. package/dist/components/ui/ErrorRecoveryPrompt.d.ts.map +1 -0
  116. package/dist/components/ui/ErrorRecoveryPrompt.js +66 -0
  117. package/dist/components/ui/ErrorRecoveryPrompt.js.map +1 -0
  118. package/dist/components/ui/FeatureSidebar.d.ts +27 -0
  119. package/dist/components/ui/FeatureSidebar.d.ts.map +1 -0
  120. package/dist/components/ui/FeatureSidebar.js +166 -0
  121. package/dist/components/ui/FeatureSidebar.js.map +1 -0
  122. package/dist/components/ui/FlowTable.d.ts +21 -0
  123. package/dist/components/ui/FlowTable.d.ts.map +1 -0
  124. package/dist/components/ui/FlowTable.js +105 -0
  125. package/dist/components/ui/FlowTable.js.map +1 -0
  126. package/dist/components/ui/Header.d.ts +20 -0
  127. package/dist/components/ui/Header.d.ts.map +1 -0
  128. package/dist/components/ui/Header.js +11 -0
  129. package/dist/components/ui/Header.js.map +1 -0
  130. package/dist/components/ui/OutputRegion.d.ts +20 -0
  131. package/dist/components/ui/OutputRegion.d.ts.map +1 -0
  132. package/dist/components/ui/OutputRegion.js +14 -0
  133. package/dist/components/ui/OutputRegion.js.map +1 -0
  134. package/dist/components/ui/PhaseProgressView.d.ts +23 -0
  135. package/dist/components/ui/PhaseProgressView.d.ts.map +1 -0
  136. package/dist/components/ui/PhaseProgressView.js +117 -0
  137. package/dist/components/ui/PhaseProgressView.js.map +1 -0
  138. package/dist/components/ui/ProgressBar.d.ts +20 -0
  139. package/dist/components/ui/ProgressBar.d.ts.map +1 -0
  140. package/dist/components/ui/ProgressBar.js +12 -0
  141. package/dist/components/ui/ProgressBar.js.map +1 -0
  142. package/dist/components/ui/SelectMenu.d.ts +27 -0
  143. package/dist/components/ui/SelectMenu.d.ts.map +1 -0
  144. package/dist/components/ui/SelectMenu.js +21 -0
  145. package/dist/components/ui/SelectMenu.js.map +1 -0
  146. package/dist/components/ui/Spinner.d.ts +18 -0
  147. package/dist/components/ui/Spinner.d.ts.map +1 -0
  148. package/dist/components/ui/Spinner.js +10 -0
  149. package/dist/components/ui/Spinner.js.map +1 -0
  150. package/dist/components/ui/StatusLine.d.ts +21 -0
  151. package/dist/components/ui/StatusLine.d.ts.map +1 -0
  152. package/dist/components/ui/StatusLine.js +30 -0
  153. package/dist/components/ui/StatusLine.js.map +1 -0
  154. package/dist/components/ui/index.d.ts +16 -0
  155. package/dist/components/ui/index.d.ts.map +1 -0
  156. package/dist/components/ui/index.js +16 -0
  157. package/dist/components/ui/index.js.map +1 -0
  158. package/dist/services/AgentInvoker.d.ts +20 -0
  159. package/dist/services/AgentInvoker.d.ts.map +1 -0
  160. package/dist/services/AgentInvoker.js +282 -0
  161. package/dist/services/AgentInvoker.js.map +1 -0
  162. package/dist/services/BranchService.d.ts +28 -0
  163. package/dist/services/BranchService.d.ts.map +1 -0
  164. package/dist/services/BranchService.js +114 -0
  165. package/dist/services/BranchService.js.map +1 -0
  166. package/dist/services/CacheService.d.ts +57 -0
  167. package/dist/services/CacheService.d.ts.map +1 -0
  168. package/dist/services/CacheService.js +208 -0
  169. package/dist/services/CacheService.js.map +1 -0
  170. package/dist/services/ClaudeErrorDetector.d.ts +45 -0
  171. package/dist/services/ClaudeErrorDetector.d.ts.map +1 -0
  172. package/dist/services/ClaudeErrorDetector.js +207 -0
  173. package/dist/services/ClaudeErrorDetector.js.map +1 -0
  174. package/dist/services/ClaudeHealthCheck.d.ts +37 -0
  175. package/dist/services/ClaudeHealthCheck.d.ts.map +1 -0
  176. package/dist/services/ClaudeHealthCheck.js +197 -0
  177. package/dist/services/ClaudeHealthCheck.js.map +1 -0
  178. package/dist/services/CommitService.d.ts +36 -0
  179. package/dist/services/CommitService.d.ts.map +1 -0
  180. package/dist/services/CommitService.js +159 -0
  181. package/dist/services/CommitService.js.map +1 -0
  182. package/dist/services/ConfigService.d.ts +49 -0
  183. package/dist/services/ConfigService.d.ts.map +1 -0
  184. package/dist/services/ConfigService.js +57 -0
  185. package/dist/services/ConfigService.js.map +1 -0
  186. package/dist/services/DockerRunner.d.ts +45 -0
  187. package/dist/services/DockerRunner.d.ts.map +1 -0
  188. package/dist/services/DockerRunner.js +170 -0
  189. package/dist/services/DockerRunner.js.map +1 -0
  190. package/dist/services/ExtendedFlowStateMachine.d.ts +31 -0
  191. package/dist/services/ExtendedFlowStateMachine.d.ts.map +1 -0
  192. package/dist/services/ExtendedFlowStateMachine.js +302 -0
  193. package/dist/services/ExtendedFlowStateMachine.js.map +1 -0
  194. package/dist/services/FeatureValidator.d.ts +26 -0
  195. package/dist/services/FeatureValidator.d.ts.map +1 -0
  196. package/dist/services/FeatureValidator.js +48 -0
  197. package/dist/services/FeatureValidator.js.map +1 -0
  198. package/dist/services/FlowStateMachine.d.ts +26 -0
  199. package/dist/services/FlowStateMachine.d.ts.map +1 -0
  200. package/dist/services/FlowStateMachine.js +177 -0
  201. package/dist/services/FlowStateMachine.js.map +1 -0
  202. package/dist/services/GitHubService.d.ts +72 -0
  203. package/dist/services/GitHubService.d.ts.map +1 -0
  204. package/dist/services/GitHubService.js +150 -0
  205. package/dist/services/GitHubService.js.map +1 -0
  206. package/dist/services/GitStatusChecker.d.ts +29 -0
  207. package/dist/services/GitStatusChecker.d.ts.map +1 -0
  208. package/dist/services/GitStatusChecker.js +127 -0
  209. package/dist/services/GitStatusChecker.js.map +1 -0
  210. package/dist/services/PRCreatorService.d.ts +59 -0
  211. package/dist/services/PRCreatorService.d.ts.map +1 -0
  212. package/dist/services/PRCreatorService.js +212 -0
  213. package/dist/services/PRCreatorService.js.map +1 -0
  214. package/dist/services/PRStatusFetcher.d.ts +39 -0
  215. package/dist/services/PRStatusFetcher.d.ts.map +1 -0
  216. package/dist/services/PRStatusFetcher.js +144 -0
  217. package/dist/services/PRStatusFetcher.js.map +1 -0
  218. package/dist/services/PhaseExecutor.d.ts +29 -0
  219. package/dist/services/PhaseExecutor.d.ts.map +1 -0
  220. package/dist/services/PhaseExecutor.js +125 -0
  221. package/dist/services/PhaseExecutor.js.map +1 -0
  222. package/dist/services/SpecInitService.d.ts +33 -0
  223. package/dist/services/SpecInitService.d.ts.map +1 -0
  224. package/dist/services/SpecInitService.js +168 -0
  225. package/dist/services/SpecInitService.js.map +1 -0
  226. package/dist/services/StateStore.d.ts +24 -0
  227. package/dist/services/StateStore.d.ts.map +1 -0
  228. package/dist/services/StateStore.js +171 -0
  229. package/dist/services/StateStore.js.map +1 -0
  230. package/dist/services/TaskParser.d.ts +44 -0
  231. package/dist/services/TaskParser.d.ts.map +1 -0
  232. package/dist/services/TaskParser.js +167 -0
  233. package/dist/services/TaskParser.js.map +1 -0
  234. package/dist/services/TaskRunner.d.ts +52 -0
  235. package/dist/services/TaskRunner.d.ts.map +1 -0
  236. package/dist/services/TaskRunner.js +135 -0
  237. package/dist/services/TaskRunner.js.map +1 -0
  238. package/dist/services/TemplateService.d.ts +73 -0
  239. package/dist/services/TemplateService.d.ts.map +1 -0
  240. package/dist/services/TemplateService.js +263 -0
  241. package/dist/services/TemplateService.js.map +1 -0
  242. package/dist/services/WorktreeService.d.ts +51 -0
  243. package/dist/services/WorktreeService.d.ts.map +1 -0
  244. package/dist/services/WorktreeService.js +204 -0
  245. package/dist/services/WorktreeService.js.map +1 -0
  246. package/dist/services/index.d.ts +25 -0
  247. package/dist/services/index.d.ts.map +1 -0
  248. package/dist/services/index.js +25 -0
  249. package/dist/services/index.js.map +1 -0
  250. package/dist/types/extended-flow.d.ts +167 -0
  251. package/dist/types/extended-flow.d.ts.map +1 -0
  252. package/dist/types/extended-flow.js +103 -0
  253. package/dist/types/extended-flow.js.map +1 -0
  254. package/dist/types/index.d.ts +210 -0
  255. package/dist/types/index.d.ts.map +1 -0
  256. package/dist/types/index.js +28 -0
  257. package/dist/types/index.js.map +1 -0
  258. package/dist/utils/git.d.ts +41 -0
  259. package/dist/utils/git.d.ts.map +1 -0
  260. package/dist/utils/git.js +68 -0
  261. package/dist/utils/git.js.map +1 -0
  262. package/dist/utils/index.d.ts +6 -0
  263. package/dist/utils/index.d.ts.map +1 -0
  264. package/dist/utils/index.js +6 -0
  265. package/dist/utils/index.js.map +1 -0
  266. package/dist/utils/paths.d.ts +30 -0
  267. package/dist/utils/paths.d.ts.map +1 -0
  268. package/dist/utils/paths.js +43 -0
  269. package/dist/utils/paths.js.map +1 -0
  270. package/framework/.red64/settings/rules/design-discovery-full.md +93 -0
  271. package/framework/.red64/settings/rules/design-discovery-light.md +49 -0
  272. package/framework/.red64/settings/rules/design-principles.md +182 -0
  273. package/framework/.red64/settings/rules/design-review.md +110 -0
  274. package/framework/.red64/settings/rules/ears-format.md +49 -0
  275. package/framework/.red64/settings/rules/gap-analysis.md +144 -0
  276. package/framework/.red64/settings/rules/steering-principles.md +90 -0
  277. package/framework/.red64/settings/rules/tasks-generation.md +131 -0
  278. package/framework/.red64/settings/rules/tasks-parallel-analysis.md +34 -0
  279. package/framework/.red64/settings/templates/flow-state.json +48 -0
  280. package/framework/.red64/settings/templates/specs/design.md +276 -0
  281. package/framework/.red64/settings/templates/specs/init.json +24 -0
  282. package/framework/.red64/settings/templates/specs/requirements-init.md +9 -0
  283. package/framework/.red64/settings/templates/specs/requirements.md +26 -0
  284. package/framework/.red64/settings/templates/specs/research.md +61 -0
  285. package/framework/.red64/settings/templates/specs/tasks.md +21 -0
  286. package/framework/.red64/settings/templates/steering/product.md +18 -0
  287. package/framework/.red64/settings/templates/steering/structure.md +41 -0
  288. package/framework/.red64/settings/templates/steering/tech.md +45 -0
  289. package/framework/.red64/settings/templates/steering-custom/api-standards.md +69 -0
  290. package/framework/.red64/settings/templates/steering-custom/authentication.md +67 -0
  291. package/framework/.red64/settings/templates/steering-custom/database.md +46 -0
  292. package/framework/.red64/settings/templates/steering-custom/deployment.md +54 -0
  293. package/framework/.red64/settings/templates/steering-custom/error-handling.md +59 -0
  294. package/framework/.red64/settings/templates/steering-custom/security.md +55 -0
  295. package/framework/.red64/settings/templates/steering-custom/testing.md +47 -0
  296. package/framework/agents/claude/.claude/agents/red64/spec-design.md +174 -0
  297. package/framework/agents/claude/.claude/agents/red64/spec-impl.md +120 -0
  298. package/framework/agents/claude/.claude/agents/red64/spec-requirements.md +102 -0
  299. package/framework/agents/claude/.claude/agents/red64/spec-tasks.md +141 -0
  300. package/framework/agents/claude/.claude/agents/red64/steering-custom.md +147 -0
  301. package/framework/agents/claude/.claude/agents/red64/steering.md +163 -0
  302. package/framework/agents/claude/.claude/agents/red64/validate-design.md +98 -0
  303. package/framework/agents/claude/.claude/agents/red64/validate-gap.md +99 -0
  304. package/framework/agents/claude/.claude/agents/red64/validate-impl.md +146 -0
  305. package/framework/agents/claude/.claude/commands/red64/spec-design.md +64 -0
  306. package/framework/agents/claude/.claude/commands/red64/spec-impl.md +68 -0
  307. package/framework/agents/claude/.claude/commands/red64/spec-init.md +65 -0
  308. package/framework/agents/claude/.claude/commands/red64/spec-quick.md +360 -0
  309. package/framework/agents/claude/.claude/commands/red64/spec-requirements.md +62 -0
  310. package/framework/agents/claude/.claude/commands/red64/spec-status.md +87 -0
  311. package/framework/agents/claude/.claude/commands/red64/spec-tasks.md +75 -0
  312. package/framework/agents/claude/.claude/commands/red64/steering-custom.md +59 -0
  313. package/framework/agents/claude/.claude/commands/red64/steering.md +62 -0
  314. package/framework/agents/claude/.claude/commands/red64/validate-design.md +59 -0
  315. package/framework/agents/claude/.claude/commands/red64/validate-gap.md +53 -0
  316. package/framework/agents/claude/.claude/commands/red64/validate-impl.md +68 -0
  317. package/framework/agents/claude/docs/CLAUDE.md +45 -0
  318. package/framework/agents/codex/.codex/agents/red64/spec-design.md +174 -0
  319. package/framework/agents/codex/.codex/agents/red64/spec-impl.md +120 -0
  320. package/framework/agents/codex/.codex/agents/red64/spec-requirements.md +102 -0
  321. package/framework/agents/codex/.codex/agents/red64/spec-tasks.md +141 -0
  322. package/framework/agents/codex/.codex/agents/red64/steering-custom.md +147 -0
  323. package/framework/agents/codex/.codex/agents/red64/steering.md +163 -0
  324. package/framework/agents/codex/.codex/agents/red64/validate-design.md +98 -0
  325. package/framework/agents/codex/.codex/agents/red64/validate-gap.md +99 -0
  326. package/framework/agents/codex/.codex/agents/red64/validate-impl.md +146 -0
  327. package/framework/agents/codex/.codex/commands/red64/spec-design.md +64 -0
  328. package/framework/agents/codex/.codex/commands/red64/spec-impl.md +68 -0
  329. package/framework/agents/codex/.codex/commands/red64/spec-init.md +65 -0
  330. package/framework/agents/codex/.codex/commands/red64/spec-quick.md +360 -0
  331. package/framework/agents/codex/.codex/commands/red64/spec-requirements.md +62 -0
  332. package/framework/agents/codex/.codex/commands/red64/spec-status.md +87 -0
  333. package/framework/agents/codex/.codex/commands/red64/spec-tasks.md +75 -0
  334. package/framework/agents/codex/.codex/commands/red64/steering-custom.md +59 -0
  335. package/framework/agents/codex/.codex/commands/red64/steering.md +62 -0
  336. package/framework/agents/codex/.codex/commands/red64/validate-design.md +59 -0
  337. package/framework/agents/codex/.codex/commands/red64/validate-gap.md +53 -0
  338. package/framework/agents/codex/.codex/commands/red64/validate-impl.md +68 -0
  339. package/framework/agents/codex/docs/AGENTS.md +68 -0
  340. package/framework/agents/gemini/commands.toml +607 -0
  341. package/framework/agents/gemini/docs/GEMINI.md +45 -0
  342. package/framework/stacks/generic/product.md +27 -0
  343. package/framework/stacks/generic/structure.md +46 -0
  344. package/framework/stacks/generic/tech.md +47 -0
  345. package/framework/stacks/node/product.md +27 -0
  346. package/framework/stacks/node/structure.md +82 -0
  347. package/framework/stacks/node/tech.md +63 -0
  348. package/framework/stacks/python/product.md +27 -0
  349. package/framework/stacks/python/structure.md +78 -0
  350. package/framework/stacks/python/tech.md +64 -0
  351. package/framework/stacks/react/product.md +27 -0
  352. package/framework/stacks/react/structure.md +76 -0
  353. package/framework/stacks/react/tech.md +65 -0
  354. package/package.json +47 -0
@@ -0,0 +1,62 @@
1
+ ---
2
+ description: Generate comprehensive requirements for a specification
3
+ allowed-tools: Read, Task
4
+ argument-hint: <feature-name>
5
+ ---
6
+
7
+ # Requirements Generation
8
+
9
+ ## Parse Arguments
10
+ - Feature name: `$1`
11
+
12
+ ## Validate
13
+ Check that spec has been initialized:
14
+ - Verify `.red64/specs/$1/` exists
15
+ - Verify `.red64/specs/$1/spec.json` exists
16
+
17
+ If validation fails, inform user to run `/red64:spec-init` first.
18
+
19
+ ## Invoke Subagent
20
+
21
+ Delegate requirements generation to spec-requirements-agent:
22
+
23
+ Use the Task tool to invoke the Subagent with file path patterns:
24
+
25
+ ```
26
+ Task(
27
+ subagent_type="spec-requirements-agent",
28
+ description="Generate EARS requirements",
29
+ prompt="""
30
+ Feature: $1
31
+ Spec directory: .red64/specs/$1/
32
+
33
+ File patterns to read:
34
+ - .red64/specs/$1/spec.json
35
+ - .red64/specs/$1/requirements.md
36
+ - .red64/steering/*.md
37
+ - .red64/settings/rules/ears-format.md
38
+ - .red64/settings/templates/specs/requirements.md
39
+
40
+ Mode: generate
41
+ """
42
+ )
43
+ ```
44
+
45
+ ## Display Result
46
+
47
+ Show Subagent summary to user, then provide next step guidance:
48
+
49
+ ### Next Phase: Design Generation
50
+
51
+ **If Requirements Approved**:
52
+ - Review generated requirements at `.red64/specs/$1/requirements.md`
53
+ - **Optional Gap Analysis** (for existing codebases):
54
+ - Run `/red64:validate-gap $1` to analyze implementation gap with current code
55
+ - Identifies existing components, integration points, and implementation strategy
56
+ - Recommended for brownfield projects; skip for greenfield
57
+ - Then `/red64:spec-design $1 [-y]` to proceed to design phase
58
+
59
+ **If Modifications Needed**:
60
+ - Provide feedback and re-run `/red64:spec-requirements $1`
61
+
62
+ **Note**: Approval is mandatory before proceeding to design phase.
@@ -0,0 +1,87 @@
1
+ ---
2
+ description: Show specification status and progress
3
+ allowed-tools: Bash, Read, Glob, Write, Edit, MultiEdit, Update
4
+ argument-hint: <feature-name>
5
+ ---
6
+
7
+ # Specification Status
8
+
9
+ <background_information>
10
+ - **Mission**: Display comprehensive status and progress for a specification
11
+ - **Success Criteria**:
12
+ - Show current phase and completion status
13
+ - Identify next actions and blockers
14
+ - Provide clear visibility into progress
15
+ </background_information>
16
+
17
+ <instructions>
18
+ ## Core Task
19
+ Generate status report for feature **$1** showing progress across all phases.
20
+
21
+ ## Execution Steps
22
+
23
+ ### Step 1: Load Spec Context
24
+ - Read `.red64/specs/$1/spec.json` for metadata and phase status
25
+ - Read existing files: `requirements.md`, `design.md`, `tasks.md` (if they exist)
26
+ - Check `.red64/specs/$1/` directory for available files
27
+
28
+ ### Step 2: Analyze Status
29
+
30
+ **Parse each phase**:
31
+ - **Requirements**: Count requirements and acceptance criteria
32
+ - **Design**: Check for architecture, components, diagrams
33
+ - **Tasks**: Count completed vs total tasks (parse `- [x]` vs `- [ ]`)
34
+ - **Approvals**: Check approval status in spec.json
35
+
36
+ ### Step 3: Generate Report
37
+
38
+ Create report in the language specified in spec.json covering:
39
+ 1. **Current Phase & Progress**: Where the spec is in the workflow
40
+ 2. **Completion Status**: Percentage complete for each phase
41
+ 3. **Task Breakdown**: If tasks exist, show completed/remaining counts
42
+ 4. **Next Actions**: What needs to be done next
43
+ 5. **Blockers**: Any issues preventing progress
44
+
45
+ ## Critical Constraints
46
+ - Use language from spec.json
47
+ - Calculate accurate completion percentages
48
+ - Identify specific next action commands
49
+ </instructions>
50
+
51
+ ## Tool Guidance
52
+ - **Read**: Load spec.json first, then other spec files as needed
53
+ - **Parse carefully**: Extract completion data from tasks.md checkboxes
54
+ - Use **Glob** to check which spec files exist
55
+
56
+ ## Output Description
57
+
58
+ Provide status report in the language specified in spec.json:
59
+
60
+ **Report Structure**:
61
+ 1. **Feature Overview**: Name, phase, last updated
62
+ 2. **Phase Status**: Requirements, Design, Tasks with completion %
63
+ 3. **Task Progress**: If tasks exist, show X/Y completed
64
+ 4. **Next Action**: Specific command to run next
65
+ 5. **Issues**: Any blockers or missing elements
66
+
67
+ **Format**: Clear, scannable format with emojis (✅/⏳/❌) for status
68
+
69
+ ## Safety & Fallback
70
+
71
+ ### Error Scenarios
72
+
73
+ **Spec Not Found**:
74
+ - **Message**: "No spec found for `$1`. Check available specs in `.red64/specs/`"
75
+ - **Action**: List available spec directories
76
+
77
+ **Incomplete Spec**:
78
+ - **Warning**: Identify which files are missing
79
+ - **Suggested Action**: Point to next phase command
80
+
81
+ ### List All Specs
82
+
83
+ To see all available specs:
84
+ - Run with no argument or use wildcard
85
+ - Shows all specs in `.red64/specs/` with their status
86
+
87
+ think
@@ -0,0 +1,75 @@
1
+ ---
2
+ description: Generate implementation tasks for a specification
3
+ allowed-tools: Read, Task
4
+ argument-hint: <feature-name> [-y] [--sequential]
5
+ ---
6
+
7
+ # Implementation Tasks Generator
8
+
9
+ ## Parse Arguments
10
+ - Feature name: `$1`
11
+ - Auto-approve flag: `$2` (optional, "-y")
12
+ - Sequential mode flag: `$3` (optional, "--sequential")
13
+
14
+ ## Validate
15
+ Check that design has been completed:
16
+ - Verify `.red64/specs/$1/` exists
17
+ - Verify `.red64/specs/$1/design.md` exists
18
+ - Determine `sequential = ($3 == "--sequential")`
19
+
20
+ If validation fails, inform user to complete design phase first.
21
+
22
+ ## Invoke Subagent
23
+
24
+ Delegate task generation to spec-tasks-agent:
25
+
26
+ Use the Task tool to invoke the Subagent with file path patterns:
27
+
28
+ ```
29
+ Task(
30
+ subagent_type="spec-tasks-agent",
31
+ description="Generate implementation tasks",
32
+ prompt="""
33
+ Feature: $1
34
+ Spec directory: .red64/specs/$1/
35
+ Auto-approve: {true if $2 == "-y", else false}
36
+ Sequential mode: {true if sequential else false}
37
+
38
+ File patterns to read:
39
+ - .red64/specs/$1/*.{json,md}
40
+ - .red64/steering/*.md
41
+ - .red64/settings/rules/tasks-generation.md
42
+ - .red64/settings/rules/tasks-parallel-analysis.md (include only when sequential mode is false)
43
+ - .red64/settings/templates/specs/tasks.md
44
+
45
+ Mode: {generate or merge based on tasks.md existence}
46
+ Instruction highlights:
47
+ - Map all requirements to tasks and list requirement IDs only (comma-separated) without extra narration
48
+ - Promote single actionable sub-tasks to major tasks and keep container summaries concise
49
+ - Apply `(P)` markers only when parallel criteria met (omit in sequential mode)
50
+ - Mark optional acceptance-criteria-focused test coverage subtasks with `- [ ]*` only when deferrable post-MVP
51
+ """
52
+ )
53
+ ```
54
+
55
+ ## Display Result
56
+
57
+ Show Subagent summary to user, then provide next step guidance:
58
+
59
+ ### Next Phase: Implementation
60
+
61
+ **Before Starting Implementation**:
62
+ - **IMPORTANT**: Clear conversation history and free up context before running `/red64:spec-impl`
63
+ - This applies when starting first task OR switching between tasks
64
+ - Fresh context ensures clean state and proper task focus
65
+
66
+ **If Tasks Approved**:
67
+ - Execute specific task: `/red64:spec-impl $1 1.1` (recommended: clear context between each task)
68
+ - Execute multiple tasks: `/red64:spec-impl $1 1.1,1.2` (use cautiously, clear context between tasks)
69
+ - Without arguments: `/red64:spec-impl $1` (executes all pending tasks - NOT recommended due to context bloat)
70
+
71
+ **If Modifications Needed**:
72
+ - Provide feedback and re-run `/red64:spec-tasks $1`
73
+ - Existing tasks used as reference (merge mode)
74
+
75
+ **Note**: The implementation phase will guide you through executing tasks with appropriate context and validation.
@@ -0,0 +1,59 @@
1
+ ---
2
+ description: Create custom steering documents for specialized project contexts
3
+ allowed-tools: Task
4
+ ---
5
+
6
+ # Red64 Custom Steering Creation
7
+
8
+ ## Interactive Workflow
9
+
10
+ This command starts an interactive process with the Subagent:
11
+ 1. Subagent asks user for domain/topic
12
+ 2. Subagent checks for available templates
13
+ 3. Subagent analyzes codebase for relevant patterns
14
+ 4. Subagent generates custom steering file
15
+
16
+ ## Invoke Subagent
17
+
18
+ Delegate custom steering creation to steering-custom-agent:
19
+
20
+ Use the Task tool to invoke the Subagent with file path patterns:
21
+
22
+ ```
23
+ Task(
24
+ subagent_type="steering-custom-agent",
25
+ description="Create custom steering",
26
+ prompt="""
27
+ Interactive Mode: Ask user for domain/topic
28
+
29
+ File patterns to read:
30
+ - .red64/settings/templates/steering-custom/*.md
31
+ - .red64/settings/rules/steering-principles.md
32
+
33
+ JIT Strategy: Analyze codebase for relevant patterns as needed
34
+ """
35
+ )
36
+ ```
37
+
38
+ ## Display Result
39
+
40
+ Show Subagent summary to user:
41
+ - Custom steering file created
42
+ - Template used (if any)
43
+ - Codebase patterns analyzed
44
+ - Content overview
45
+
46
+ ## Available Templates
47
+
48
+ Available templates in `.red64/settings/templates/steering-custom/`:
49
+ - api-standards.md, testing.md, security.md, database.md
50
+ - error-handling.md, authentication.md, deployment.md
51
+
52
+ ## Notes
53
+
54
+ - Subagent will interact with user to understand needs
55
+ - Templates are starting points, customized for project
56
+ - All steering files loaded as project memory
57
+ - Avoid documenting agent-specific tooling directories (e.g. `.cursor/`, `.gemini/`, `.claude/`)
58
+ - `.red64/settings/` content should NOT be documented (it's metadata, not project knowledge)
59
+ - Light references to `.red64/specs/` and `.red64/steering/` are acceptable; avoid other `.red64/` directories
@@ -0,0 +1,62 @@
1
+ ---
2
+ description: Manage .red64/steering/ as persistent project knowledge
3
+ allowed-tools: Read, Task, Glob
4
+ ---
5
+
6
+ # Red64 Steering Management
7
+
8
+ ## Mode Detection
9
+
10
+ **Perform detection before invoking Subagent**:
11
+
12
+ Check `.red64/steering/` status:
13
+ - **Bootstrap Mode**: Empty OR missing core files (product.md, tech.md, structure.md)
14
+ - **Sync Mode**: All core files exist
15
+
16
+ Use Glob to check for existing steering files.
17
+
18
+ ## Invoke Subagent
19
+
20
+ Delegate steering management to steering-agent:
21
+
22
+ Use the Task tool to invoke the Subagent with file path patterns:
23
+
24
+ ```
25
+ Task(
26
+ subagent_type="steering-agent",
27
+ description="Manage steering files",
28
+ prompt="""
29
+ Mode: {bootstrap or sync based on detection}
30
+
31
+ File patterns to read:
32
+ - .red64/steering/*.md (if sync mode)
33
+ - .red64/settings/templates/steering/*.md
34
+ - .red64/settings/rules/steering-principles.md
35
+
36
+ JIT Strategy: Fetch codebase files when needed, not upfront
37
+ """
38
+ )
39
+ ```
40
+
41
+ ## Display Result
42
+
43
+ Show Subagent summary to user:
44
+
45
+ ### Bootstrap:
46
+ - Generated steering files: product.md, tech.md, structure.md
47
+ - Review and approve as Source of Truth
48
+
49
+ ### Sync:
50
+ - Updated steering files
51
+ - Code drift warnings
52
+ - Recommendations for custom steering
53
+
54
+ ## Notes
55
+
56
+ - All `.red64/steering/*.md` loaded as project memory
57
+ - Templates and principles are external for customization
58
+ - Focus on patterns, not catalogs
59
+ - "Golden Rule": New code following patterns shouldn't require steering updates
60
+ - Avoid documenting agent-specific tooling directories (e.g. `.cursor/`, `.gemini/`, `.claude/`)
61
+ - `.red64/settings/` content should NOT be documented in steering files (settings are metadata, not project knowledge)
62
+ - Light references to `.red64/specs/` and `.red64/steering/` are acceptable; avoid other `.red64/` directories
@@ -0,0 +1,59 @@
1
+ ---
2
+ description: Interactive technical design quality review and validation
3
+ allowed-tools: Read, Task
4
+ argument-hint: <feature-name>
5
+ ---
6
+
7
+ # Technical Design Validation
8
+
9
+ ## Parse Arguments
10
+ - Feature name: `$1`
11
+
12
+ ## Validate
13
+ Check that design has been completed:
14
+ - Verify `.red64/specs/$1/` exists
15
+ - Verify `.red64/specs/$1/design.md` exists
16
+
17
+ If validation fails, inform user to complete design phase first.
18
+
19
+ ## Invoke Subagent
20
+
21
+ Delegate design validation to validate-design-agent:
22
+
23
+ Use the Task tool to invoke the Subagent with file path patterns:
24
+
25
+ ```
26
+ Task(
27
+ subagent_type="validate-design-agent",
28
+ description="Interactive design review",
29
+ prompt="""
30
+ Feature: $1
31
+ Spec directory: .red64/specs/$1/
32
+
33
+ File patterns to read:
34
+ - .red64/specs/$1/spec.json
35
+ - .red64/specs/$1/requirements.md
36
+ - .red64/specs/$1/design.md
37
+ - .red64/steering/*.md
38
+ - .red64/settings/rules/design-review.md
39
+ """
40
+ )
41
+ ```
42
+
43
+ ## Display Result
44
+
45
+ Show Subagent summary to user, then provide next step guidance:
46
+
47
+ ### Next Phase: Task Generation
48
+
49
+ **If Design Passes Validation (GO Decision)**:
50
+ - Review feedback and apply changes if needed
51
+ - Run `/red64:spec-tasks $1` to generate implementation tasks
52
+ - Or `/red64:spec-tasks $1 -y` to auto-approve and proceed directly
53
+
54
+ **If Design Needs Revision (NO-GO Decision)**:
55
+ - Address critical issues identified
56
+ - Re-run `/red64:spec-design $1` with improvements
57
+ - Re-validate with `/red64:validate-design $1`
58
+
59
+ **Note**: Design validation is recommended but optional. Quality review helps catch issues early.
@@ -0,0 +1,53 @@
1
+ ---
2
+ description: Analyze implementation gap between requirements and existing codebase
3
+ allowed-tools: Read, Task
4
+ argument-hint: <feature-name>
5
+ ---
6
+
7
+ # Implementation Gap Validation
8
+
9
+ ## Parse Arguments
10
+ - Feature name: `$1`
11
+
12
+ ## Validate
13
+ Check that requirements have been completed:
14
+ - Verify `.red64/specs/$1/` exists
15
+ - Verify `.red64/specs/$1/requirements.md` exists
16
+
17
+ If validation fails, inform user to complete requirements phase first.
18
+
19
+ ## Invoke Subagent
20
+
21
+ Delegate gap analysis to validate-gap-agent:
22
+
23
+ Use the Task tool to invoke the Subagent with file path patterns:
24
+
25
+ ```
26
+ Task(
27
+ subagent_type="validate-gap-agent",
28
+ description="Analyze implementation gap",
29
+ prompt="""
30
+ Feature: $1
31
+ Spec directory: .red64/specs/$1/
32
+
33
+ File patterns to read:
34
+ - .red64/specs/$1/spec.json
35
+ - .red64/specs/$1/requirements.md
36
+ - .red64/steering/*.md
37
+ - .red64/settings/rules/gap-analysis.md
38
+ """
39
+ )
40
+ ```
41
+
42
+ ## Display Result
43
+
44
+ Show Subagent summary to user, then provide next step guidance:
45
+
46
+ ### Next Phase: Design Generation
47
+
48
+ **If Gap Analysis Complete**:
49
+ - Review gap analysis insights
50
+ - Run `/red64:spec-design $1` to create technical design document
51
+ - Or `/red64:spec-design $1 -y` to auto-approve requirements and proceed directly
52
+
53
+ **Note**: Gap analysis is optional but recommended for brownfield projects to inform design decisions.
@@ -0,0 +1,68 @@
1
+ ---
2
+ description: Validate implementation against requirements, design, and tasks
3
+ allowed-tools: Read, Task
4
+ argument-hint: [feature-name] [task-numbers]
5
+ ---
6
+
7
+ # Implementation Validation
8
+
9
+ ## Parse Arguments
10
+ - Feature name: `$1` (optional)
11
+ - Task numbers: `$2` (optional)
12
+
13
+ ## Auto-Detection Logic
14
+
15
+ **Perform detection before invoking Subagent**:
16
+
17
+ **If no arguments** (`$1` empty):
18
+ - Parse conversation history for `/red64:spec-impl <feature> [tasks]` patterns
19
+ - OR scan `.red64/specs/*/tasks.md` for `[x]` checkboxes
20
+ - Pass detected features and tasks to Subagent
21
+
22
+ **If feature only** (`$1` present, `$2` empty):
23
+ - Read `.red64/specs/$1/tasks.md` and find all `[x]` checkboxes
24
+ - Pass feature and detected tasks to Subagent
25
+
26
+ **If both provided** (`$1` and `$2` present):
27
+ - Pass directly to Subagent without detection
28
+
29
+ ## Invoke Subagent
30
+
31
+ Delegate validation to validate-impl-agent:
32
+
33
+ Use the Task tool to invoke the Subagent with file path patterns:
34
+
35
+ ```
36
+ Task(
37
+ subagent_type="validate-impl-agent",
38
+ description="Validate implementation",
39
+ prompt="""
40
+ Feature: {$1 or auto-detected}
41
+ Target tasks: {$2 or auto-detected}
42
+ Mode: {auto-detect, feature-all, or explicit}
43
+
44
+ File patterns to read:
45
+ - .red64/specs/{feature}/*.{json,md}
46
+ - .red64/steering/*.md
47
+
48
+ Validation scope: {based on detection results}
49
+ """
50
+ )
51
+ ```
52
+
53
+ ## Display Result
54
+
55
+ Show Subagent summary to user, then provide next step guidance:
56
+
57
+ ### Next Steps Guidance
58
+
59
+ **If GO Decision**:
60
+ - Implementation validated and ready
61
+ - Proceed to deployment or next feature
62
+
63
+ **If NO-GO Decision**:
64
+ - Address critical issues listed
65
+ - Re-run `/red64:spec-impl <feature> [tasks]` for fixes
66
+ - Re-validate with `/red64:validate-impl [feature] [tasks]`
67
+
68
+ **Note**: Validation is recommended after implementation to ensure spec alignment and quality.
@@ -0,0 +1,68 @@
1
+ # Red64 Spec-Driven Development
2
+
3
+ This project uses Red64 for AI-assisted spec-driven development with Codex.
4
+
5
+ ## Project Context
6
+
7
+ ### Paths
8
+ - Steering: `.red64/steering/`
9
+ - Specs: `.red64/specs/`
10
+
11
+ ### Steering vs Specification
12
+
13
+ **Steering** (`.red64/steering/`) - Guide AI with project-wide rules and context
14
+ **Specs** (`.red64/specs/`) - Formalize development process for individual features
15
+
16
+ ### Active Specifications
17
+ - Check `.red64/specs/` for active specifications
18
+ - Use `/red64:spec-status [feature-name]` to check progress
19
+
20
+ ## Development Guidelines
21
+ - Think in English, generate responses in English. All Markdown content written to project files (e.g., requirements.md, design.md, tasks.md, research.md, validation reports) MUST be written in the target language configured for this specification (see spec.json.language).
22
+
23
+ ## Minimal Workflow
24
+ - Phase 0 (optional): `/red64:steering`, `/red64:steering-custom`
25
+ - Phase 1 (Specification):
26
+ - `/red64:spec-init "description"`
27
+ - `/red64:spec-requirements {feature}`
28
+ - `/red64:validate-gap {feature}` (optional: for existing codebase)
29
+ - `/red64:spec-design {feature} [-y]`
30
+ - `/red64:validate-design {feature}` (optional: design review)
31
+ - `/red64:spec-tasks {feature} [-y]`
32
+ - Phase 2 (Implementation): `/red64:spec-impl {feature} [tasks]`
33
+ - `/red64:validate-impl {feature}` (optional: after implementation)
34
+ - Progress check: `/red64:spec-status {feature}` (use anytime)
35
+
36
+ ## Development Rules
37
+ - 3-phase approval workflow: Requirements → Design → Tasks → Implementation
38
+ - Human review required each phase; use `-y` only for intentional fast-track
39
+ - Keep steering current and verify alignment with `/red64:spec-status`
40
+ - Follow the user's instructions precisely, and within that scope act autonomously
41
+
42
+ ## Steering Configuration
43
+ - Load entire `.red64/steering/` as project memory
44
+ - Default files: `product.md`, `tech.md`, `structure.md`
45
+ - Custom files are supported (managed via `/red64:steering-custom`)
46
+
47
+ ## Agent Capabilities
48
+
49
+ This project is configured for use with OpenAI Codex. The agent has access to:
50
+ - File system operations (read, write, edit)
51
+ - Code search and navigation
52
+ - Terminal commands (bash)
53
+ - Web search for documentation
54
+
55
+ ## Commands
56
+
57
+ The following spec-driven development commands are available in `.codex/commands/red64/`:
58
+ - `spec-init` - Initialize a new specification
59
+ - `spec-requirements` - Generate EARS-format requirements
60
+ - `spec-design` - Create technical design
61
+ - `spec-tasks` - Generate implementation tasks
62
+ - `spec-impl` - Execute tasks with TDD
63
+ - `spec-status` - Check specification progress
64
+ - `steering` - Manage project steering
65
+ - `steering-custom` - Create custom steering documents
66
+ - `validate-gap` - Analyze implementation gaps
67
+ - `validate-design` - Review design quality
68
+ - `validate-impl` - Validate implementation