oh-my-taiyiforge 0.42.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 (469) hide show
  1. package/AGENTS.md +46 -0
  2. package/LICENSE +21 -0
  3. package/README.en.md +366 -0
  4. package/README.md +176 -0
  5. package/dist/cli/install-cli.d.ts +2 -0
  6. package/dist/cli/install-cli.js +4 -0
  7. package/dist/cli/taiyi.d.ts +2 -0
  8. package/dist/cli/taiyi.js +1046 -0
  9. package/dist/commands/import-tool.d.ts +21 -0
  10. package/dist/commands/import-tool.js +84 -0
  11. package/dist/commands/init-wizard.d.ts +20 -0
  12. package/dist/commands/init-wizard.js +69 -0
  13. package/dist/core/active-slug.d.ts +14 -0
  14. package/dist/core/active-slug.js +57 -0
  15. package/dist/core/activity-log.d.ts +1 -0
  16. package/dist/core/activity-log.js +7 -0
  17. package/dist/core/agent-roles-yaml.d.ts +4 -0
  18. package/dist/core/agent-roles-yaml.js +62 -0
  19. package/dist/core/agent-roles.d.ts +18 -0
  20. package/dist/core/agent-roles.js +283 -0
  21. package/dist/core/ahead-artifacts.d.ts +9 -0
  22. package/dist/core/ahead-artifacts.js +63 -0
  23. package/dist/core/artifact-validator.d.ts +19 -0
  24. package/dist/core/artifact-validator.js +186 -0
  25. package/dist/core/autopilot-runner.d.ts +9 -0
  26. package/dist/core/autopilot-runner.js +61 -0
  27. package/dist/core/auxiliary-artifacts.d.ts +7 -0
  28. package/dist/core/auxiliary-artifacts.js +52 -0
  29. package/dist/core/browser-smoke.d.ts +10 -0
  30. package/dist/core/browser-smoke.js +33 -0
  31. package/dist/core/change-artifact-reset.d.ts +2 -0
  32. package/dist/core/change-artifact-reset.js +42 -0
  33. package/dist/core/change-graph/agent-sdk.d.ts +40 -0
  34. package/dist/core/change-graph/agent-sdk.js +130 -0
  35. package/dist/core/change-graph/edges.d.ts +14 -0
  36. package/dist/core/change-graph/edges.js +140 -0
  37. package/dist/core/change-graph/index.d.ts +48 -0
  38. package/dist/core/change-graph/index.js +135 -0
  39. package/dist/core/change-graph/loader.d.ts +16 -0
  40. package/dist/core/change-graph/loader.js +203 -0
  41. package/dist/core/change-graph/query.d.ts +13 -0
  42. package/dist/core/change-graph/query.js +76 -0
  43. package/dist/core/change-graph/render.d.ts +16 -0
  44. package/dist/core/change-graph/render.js +109 -0
  45. package/dist/core/change-graph/types.d.ts +64 -0
  46. package/dist/core/change-graph/types.js +1 -0
  47. package/dist/core/change-lock.d.ts +14 -0
  48. package/dist/core/change-lock.js +85 -0
  49. package/dist/core/change-status.d.ts +13 -0
  50. package/dist/core/change-status.js +66 -0
  51. package/dist/core/ci-platform.d.ts +22 -0
  52. package/dist/core/ci-platform.js +117 -0
  53. package/dist/core/ci-verify.d.ts +25 -0
  54. package/dist/core/ci-verify.js +136 -0
  55. package/dist/core/cli-hints.d.ts +18 -0
  56. package/dist/core/cli-hints.js +48 -0
  57. package/dist/core/code-slicer.d.ts +19 -0
  58. package/dist/core/code-slicer.js +80 -0
  59. package/dist/core/command-registry.d.ts +27 -0
  60. package/dist/core/command-registry.js +14 -0
  61. package/dist/core/daemon-agent.d.ts +30 -0
  62. package/dist/core/daemon-agent.js +169 -0
  63. package/dist/core/daemon-runner.d.ts +46 -0
  64. package/dist/core/daemon-runner.js +483 -0
  65. package/dist/core/dev-complete.d.ts +3 -0
  66. package/dist/core/dev-complete.js +13 -0
  67. package/dist/core/dev-phase-guard.d.ts +9 -0
  68. package/dist/core/dev-phase-guard.js +73 -0
  69. package/dist/core/doctor-workspace.d.ts +3 -0
  70. package/dist/core/doctor-workspace.js +134 -0
  71. package/dist/core/doctor.d.ts +29 -0
  72. package/dist/core/doctor.js +130 -0
  73. package/dist/core/e2e-fixtures.d.ts +7 -0
  74. package/dist/core/e2e-fixtures.js +586 -0
  75. package/dist/core/engine-truth.d.ts +33 -0
  76. package/dist/core/engine-truth.js +29 -0
  77. package/dist/core/event-bus.d.ts +8 -0
  78. package/dist/core/event-bus.js +81 -0
  79. package/dist/core/executor-types.d.ts +13 -0
  80. package/dist/core/executor-types.js +1 -0
  81. package/dist/core/executor.d.ts +3 -0
  82. package/dist/core/executor.js +44 -0
  83. package/dist/core/fan-out-executor.d.ts +30 -0
  84. package/dist/core/fan-out-executor.js +146 -0
  85. package/dist/core/file-writer.d.ts +7 -0
  86. package/dist/core/file-writer.js +65 -0
  87. package/dist/core/forge-invoke.d.ts +3 -0
  88. package/dist/core/forge-invoke.js +11 -0
  89. package/dist/core/format-guide.d.ts +10 -0
  90. package/dist/core/format-guide.js +225 -0
  91. package/dist/core/format-integration.d.ts +28 -0
  92. package/dist/core/format-integration.js +56 -0
  93. package/dist/core/format-token.d.ts +9 -0
  94. package/dist/core/format-token.js +55 -0
  95. package/dist/core/frontmatter.d.ts +22 -0
  96. package/dist/core/frontmatter.js +102 -0
  97. package/dist/core/gates/commit-trailer.d.ts +16 -0
  98. package/dist/core/gates/commit-trailer.js +117 -0
  99. package/dist/core/gates/consumer-config.d.ts +2 -0
  100. package/dist/core/gates/consumer-config.js +23 -0
  101. package/dist/core/gates/delivery-gate.d.ts +14 -0
  102. package/dist/core/gates/delivery-gate.js +183 -0
  103. package/dist/core/gates/human-gate-config.d.ts +23 -0
  104. package/dist/core/gates/human-gate-config.js +85 -0
  105. package/dist/core/gates/human-gate.d.ts +5 -0
  106. package/dist/core/gates/human-gate.js +9 -0
  107. package/dist/core/gates/quality-gate.d.ts +8 -0
  108. package/dist/core/gates/quality-gate.js +6 -0
  109. package/dist/core/graceful-shutdown.d.ts +6 -0
  110. package/dist/core/graceful-shutdown.js +62 -0
  111. package/dist/core/handoff.d.ts +19 -0
  112. package/dist/core/handoff.js +44 -0
  113. package/dist/core/harness-checkpoints.d.ts +7 -0
  114. package/dist/core/harness-checkpoints.js +43 -0
  115. package/dist/core/harness-runner.d.ts +31 -0
  116. package/dist/core/harness-runner.js +241 -0
  117. package/dist/core/health-invoke.d.ts +6 -0
  118. package/dist/core/health-invoke.js +42 -0
  119. package/dist/core/hooks-loader.d.ts +5 -0
  120. package/dist/core/hooks-loader.js +23 -0
  121. package/dist/core/json-patch.d.ts +7 -0
  122. package/dist/core/json-patch.js +102 -0
  123. package/dist/core/json-repair.d.ts +12 -0
  124. package/dist/core/json-repair.js +70 -0
  125. package/dist/core/list-changes.d.ts +25 -0
  126. package/dist/core/list-changes.js +62 -0
  127. package/dist/core/load-phases-yaml.d.ts +4 -0
  128. package/dist/core/load-phases-yaml.js +32 -0
  129. package/dist/core/load-quality-gate-yaml.d.ts +6 -0
  130. package/dist/core/load-quality-gate-yaml.js +23 -0
  131. package/dist/core/logger.d.ts +18 -0
  132. package/dist/core/logger.js +51 -0
  133. package/dist/core/loop-invoke.d.ts +5 -0
  134. package/dist/core/loop-invoke.js +22 -0
  135. package/dist/core/loop-runner.d.ts +23 -0
  136. package/dist/core/loop-runner.js +178 -0
  137. package/dist/core/loop-state.d.ts +10 -0
  138. package/dist/core/loop-state.js +31 -0
  139. package/dist/core/md-ast-parser.d.ts +9 -0
  140. package/dist/core/md-ast-parser.js +83 -0
  141. package/dist/core/milestone-query.d.ts +56 -0
  142. package/dist/core/milestone-query.js +266 -0
  143. package/dist/core/milestone-render.d.ts +2 -0
  144. package/dist/core/milestone-render.js +239 -0
  145. package/dist/core/normalize-state.d.ts +6 -0
  146. package/dist/core/normalize-state.js +63 -0
  147. package/dist/core/package-root.d.ts +3 -0
  148. package/dist/core/package-root.js +30 -0
  149. package/dist/core/paths.d.ts +2 -0
  150. package/dist/core/paths.js +6 -0
  151. package/dist/core/phase-context.d.ts +12 -0
  152. package/dist/core/phase-context.js +222 -0
  153. package/dist/core/phase-guide.d.ts +46 -0
  154. package/dist/core/phase-guide.js +213 -0
  155. package/dist/core/phase-registry.d.ts +24 -0
  156. package/dist/core/phase-registry.js +65 -0
  157. package/dist/core/phase-write.d.ts +27 -0
  158. package/dist/core/phase-write.js +214 -0
  159. package/dist/core/profile.d.ts +7 -0
  160. package/dist/core/profile.js +35 -0
  161. package/dist/core/project-config.d.ts +43 -0
  162. package/dist/core/project-config.js +77 -0
  163. package/dist/core/prompt-cache.d.ts +18 -0
  164. package/dist/core/prompt-cache.js +53 -0
  165. package/dist/core/prune-changes.d.ts +12 -0
  166. package/dist/core/prune-changes.js +73 -0
  167. package/dist/core/ralph-invoke.d.ts +3 -0
  168. package/dist/core/ralph-invoke.js +20 -0
  169. package/dist/core/ralph-runner.d.ts +21 -0
  170. package/dist/core/ralph-runner.js +251 -0
  171. package/dist/core/ralph-state.d.ts +12 -0
  172. package/dist/core/ralph-state.js +34 -0
  173. package/dist/core/ralph-verify-cmd.d.ts +4 -0
  174. package/dist/core/ralph-verify-cmd.js +49 -0
  175. package/dist/core/repeat-parse.d.ts +8 -0
  176. package/dist/core/repeat-parse.js +44 -0
  177. package/dist/core/resolve-auto-harness.d.ts +2 -0
  178. package/dist/core/resolve-auto-harness.js +13 -0
  179. package/dist/core/reverse-sync.d.ts +9 -0
  180. package/dist/core/reverse-sync.js +186 -0
  181. package/dist/core/review-freshness.d.ts +10 -0
  182. package/dist/core/review-freshness.js +66 -0
  183. package/dist/core/review-gate.d.ts +22 -0
  184. package/dist/core/review-gate.js +118 -0
  185. package/dist/core/review-invoke.d.ts +8 -0
  186. package/dist/core/review-invoke.js +31 -0
  187. package/dist/core/review-loop-runner.d.ts +20 -0
  188. package/dist/core/review-loop-runner.js +159 -0
  189. package/dist/core/review-loop-state.d.ts +15 -0
  190. package/dist/core/review-loop-state.js +51 -0
  191. package/dist/core/routing/auxiliary-hints.d.ts +4 -0
  192. package/dist/core/routing/auxiliary-hints.js +16 -0
  193. package/dist/core/routing/auxiliary-skills.d.ts +5 -0
  194. package/dist/core/routing/auxiliary-skills.js +15 -0
  195. package/dist/core/routing/complexity.d.ts +7 -0
  196. package/dist/core/routing/complexity.js +25 -0
  197. package/dist/core/routing/infer-complexity.d.ts +3 -0
  198. package/dist/core/routing/infer-complexity.js +37 -0
  199. package/dist/core/run-e2e-workflow.d.ts +9 -0
  200. package/dist/core/run-e2e-workflow.js +101 -0
  201. package/dist/core/run-slash-flow-cli.d.ts +68 -0
  202. package/dist/core/run-slash-flow-cli.js +339 -0
  203. package/dist/core/runtime/cancel-mode.d.ts +17 -0
  204. package/dist/core/runtime/cancel-mode.js +113 -0
  205. package/dist/core/runtime/keyword-modes.d.ts +12 -0
  206. package/dist/core/runtime/keyword-modes.js +85 -0
  207. package/dist/core/runtime/mode-orchestrator.d.ts +19 -0
  208. package/dist/core/runtime/mode-orchestrator.js +358 -0
  209. package/dist/core/runtime/mode-reinforcement.d.ts +10 -0
  210. package/dist/core/runtime/mode-reinforcement.js +74 -0
  211. package/dist/core/runtime/mode-state.d.ts +33 -0
  212. package/dist/core/runtime/mode-state.js +114 -0
  213. package/dist/core/runtime/orphan-runtime.d.ts +37 -0
  214. package/dist/core/runtime/orphan-runtime.js +149 -0
  215. package/dist/core/runtime/project-memory.d.ts +19 -0
  216. package/dist/core/runtime/project-memory.js +57 -0
  217. package/dist/core/runtime/ralplan-gate.d.ts +8 -0
  218. package/dist/core/runtime/ralplan-gate.js +47 -0
  219. package/dist/core/runtime/spawn-delegation.d.ts +23 -0
  220. package/dist/core/runtime/spawn-delegation.js +102 -0
  221. package/dist/core/runtime/team-state.d.ts +21 -0
  222. package/dist/core/runtime/team-state.js +143 -0
  223. package/dist/core/runtime/workflow-skills.d.ts +12 -0
  224. package/dist/core/runtime/workflow-skills.js +180 -0
  225. package/dist/core/scenario-shortcuts.d.ts +30 -0
  226. package/dist/core/scenario-shortcuts.js +500 -0
  227. package/dist/core/seed-marker.d.ts +4 -0
  228. package/dist/core/seed-marker.js +11 -0
  229. package/dist/core/slug.d.ts +8 -0
  230. package/dist/core/slug.js +37 -0
  231. package/dist/core/snapshot.d.ts +25 -0
  232. package/dist/core/snapshot.js +126 -0
  233. package/dist/core/state-manager.d.ts +2 -0
  234. package/dist/core/state-manager.js +30 -0
  235. package/dist/core/state-sync.d.ts +24 -0
  236. package/dist/core/state-sync.js +92 -0
  237. package/dist/core/sync-root-changelog.d.ts +8 -0
  238. package/dist/core/sync-root-changelog.js +91 -0
  239. package/dist/core/taiyi-archive.d.ts +17 -0
  240. package/dist/core/taiyi-archive.js +174 -0
  241. package/dist/core/task-dag.d.ts +29 -0
  242. package/dist/core/task-dag.js +79 -0
  243. package/dist/core/team-runner.d.ts +15 -0
  244. package/dist/core/team-runner.js +40 -0
  245. package/dist/core/template-engine.d.ts +22 -0
  246. package/dist/core/template-engine.js +47 -0
  247. package/dist/core/template-seed.d.ts +17 -0
  248. package/dist/core/template-seed.js +92 -0
  249. package/dist/core/token/budget-config.d.ts +12 -0
  250. package/dist/core/token/budget-config.js +86 -0
  251. package/dist/core/token/budget-gate.d.ts +15 -0
  252. package/dist/core/token/budget-gate.js +63 -0
  253. package/dist/core/token/compress-context.d.ts +14 -0
  254. package/dist/core/token/compress-context.js +75 -0
  255. package/dist/core/token/estimate.d.ts +3 -0
  256. package/dist/core/token/estimate.js +9 -0
  257. package/dist/core/token/scan-artifacts.d.ts +8 -0
  258. package/dist/core/token/scan-artifacts.js +39 -0
  259. package/dist/core/token/usage-store.d.ts +31 -0
  260. package/dist/core/token/usage-store.js +86 -0
  261. package/dist/core/token-invoke.d.ts +4 -0
  262. package/dist/core/token-invoke.js +27 -0
  263. package/dist/core/token-runner.d.ts +20 -0
  264. package/dist/core/token-runner.js +130 -0
  265. package/dist/core/trim-ahead-artifacts.d.ts +8 -0
  266. package/dist/core/trim-ahead-artifacts.js +52 -0
  267. package/dist/core/type-guards.d.ts +14 -0
  268. package/dist/core/type-guards.js +26 -0
  269. package/dist/core/types.d.ts +54 -0
  270. package/dist/core/types.js +1 -0
  271. package/dist/core/ultrawork-runner.d.ts +10 -0
  272. package/dist/core/ultrawork-runner.js +93 -0
  273. package/dist/core/walkthrough.d.ts +23 -0
  274. package/dist/core/walkthrough.js +101 -0
  275. package/dist/core/workflow-audit.d.ts +45 -0
  276. package/dist/core/workflow-audit.js +308 -0
  277. package/dist/core/workflow-engine.d.ts +73 -0
  278. package/dist/core/workflow-engine.js +490 -0
  279. package/dist/core/yaml-list-parse.d.ts +2 -0
  280. package/dist/core/yaml-list-parse.js +51 -0
  281. package/dist/index.d.ts +19 -0
  282. package/dist/index.js +23 -0
  283. package/dist/install/claude-control.d.ts +4 -0
  284. package/dist/install/claude-control.js +35 -0
  285. package/dist/install/codex-agents.d.ts +3 -0
  286. package/dist/install/codex-agents.js +33 -0
  287. package/dist/install/control-plane-markdown.d.ts +6 -0
  288. package/dist/install/control-plane-markdown.js +106 -0
  289. package/dist/install/cursor-rules.d.ts +4 -0
  290. package/dist/install/cursor-rules.js +40 -0
  291. package/dist/install/mcp-config.d.ts +22 -0
  292. package/dist/install/mcp-config.js +52 -0
  293. package/dist/install/opencode-plugin.d.ts +6 -0
  294. package/dist/install/opencode-plugin.js +68 -0
  295. package/dist/install/paths.d.ts +9 -0
  296. package/dist/install/paths.js +40 -0
  297. package/dist/install/prompt-stage-protocol.d.ts +11 -0
  298. package/dist/install/prompt-stage-protocol.js +65 -0
  299. package/dist/install/run.d.ts +28 -0
  300. package/dist/install/run.js +266 -0
  301. package/dist/install/sync-chat-commands.d.ts +13 -0
  302. package/dist/install/sync-chat-commands.js +80 -0
  303. package/dist/install/sync-claude-commands.d.ts +4 -0
  304. package/dist/install/sync-claude-commands.js +8 -0
  305. package/dist/install/sync-claude-hooks.d.ts +3 -0
  306. package/dist/install/sync-claude-hooks.js +138 -0
  307. package/dist/install/sync-codex-config.d.ts +3 -0
  308. package/dist/install/sync-codex-config.js +70 -0
  309. package/dist/install/sync-codex-prompts.d.ts +4 -0
  310. package/dist/install/sync-codex-prompts.js +8 -0
  311. package/dist/install/sync-consumer-scripts.d.ts +3 -0
  312. package/dist/install/sync-consumer-scripts.js +107 -0
  313. package/dist/install/sync-cursor-commands.d.ts +4 -0
  314. package/dist/install/sync-cursor-commands.js +8 -0
  315. package/dist/install/sync-cursor-hooks.d.ts +3 -0
  316. package/dist/install/sync-cursor-hooks.js +125 -0
  317. package/dist/install/sync-cursor-mcp.d.ts +3 -0
  318. package/dist/install/sync-cursor-mcp.js +36 -0
  319. package/dist/install/sync-opencode-commands.d.ts +4 -0
  320. package/dist/install/sync-opencode-commands.js +8 -0
  321. package/dist/install/sync-project-wrapper.d.ts +14 -0
  322. package/dist/install/sync-project-wrapper.js +159 -0
  323. package/dist/install/sync-skills.d.ts +2 -0
  324. package/dist/install/sync-skills.js +29 -0
  325. package/dist/install/sync-user-mcp.d.ts +5 -0
  326. package/dist/install/sync-user-mcp.js +25 -0
  327. package/dist/install/third-party-deps.d.ts +28 -0
  328. package/dist/install/third-party-deps.js +459 -0
  329. package/dist/install/types.d.ts +9 -0
  330. package/dist/install/types.js +7 -0
  331. package/dist/integrations/enterprise-stack.d.ts +50 -0
  332. package/dist/integrations/enterprise-stack.js +277 -0
  333. package/dist/integrations/harness-hooks.d.ts +17 -0
  334. package/dist/integrations/harness-hooks.js +50 -0
  335. package/dist/integrations/openspec-sync.d.ts +14 -0
  336. package/dist/integrations/openspec-sync.js +77 -0
  337. package/dist/integrations/openspec.d.ts +26 -0
  338. package/dist/integrations/openspec.js +102 -0
  339. package/dist/integrations/skill-flow.d.ts +17 -0
  340. package/dist/integrations/skill-flow.js +13 -0
  341. package/dist/integrations/token-compress-hooks.d.ts +29 -0
  342. package/dist/integrations/token-compress-hooks.js +175 -0
  343. package/dist/integrations/workflow-manifest.d.ts +63 -0
  344. package/dist/integrations/workflow-manifest.js +363 -0
  345. package/dist/mcp/lsp-tools.d.ts +16 -0
  346. package/dist/mcp/lsp-tools.js +127 -0
  347. package/dist/mcp/server.d.ts +2 -0
  348. package/dist/mcp/server.js +432 -0
  349. package/dist/mcp/state-tools.d.ts +88 -0
  350. package/dist/mcp/state-tools.js +183 -0
  351. package/dist/plugin/handlers.d.ts +1038 -0
  352. package/dist/plugin/handlers.js +1395 -0
  353. package/dist/plugin/index.d.ts +8 -0
  354. package/dist/plugin/index.js +560 -0
  355. package/dist/schemas/change.d.ts +63 -0
  356. package/dist/schemas/change.js +64 -0
  357. package/dist/schemas/design.d.ts +81 -0
  358. package/dist/schemas/design.js +81 -0
  359. package/dist/schemas/integration.d.ts +91 -0
  360. package/dist/schemas/integration.js +40 -0
  361. package/dist/schemas/requirement.d.ts +72 -0
  362. package/dist/schemas/requirement.js +67 -0
  363. package/dist/schemas/review.d.ts +37 -0
  364. package/dist/schemas/review.js +39 -0
  365. package/dist/schemas/state.d.ts +37 -0
  366. package/dist/schemas/state.js +23 -0
  367. package/dist/schemas/task.d.ts +58 -0
  368. package/dist/schemas/task.js +56 -0
  369. package/dist/schemas/test.d.ts +55 -0
  370. package/dist/schemas/test.js +51 -0
  371. package/dist/schemas/ui-design.d.ts +19 -0
  372. package/dist/schemas/ui-design.js +19 -0
  373. package/package.json +98 -0
  374. package/postinstall.mjs +35 -0
  375. package/prompts/inc/gstack-invoke.md +11 -0
  376. package/prompts/inc/slash-catalog.generated.md +98 -0
  377. package/prompts/inc/stage-protocol.md +16 -0
  378. package/prompts/inc/superpowers-invoke.md +11 -0
  379. package/prompts/taiyi-apply.md +18 -0
  380. package/prompts/taiyi-archive.md +13 -0
  381. package/prompts/taiyi-audit.md +19 -0
  382. package/prompts/taiyi-cancel.md +15 -0
  383. package/prompts/taiyi-commit.md +27 -0
  384. package/prompts/taiyi-continue.md +17 -0
  385. package/prompts/taiyi-diagram.md +21 -0
  386. package/prompts/taiyi-doctor.md +18 -0
  387. package/prompts/taiyi-explore.md +13 -0
  388. package/prompts/taiyi-forge.md +24 -0
  389. package/prompts/taiyi-gstack.md +29 -0
  390. package/prompts/taiyi-land.md +22 -0
  391. package/prompts/taiyi-list.md +4 -0
  392. package/prompts/taiyi-mode.md +28 -0
  393. package/prompts/taiyi-new.md +17 -0
  394. package/prompts/taiyi-pause.md +17 -0
  395. package/prompts/taiyi-release.md +14 -0
  396. package/prompts/taiyi-review.md +21 -0
  397. package/prompts/taiyi-ship.md +26 -0
  398. package/prompts/taiyi-skill.md +25 -0
  399. package/prompts/taiyi-sp.md +29 -0
  400. package/prompts/taiyi-status.md +17 -0
  401. package/prompts/taiyi-test.md +20 -0
  402. package/prompts/taiyi-token.md +26 -0
  403. package/prompts/taiyi-verify.md +14 -0
  404. package/prompts/taiyi-workflow.md +32 -0
  405. package/prompts/taiyi-write.md +13 -0
  406. package/prompts/taiyi.md +52 -0
  407. package/prompts/ty.md +12 -0
  408. package/scripts/capture-poster.mjs +45 -0
  409. package/scripts/ci.mjs +24 -0
  410. package/scripts/claude-keyword-hook.mjs +94 -0
  411. package/scripts/claude-mode-stop-hook.mjs +49 -0
  412. package/scripts/claude-phase-guard-hook.mjs +48 -0
  413. package/scripts/codex-keyword-preflight.mjs +73 -0
  414. package/scripts/codex-mode-reminder.mjs +26 -0
  415. package/scripts/cursor-keyword-hook.mjs +98 -0
  416. package/scripts/cursor-mode-stop-hook.mjs +49 -0
  417. package/scripts/cursor-phase-guard-hook.mjs +43 -0
  418. package/scripts/dogfood-e2e.mjs +33 -0
  419. package/scripts/generate-architecture-poster-v023.py +434 -0
  420. package/scripts/generate-architecture-svg.py +443 -0
  421. package/scripts/generate-docs.mjs +364 -0
  422. package/scripts/install-skills.sh +47 -0
  423. package/scripts/install.sh +12 -0
  424. package/scripts/keyword-modes-lib.mjs +70 -0
  425. package/scripts/lib/parse-commands-yaml.mjs +396 -0
  426. package/scripts/mermaid-arch-config.json +29 -0
  427. package/scripts/mode-stop-lib.mjs +127 -0
  428. package/scripts/phase-guard-lib.mjs +147 -0
  429. package/scripts/probes/post-fix-regression.mjs +142 -0
  430. package/scripts/probes/probe-worktree.mjs +43 -0
  431. package/scripts/probes/taiyi-fullflow-probe.mjs +144 -0
  432. package/scripts/render-mermaid.mjs +105 -0
  433. package/scripts/sync-agent-roles-yaml.mjs +11 -0
  434. package/scripts/taiyi-forge.mjs +49 -0
  435. package/scripts/taiyi-forge.sh +177 -0
  436. package/scripts/token-bench.js +37 -0
  437. package/scripts/walkthrough.mjs +13 -0
  438. package/skills/taiyi-architect/SKILL.md +121 -0
  439. package/skills/taiyi-change/SKILL.md +29 -0
  440. package/skills/taiyi-compress/SKILL.md +75 -0
  441. package/skills/taiyi-design/SKILL.md +33 -0
  442. package/skills/taiyi-dev/SKILL.md +39 -0
  443. package/skills/taiyi-diagram-arch/SKILL.md +114 -0
  444. package/skills/taiyi-diagram-c4/SKILL.md +68 -0
  445. package/skills/taiyi-diagram-flow/SKILL.md +114 -0
  446. package/skills/taiyi-diagram-pipeline/SKILL.md +80 -0
  447. package/skills/taiyi-diagram-render/SKILL.md +94 -0
  448. package/skills/taiyi-evolve/SKILL.md +143 -0
  449. package/skills/taiyi-forge/SKILL.md +44 -0
  450. package/skills/taiyi-health/SKILL.md +31 -0
  451. package/skills/taiyi-integration/SKILL.md +23 -0
  452. package/skills/taiyi-intel-scan/SKILL.md +133 -0
  453. package/skills/taiyi-orchestrator/SKILL.md +50 -0
  454. package/skills/taiyi-requirement/SKILL.md +21 -0
  455. package/skills/taiyi-restyle/SKILL.md +115 -0
  456. package/skills/taiyi-review/SKILL.md +29 -0
  457. package/skills/taiyi-task/SKILL.md +23 -0
  458. package/skills/taiyi-test/SKILL.md +22 -0
  459. package/skills/taiyi-ui-design/SKILL.md +103 -0
  460. package/skills/taiyi-ultrawork/SKILL.md +34 -0
  461. package/templates/CHANGE.md +9 -0
  462. package/templates/CHANGELOG.md +17 -0
  463. package/templates/CONTEXT.md +21 -0
  464. package/templates/DESIGN.md +24 -0
  465. package/templates/REQUIREMENT.md +21 -0
  466. package/templates/REVIEW.md +16 -0
  467. package/templates/TASK.md +15 -0
  468. package/templates/TEST.md +17 -0
  469. package/templates/UI-DESIGN.md +24 -0
package/AGENTS.md ADDED
@@ -0,0 +1,46 @@
1
+ # TaiyiForge (oh-my-taiyiforge)
2
+
3
+ 开源 AI 研发工作流:**OpenCode** 插件 + **Claude / Codex / Cursor** 共用 `taiyi-*` Skill 与 `.taiyi/changes/<slug>/` 工件契约。
4
+
5
+ ## 从这里读
6
+
7
+ | 目的 | 文档 |
8
+ |------|------|
9
+ | **5 分钟跑通** | [`docs/QUICKSTART.md`](docs/QUICKSTART.md) |
10
+ | **斜杠命令真源** | [`docs/taiyi/canonical-commands.md`](docs/taiyi/canonical-commands.md)(**v28 顶栏**)· [`docs/taiyi/commands.yaml`](docs/taiyi/commands.yaml) |
11
+ | **控制面 / Agent 纪律** | [`docs/taiyi/control-plane.md`](docs/taiyi/control-plane.md) |
12
+ | **工件目录** | [`docs/taiyi/artifact-layout.md`](docs/taiyi/artifact-layout.md) |
13
+ | **架构** | [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) |
14
+ | **Skill 融合原则** | [`docs/taiyi/skill-fusion-principles.md`](docs/taiyi/skill-fusion-principles.md) |
15
+ | **贡献** | [`CONTRIBUTING.md`](CONTRIBUTING.md) |
16
+
17
+ ## 硬约定(摘要)
18
+
19
+ 1. 每个变更一个 slug:`.taiyi/changes/<slug>/`
20
+ 2. 九阶段顺序见 `docs/taiyi/phases.yaml` — **上一阶段未完成不得进入下一阶段**
21
+ 3. 过关须 **人工审批** + **质量门禁五维**(`docs/taiyi/quality-gate.yaml`)
22
+ 4. **dev 阶段 TDD**:先失败测试,再最小实现
23
+ 5. **Token 纪律**:清 slug → archive → `token compress` → E2E/全量测试走 CI 后台(对话只写 TEST.md 摘要)
24
+ 6. **上下文加载**:进入阶段时优先读 `PHASE-CONTEXT.md`(引擎自动生成,~500 tokens),**不要**逐份读 CHANGE/REQUIREMENT/DESIGN/TASK 等上游工件
25
+
26
+ ## Agent 读状态(默认)
27
+
28
+ ```bash
29
+ scripts/taiyi-forge.sh status [slug] --json --compact
30
+ ```
31
+
32
+ 解析 **`engineTruth`**,勿全量读工件进聊天。人类用户要可读摘要时用无前缀 `status` 或 `--compact`(无 `--json`)。
33
+
34
+ 排查:`doctor --json --compact` · `audit --json --compact`(仅失败项 / high findings)。Cursor 可用 MCP `taiyi_doctor` / `taiyi_audit`。
35
+
36
+ ## 安装(一行)
37
+
38
+ ```bash
39
+ npx taiyi-forge-install --all # 23 个 taiyi-* Skill → 四端
40
+ ```
41
+
42
+ 细节见 **QUICKSTART**;引擎 shell:`scripts/taiyi-forge.sh` · [`docs/taiyi/control-plane.md`](docs/taiyi/control-plane.md)
43
+
44
+ ## 许可
45
+
46
+ MIT — 见 [`LICENSE`](LICENSE)
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TaiyiForge contributors
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,366 @@
1
+ <div align="center">
2
+
3
+ **[English](README.en.md)** · [简体中文](README.md)
4
+
5
+ # TaiyiForge
6
+
7
+ **Turn six AI engineering standards into a single executable nine-stage R&D workflow**
8
+
9
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
10
+ [![Node](https://img.shields.io/badge/node-%3E%3D20-brightgreen)](package.json)
11
+ [![npm version](https://img.shields.io/npm/v/oh-my-taiyiforge.svg)](https://www.npmjs.com/package/oh-my-taiyiforge)
12
+ [![npm downloads](https://img.shields.io/npm/dm/oh-my-taiyiforge.svg)](https://www.npmjs.com/package/oh-my-taiyiforge)
13
+ [![Version](https://img.shields.io/badge/version-0.40.0-orange)](CHANGELOG.md)
14
+ [![v28 canonical](https://img.shields.io/badge/v28-28%20slashes%20%C2%B7%206%20umbrellas-blue)](docs/taiyi/canonical-commands.md)
15
+ [![CI](https://img.shields.io/github/actions/workflow/status/Dong90/oh-my-taiyiforge/ci.yml?branch=main&label=CI)](https://github.com/Dong90/oh-my-taiyiforge/actions/workflows/ci.yml)
16
+ [![Platforms](https://img.shields.io/badge/platforms-OpenCode%20%7C%20Claude%20%7C%20Codex%20%7C%20Cursor-8a2be2)](docs/QUICKSTART.md)
17
+
18
+ **Document-driven AI R&D with gates, not vibes.**
19
+
20
+ > Stop memorizing the phase order. Say `/taiyi:new` and the engine tells you what's next.
21
+
22
+ [Quick Start](#quick-start) · [Usage Guide](docs/USAGE.md) · [Architecture](docs/ARCHITECTURE.md) · [Command Reference](docs/taiyi/canonical-commands.md) · [Full Flow](docs/taiyi/full-oss-flow.md) · [Contributing](CONTRIBUTING.md)
23
+
24
+ <br />
25
+
26
+ ![TaiyiForge Architecture — Six standards × Workflow engine × Nine stages × Skill universe × Three-layer gates](docs/diagrams/visual/taiyiforge-architecture-ai-v023-full-4k-en-v2.png)
27
+
28
+ </div>
29
+
30
+ ---
31
+
32
+ ## 1 · The Problem
33
+
34
+ ![Real terminal demo](docs/diagrams/demo.gif)
35
+
36
+ <sub>27-second real terminal recording · <a href="docs/diagrams/demo.cast">asciicast source</a> (playable on <a href="https://asciinema.org">asciinema.org</a> or locally with `asciinema play docs/diagrams/demo.cast`)</sub>
37
+
38
+ Every team using AI for serious work has hit some version of these:
39
+
40
+ | Pain you've hit | Why it bites |
41
+ |-----------------|--------------|
42
+ | Agent forgets the phase order mid-task and jumps to code | Lost context, half-baked designs, untested changes — review has to redo the work |
43
+ | Context explodes mid-change, requirements / design / code all lost | Long sessions die; resume from chat is impossible |
44
+ | Each of OpenCode / Claude / Codex / Cursor has its own ad-hoc flow | Same feature, four different rituals — onboarding is per-tool, not per-team |
45
+ | Even a typo fix has to go through nine stages | Rigid pipelines kill momentum on small fixes |
46
+ | Don't dare let AI decide at critical nodes | "Looks good" review without a human sign-off is gambling with prod |
47
+ | Don't know what the installed Skills are actually doing | Drift between docs and installed behavior, no audit trail |
48
+ | Want to coexist with OMC / OMX | Lock-in to one orchestrator stack kills composability |
49
+
50
+ TaiyiForge's answer to every one of these is in [§2 The Solution](#2--the-solution).
51
+
52
+ ---
53
+
54
+ ## 2 · The Solution
55
+
56
+ A **single nine-stage artifact contract** + **28 v28 slashes + 6 umbrellas** + **one
57
+ `/taiyi:*` vocabulary** that works the same on all four AI harnesses.
58
+
59
+ > **v28 = recommended naming + top-bar convergence. IDE menus trimmed to 28 entries (v0.24). Set `TAIYI_FORGE_ALL_PROMPTS=1` to restore the full set. See [canonical-commands.md](docs/taiyi/canonical-commands.md).**
60
+
61
+ TaiyiForge does not invent standards — it **orchestrates Harness · OpenSpec · GStack ·
62
+ Superpowers · OMO · Spec-Kit into one state machine**. Use what you have installed;
63
+ everything else is auto-skipped as optional.
64
+
65
+ ### 2.1 · The Nine-Stage Workflow
66
+
67
+ One change = one slug, sequential execution, fixed artifacts. **Human gates** require
68
+ `--approver` before the engine lets you pass.
69
+
70
+ | # | Phase | Category | Skill | Artifact | Notes |
71
+ |---|-------|----------|-------|----------|-------|
72
+ | 1 | change | Human gate | `taiyi-change` | `CHANGE.md` | 3-5 paragraph proposal with scope |
73
+ | 2 | requirement | Auto | `taiyi-requirement` | `REQUIREMENT.md` | Acceptance criteria + AC checkbox |
74
+ | 3 | design | Human gate | `taiyi-design` | `DESIGN.md` | ≥2 options compared + decision |
75
+ | 4 | ui-design | Auto | `taiyi-ui-design` | `UI-DESIGN.md` | Only for changes that touch UI |
76
+ | 5 | task | Auto | `taiyi-task` | `TASK.md` | Slice into independently-PR-able pieces |
77
+ | 6 | dev | Auto | `taiyi-dev` | TDD test + minimal impl | **TDD forced** — red first, then green |
78
+ | 7 | test | Auto | `taiyi-test` | `TEST.md` | Summary kept; E2E runs in CI |
79
+ | 8 | review | Human gate | `taiyi-review` | `REVIEW.md` | Cross-AI review + high-severity must-fix |
80
+ | 9 | integration | Auto | `taiyi-integration` | `CHANGELOG.md` merged | Delivery gate: `audit` + `deliveryVerifyCmd` |
81
+ | — | archive | Cleanup | `taiyi-integration` | `.taiyi/archive/` | Only after all nine stages pass |
82
+
83
+ Full command list → **[canonical-commands.md](docs/taiyi/canonical-commands.md)** · Artifact layout → **[artifact-layout.md](docs/taiyi/artifact-layout.md)**
84
+
85
+ ### 2.2 · v28 Slash Catalog (28)
86
+
87
+ Source of truth: [canonical-commands.md](docs/taiyi/canonical-commands.md) →
88
+ `canonical_v28`. Legacy slashes still work, see [Legacy compatibility](#23--legacy-compatibility).
89
+
90
+ | # | Group | Slash | Purpose |
91
+ |---|------|------|---------|
92
+ | 1–6 | Main chain | `new` · `status` · `write` · `continue` · `apply` · `archive` | Daily shortest path |
93
+ | 7–10 | Session | `pause` · `resume` · `cancel` · `list` | Cross-session |
94
+ | 11–13 | Diagnose | `doctor` · `audit` · `verify` | Self-check + delivery gate |
95
+ | 14–17 | Delivery | `commit` · `ship` · `land` · `release` | gstack delivery chain |
96
+ | 18–19 | Routing | `gstack <skill>` · `sp <skill>` | External harness routing |
97
+ | 20–22 | Stage shortcuts | `explore` · `tdd plan\|dev` · `flow` | Skip the nine-stage |
98
+ | 23–28 | **Umbrellas (6)** | `token …` · `test …` · `review …` · `diagram …` · `mode …` · `workflow …` | Domain multi-subcommand |
99
+
100
+ **Daily shortest path**:
101
+
102
+ ```text
103
+ /taiyi:new → /taiyi:write → /taiyi:continue → /taiyi:apply → … → /taiyi:commit → /taiyi:continue integration → /taiyi:archive
104
+ ```
105
+
106
+ **Umbrella quick map** (full map in [canonical-commands.md §伞形命令·子命令地图](docs/taiyi/canonical-commands.md)):
107
+
108
+ | Umbrella | Sub-commands | Count |
109
+ |----------|--------------|------:|
110
+ | `/taiyi:token` | `status` · `record` · `scan` · `compress` | 4 |
111
+ | `/taiyi:test` | `smoke` · `e2e` · `qa` · `ui` · `security` | 5 |
112
+ | `/taiyi:review` | `loop` · `check` · `health` · `gstack` | 4 |
113
+ | `/taiyi:diagram` | `pipeline` · `c4` · `arch` · `render` · `flow` | 5 |
114
+ | `/taiyi:mode` | `ralph` · `autopilot` · `daemon` · `team` · `ultrawork` · `agent` · `step` · `stop` · `list` · `keyword` · `preflight` | 11 |
115
+ | `/taiyi:workflow` | `plan` · `ralplan` · `loop` · `check` · `run` · `sync` · `ccg` · `sciomc` · `deepinit` · `remember` · `ultraqa` | 11 |
116
+
117
+ ### 2.3 · Legacy compatibility
118
+
119
+ Legacy slashes & CLI **still work** — listed in
120
+ [canonical-commands.md §Legacy 兼容](docs/taiyi/canonical-commands.md). Don't add new
121
+ top-bar duplicates of v28 umbrellas.
122
+
123
+ | Legacy | v28 now |
124
+ |--------|---------|
125
+ | `/taiyi:pause` | `/taiyi:pause` |
126
+ | `/taiyi:state` · `/taiyi:state-read` | `/taiyi:status` |
127
+ | `/taiyi:next` · `/taiyi:done` | `/taiyi:status` + `/taiyi:continue` |
128
+ | `/taiyi:change` … `/taiyi:integration` | `/taiyi:write` |
129
+ | `/taiyi:ralph` etc. OMC | `/taiyi:mode ralph` |
130
+ | `npx taiyi new` · `npx taiyi walkthrough` | `/taiyi:new` · `/taiyi:flow help` |
131
+
132
+ ---
133
+
134
+ ## 3 · The Evidence
135
+
136
+ ### 3.1 · One Skill Set, Four Harnesses
137
+
138
+ One `node scripts/taiyi-forge.sh install --all` syncs to all four harnesses; missing
139
+ ones are auto-skipped. Same 28 v28 top-bar slashes, same `taiyi-*` Skills — different
140
+ chat syntax & MCP surface per harness:
141
+
142
+ | Harness | Chat entry | Engine entry | MCP | Hook / keyword | Read more |
143
+ |---------|-----------|-------------|-----|----------------|-----------|
144
+ | **Claude Code** | `/taiyi:new … /taiyi:archive` + Skill + `~/.claude/commands/taiyi-*.md` | Agent Bash | `taiyi_doctor` · `taiyi_audit` | keyword hook | [control-plane.md §四端对照](docs/taiyi/control-plane.md) |
145
+ | **Codex** | `$taiyi-new` … `$taiyi-archive` (`prompts/taiyi-*.md` — **not** `/taiyi:*`) | Agent runs `scripts/taiyi-forge.sh` | None (shell) | `codex-keyword-preflight.mjs` + `developer_instructions` (`~/.codex/config.toml`) | [control-plane.md §Codex](docs/taiyi/control-plane.md) |
146
+ | **Cursor** | `/taiyi:new … /taiyi:status` + `taiyiforge.mdc` rule + `~/.cursor/commands/taiyi-*.md` | Agent terminal / MCP | `taiyi_doctor` · `taiyi_audit` | keyword hook | [mcp-setup.md](docs/taiyi/mcp-setup.md) |
147
+ | **OpenCode** | `taiyi_new` / `taiyi_*` plugin tools + `~/.config/opencode/commands/taiyi-*.md` | plugin + `/taiyi-*` slashes | (plugin built-in) | plugin-managed | [control-plane.md §OpenCode](docs/taiyi/control-plane.md) |
148
+
149
+ > **Codex note**: chat entry is the `$taiyi-*` keyword (not `/taiyi:*`), routed via
150
+ > `codex-keyword-preflight.mjs` and `developer_instructions`. See
151
+ > [control-plane.md](docs/taiyi/control-plane.md).
152
+
153
+ ### 3.2 · Chat Track vs Engine Track
154
+
155
+ | Surface | Used by | Does what | Example |
156
+ |---------|---------|-----------|---------|
157
+ | **Chat slash** | Developer / Agent | Write artifact, run TDD, load specialized Skill | `/taiyi:write` · `/taiyi:apply` · `/taiyi:tdd dev` |
158
+ | **Engine CLI** | Agent / CI (run **for** you) | Validate artifact, gates, advance phase | `npx taiyi continue <slug>` · `npx taiyi complete <slug> change --approver "…"` |
159
+ | **Shell entry** | Agent / CI | Equivalent to CLI; written into consumer project after install | `scripts/taiyi-forge.sh status --json --compact` |
160
+ | **MCP** | Cursor etc. | Read-only troubleshooting | `taiyi_doctor` · `taiyi_audit` |
161
+
162
+ **Principle**: Users only say `/taiyi:*`; **never** make the user type
163
+ `taiyi-forge.sh` by hand. Agents read `status --json --compact` `engineTruth`;
164
+ never dump full artifacts into chat.
165
+
166
+ ### 3.3 · Architecture at a Glance
167
+
168
+ ```
169
+ ┌─────────────────────────────────────────────────────────────┐
170
+ │ Entry: taiyi CLI · taiyi-forge.sh · OpenCode plugin · MCP │
171
+ └───────────────────────────┬─────────────────────────────────┘
172
+
173
+ ┌─────────────────────────────────────────────────────────────┐
174
+ │ workflow-engine — intent analysis · token budget · routing · gates │
175
+ └───────────────────────────┬─────────────────────────────────┘
176
+
177
+ ┌─────────────────────────────────────────────────────────────┐
178
+ │ .taiyi/changes/<slug>/ — CHANGE … CHANGELOG (source of truth) │
179
+ └─────────────────────────────────────────────────────────────┘
180
+ chat loads taiyi-* Skill to write artifacts ↑ ↓ engine validates & advances phase
181
+ ```
182
+
183
+ - Code layout → **[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)**
184
+ - C4 source → **[docs/c4/](docs/c4/)**
185
+ - Visual poster (top of README) → [docs/diagrams/visual/](docs/diagrams/visual/)
186
+
187
+ ---
188
+
189
+ ## 4 · Quick Start
190
+
191
+ > **Zero-build install**: v0.24.0+ supports `npx taiyi-forge-install --all` one-liner to all four harnesses without cloning the repo. Source install still available.
192
+ >
193
+ > **v0.25.0 GitHub install**: v0.25.x is not yet on npm (24h name reclaim lock after upstream unpublish). Install directly from the GitHub tag — see [Option A0](#option-a0--install-directly-from-github-new-in-v025-when-npm-is-unavailable).
194
+
195
+ ### Option A0 · Install directly from GitHub (new in v0.25, when npm is unavailable)
196
+
197
+ ```bash
198
+ # Install from a GitHub tag into your project (works in any consumer repo, no npm required)
199
+ # MUST use the git+ prefix — that makes npm clone the repo and run postinstall (npm run build)
200
+ npm install 'git+https://github.com/Dong90/oh-my-taiyiforge.git#v0.25.0'
201
+ # Or install globally and run bin via npx
202
+ npm install -g 'git+https://github.com/Dong90/oh-my-taiyiforge.git#v0.25.0'
203
+ npx -p 'git+https://github.com/Dong90/oh-my-taiyiforge.git#v0.25.0' taiyi-forge-install --all
204
+ ```
205
+
206
+ > The `git+` prefix is required (tarball URLs skip postinstall, so dist/ won't get built and bins will fail). Pin to a tag (`#v0.25.0`, `#v0.25.1`), branch (`#main`), or commit SHA.
207
+
208
+ ### Option A · One-liner install (recommended, v0.24+)
209
+
210
+ ```bash
211
+ npx taiyi-forge-install --all # One-shot to all four harnesses + optional deps
212
+ npx taiyi-forge-install --cursor # Cursor only
213
+ npx taiyi-forge-install --claude --opencode
214
+
215
+ # Install all prompts (default is v28 28 top-bar entries only):
216
+ TAIYI_FORGE_ALL_PROMPTS=1 npx taiyi-forge-install --all
217
+ ```
218
+
219
+ ### Option B · Source install
220
+
221
+ ```bash
222
+ git clone https://github.com/Dong90/oh-my-taiyiforge.git
223
+ cd oh-my-taiyiforge
224
+ npm install && npm run build && npm test
225
+ node scripts/taiyi-forge.sh install --all
226
+ ```
227
+
228
+ ### Option C · Run the example projects (zero-install quick feel)
229
+
230
+ ```bash
231
+ cd examples/commands-smoke
232
+ npm install
233
+ npm run chat-demo # Chat verbs: new / status / check / continue
234
+ npm run walkthrough-e2e # Nine-stage shell E2E + iron-triangle
235
+ # /taiyi:doctor # Workspace + install self-check (chat slash)
236
+ ```
237
+
238
+ | Example | Purpose |
239
+ |---------|---------|
240
+ | [examples/full-flow-demo](examples/full-flow-demo/README.md) | Nine-stage + slash E2E |
241
+ | [examples/commands-smoke](examples/commands-smoke/) | Command smoke tests |
242
+ | [examples/browser-e2e-smoke](examples/browser-e2e-smoke/) | CI templates |
243
+ | [examples/verification-suite](examples/verification-suite/) | Minimal integration demo |
244
+
245
+ > Want `npm install oh-my-taiyiforge`? For v0.25 install from GitHub for now (see [Option A0](#option-a0--install-directly-from-github-new-in-v025-when-npm-is-unavailable)). `npm i oh-my-taiyiforge` will resume once we re-publish to npm.
246
+
247
+ ### Option D · Your first change (5 minutes)
248
+
249
+ ```bash
250
+ # Recommended entry: auto-slug + engine guidance
251
+ npx taiyi walkthrough
252
+ npx taiyi init-wizard # interactive config initialization
253
+ npx taiyi new "Add login optimization" # writes to .taiyi/changes/<slug>/
254
+ npx taiyi status # current phase + recommended Skill + next step
255
+ npx taiyi import <branch> # import from git branch (reads commits, generates CHANGE.md)
256
+
257
+ # Edit .taiyi/changes/<slug>/CHANGE.md, then:
258
+ npx taiyi complete <slug> change --approver "your-name" # human gate
259
+ npx taiyi continue <slug> # auto gate
260
+
261
+ # In chat (OpenCode / Claude / Cursor — Codex uses `$taiyi-*` keywords instead):
262
+ /taiyi:new "<feature title>" # lay CHANGE.md template
263
+ /taiyi:status # current phase + recommended Skill + next step
264
+ /taiyi:write # write current phase artifact (handles 9 stages)
265
+ /taiyi:continue --approver "your-name" # human gate (change / design / review)
266
+ /taiyi:apply # dev/test harness checklist
267
+ /taiyi:commit # post-dev commit with Taiyi-Change trailer
268
+ /taiyi:archive # archive after all nine stages
269
+
270
+ # Common umbrella picks:
271
+ /taiyi:doctor # install + workspace self-check
272
+ /taiyi:token compress <slug> # long-session → CONTEXT-COMPACT.md
273
+ /taiyi:test smoke # Playwright built-in smoke
274
+ /taiyi:flow bug <slug> # lite path for small fixes
275
+ ```
276
+
277
+ That's it. **Phase order, artifact templates, gate validation are the engine's job**.
278
+ You write Markdown and code.
279
+
280
+ Agent-priority troubleshooting:
281
+
282
+ ```bash
283
+ scripts/taiyi-forge.sh doctor --json --compact
284
+ scripts/taiyi-forge.sh audit --json --compact
285
+ ```
286
+
287
+ ---
288
+
289
+ ## 5 · Reference
290
+
291
+ ### 5.1 · Documentation
292
+
293
+ | Document | What it covers | When to read |
294
+ |----------|---------------|--------------|
295
+ | [docs/QUICKSTART.md](docs/QUICKSTART.md) | 5-minute walkthrough | First install |
296
+ | [docs/USAGE.md](docs/USAGE.md) | Scenarios · daily rhythm · delivery chain | After the walkthrough |
297
+ | [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | Architecture overview + code layout | Hacking the engine / debugging |
298
+ | [docs/taiyi/canonical-commands.md](docs/taiyi/canonical-commands.md) | v28 slash command table | Looking up a command |
299
+ | [docs/taiyi/control-plane.md](docs/taiyi/control-plane.md) | Agent discipline + token discipline | Onboarding an Agent |
300
+ | [docs/taiyi/full-oss-flow.md](docs/taiyi/full-oss-flow.md) | Superpowers + all-plugins demo | Want a full end-to-end |
301
+ | [docs/taiyi/integrations.md](docs/taiyi/integrations.md) | Iron triangle + plugin integrations | Installing optional pieces |
302
+ | [AGENTS.md](AGENTS.md) | Agent's read-state entry point | Configuring Agents |
303
+ | [CONTRIBUTING.md](CONTRIBUTING.md) | Contribution guide | Before opening a PR |
304
+ | [CHANGELOG.md](CHANGELOG.md) | Release notes | Checking for updates |
305
+ | [docs/diagrams/demo.gif](docs/diagrams/demo.gif) | Real terminal recording (27s) | Quick feel of the engine |
306
+ | [README.md](README.md) | 简体中文版 | 中文用户 |
307
+
308
+ ### 5.2 · Development & Verification
309
+
310
+ **Contributor clone:**
311
+
312
+ ```bash
313
+ git clone https://github.com/Dong90/oh-my-taiyiforge.git
314
+ cd oh-my-taiyiforge
315
+ npm install && npm run build && npm test
316
+ node scripts/taiyi-forge.sh install --all
317
+ ```
318
+
319
+ **Common commands:**
320
+
321
+ ```bash
322
+ npm test # Vitest contracts + nine-stage E2E
323
+ npm run test:watch # watch mode
324
+ npm run build # TypeScript → dist/
325
+ npm run dogfood # root repo demo (eat your own dog food)
326
+ npm run ci:platforms # four-platform smoke (opencode/claude/codex/cursor)
327
+ npm run check:docs # doc-vs-commands.yaml sync check
328
+ ```
329
+
330
+ CI: [`.github/workflows/ci.yml`](.github/workflows/ci.yml) — platform smoke runs across
331
+ a 4 × ubuntu matrix.
332
+
333
+ ### 5.3 · Roadmap & Status
334
+
335
+ | Version | Status | Key milestones |
336
+ |---------|--------|----------------|
337
+ | v0.23.0 | ✅ Released | **canonical v28**: 28 顶栏 slashes + 6 umbrellas (`token`/`test`/`review`/`diagram`/`mode`/`workflow`) + `skill-fusion-principles.md` + `validateV28CatalogSync` gate |
338
+ | v0.24.0 | ✅ Released | First npm release · `npx taiyi-forge-install` zero-build install · README v28 convergence rewrite · IDE menu trimmed to 28 entries (umbrella Phase 2) |
339
+ | v0.26.0 | ✅ Released | **Evidence gate**: acceptance criteria must carry `evidence{command,exitCode:0}` to prevent false passes · enforced commit trailers · status 5s debounce · profile expanded to 10 |
340
+ | v0.27.0 | ✅ Released | **Event bus** + structured logger · CLI 62→18 diet (handlers map replacing giant switch) · milestone overview · schema expansion + 10 SKILL.md rewrites |
341
+ | v0.30.0 | ✅ Released | **Data-driven Mermaid chain**: SSOT triple binding + rollback trace · `is_cli_only` skips UI-stage contract · ast-grep pitfalls (8 patterns) + `scan.sh` |
342
+ | v0.35.0 | ✅ Released | **ChangeGraph knowledge graph**: load/edges/query/render — 49 tests · `PHASE-CONTEXT.md` graph-driven generation (replaces sequential upstream reads) |
343
+ | v0.40.0 | ✅ Latest | review date binding + SSOT cross-refs · E2E fixtures extended 7 fields · graph context compression · CI/Playwright/vitest timeout fixes |
344
+ | v1.0.0 | ⏳ Planned | Lock 9-stage API · 4-platform parity · external case-study collection |
345
+
346
+ **Ready today**: full nine-stage pipeline · four-harness shared Skills · forced TDD ·
347
+ evidence anti-fake-pass gate · token compression · ChangeGraph knowledge graph · platform-smoke CI · zero-build one-liner install (v0.24+)
348
+ **Not yet**: production-grade SLA · full i18n
349
+
350
+ ### 5.4 · Community & Contributing
351
+
352
+ - 🐛 **Report a bug**: [GitHub Issues](https://github.com/Dong90/oh-my-taiyiforge/issues/new) · `bug` label
353
+ - 💡 **Idea / RFC**: [Discussions](https://github.com/Dong90/oh-my-taiyiforge/discussions)
354
+ - 🔧 **Open a PR**: read [CONTRIBUTING.md](CONTRIBUTING.md) first; `npm test` + `npm run check:docs` must be green
355
+ - ⭐ **Star / Watch**: drop a star to get notified on the next release
356
+ - 🧵 **Codex users**: search for `$taiyi-*` keywords; four-harness entry decision tree in [docs/taiyi/invoke.yaml](docs/taiyi/invoke.yaml)
357
+
358
+ Code of conduct: follow the [Contributor Covenant](https://www.contributor-covenant.org/) spirit — critique ideas, not people.
359
+
360
+ ### 5.5 · License
361
+
362
+ [MIT](LICENSE) © 2026 TaiyiForge contributors
363
+
364
+ ### 5.6 · Acknowledgments
365
+
366
+ Inspired by: [oh-my-claudecode](https://github.com/Yeachan-Heo/oh-my-claudecode) · [oh-my-codex](https://github.com/Yeachan-Heo/oh-my-codex) · Harness Engineering · OpenSpec · GStack · Superpowers · OMO · Spec-Kit.
package/README.md ADDED
@@ -0,0 +1,176 @@
1
+ <div align="center">
2
+
3
+ [English](README.en.md) · **简体中文**
4
+
5
+ # TaiyiForge(太一炉)
6
+
7
+ **把 AI 写代码的玄学,变成一条可执行、可审计的工程流水线。**
8
+
9
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
10
+ [![npm version](https://img.shields.io/npm/v/oh-my-taiyiforge.svg)](https://www.npmjs.com/package/oh-my-taiyiforge)
11
+ [![CI](https://img.shields.io/github/actions/workflow/status/Dong90/oh-my-taiyiforge/ci.yml?branch=main&label=CI)](https://github.com/Dong90/oh-my-taiyiforge/actions/workflows/ci.yml)
12
+ [![Platforms](https://img.shields.io/badge/platforms-OpenCode%20%7C%20Claude%20%7C%20Codex%20%7C%20Cursor-8a2be2)](docs/QUICKSTART.md)
13
+
14
+ </div>
15
+
16
+ ![TaiyiForge 架构](docs/diagrams/visual/taiyiforge-architecture-ai-v023-full-4k-zh-v2-fix.png)
17
+
18
+ [快速开始](#快速开始) · [核心能力](#核心能力) · [文档](#文档) · [社区](#社区)
19
+
20
+ ---
21
+
22
+ ## 为什么需要 TaiyiForge?
23
+
24
+ 用 AI 写代码很简单。用 AI 做工程很难。
25
+
26
+ | 你遇到的问题 | 根因 |
27
+ |---------|---------|
28
+ | Agent 跳过需求/设计,直接写代码 | 没有阶段约束,AI 总会走捷径 |
29
+ | 长会话上下文爆炸,之前写的全丢了 | 没有 token 管理机制,上下文就是消耗品 |
30
+ | Claude / Codex / Cursor 各一套流程 | 同一特性四套仪式,按工具入职不按团队 |
31
+ | 没人敢让 AI 独立拍板 | 没有门控的 review 形同虚设 |
32
+ | 装好的 Skill 实际行为没人说得清 | 文档漂移,出问题没法追溯 |
33
+
34
+ **TaiyiForge 的回答**:一套九阶段工件契约 + 状态机引擎。在四套 AI 终端里行为完全一致。
35
+
36
+ > `/taiyi:new` → 引擎告诉你下一步。不用背阶段顺序,不用记工件模板。
37
+
38
+ ---
39
+
40
+ ## 演示
41
+
42
+ 27 秒终端实录。从零创建一个 change,引擎自动推进阶段:
43
+
44
+ ![终端演示](docs/diagrams/demo.gif)
45
+
46
+ <sub>注:`/taiyi:new` → `/taiyi:status` → `/taiyi:write` → `/taiyi:continue`,四步走完一个阶段。</sub>
47
+
48
+ ---
49
+
50
+ ## 快速开始
51
+
52
+ ```bash
53
+ # 1. 安装
54
+ npm install oh-my-taiyiforge
55
+
56
+ # 2. 同步 Skill 到你的 AI 终端(Claude / Cursor / OpenCode / Codex)
57
+ npx taiyi-forge-install --all
58
+
59
+ # 3. 在聊天里创建第一个 change
60
+ /taiyi:new "优化登录流程"
61
+ /taiyi:status
62
+ ```
63
+
64
+ **你只管写 Markdown 和代码。阶段顺序、工件模板、门控校验全是引擎的活。**
65
+
66
+ ```bash
67
+ # 只装某一端
68
+ npx taiyi-forge-install --cursor
69
+ npx taiyi-forge-install --claude --opencode
70
+
71
+ # 源码安装
72
+ git clone https://github.com/Dong90/oh-my-taiyiforge.git
73
+ cd oh-my-taiyiforge && npm install && npm run build
74
+ node scripts/taiyi-forge.sh install --all
75
+ ```
76
+
77
+ [详细安装 →](docs/QUICKSTART.md)
78
+
79
+ ---
80
+
81
+ ## 核心能力
82
+
83
+ ### 九阶段流水线
84
+
85
+ 每次变更顺序走九步,每步固定产出。关键节点 **人类门控**——AI 不能放行自己。
86
+
87
+ ```
88
+ change → requirement → design → ui-design → task → dev → test → review → integration
89
+ ↑人类审批 ↑人类审批 ↑人类审批
90
+ ```
91
+
92
+ | 阶段 | 产出 | 拍板 |
93
+ |------|------|------|
94
+ | change | 方案 + 范围边界 | **人** |
95
+ | requirement | 验收标准 + AC | 引擎 |
96
+ | design | ≥2 方案对比 + 决策 | **人** |
97
+ | ui-design | UI/UX 契约 | 引擎(仅触 UI 时) |
98
+ | task | 可独立 PR 的片段 | 引擎 |
99
+ | dev | TDD 先红后绿 | 引擎 |
100
+ | test | 测试证据摘要 | 引擎 |
101
+ | review | 跨 AI 评审 | **人** |
102
+ | integration | 交付门控 | 引擎 |
103
+
104
+ [完整流程 →](docs/taiyi/full-oss-flow.md)
105
+
106
+ ### 一套命令,四端通用
107
+
108
+ 不管是 Claude Code 的 `/taiyi:new`、Cursor 的同名 slash、Codex 的 `$taiyi-new`,还是 OpenCode 的插件工具——**同一套词汇,同一种行为**。
109
+
110
+ | 版本 | 状态 | 关键里程碑 |
111
+ |------|------|----------|
112
+ | v0.23.0 | ✅ 已发布 | **canonical v28**: 28 顶栏 slashes + 6 umbrellas(`token`/`test`/`review`/`diagram`/`mode`/`workflow`) + `skill-fusion-principles.md` + `validateV28CatalogSync` gate |
113
+ | v0.24.0 | ✅ 已发布 | 首次 npm 发布 · `npx taiyi-forge-install` 零构建安装 · README v28 收敛重写 · IDE 菜单裁剪为 28 条(umbrella Phase 2) |
114
+ | v0.26.0 | ✅ 已发布 | **evidence 强校验**: AC 必配 `evidence{command,exitCode:0}` 防假过门 · commit trailer 强制执行 · status 5s 防抖 · profile 扩容 10 种 |
115
+ | v0.27.0 | ✅ 已发布 | **event bus** + structured logger · CLI 62→18 瘦身(handlers map 替代巨型 switch)· TODO 里程碑总览 · schema 扩展 + 10 个 SKILL.md 重写 |
116
+ | v0.30.0 | ✅ 已发布 | **data-driven Mermaid chain**: 设计图 SSOT 三源绑定 + rollback 追溯 · `is_cli_only` 跳过 UI 阶段契约 · ast-grep 陷阱规则(8 patterns) + `scan.sh` |
117
+ | v0.35.0 | ✅ 已发布 | **ChangeGraph 知识图谱**: load/edges/query/render — 49 tests · `PHASE-CONTEXT.md` 图谱驱动生成(替代逐份读上游工件) |
118
+ | v0.40.0 | ✅ 最新 | review 日绑定 + SSOT 交叉引用 · E2E fixtures 扩 7 字段 · graph 上下文压缩 · 平台冒烟 CI / Playwright / vitest 超时修复 |
119
+ | v1.0.0 | ⏳ 计划 | 锁定 9 阶段 API · 四端 parity · 外部案例收集 |
120
+
121
+ **已就绪**: 完整九阶段流水线 · 四端共享 Skill · 强制 TDD · evidence 防假过门 · token 压缩 · ChangeGraph 知识图谱 · 平台冒烟 CI · 零构建一行安装(v0.24+)
122
+ **未就绪**: 生产级 SLA · 完整 i18n
123
+
124
+ ### 不止流水线
125
+
126
+ - **强制 TDD**:dev 阶段先红后绿,不是建议是硬约束
127
+ - **evidence 防假过门**:每个 AC 必须配可执行验证命令,跑不过不放
128
+ - **token 压缩**:长会话自动产出 `CONTEXT-COMPACT.md`,跨天无缝续上
129
+ - **ChangeGraph**:自动追踪变更间依赖,改一处知全局
130
+ - **不搞一刀切**:大功能 `full`,小修复 `lite`,typo 改 `nano`
131
+
132
+ ---
133
+
134
+ ## 对比
135
+
136
+ | | 直接跟 AI 对话 | TaiyiForge |
137
+ |---|---|---|
138
+ | 流程约束 | 靠 prompt 和记忆祈祷 | 状态机强制推进 |
139
+ | 人类审批 | 看心情,容易跳过 | `--approver` 硬拦,不批不放 |
140
+ | 多工具一致性 | 换工具换流程 | 同一套 Skill |
141
+ | 上下文持久 | 丢了重新聊 | token 压缩 + 断点续传 |
142
+ | 灵活度 | 全靠自觉 | 10 种 profile,按需选择 |
143
+
144
+ ---
145
+
146
+ ## 文档
147
+
148
+ | 文档 | 内容 | 什么时候读 |
149
+ |------|------|-----------|
150
+ | [QUICKSTART](docs/QUICKSTART.md) | 5 分钟走通全流程 | 第一次用 |
151
+ | [USAGE](docs/USAGE.md) | 日常节奏、场景、交付链 | 跑通之后 |
152
+ | [ARCHITECTURE](docs/ARCHITECTURE.md) | 系统架构 + 代码布局 | 想改引擎 |
153
+ | [canonical-commands](docs/taiyi/canonical-commands.md) | 28 条 slack 命令表 | 查命令 |
154
+ | [control-plane](docs/taiyi/control-plane.md) | Agent 纪律 + token 纪律 | 给 Agent 配 onboarding |
155
+ | [full-oss-flow](docs/taiyi/full-oss-flow.md) | Superpowers + 全插件端到端 | 想看完整流程 |
156
+ | [CONTRIBUTING](CONTRIBUTING.md) | 贡献指南 | 开 PR 之前 |
157
+ | [CHANGELOG](CHANGELOG.md) | 发布说明 | 查更新 |
158
+
159
+ ---
160
+
161
+ ## 社区
162
+
163
+ - 🐛 [报告 Bug](https://github.com/Dong90/oh-my-taiyiforge/issues/new?labels=bug)
164
+ - 💡 [想法 & 讨论](https://github.com/Dong90/oh-my-taiyiforge/discussions)
165
+ - 🔧 [贡献代码](CONTRIBUTING.md) — `npm test` 必须绿
166
+ - ⭐ **Star 一下,下次发布不迷路**
167
+
168
+ TaiyiForge 不发明新标准——它把 **Harness · OpenSpec · GStack · Superpowers · OMO · Spec-Kit** 编排成一台状态机。装了什么用什么,其余自动跳过。
169
+
170
+ ---
171
+
172
+ ## 许可证
173
+
174
+ [MIT](LICENSE) © 2026 TaiyiForge contributors
175
+
176
+ 灵感来源:[oh-my-claudecode](https://github.com/Yeachan-Heo/oh-my-claudecode) · [oh-my-codex](https://github.com/Yeachan-Heo/oh-my-codex) · Harness Engineering · OpenSpec · GStack · Superpowers · OMO · Spec-Kit
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { runInstallCli } from "../install/run.js";
3
+ const code = await runInstallCli(process.argv.slice(2));
4
+ process.exit(code);
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};