bigpowers 2.86.5 → 2.86.7

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 (548) hide show
  1. package/.agents/skills/commit-message/SKILL.md +1 -1
  2. package/.agents/skills/evolve-skill/SKILL.md +1 -1
  3. package/.agents/skills/guard-git/SKILL.md +8 -8
  4. package/.agents/skills/kickoff-branch/SKILL.md +1 -1
  5. package/.agents/skills/migrate-spec/SKILL.md +52 -6
  6. package/.agents/skills/plan-work/SKILL.md +17 -5
  7. package/.agents/skills/publish-package/SKILL.md +15 -5
  8. package/.agents/skills/release-branch/SKILL.md +12 -8
  9. package/.agents/skills/seed-conventions/SKILL.md +20 -10
  10. package/.agents/skills/smoke-test/SKILL.md +9 -5
  11. package/.agents/skills/validate-contracts/SKILL.md +15 -6
  12. package/.agents/skills/wire-ci/SKILL.md +12 -5
  13. package/.agents/skills/write-document/SKILL.md +31 -5
  14. package/.cline/skills/align-grid/SKILL.md +110 -0
  15. package/.cline/skills/assess-impact/SKILL.md +91 -0
  16. package/.cline/skills/audit-code/SKILL.md +184 -0
  17. package/.cline/skills/audit-plan/SKILL.md +89 -0
  18. package/.cline/skills/build-epic/SKILL.md +105 -0
  19. package/.cline/skills/change-request/SKILL.md +121 -0
  20. package/.cline/skills/commit-message/SKILL.md +140 -0
  21. package/.cline/skills/compose-workflow/SKILL.md +82 -0
  22. package/.cline/skills/context7-mcp/SKILL.md +55 -0
  23. package/.cline/skills/craft-skill/SKILL.md +196 -0
  24. package/.cline/skills/deepen-architecture/SKILL.md +260 -0
  25. package/.cline/skills/define-language/SKILL.md +80 -0
  26. package/.cline/skills/define-success/SKILL.md +12 -0
  27. package/.cline/skills/delegate-task/SKILL.md +91 -0
  28. package/.cline/skills/deploy/SKILL.md +198 -0
  29. package/.cline/skills/design-interface/SKILL.md +97 -0
  30. package/.cline/skills/develop-tdd/SKILL.md +416 -0
  31. package/.cline/skills/diagnose-root/SKILL.md +24 -0
  32. package/.cline/skills/diagnose-stall/SKILL.md +54 -0
  33. package/.cline/skills/dispatch-agents/SKILL.md +118 -0
  34. package/.cline/skills/edit-document/SKILL.md +23 -0
  35. package/.cline/skills/elaborate-spec/SKILL.md +101 -0
  36. package/.cline/skills/enforce-first/SKILL.md +45 -0
  37. package/.cline/skills/evolve-skill/SKILL.md +55 -0
  38. package/.cline/skills/execute-plan/SKILL.md +61 -0
  39. package/.cline/skills/extract-design/SKILL.md +132 -0
  40. package/.cline/skills/find-way/SKILL.md +191 -0
  41. package/.cline/skills/fix-bug/SKILL.md +67 -0
  42. package/.cline/skills/gate-trace/SKILL.md +92 -0
  43. package/.cline/skills/generate-allure-report/SKILL.md +285 -0
  44. package/.cline/skills/grill-me/SKILL.md +108 -0
  45. package/.cline/skills/grill-with-docs/SKILL.md +53 -0
  46. package/.cline/skills/guard-git/SKILL.md +231 -0
  47. package/.cline/skills/harden-vps/SKILL.md +291 -0
  48. package/.cline/skills/hook-commits/SKILL.md +94 -0
  49. package/.cline/skills/inspect-quality/SKILL.md +106 -0
  50. package/.cline/skills/investigate-bug/SKILL.md +127 -0
  51. package/.cline/skills/kickoff-branch/SKILL.md +143 -0
  52. package/.cline/skills/maintain-wiki/SKILL.md +64 -0
  53. package/.cline/skills/map-codebase/SKILL.md +71 -0
  54. package/.cline/skills/migrate-spec/SKILL.md +908 -0
  55. package/.cline/skills/model-domain/SKILL.md +232 -0
  56. package/.cline/skills/orchestrate-project/SKILL.md +174 -0
  57. package/.cline/skills/organize-workspace/SKILL.md +164 -0
  58. package/.cline/skills/plan-refactor/SKILL.md +87 -0
  59. package/.cline/skills/plan-release/SKILL.md +145 -0
  60. package/.cline/skills/plan-tests/SKILL.md +75 -0
  61. package/.cline/skills/plan-work/SKILL.md +272 -0
  62. package/.cline/skills/publish-package/SKILL.md +338 -0
  63. package/.cline/skills/quick-fix/SKILL.md +114 -0
  64. package/.cline/skills/release-branch/SKILL.md +302 -0
  65. package/.cline/skills/request-review/SKILL.md +113 -0
  66. package/.cline/skills/research-first/SKILL.md +87 -0
  67. package/.cline/skills/reset-baseline/SKILL.md +21 -0
  68. package/.cline/skills/respond-review/SKILL.md +71 -0
  69. package/.cline/skills/run-benchmark/SKILL.md +85 -0
  70. package/.cline/skills/run-evals/SKILL.md +80 -0
  71. package/.cline/skills/run-planning/SKILL.md +101 -0
  72. package/.cline/skills/scope-work/SKILL.md +63 -0
  73. package/.cline/skills/search-skills/SKILL.md +73 -0
  74. package/.cline/skills/security-review/SKILL.md +384 -0
  75. package/.cline/skills/seed-conventions/SKILL.md +312 -0
  76. package/.cline/skills/session-state/SKILL.md +146 -0
  77. package/.cline/skills/setup-environment/SKILL.md +39 -0
  78. package/.cline/skills/simulate-agents/SKILL.md +26 -0
  79. package/.cline/skills/slice-tasks/SKILL.md +68 -0
  80. package/.cline/skills/smoke-test/SKILL.md +261 -0
  81. package/.cline/skills/spike-prototype/SKILL.md +95 -0
  82. package/.cline/skills/stocktake-skills/SKILL.md +74 -0
  83. package/.cline/skills/survey-context/SKILL.md +135 -0
  84. package/.cline/skills/terse-mode/SKILL.md +42 -0
  85. package/.cline/skills/trace-requirement/SKILL.md +69 -0
  86. package/.cline/skills/using-bigpowers/SKILL.md +111 -0
  87. package/.cline/skills/validate-contracts/SKILL.md +286 -0
  88. package/.cline/skills/validate-fix/SKILL.md +147 -0
  89. package/.cline/skills/verify-work/SKILL.md +191 -0
  90. package/.cline/skills/visual-dashboard/SKILL.md +50 -0
  91. package/.cline/skills/wire-ci/SKILL.md +381 -0
  92. package/.cline/skills/wire-observability/SKILL.md +97 -0
  93. package/.cline/skills/write-document/SKILL.md +281 -0
  94. package/.codebuddy/skills/commit-message/SKILL.md +1 -1
  95. package/.codebuddy/skills/evolve-skill/SKILL.md +1 -1
  96. package/.codebuddy/skills/guard-git/SKILL.md +8 -8
  97. package/.codebuddy/skills/kickoff-branch/SKILL.md +1 -1
  98. package/.codebuddy/skills/migrate-spec/SKILL.md +52 -6
  99. package/.codebuddy/skills/plan-work/SKILL.md +17 -5
  100. package/.codebuddy/skills/publish-package/SKILL.md +15 -5
  101. package/.codebuddy/skills/release-branch/SKILL.md +12 -8
  102. package/.codebuddy/skills/seed-conventions/SKILL.md +20 -10
  103. package/.codebuddy/skills/smoke-test/SKILL.md +9 -5
  104. package/.codebuddy/skills/validate-contracts/SKILL.md +15 -6
  105. package/.codebuddy/skills/wire-ci/SKILL.md +12 -5
  106. package/.codebuddy/skills/write-document/SKILL.md +31 -5
  107. package/.codex/skills/commit-message/SKILL.md +1 -1
  108. package/.codex/skills/evolve-skill/SKILL.md +1 -1
  109. package/.codex/skills/guard-git/SKILL.md +8 -8
  110. package/.codex/skills/kickoff-branch/SKILL.md +1 -1
  111. package/.codex/skills/migrate-spec/SKILL.md +52 -6
  112. package/.codex/skills/plan-work/SKILL.md +17 -5
  113. package/.codex/skills/publish-package/SKILL.md +15 -5
  114. package/.codex/skills/release-branch/SKILL.md +12 -8
  115. package/.codex/skills/seed-conventions/SKILL.md +20 -10
  116. package/.codex/skills/smoke-test/SKILL.md +9 -5
  117. package/.codex/skills/validate-contracts/SKILL.md +15 -6
  118. package/.codex/skills/wire-ci/SKILL.md +12 -5
  119. package/.codex/skills/write-document/SKILL.md +31 -5
  120. package/.copilot/skills/align-grid/SKILL.md +110 -0
  121. package/.copilot/skills/assess-impact/SKILL.md +91 -0
  122. package/.copilot/skills/audit-code/SKILL.md +184 -0
  123. package/.copilot/skills/audit-plan/SKILL.md +89 -0
  124. package/.copilot/skills/build-epic/SKILL.md +105 -0
  125. package/.copilot/skills/change-request/SKILL.md +121 -0
  126. package/.copilot/skills/commit-message/SKILL.md +140 -0
  127. package/.copilot/skills/compose-workflow/SKILL.md +82 -0
  128. package/.copilot/skills/context7-mcp/SKILL.md +55 -0
  129. package/.copilot/skills/craft-skill/SKILL.md +196 -0
  130. package/.copilot/skills/deepen-architecture/SKILL.md +260 -0
  131. package/.copilot/skills/define-language/SKILL.md +80 -0
  132. package/.copilot/skills/define-success/SKILL.md +12 -0
  133. package/.copilot/skills/delegate-task/SKILL.md +91 -0
  134. package/.copilot/skills/deploy/SKILL.md +198 -0
  135. package/.copilot/skills/design-interface/SKILL.md +97 -0
  136. package/.copilot/skills/develop-tdd/SKILL.md +416 -0
  137. package/.copilot/skills/diagnose-root/SKILL.md +24 -0
  138. package/.copilot/skills/diagnose-stall/SKILL.md +54 -0
  139. package/.copilot/skills/dispatch-agents/SKILL.md +118 -0
  140. package/.copilot/skills/edit-document/SKILL.md +23 -0
  141. package/.copilot/skills/elaborate-spec/SKILL.md +101 -0
  142. package/.copilot/skills/enforce-first/SKILL.md +45 -0
  143. package/.copilot/skills/evolve-skill/SKILL.md +55 -0
  144. package/.copilot/skills/execute-plan/SKILL.md +61 -0
  145. package/.copilot/skills/extract-design/SKILL.md +132 -0
  146. package/.copilot/skills/find-way/SKILL.md +191 -0
  147. package/.copilot/skills/fix-bug/SKILL.md +67 -0
  148. package/.copilot/skills/gate-trace/SKILL.md +92 -0
  149. package/.copilot/skills/generate-allure-report/SKILL.md +285 -0
  150. package/.copilot/skills/grill-me/SKILL.md +108 -0
  151. package/.copilot/skills/grill-with-docs/SKILL.md +53 -0
  152. package/.copilot/skills/guard-git/SKILL.md +231 -0
  153. package/.copilot/skills/harden-vps/SKILL.md +291 -0
  154. package/.copilot/skills/hook-commits/SKILL.md +94 -0
  155. package/.copilot/skills/inspect-quality/SKILL.md +106 -0
  156. package/.copilot/skills/investigate-bug/SKILL.md +127 -0
  157. package/.copilot/skills/kickoff-branch/SKILL.md +143 -0
  158. package/.copilot/skills/maintain-wiki/SKILL.md +64 -0
  159. package/.copilot/skills/map-codebase/SKILL.md +71 -0
  160. package/.copilot/skills/migrate-spec/SKILL.md +908 -0
  161. package/.copilot/skills/model-domain/SKILL.md +232 -0
  162. package/.copilot/skills/orchestrate-project/SKILL.md +174 -0
  163. package/.copilot/skills/organize-workspace/SKILL.md +164 -0
  164. package/.copilot/skills/plan-refactor/SKILL.md +87 -0
  165. package/.copilot/skills/plan-release/SKILL.md +145 -0
  166. package/.copilot/skills/plan-tests/SKILL.md +75 -0
  167. package/.copilot/skills/plan-work/SKILL.md +272 -0
  168. package/.copilot/skills/publish-package/SKILL.md +338 -0
  169. package/.copilot/skills/quick-fix/SKILL.md +114 -0
  170. package/.copilot/skills/release-branch/SKILL.md +302 -0
  171. package/.copilot/skills/request-review/SKILL.md +113 -0
  172. package/.copilot/skills/research-first/SKILL.md +87 -0
  173. package/.copilot/skills/reset-baseline/SKILL.md +21 -0
  174. package/.copilot/skills/respond-review/SKILL.md +71 -0
  175. package/.copilot/skills/run-benchmark/SKILL.md +85 -0
  176. package/.copilot/skills/run-evals/SKILL.md +80 -0
  177. package/.copilot/skills/run-planning/SKILL.md +101 -0
  178. package/.copilot/skills/scope-work/SKILL.md +63 -0
  179. package/.copilot/skills/search-skills/SKILL.md +73 -0
  180. package/.copilot/skills/security-review/SKILL.md +384 -0
  181. package/.copilot/skills/seed-conventions/SKILL.md +312 -0
  182. package/.copilot/skills/session-state/SKILL.md +146 -0
  183. package/.copilot/skills/setup-environment/SKILL.md +39 -0
  184. package/.copilot/skills/simulate-agents/SKILL.md +26 -0
  185. package/.copilot/skills/slice-tasks/SKILL.md +68 -0
  186. package/.copilot/skills/smoke-test/SKILL.md +261 -0
  187. package/.copilot/skills/spike-prototype/SKILL.md +95 -0
  188. package/.copilot/skills/stocktake-skills/SKILL.md +74 -0
  189. package/.copilot/skills/survey-context/SKILL.md +135 -0
  190. package/.copilot/skills/terse-mode/SKILL.md +42 -0
  191. package/.copilot/skills/trace-requirement/SKILL.md +69 -0
  192. package/.copilot/skills/using-bigpowers/SKILL.md +111 -0
  193. package/.copilot/skills/validate-contracts/SKILL.md +286 -0
  194. package/.copilot/skills/validate-fix/SKILL.md +147 -0
  195. package/.copilot/skills/verify-work/SKILL.md +191 -0
  196. package/.copilot/skills/visual-dashboard/SKILL.md +50 -0
  197. package/.copilot/skills/wire-ci/SKILL.md +381 -0
  198. package/.copilot/skills/wire-observability/SKILL.md +97 -0
  199. package/.copilot/skills/write-document/SKILL.md +281 -0
  200. package/.hermes/skills/commit-message/SKILL.md +1 -1
  201. package/.hermes/skills/evolve-skill/SKILL.md +1 -1
  202. package/.hermes/skills/guard-git/SKILL.md +8 -8
  203. package/.hermes/skills/kickoff-branch/SKILL.md +1 -1
  204. package/.hermes/skills/migrate-spec/SKILL.md +52 -6
  205. package/.hermes/skills/plan-work/SKILL.md +17 -5
  206. package/.hermes/skills/publish-package/SKILL.md +15 -5
  207. package/.hermes/skills/release-branch/SKILL.md +12 -8
  208. package/.hermes/skills/seed-conventions/SKILL.md +20 -10
  209. package/.hermes/skills/smoke-test/SKILL.md +9 -5
  210. package/.hermes/skills/validate-contracts/SKILL.md +15 -6
  211. package/.hermes/skills/wire-ci/SKILL.md +12 -5
  212. package/.hermes/skills/write-document/SKILL.md +31 -5
  213. package/.kilocode/rules/commit-message.md +1 -1
  214. package/.kilocode/rules/evolve-skill.md +1 -1
  215. package/.kilocode/rules/guard-git.md +8 -8
  216. package/.kilocode/rules/kickoff-branch.md +1 -1
  217. package/.kilocode/rules/migrate-spec.md +52 -6
  218. package/.kilocode/rules/plan-work.md +17 -5
  219. package/.kilocode/rules/publish-package.md +15 -5
  220. package/.kilocode/rules/release-branch.md +12 -8
  221. package/.kilocode/rules/seed-conventions.md +20 -10
  222. package/.kilocode/rules/smoke-test.md +9 -5
  223. package/.kilocode/rules/validate-contracts.md +15 -6
  224. package/.kilocode/rules/wire-ci.md +12 -5
  225. package/.kilocode/rules/write-document.md +31 -5
  226. package/.mimocode/skills/commit-message/SKILL.md +1 -1
  227. package/.mimocode/skills/evolve-skill/SKILL.md +1 -1
  228. package/.mimocode/skills/guard-git/SKILL.md +8 -8
  229. package/.mimocode/skills/kickoff-branch/SKILL.md +1 -1
  230. package/.mimocode/skills/migrate-spec/SKILL.md +52 -6
  231. package/.mimocode/skills/plan-work/SKILL.md +17 -5
  232. package/.mimocode/skills/publish-package/SKILL.md +15 -5
  233. package/.mimocode/skills/release-branch/SKILL.md +12 -8
  234. package/.mimocode/skills/seed-conventions/SKILL.md +20 -10
  235. package/.mimocode/skills/smoke-test/SKILL.md +9 -5
  236. package/.mimocode/skills/validate-contracts/SKILL.md +15 -6
  237. package/.mimocode/skills/wire-ci/SKILL.md +12 -5
  238. package/.mimocode/skills/write-document/SKILL.md +31 -5
  239. package/.opencode/skills/align-grid/SKILL.md +110 -0
  240. package/.opencode/skills/assess-impact/SKILL.md +91 -0
  241. package/.opencode/skills/audit-code/SKILL.md +184 -0
  242. package/.opencode/skills/audit-plan/SKILL.md +89 -0
  243. package/.opencode/skills/build-epic/SKILL.md +105 -0
  244. package/.opencode/skills/change-request/SKILL.md +121 -0
  245. package/.opencode/skills/commit-message/SKILL.md +140 -0
  246. package/.opencode/skills/compose-workflow/SKILL.md +82 -0
  247. package/.opencode/skills/context7-mcp/SKILL.md +55 -0
  248. package/.opencode/skills/craft-skill/SKILL.md +196 -0
  249. package/.opencode/skills/deepen-architecture/SKILL.md +260 -0
  250. package/.opencode/skills/define-language/SKILL.md +80 -0
  251. package/.opencode/skills/define-success/SKILL.md +12 -0
  252. package/.opencode/skills/delegate-task/SKILL.md +91 -0
  253. package/.opencode/skills/deploy/SKILL.md +198 -0
  254. package/.opencode/skills/design-interface/SKILL.md +97 -0
  255. package/.opencode/skills/develop-tdd/SKILL.md +416 -0
  256. package/.opencode/skills/diagnose-root/SKILL.md +24 -0
  257. package/.opencode/skills/diagnose-stall/SKILL.md +54 -0
  258. package/.opencode/skills/dispatch-agents/SKILL.md +118 -0
  259. package/.opencode/skills/edit-document/SKILL.md +23 -0
  260. package/.opencode/skills/elaborate-spec/SKILL.md +101 -0
  261. package/.opencode/skills/enforce-first/SKILL.md +45 -0
  262. package/.opencode/skills/evolve-skill/SKILL.md +55 -0
  263. package/.opencode/skills/execute-plan/SKILL.md +61 -0
  264. package/.opencode/skills/extract-design/SKILL.md +132 -0
  265. package/.opencode/skills/find-way/SKILL.md +191 -0
  266. package/.opencode/skills/fix-bug/SKILL.md +67 -0
  267. package/.opencode/skills/gate-trace/SKILL.md +92 -0
  268. package/.opencode/skills/generate-allure-report/SKILL.md +285 -0
  269. package/.opencode/skills/grill-me/SKILL.md +108 -0
  270. package/.opencode/skills/grill-with-docs/SKILL.md +53 -0
  271. package/.opencode/skills/guard-git/SKILL.md +231 -0
  272. package/.opencode/skills/harden-vps/SKILL.md +291 -0
  273. package/.opencode/skills/hook-commits/SKILL.md +94 -0
  274. package/.opencode/skills/inspect-quality/SKILL.md +106 -0
  275. package/.opencode/skills/investigate-bug/SKILL.md +127 -0
  276. package/.opencode/skills/kickoff-branch/SKILL.md +143 -0
  277. package/.opencode/skills/maintain-wiki/SKILL.md +64 -0
  278. package/.opencode/skills/map-codebase/SKILL.md +71 -0
  279. package/.opencode/skills/migrate-spec/SKILL.md +908 -0
  280. package/.opencode/skills/model-domain/SKILL.md +232 -0
  281. package/.opencode/skills/orchestrate-project/SKILL.md +174 -0
  282. package/.opencode/skills/organize-workspace/SKILL.md +164 -0
  283. package/.opencode/skills/plan-refactor/SKILL.md +87 -0
  284. package/.opencode/skills/plan-release/SKILL.md +145 -0
  285. package/.opencode/skills/plan-tests/SKILL.md +75 -0
  286. package/.opencode/skills/plan-work/SKILL.md +272 -0
  287. package/.opencode/skills/publish-package/SKILL.md +338 -0
  288. package/.opencode/skills/quick-fix/SKILL.md +114 -0
  289. package/.opencode/skills/release-branch/SKILL.md +302 -0
  290. package/.opencode/skills/request-review/SKILL.md +113 -0
  291. package/.opencode/skills/research-first/SKILL.md +87 -0
  292. package/.opencode/skills/reset-baseline/SKILL.md +21 -0
  293. package/.opencode/skills/respond-review/SKILL.md +71 -0
  294. package/.opencode/skills/run-benchmark/SKILL.md +85 -0
  295. package/.opencode/skills/run-evals/SKILL.md +80 -0
  296. package/.opencode/skills/run-planning/SKILL.md +101 -0
  297. package/.opencode/skills/scope-work/SKILL.md +63 -0
  298. package/.opencode/skills/search-skills/SKILL.md +73 -0
  299. package/.opencode/skills/security-review/SKILL.md +384 -0
  300. package/.opencode/skills/seed-conventions/SKILL.md +312 -0
  301. package/.opencode/skills/session-state/SKILL.md +146 -0
  302. package/.opencode/skills/setup-environment/SKILL.md +39 -0
  303. package/.opencode/skills/simulate-agents/SKILL.md +26 -0
  304. package/.opencode/skills/slice-tasks/SKILL.md +68 -0
  305. package/.opencode/skills/smoke-test/SKILL.md +261 -0
  306. package/.opencode/skills/spike-prototype/SKILL.md +95 -0
  307. package/.opencode/skills/stocktake-skills/SKILL.md +74 -0
  308. package/.opencode/skills/survey-context/SKILL.md +135 -0
  309. package/.opencode/skills/terse-mode/SKILL.md +42 -0
  310. package/.opencode/skills/trace-requirement/SKILL.md +69 -0
  311. package/.opencode/skills/using-bigpowers/SKILL.md +111 -0
  312. package/.opencode/skills/validate-contracts/SKILL.md +286 -0
  313. package/.opencode/skills/validate-fix/SKILL.md +147 -0
  314. package/.opencode/skills/verify-work/SKILL.md +191 -0
  315. package/.opencode/skills/visual-dashboard/SKILL.md +50 -0
  316. package/.opencode/skills/wire-ci/SKILL.md +381 -0
  317. package/.opencode/skills/wire-observability/SKILL.md +97 -0
  318. package/.opencode/skills/write-document/SKILL.md +281 -0
  319. package/.pi/package.json +1 -1
  320. package/.pi/prompts/commit-message.md +1 -1
  321. package/.pi/prompts/evolve-skill.md +1 -1
  322. package/.pi/prompts/guard-git.md +8 -8
  323. package/.pi/prompts/kickoff-branch.md +1 -1
  324. package/.pi/prompts/migrate-spec.md +52 -6
  325. package/.pi/prompts/plan-work.md +17 -5
  326. package/.pi/prompts/publish-package.md +15 -5
  327. package/.pi/prompts/release-branch.md +12 -8
  328. package/.pi/prompts/seed-conventions.md +20 -10
  329. package/.pi/prompts/smoke-test.md +9 -5
  330. package/.pi/prompts/validate-contracts.md +15 -6
  331. package/.pi/prompts/wire-ci.md +12 -5
  332. package/.pi/prompts/write-document.md +31 -5
  333. package/.pi/skills/commit-message/SKILL.md +1 -1
  334. package/.pi/skills/evolve-skill/SKILL.md +1 -1
  335. package/.pi/skills/guard-git/SKILL.md +8 -8
  336. package/.pi/skills/kickoff-branch/SKILL.md +1 -1
  337. package/.pi/skills/migrate-spec/SKILL.md +52 -6
  338. package/.pi/skills/plan-work/SKILL.md +17 -5
  339. package/.pi/skills/publish-package/SKILL.md +15 -5
  340. package/.pi/skills/release-branch/SKILL.md +12 -8
  341. package/.pi/skills/seed-conventions/SKILL.md +20 -10
  342. package/.pi/skills/smoke-test/SKILL.md +9 -5
  343. package/.pi/skills/validate-contracts/SKILL.md +15 -6
  344. package/.pi/skills/wire-ci/SKILL.md +12 -5
  345. package/.pi/skills/write-document/SKILL.md +31 -5
  346. package/.qwen/skills/align-grid/SKILL.md +110 -0
  347. package/.qwen/skills/assess-impact/SKILL.md +91 -0
  348. package/.qwen/skills/audit-code/SKILL.md +184 -0
  349. package/.qwen/skills/audit-plan/SKILL.md +89 -0
  350. package/.qwen/skills/build-epic/SKILL.md +105 -0
  351. package/.qwen/skills/change-request/SKILL.md +121 -0
  352. package/.qwen/skills/commit-message/SKILL.md +140 -0
  353. package/.qwen/skills/compose-workflow/SKILL.md +82 -0
  354. package/.qwen/skills/context7-mcp/SKILL.md +55 -0
  355. package/.qwen/skills/craft-skill/SKILL.md +196 -0
  356. package/.qwen/skills/deepen-architecture/SKILL.md +260 -0
  357. package/.qwen/skills/define-language/SKILL.md +80 -0
  358. package/.qwen/skills/define-success/SKILL.md +12 -0
  359. package/.qwen/skills/delegate-task/SKILL.md +91 -0
  360. package/.qwen/skills/deploy/SKILL.md +198 -0
  361. package/.qwen/skills/design-interface/SKILL.md +97 -0
  362. package/.qwen/skills/develop-tdd/SKILL.md +416 -0
  363. package/.qwen/skills/diagnose-root/SKILL.md +24 -0
  364. package/.qwen/skills/diagnose-stall/SKILL.md +54 -0
  365. package/.qwen/skills/dispatch-agents/SKILL.md +118 -0
  366. package/.qwen/skills/edit-document/SKILL.md +23 -0
  367. package/.qwen/skills/elaborate-spec/SKILL.md +101 -0
  368. package/.qwen/skills/enforce-first/SKILL.md +45 -0
  369. package/.qwen/skills/evolve-skill/SKILL.md +55 -0
  370. package/.qwen/skills/execute-plan/SKILL.md +61 -0
  371. package/.qwen/skills/extract-design/SKILL.md +132 -0
  372. package/.qwen/skills/find-way/SKILL.md +191 -0
  373. package/.qwen/skills/fix-bug/SKILL.md +67 -0
  374. package/.qwen/skills/gate-trace/SKILL.md +92 -0
  375. package/.qwen/skills/generate-allure-report/SKILL.md +285 -0
  376. package/.qwen/skills/grill-me/SKILL.md +108 -0
  377. package/.qwen/skills/grill-with-docs/SKILL.md +53 -0
  378. package/.qwen/skills/guard-git/SKILL.md +231 -0
  379. package/.qwen/skills/harden-vps/SKILL.md +291 -0
  380. package/.qwen/skills/hook-commits/SKILL.md +94 -0
  381. package/.qwen/skills/inspect-quality/SKILL.md +106 -0
  382. package/.qwen/skills/investigate-bug/SKILL.md +127 -0
  383. package/.qwen/skills/kickoff-branch/SKILL.md +143 -0
  384. package/.qwen/skills/maintain-wiki/SKILL.md +64 -0
  385. package/.qwen/skills/map-codebase/SKILL.md +71 -0
  386. package/.qwen/skills/migrate-spec/SKILL.md +908 -0
  387. package/.qwen/skills/model-domain/SKILL.md +232 -0
  388. package/.qwen/skills/orchestrate-project/SKILL.md +174 -0
  389. package/.qwen/skills/organize-workspace/SKILL.md +164 -0
  390. package/.qwen/skills/plan-refactor/SKILL.md +87 -0
  391. package/.qwen/skills/plan-release/SKILL.md +145 -0
  392. package/.qwen/skills/plan-tests/SKILL.md +75 -0
  393. package/.qwen/skills/plan-work/SKILL.md +272 -0
  394. package/.qwen/skills/publish-package/SKILL.md +338 -0
  395. package/.qwen/skills/quick-fix/SKILL.md +114 -0
  396. package/.qwen/skills/release-branch/SKILL.md +302 -0
  397. package/.qwen/skills/request-review/SKILL.md +113 -0
  398. package/.qwen/skills/research-first/SKILL.md +87 -0
  399. package/.qwen/skills/reset-baseline/SKILL.md +21 -0
  400. package/.qwen/skills/respond-review/SKILL.md +71 -0
  401. package/.qwen/skills/run-benchmark/SKILL.md +85 -0
  402. package/.qwen/skills/run-evals/SKILL.md +80 -0
  403. package/.qwen/skills/run-planning/SKILL.md +101 -0
  404. package/.qwen/skills/scope-work/SKILL.md +63 -0
  405. package/.qwen/skills/search-skills/SKILL.md +73 -0
  406. package/.qwen/skills/security-review/SKILL.md +384 -0
  407. package/.qwen/skills/seed-conventions/SKILL.md +312 -0
  408. package/.qwen/skills/session-state/SKILL.md +146 -0
  409. package/.qwen/skills/setup-environment/SKILL.md +39 -0
  410. package/.qwen/skills/simulate-agents/SKILL.md +26 -0
  411. package/.qwen/skills/slice-tasks/SKILL.md +68 -0
  412. package/.qwen/skills/smoke-test/SKILL.md +261 -0
  413. package/.qwen/skills/spike-prototype/SKILL.md +95 -0
  414. package/.qwen/skills/stocktake-skills/SKILL.md +74 -0
  415. package/.qwen/skills/survey-context/SKILL.md +135 -0
  416. package/.qwen/skills/terse-mode/SKILL.md +42 -0
  417. package/.qwen/skills/trace-requirement/SKILL.md +69 -0
  418. package/.qwen/skills/using-bigpowers/SKILL.md +111 -0
  419. package/.qwen/skills/validate-contracts/SKILL.md +286 -0
  420. package/.qwen/skills/validate-fix/SKILL.md +147 -0
  421. package/.qwen/skills/verify-work/SKILL.md +191 -0
  422. package/.qwen/skills/visual-dashboard/SKILL.md +50 -0
  423. package/.qwen/skills/wire-ci/SKILL.md +381 -0
  424. package/.qwen/skills/wire-observability/SKILL.md +97 -0
  425. package/.qwen/skills/write-document/SKILL.md +281 -0
  426. package/.trae/skills/commit-message/SKILL.md +1 -1
  427. package/.trae/skills/evolve-skill/SKILL.md +1 -1
  428. package/.trae/skills/guard-git/SKILL.md +8 -8
  429. package/.trae/skills/kickoff-branch/SKILL.md +1 -1
  430. package/.trae/skills/migrate-spec/SKILL.md +52 -6
  431. package/.trae/skills/plan-work/SKILL.md +17 -5
  432. package/.trae/skills/publish-package/SKILL.md +15 -5
  433. package/.trae/skills/release-branch/SKILL.md +12 -8
  434. package/.trae/skills/seed-conventions/SKILL.md +20 -10
  435. package/.trae/skills/smoke-test/SKILL.md +9 -5
  436. package/.trae/skills/validate-contracts/SKILL.md +15 -6
  437. package/.trae/skills/wire-ci/SKILL.md +12 -5
  438. package/.trae/skills/write-document/SKILL.md +31 -5
  439. package/.windsurf/rules/commit-message.md +1 -1
  440. package/.windsurf/rules/evolve-skill.md +1 -1
  441. package/.windsurf/rules/guard-git.md +8 -8
  442. package/.windsurf/rules/kickoff-branch.md +1 -1
  443. package/.windsurf/rules/migrate-spec.md +52 -6
  444. package/.windsurf/rules/plan-work.md +17 -5
  445. package/.windsurf/rules/publish-package.md +15 -5
  446. package/.windsurf/rules/release-branch.md +12 -8
  447. package/.windsurf/rules/seed-conventions.md +20 -10
  448. package/.windsurf/rules/smoke-test.md +9 -5
  449. package/.windsurf/rules/validate-contracts.md +15 -6
  450. package/.windsurf/rules/wire-ci.md +12 -5
  451. package/.windsurf/rules/write-document.md +31 -5
  452. package/.zcode/skills/commit-message/SKILL.md +1 -1
  453. package/.zcode/skills/evolve-skill/SKILL.md +1 -1
  454. package/.zcode/skills/guard-git/SKILL.md +8 -8
  455. package/.zcode/skills/kickoff-branch/SKILL.md +1 -1
  456. package/.zcode/skills/migrate-spec/SKILL.md +52 -6
  457. package/.zcode/skills/plan-work/SKILL.md +17 -5
  458. package/.zcode/skills/publish-package/SKILL.md +15 -5
  459. package/.zcode/skills/release-branch/SKILL.md +12 -8
  460. package/.zcode/skills/seed-conventions/SKILL.md +20 -10
  461. package/.zcode/skills/smoke-test/SKILL.md +9 -5
  462. package/.zcode/skills/validate-contracts/SKILL.md +15 -6
  463. package/.zcode/skills/wire-ci/SKILL.md +12 -5
  464. package/.zcode/skills/write-document/SKILL.md +31 -5
  465. package/CHANGELOG.md +14 -0
  466. package/CONVENTIONS.md +2 -0
  467. package/package.json +1 -1
  468. package/scripts/adapters/agy.sh +3 -0
  469. package/scripts/adapters/continue.sh +3 -0
  470. package/scripts/adapters/cursor.sh +3 -0
  471. package/scripts/adapters/gemini.sh +5 -24
  472. package/scripts/adapters/mimo.sh +3 -0
  473. package/scripts/adapters/omp.sh +3 -0
  474. package/scripts/adapters/pi.sh +6 -3
  475. package/scripts/adapters/zcode.sh +3 -0
  476. package/scripts/adapters/zed.sh +3 -0
  477. package/scripts/generate-context-bundle.sh +6 -0
  478. package/scripts/generate-reference-nav.sh +89 -0
  479. package/scripts/generate-viz-graph.sh +4 -0
  480. package/scripts/generate-workflow-diagrams.sh +102 -0
  481. package/scripts/golden-g13-script-orphans.sh +167 -0
  482. package/scripts/golden-g14-adapter-dispatch.sh +113 -0
  483. package/scripts/golden-g15-compliance-runner-selftest.sh +126 -0
  484. package/scripts/golden-g16-spec-version-gap.sh +72 -0
  485. package/scripts/lib/__pycache__/link_utils.cpython-312.pyc +0 -0
  486. package/scripts/lib/__pycache__/srp_engine_links.cpython-312.pyc +0 -0
  487. package/scripts/lib/adapter-guard.sh +30 -0
  488. package/scripts/lib/audit-compliance-report.sh +32 -7
  489. package/scripts/lib/audit-compliance-runner.sh +14 -1
  490. package/scripts/lib/golden-suite-gates.sh +43 -3
  491. package/scripts/lib/install-targets-b.sh +0 -8
  492. package/scripts/lib/sync-render.sh +0 -43
  493. package/scripts/lib/test-assertions.sh +4 -0
  494. package/scripts/snapshot-catalog-baseline.sh +4 -0
  495. package/scripts/targets.yaml +35 -13
  496. package/scripts/test-adapter-render.sh +114 -0
  497. package/scripts/test-adapters.sh +10 -3
  498. package/scripts/test-completeness-critic-scope.sh +18 -19
  499. package/scripts/test-generate-epics-wiki-zero-stories.sh +12 -13
  500. package/scripts/test-golden-g11-worktree-venv.sh +16 -18
  501. package/scripts/test-install-distribute-only.sh +27 -26
  502. package/scripts/test-install-hub.sh +141 -0
  503. package/scripts/test-setup-no-pyyaml.sh +16 -17
  504. package/scripts/test-target-contracts.sh +15 -13
  505. package/scripts/test-tombstone-mechanism.sh +31 -33
  506. package/skills/commit-message/REFERENCE.md +1 -1
  507. package/skills/evolve-skill/REFERENCE.md +1 -1
  508. package/skills/guard-git/REFERENCE.md +8 -8
  509. package/skills/kickoff-branch/SKILL.md +1 -1
  510. package/skills/migrate-spec/REFERENCE.md +52 -6
  511. package/skills/plan-work/REFERENCE.md +17 -5
  512. package/skills/publish-package/REFERENCE.md +15 -5
  513. package/skills/release-branch/REFERENCE.md +12 -8
  514. package/skills/seed-conventions/REFERENCE.md +20 -10
  515. package/skills/smoke-test/REFERENCE.md +9 -5
  516. package/skills/validate-contracts/REFERENCE.md +15 -6
  517. package/skills/wire-ci/REFERENCE.md +12 -5
  518. package/skills/write-document/REFERENCE.md +31 -5
  519. package/skills-lock.json +1 -1
  520. package/scripts/add-model-frontmatter.sh +0 -32
  521. package/scripts/install-cursor-skills-local.sh +0 -15
  522. package/scripts/install-cursor-skills.sh +0 -24
  523. package/scripts/project-survey.sh +0 -63
  524. package/scripts/test-agy-hub.sh +0 -60
  525. package/scripts/test-cline-adapter.sh +0 -55
  526. package/scripts/test-cline-hub.sh +0 -48
  527. package/scripts/test-codebuddy-adapter.sh +0 -63
  528. package/scripts/test-codebuddy-hub.sh +0 -49
  529. package/scripts/test-codex-adapter.sh +0 -63
  530. package/scripts/test-codex-hub.sh +0 -49
  531. package/scripts/test-copilot-adapter.sh +0 -47
  532. package/scripts/test-copilot-hub.sh +0 -43
  533. package/scripts/test-gemini-adapter.sh +0 -70
  534. package/scripts/test-gemini-hub.sh +0 -56
  535. package/scripts/test-hermes-adapter.sh +0 -85
  536. package/scripts/test-hermes-hub.sh +0 -52
  537. package/scripts/test-kilocode-adapter.sh +0 -55
  538. package/scripts/test-kilocode-hub.sh +0 -48
  539. package/scripts/test-mimo-hub.sh +0 -52
  540. package/scripts/test-opencode-adapter.sh +0 -47
  541. package/scripts/test-opencode-hub.sh +0 -43
  542. package/scripts/test-qwen-adapter.sh +0 -63
  543. package/scripts/test-qwen-hub.sh +0 -49
  544. package/scripts/test-trae-adapter.sh +0 -63
  545. package/scripts/test-trae-hub.sh +0 -49
  546. package/scripts/test-windsurf-adapter.sh +0 -63
  547. package/scripts/test-windsurf-hub.sh +0 -49
  548. package/scripts/test-zcode-hub.sh +0 -52
@@ -5,11 +5,15 @@
5
5
  | Lines | Section |
6
6
  |-------|---------|
7
7
  | 1 | Title |
8
- | 3–12 | Navigation |
9
- | 14–31 | Runner script |
10
- | 33–42 | Configuration reference |
11
- | 44–53 | Verification |
12
- | 55–160 | Reference blocks 1–5 |
8
+ | 3–17 | Navigation |
9
+ | 18–34 | Runner script |
10
+ | 35–46 | Configuration reference |
11
+ | 47–55 | Verification |
12
+ | 56–89 | Reference block 1 |
13
+ | 90–107 | Reference block 2 |
14
+ | 108–122 | Reference block 3 |
15
+ | 123–159 | Reference block 4 |
16
+ | 160–177 | Reference block 5 |
13
17
 
14
18
  ## Runner script
15
19
 
@@ -5,12 +5,21 @@
5
5
  | Lines | Section |
6
6
  |-------|---------|
7
7
  | 1 | Title |
8
- | 3–14 | Navigation |
9
- | 16–24 | Integration |
10
- | 26–35 | Configuration |
11
- | 37–46 | Verification |
12
- | 48–170 | Reference blocks + Examples 1–6 |
13
- | 172–190 | Integration (duplicate) + Configuration + Verification |
8
+ | 3–23 | Navigation |
9
+ | 24–32 | Integration |
10
+ | 33–44 | Configuration |
11
+ | 45–54 | Verification |
12
+ | 55–71 | Reference block 1 |
13
+ | 72–92 | Reference block 2 |
14
+ | 93–104 | Example 1 |
15
+ | 105–121 | Example 2 |
16
+ | 122–133 | Example 3 |
17
+ | 134–144 | Example 4 |
18
+ | 145–165 | Example 5 |
19
+ | 166–176 | Example 6 |
20
+ | 177–185 | Integration |
21
+ | 186–197 | Configuration |
22
+ | 198–204 | Verification |
14
23
 
15
24
  ## Integration
16
25
 
@@ -5,11 +5,18 @@
5
5
  | Lines | Section |
6
6
  |-------|---------|
7
7
  | 1 | Title |
8
- | 3–14 | Navigation |
9
- | 16–38 | Examples |
10
- | 40–52 | Options |
11
- | 54–62 | Integration with build-epic |
12
- | 64–270 | Reference blocks 1–8 |
8
+ | 3–20 | Navigation |
9
+ | 21–22 | Examples |
10
+ | 23–39 | Create CI for a Go project (TBR + optional deploy) |
11
+ | 40–49 | Create CI for a CLI tool (TBR only, no deploy) |
12
+ | 50–57 | Validate existing workflows (no generation) |
13
+ | 58–70 | Options |
14
+ | 71–79 | Integration with build-epic |
15
+ | 80–154 | Reference block 1 — test-build-release.yml (Go, excerpt) |
16
+ | 155–204 | Reference block 2 — deploy.yml (generic web app, excerpt) |
17
+ | 205–232 | Reference block 3 — CLI dogfood (big-release pattern) |
18
+ | 233–257 | Reference block 4 — validate script |
19
+ | 258–268 | Reference block 5 — dry-run |
13
20
 
14
21
  ## Examples
15
22
 
@@ -7,10 +7,36 @@ Combined from dbader/readme-template and jehna/readme-best-practices. No TOC.
7
7
  | Lines | Section |
8
8
  |-------|---------|
9
9
  | 1 | Title |
10
- | 5–16 | Navigation |
11
- | 18–24 | Sections intro |
12
- | 26–178 | README section templates (1–15) |
13
- | 180–183 | Verify |
10
+ | 5–40 | Navigation |
11
+ | 41–42 | Sections |
12
+ | 43–54 | 1. Title + Badges |
13
+ | 55–60 | 2. Tagline |
14
+ | 61–64 | 3. Description |
15
+ | 65–67 | 4. Prerequisites |
16
+ | 68–75 | Prerequisites |
17
+ | 76–78 | 5. Installation |
18
+ | 79–89 | Installation |
19
+ | 90–92 | 6. Usage |
20
+ | 93–102 | Usage |
21
+ | 103–105 | 7. Features |
22
+ | 106–113 | Features |
23
+ | 114–116 | 8. Configuration |
24
+ | 117–125 | Configuration |
25
+ | 126–128 | 9. Development Setup |
26
+ | 129–139 | Development |
27
+ | 140–142 | 10. Running Tests |
28
+ | 143–152 | Tests |
29
+ | 153–155 | 11. Contributing |
30
+ | 156–164 | Contributing |
31
+ | 165–167 | 12. Changelog |
32
+ | 168–172 | Changelog |
33
+ | 173–175 | 13. Links |
34
+ | 176–181 | Links |
35
+ | 182–184 | 14. License |
36
+ | 185–191 | License |
37
+ | 192–194 | 15. Credits (optional) |
38
+ | 195–199 | Credits |
39
+ | 200–202 | Verify |
14
40
 
15
41
  ## Sections
16
42
 
@@ -168,7 +194,7 @@ Detect from CLAUDE.md or project LICENSE file.
168
194
  ```markdown
169
195
  ## Credits
170
196
 
171
- Built with [bigpowers](https://github.com/danielvm-git/bigpowers).
197
+ Built with [bigpowers](https://www.npmjs.com/package/bigpowers).
172
198
  ```
173
199
 
174
200
  ## Verify
package/skills-lock.json CHANGED
@@ -188,7 +188,7 @@
188
188
  },
189
189
  "kickoff-branch": {
190
190
  "description": "Create a git worktree and feature branch, then verify a clean test baseline before any code is written. Use when starting a new feature or task, when user wants to work in isolation from main, or mentions \"start a branch\" or \"new worktree\".",
191
- "sha256": "256eefc13f0ec022",
191
+ "sha256": "d94be12d4b29895b",
192
192
  "path": "skills/kickoff-branchSKILL.md"
193
193
  },
194
194
  "maintain-wiki": {
@@ -1,32 +0,0 @@
1
- #!/usr/bin/env bash
2
- # add-model-frontmatter.sh — one-time helper; idempotent model: injection
3
- set -euo pipefail
4
- # SKILLS_ROOT: use skills/ when it exists, fall back to repo root
5
- source "$(dirname "${BASH_SOURCE[0]}")/lib/skill-common.sh"
6
- resolve_repo_root
7
-
8
- # Bash 3.2-compatible model mapping (no declare -A)
9
- model_for() {
10
- case "$1" in
11
- survey-context|verify-work|validate-fix|audit-code|enforce-first|trace-requirement|commit-message|release-branch|kickoff-branch|guard-git|hook-commits|execute-plan|organize-workspace|terse-mode|session-state|search-skills|setup-environment|reset-baseline) echo "haiku" ;;
12
- elaborate-spec|grill-with-docs|design-interface|plan-work|request-review|evolve-skill) echo "opus" ;;
13
- *) echo "sonnet" ;;
14
- esac
15
- }
16
-
17
- for skill_dir in "$SKILLS_ROOT"/*/; do
18
- skill_md="$skill_dir/SKILL.md"
19
- [[ -f "$skill_md" ]] || continue
20
- name=$(basename "$skill_dir")
21
- model=$(model_for "$name")
22
- if grep -q '^model:' "$skill_md" 2>/dev/null; then
23
- continue
24
- fi
25
- # Insert model: after name: line in frontmatter
26
- awk -v m="$model" '
27
- /^---$/ { fm++; print; next }
28
- fm==1 && /^name:/ { print; print "model: " m; next }
29
- { print }
30
- ' "$skill_md" > "$skill_md.tmp" && mv "$skill_md.tmp" "$skill_md"
31
- echo "model: $model → $name"
32
- done
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env bash
2
- # story: e78
3
- # DEPRECATED wrapper — project-local Cursor rules symlink (not .cursor/skills copies).
4
- # Usage: ./scripts/install-cursor-skills-local.sh [INSTALL_ROOT]
5
- set -euo pipefail
6
-
7
- REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
8
- INSTALL_ROOT="$(cd "${1:-$PWD}" && pwd)"
9
- export TARGET_DIR="${TARGET_DIR:-$INSTALL_ROOT/.cursor/rules}"
10
- export SOURCE_DIR="${SOURCE_DIR:-$REPO_ROOT/.cursor/rules}"
11
-
12
- echo "NOTE: install-cursor-skills-local.sh is deprecated; prefer bigpowers setup (local) or:" >&2
13
- echo " ln -sfn $SOURCE_DIR $TARGET_DIR" >&2
14
-
15
- exec "$REPO_ROOT/scripts/install-cursor-skills.sh"
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env bash
2
- # story: e78
3
- # DEPRECATED wrapper — Cursor integration is Rules (.mdc), not ~/.cursor/skills copies.
4
- # Canonical install: bash scripts/install.sh OR node bin/setup.js (bigpowers setup)
5
- # This script now symlinks repo .cursor/rules → TARGET_DIR (default: ~/.cursor/rules).
6
- set -euo pipefail
7
-
8
- REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
9
- SOURCE_DIR="${SOURCE_DIR:-$REPO_ROOT/.cursor/rules}"
10
- TARGET_DIR="${TARGET_DIR:-$HOME/.cursor/rules}"
11
-
12
- echo "NOTE: install-cursor-skills.sh is deprecated; use scripts/install.sh or bigpowers setup." >&2
13
- echo " Redirecting to rules symlink: $TARGET_DIR → $SOURCE_DIR" >&2
14
-
15
- if [[ ! -d "$SOURCE_DIR" ]]; then
16
- echo "SOURCE_DIR missing: $SOURCE_DIR — run bash scripts/sync-skills.sh first" >&2
17
- exit 1
18
- fi
19
-
20
- mkdir -p "$(dirname "$TARGET_DIR")"
21
- ln -sfn "$SOURCE_DIR" "$TARGET_DIR"
22
- echo "Done. Linked $TARGET_DIR → $SOURCE_DIR"
23
- echo "NOTE: Cursor does not scan ~/.cursor/rules/ globally; also symlink into each project:"
24
- echo " ln -sfn $SOURCE_DIR .cursor/rules"
@@ -1,63 +0,0 @@
1
- #!/usr/bin/env bash
2
- # project-survey.sh — automated project status for session-start hooks
3
-
4
- set -euo pipefail
5
-
6
- # 1. Gather file existence info
7
- has_conventions=$([[ -f "CONVENTIONS.md" ]] && echo "true" || echo "false")
8
- has_claude=$([[ -f "CLAUDE.md" ]] && echo "true" || echo "false")
9
- has_specs=$([[ -d "specs" ]] && echo "true" || echo "false")
10
-
11
- # 2. Scan specs/ (YAML-first)
12
- specs_files=""
13
- if [[ "$has_specs" == "true" ]]; then
14
- specs_files=$( {
15
- ls specs/*.yaml 2>/dev/null || true
16
- ls specs/product/*.yaml 2>/dev/null || true
17
- ls specs/*.md 2>/dev/null || true
18
- } | xargs -n1 basename 2>/dev/null | sort -u | tr '\n' ',' | sed 's/,$//')
19
- fi
20
-
21
- # 3. Git state
22
- current_branch=$(git branch --show-current 2>/dev/null || echo "not-a-repo")
23
- git_status=$(git status --short 2>/dev/null | head -n 5 | tr '\n' ' ' | sed 's/"/\\"/g')
24
- recent_logs=$(git log --oneline -3 2>/dev/null | tr '\n' ' ' | sed 's/"/\\"/g')
25
-
26
- # 4. Phase mapping logic (YAML-first)
27
- phase="Discover"
28
- if [[ -f "specs/state.yaml" ]]; then
29
- flow=$(grep -E '^active_flow:' specs/state.yaml | sed 's/active_flow:[[:space:]]*//')
30
- case "$flow" in
31
- fix_bug) phase="Bug" ;;
32
- build_epic) phase="Execute" ;;
33
- planning) phase="Plan" ;;
34
- esac
35
- elif [[ -f "specs/release-plan.yaml" ]]; then
36
- phase="Plan"
37
- elif [[ -f "specs/product/SCOPE_LATEST.yaml" ]] || [[ -f "specs/SCOPE.md" ]]; then
38
- phase="Design"
39
- elif [[ "$current_branch" != "main" && "$current_branch" != "master" ]]; then
40
- phase="Initiate"
41
- fi
42
-
43
- if [[ -f "specs/DIAGNOSIS.md" ]]; then
44
- phase="Bug"
45
- fi
46
-
47
- # 5. Output concise text for context injection
48
- cat <<EOF
49
- [PROJECT SURVEY]
50
- Phase: $phase
51
- Branch: $current_branch
52
- Files: CONVENTIONS=$has_conventions, CLAUDE=$has_claude, SPECS=$has_specs
53
- Specs Found: $specs_files
54
- Git Status: $git_status
55
- Recent Logs: $recent_logs
56
-
57
- Welcome to Bigpowers. I have analyzed the project state.
58
- You are currently in the '$phase' phase on the '$current_branch' branch.
59
- EOF
60
-
61
- if [[ -f "specs/release-plan.yaml" ]]; then
62
- echo "release-plan.yaml found. Read specs/state.yaml for active epic/story."
63
- fi
@@ -1,60 +0,0 @@
1
- #!/usr/bin/env bash
2
- # story: e74s02
3
- # Regression tests for Antigravity CLI install hub wiring (Wave B).
4
- set -euo pipefail
5
-
6
- REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
7
- PASS=0
8
- FAIL=0
9
-
10
- pass() { echo "PASS: $1"; PASS=$((PASS + 1)); }
11
- fail() { echo "FAIL: $1" >&2; FAIL=$((FAIL + 1)); }
12
-
13
- echo "=== test-agy-hub.sh ==="
14
-
15
- INSTALL_SH="$REPO_ROOT/scripts/install.sh"
16
- source "$REPO_ROOT/scripts/lib/install-grep.sh"
17
- HELPERS_JS="$REPO_ROOT/scripts/lib/install-helpers.js"
18
- SETUP_JS="$REPO_ROOT/bin/setup.js"
19
- TARGETS_YAML="$REPO_ROOT/scripts/targets.yaml"
20
-
21
- install_grep -q 'install_agy()' && pass 'install.sh: install_agy()' || fail 'install.sh: missing install_agy()'
22
- install_grep -q 'install_antigravity()' && pass 'install.sh: install_antigravity alias' || fail 'install.sh: missing install_antigravity()'
23
- install_grep -q 'uninstall_agy()' && pass 'install.sh: uninstall_agy()' || fail 'install.sh: missing uninstall_agy()'
24
- install_grep -q 'uninstall_antigravity()' && pass 'install.sh: uninstall_antigravity alias' || fail 'install.sh: missing uninstall_antigravity()'
25
- install_grep -q 'AGY_SKILLS_DIR=' && pass 'install.sh: AGY_SKILLS_DIR' || fail 'install.sh: missing AGY_SKILLS_DIR'
26
- install_grep -q 'antigravity-cli/skills' && pass 'install.sh: antigravity-cli path' || fail 'install.sh: missing antigravity-cli path'
27
- install_grep -q 'install_agy' && install_grep -q 'uninstall_agy' && pass 'install.sh: dispatch wired' || fail 'install.sh: dispatch missing agy'
28
- ! grep -q '\.gemini/extensions/bigpowers' <<< "$(sed -n '/install_agy/,/^}/p' "$INSTALL_SH")" \
29
- && pass 'install.sh: no gemini extension path' || fail 'install.sh: touches gemini extension path'
30
-
31
- DRY_OUT="$(bash "$INSTALL_SH" --dry-run 2>&1)"
32
- grep -q 'Antigravity CLI →' <<< "$DRY_OUT" && pass 'dry-run: Antigravity CLI section' || fail 'dry-run: missing Antigravity CLI section'
33
- DRY_UNINSTALL="$(bash "$INSTALL_SH" --dry-run --uninstall 2>&1)"
34
- grep -q 'Antigravity CLI →' <<< "$DRY_UNINSTALL" && pass 'dry-run uninstall: Antigravity CLI section' || fail 'dry-run uninstall: missing Antigravity CLI section'
35
-
36
- grep -q "case 'antigravity'" "$HELPERS_JS" && pass 'install-helpers: antigravity case' || fail 'install-helpers: missing antigravity case'
37
- grep -q "case 'agy'" "$HELPERS_JS" && pass 'install-helpers: agy case' || fail 'install-helpers: missing agy case'
38
- grep -q "'antigravity-cli', 'skills'" "$HELPERS_JS" && pass 'install-helpers: antigravity-cli global path' || fail 'install-helpers: missing antigravity-cli path'
39
- grep -q "'\\.agents', 'skills'" "$HELPERS_JS" && pass 'install-helpers: .agents/skills local path' || fail 'install-helpers: missing .agents/skills path'
40
-
41
- SETUP_SRC="$(cat "$SETUP_JS")"
42
- echo "$SETUP_SRC" | grep -q "SUPPORTED_IDS = new Set" && pass 'setup.js: SUPPORTED_IDS set' || fail 'setup.js: missing SUPPORTED_IDS'
43
- echo "$SETUP_SRC" | grep -q "'antigravity'" && pass 'setup.js: antigravity in TOOLS/SUPPORTED_IDS' || fail 'setup.js: antigravity missing'
44
- echo "$SETUP_SRC" | grep -q "'agy'" && pass 'setup.js: agy in SUPPORTED_IDS' || fail 'setup.js: agy missing from SUPPORTED_IDS'
45
- echo "$SETUP_SRC" | grep -q 'antigravity-cli/skills' <<< "$DRY_OUT" && pass 'setup.js: antigravity-cli global path' || fail 'setup.js: wrong antigravity global path'
46
- echo "$SETUP_SRC" | grep -q "'\\.agents/skills'" && pass 'setup.js: .agents/skills local path' || fail 'setup.js: wrong antigravity local path'
47
-
48
- grep -q 'id: agy' "$TARGETS_YAML" && pass 'targets.yaml: agy row' || fail 'targets.yaml: missing agy row'
49
- grep -q 'adapter: agy' "$TARGETS_YAML" && pass 'targets.yaml: agy adapter' || fail 'targets.yaml: missing agy adapter'
50
- grep -q 'output: .agents/skills' "$TARGETS_YAML" && pass 'targets.yaml: agy output path' || fail 'targets.yaml: missing agy output'
51
- grep -q 'agy_skills_nonempty' "$TARGETS_YAML" && pass 'targets.yaml: agy contract' || fail 'targets.yaml: missing agy contract'
52
-
53
- grep -q 'install_agy()' "$REPO_ROOT/scripts/verify-install.sh" && pass 'verify-install: install_agy assertion' || fail 'verify-install: missing install_agy assertion'
54
-
55
- bash -n "$INSTALL_SH" && pass 'bash -n install.sh' || fail 'bash -n install.sh'
56
- node --check "$HELPERS_JS" && pass 'node --check install-helpers.js' || fail 'node --check install-helpers.js'
57
- node --check "$SETUP_JS" && pass 'node --check setup.js' || fail 'node --check setup.js'
58
-
59
- echo "test-agy-hub: $PASS passed, $FAIL failed"
60
- [[ "$FAIL" -eq 0 ]] || exit 1
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env bash
2
- # story: e66s01
3
- # scenario: SC-e66s01-P1-02
4
- # Regression tests for Cline adapter render + hook templates.
5
- set -euo pipefail
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
9
-
10
- PASS=0
11
- FAIL=0
12
-
13
- pass() { echo "PASS: $1"; PASS=$((PASS + 1)); }
14
- fail() { echo "FAIL: $1"; FAIL=$((FAIL + 1)); }
15
-
16
- echo "=== test-cline-adapter.sh ==="
17
-
18
- TMP=$(mktemp -d)
19
- trap 'rm -rf "$TMP"' EXIT
20
-
21
- if echo '{"name":"test-skill","description":"test desc","body":"test body"}' \
22
- | CLINE_SKILLS="$TMP" bash "$REPO_ROOT/scripts/adapters/cline.sh" \
23
- && [[ -f $TMP/test-skill/SKILL.md ]] \
24
- && grep -q 'name: test-skill' $TMP/test-skill/SKILL.md \
25
- && grep -q 'test body' $TMP/test-skill/SKILL.md; then
26
- pass "render_skill emits artifact from stdin SkillIR"
27
- else
28
- fail "render_skill emits artifact from stdin SkillIR"
29
- fi
30
-
31
- if ! echo '{"name":"../escape","description":"d","body":"b"}' \
32
- | CLINE_SKILLS="$TMP/bad" bash "$REPO_ROOT/scripts/adapters/cline.sh" 2>/dev/null; then
33
- pass "rejects path traversal in skill name"
34
- else
35
- fail "rejects path traversal in skill name"
36
- fi
37
-
38
- if [[ -f "$REPO_ROOT/scripts/hooks/cline/plugin/guard-git-plugin.ts" ]] \
39
- && [[ -f "$REPO_ROOT/scripts/hooks/cline/hooks-manifest.json" ]] \
40
- && grep -q 'registerHook' "$REPO_ROOT/scripts/hooks/cline/plugin/guard-git-plugin.ts"; then
41
- pass "plugin hook template present"
42
- else
43
- fail "plugin hook template present"
44
- fi
45
-
46
- ADAPTER_OUT=$(bash "$REPO_ROOT/scripts/test-adapters.sh" cline 2>&1 || true)
47
- if echo "$ADAPTER_OUT" | grep -q '0 failed'; then
48
- pass "test-adapters.sh cline"
49
- else
50
- fail "test-adapters.sh cline"
51
- echo "$ADAPTER_OUT"
52
- fi
53
-
54
- echo "test-cline-adapter: $PASS passed, $FAIL failed"
55
- [[ "$FAIL" -eq 0 ]] || exit 1
@@ -1,48 +0,0 @@
1
- #!/usr/bin/env bash
2
- # story: e66s02
3
- # Regression tests for Cline install hub wiring (Wave B).
4
- set -euo pipefail
5
-
6
- REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
7
- PASS=0
8
- FAIL=0
9
-
10
- pass() { echo "PASS: $1"; PASS=$((PASS + 1)); }
11
- fail() { echo "FAIL: $1" >&2; FAIL=$((FAIL + 1)); }
12
-
13
- echo "=== test-cline-hub.sh ==="
14
-
15
- INSTALL_SH="$REPO_ROOT/scripts/install.sh"
16
- source "$REPO_ROOT/scripts/lib/install-grep.sh"
17
- HELPERS_JS="$REPO_ROOT/scripts/lib/install-helpers.js"
18
- SETUP_JS="$REPO_ROOT/bin/setup.js"
19
- TARGETS_YAML="$REPO_ROOT/scripts/targets.yaml"
20
-
21
- install_grep -q 'install_cline()' && pass 'install.sh: install_cline()' || fail 'install.sh: missing install_cline()'
22
- install_grep -q 'uninstall_cline()' && pass 'install.sh: uninstall_cline()' || fail 'install.sh: missing uninstall_cline()'
23
- install_grep -q 'CLINE_SKILLS_DIR=' && pass 'install.sh: skills dir var' || fail 'install.sh: missing skills dir var'
24
- install_grep -q 'install_cline' && install_grep -q 'uninstall_cline' && pass 'install.sh: dispatch wired' || fail 'install.sh: dispatch missing cline'
25
-
26
- DRY_OUT="$(bash "$INSTALL_SH" --dry-run 2>&1)"
27
- grep -q 'Cline →' <<< "$DRY_OUT" && pass 'dry-run: Cline section' || fail 'dry-run: missing Cline section'
28
- DRY_UNINSTALL="$(bash "$INSTALL_SH" --dry-run --uninstall 2>&1)"
29
- grep -q 'Cline →' <<< "$DRY_UNINSTALL" && pass 'dry-run uninstall: Cline section' || fail 'dry-run uninstall: missing Cline section'
30
-
31
- grep -q "case 'cline'" "$HELPERS_JS" && pass 'install-helpers: cline case' || fail 'install-helpers: missing cline case'
32
- install_grep -q 'scripts/hooks/cline/plugin' && pass 'install.sh: plugin hook template' || fail 'install.sh: missing plugin template'
33
-
34
- SETUP_SRC="$(cat "$SETUP_JS")"
35
- echo "$SETUP_SRC" | grep -q "SUPPORTED_IDS = new Set" && pass 'setup.js: SUPPORTED_IDS set' || fail 'setup.js: missing SUPPORTED_IDS'
36
- grep -q "'cline'" <<< "$(sed -n "/SUPPORTED_IDS = new Set/,/);/p" "$SETUP_JS")" && pass 'setup.js: cline in SUPPORTED_IDS' || fail 'setup.js: cline not in SUPPORTED_IDS'
37
-
38
- grep -q 'id: cline' "$TARGETS_YAML" && pass 'targets.yaml: cline row' || fail 'targets.yaml: missing cline row'
39
- grep -q 'adapter: cline' "$TARGETS_YAML" && pass 'targets.yaml: cline adapter' || fail 'targets.yaml: missing cline adapter'
40
- grep -q 'cline_hooks_manifest' "$TARGETS_YAML" && pass 'targets.yaml: cline_hooks_manifest' || fail 'targets.yaml: missing cline_hooks_manifest'
41
- grep -q 'install_cline()' "$REPO_ROOT/scripts/verify-install.sh" && pass 'verify-install: install_cline assertion' || fail 'verify-install: missing install_cline assertion'
42
-
43
- bash -n "$INSTALL_SH" && pass 'bash -n install.sh' || fail 'bash -n install.sh'
44
- node --check "$HELPERS_JS" && pass 'node --check install-helpers.js' || fail 'node --check install-helpers.js'
45
- node --check "$SETUP_JS" && pass 'node --check setup.js' || fail 'node --check setup.js'
46
-
47
- echo "test-cline-hub: $PASS passed, $FAIL failed"
48
- [[ "$FAIL" -eq 0 ]] || exit 1
@@ -1,63 +0,0 @@
1
- #!/usr/bin/env bash
2
- # story: e72s01
3
- # scenario: SC-e72s01-P1-02
4
- # Regression tests for CodeBuddy adapter render + hook templates.
5
- set -euo pipefail
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
9
-
10
- PASS=0
11
- FAIL=0
12
-
13
- pass() { echo "PASS: $1"; PASS=$((PASS + 1)); }
14
- fail() { echo "FAIL: $1"; FAIL=$((FAIL + 1)); }
15
-
16
- echo "=== test-codebuddy-adapter.sh ==="
17
-
18
- TMP=$(mktemp -d)
19
- trap 'rm -rf "$TMP"' EXIT
20
-
21
- if echo '{"name":"test-skill","description":"test desc","body":"test body"}' \
22
- | CODEBUDDY_SKILLS="$TMP" bash "$REPO_ROOT/scripts/adapters/codebuddy.sh" \
23
- && [[ -f $TMP/test-skill/SKILL.md ]] \
24
- && grep -q 'name: test-skill' $TMP/test-skill/SKILL.md \
25
- && grep -q 'test body' $TMP/test-skill/SKILL.md; then
26
- pass "render_skill emits artifact from stdin SkillIR"
27
- else
28
- fail "render_skill emits artifact from stdin SkillIR"
29
- fi
30
-
31
- if ! echo '{"name":"../escape","description":"d","body":"b"}' \
32
- | CODEBUDDY_SKILLS="$TMP/bad" bash "$REPO_ROOT/scripts/adapters/codebuddy.sh" 2>/dev/null; then
33
- pass "rejects path traversal in skill name"
34
- else
35
- fail "rejects path traversal in skill name"
36
- fi
37
-
38
- if [[ -f "$REPO_ROOT/scripts/hooks/codebuddy/pre-tool-git-guard.sh" ]] \
39
- && [[ -f "$REPO_ROOT/scripts/hooks/codebuddy/hooks-manifest.json" ]] \
40
- && [[ -f "$REPO_ROOT/scripts/hooks/codebuddy/settings.example.json" ]]; then
41
- pass "hook template bundle present"
42
- else
43
- fail "hook template bundle present"
44
- fi
45
-
46
- BLOCK_OUT=$(echo '{"tool_input":{"command":"git push --force origin main"}}' \
47
- | bash "$REPO_ROOT/scripts/hooks/codebuddy/pre-tool-git-guard.sh")
48
- if echo "$BLOCK_OUT" | grep -q 'block'; then
49
- pass "pre-tool guard blocks dangerous command"
50
- else
51
- fail "pre-tool guard blocks dangerous command"
52
- fi
53
-
54
- ADAPTER_OUT=$(bash "$REPO_ROOT/scripts/test-adapters.sh" codebuddy 2>&1 || true)
55
- if echo "$ADAPTER_OUT" | grep -q '0 failed'; then
56
- pass "test-adapters.sh codebuddy"
57
- else
58
- fail "test-adapters.sh codebuddy"
59
- echo "$ADAPTER_OUT"
60
- fi
61
-
62
- echo "test-codebuddy-adapter: $PASS passed, $FAIL failed"
63
- [[ "$FAIL" -eq 0 ]] || exit 1
@@ -1,49 +0,0 @@
1
- #!/usr/bin/env bash
2
- # story: e72s02
3
- # Regression tests for CodeBuddy install hub wiring (Wave B).
4
- set -euo pipefail
5
-
6
- REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
7
- PASS=0
8
- FAIL=0
9
-
10
- pass() { echo "PASS: $1"; PASS=$((PASS + 1)); }
11
- fail() { echo "FAIL: $1" >&2; FAIL=$((FAIL + 1)); }
12
-
13
- echo "=== test-codebuddy-hub.sh ==="
14
-
15
- INSTALL_SH="$REPO_ROOT/scripts/install.sh"
16
- source "$REPO_ROOT/scripts/lib/install-grep.sh"
17
- HELPERS_JS="$REPO_ROOT/scripts/lib/install-helpers.js"
18
- SETUP_JS="$REPO_ROOT/bin/setup.js"
19
- TARGETS_YAML="$REPO_ROOT/scripts/targets.yaml"
20
-
21
- install_grep -q 'install_codebuddy()' && pass 'install.sh: install_codebuddy()' || fail 'install.sh: missing install_codebuddy()'
22
- install_grep -q 'uninstall_codebuddy()' && pass 'install.sh: uninstall_codebuddy()' || fail 'install.sh: missing uninstall_codebuddy()'
23
- install_grep -q 'CODEBUDDY_SKILLS_DIR=' && pass 'install.sh: skills dir var' || fail 'install.sh: missing skills dir var'
24
- install_grep -q 'install_codebuddy' && install_grep -q 'uninstall_codebuddy' && pass 'install.sh: dispatch wired' || fail 'install.sh: dispatch missing codebuddy'
25
-
26
- DRY_OUT="$(bash "$INSTALL_SH" --dry-run 2>&1)"
27
- grep -q 'CodeBuddy →' <<< "$DRY_OUT" && pass 'dry-run: CodeBuddy section' || fail 'dry-run: missing CodeBuddy section'
28
- DRY_UNINSTALL="$(bash "$INSTALL_SH" --dry-run --uninstall 2>&1)"
29
- grep -q 'CodeBuddy →' <<< "$DRY_UNINSTALL" && pass 'dry-run uninstall: CodeBuddy section' || fail 'dry-run uninstall: missing CodeBuddy section'
30
-
31
- grep -q "case 'codebuddy'" "$HELPERS_JS" && pass 'install-helpers: codebuddy case' || fail 'install-helpers: missing codebuddy case'
32
- install_grep -q 'CODEBUDDY_HOOK_SRC=' && pass 'install.sh: hook src' || fail 'install.sh: missing hook src'
33
- install_grep -q 'pre-tool-git-guard.sh' && pass 'install.sh: git-guard hook' || fail 'install.sh: missing git-guard hook'
34
-
35
- SETUP_SRC="$(cat "$SETUP_JS")"
36
- echo "$SETUP_SRC" | grep -q "SUPPORTED_IDS = new Set" && pass 'setup.js: SUPPORTED_IDS set' || fail 'setup.js: missing SUPPORTED_IDS'
37
- grep -q "'codebuddy'" <<< "$(sed -n "/SUPPORTED_IDS = new Set/,/);/p" "$SETUP_JS")" && pass 'setup.js: codebuddy in SUPPORTED_IDS' || fail 'setup.js: codebuddy not in SUPPORTED_IDS'
38
-
39
- grep -q 'id: codebuddy' "$TARGETS_YAML" && pass 'targets.yaml: codebuddy row' || fail 'targets.yaml: missing codebuddy row'
40
- grep -q 'adapter: codebuddy' "$TARGETS_YAML" && pass 'targets.yaml: codebuddy adapter' || fail 'targets.yaml: missing codebuddy adapter'
41
- grep -q 'codebuddy_hooks_manifest' "$TARGETS_YAML" && pass 'targets.yaml: codebuddy_hooks_manifest' || fail 'targets.yaml: missing codebuddy_hooks_manifest'
42
- grep -q 'install_codebuddy()' "$REPO_ROOT/scripts/verify-install.sh" && pass 'verify-install: install_codebuddy assertion' || fail 'verify-install: missing install_codebuddy assertion'
43
-
44
- bash -n "$INSTALL_SH" && pass 'bash -n install.sh' || fail 'bash -n install.sh'
45
- node --check "$HELPERS_JS" && pass 'node --check install-helpers.js' || fail 'node --check install-helpers.js'
46
- node --check "$SETUP_JS" && pass 'node --check setup.js' || fail 'node --check setup.js'
47
-
48
- echo "test-codebuddy-hub: $PASS passed, $FAIL failed"
49
- [[ "$FAIL" -eq 0 ]] || exit 1
@@ -1,63 +0,0 @@
1
- #!/usr/bin/env bash
2
- # story: e65s01
3
- # scenario: SC-e65s01-P1-02
4
- # Regression tests for Codex CLI adapter render + hook templates.
5
- set -euo pipefail
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
9
-
10
- PASS=0
11
- FAIL=0
12
-
13
- pass() { echo "PASS: $1"; PASS=$((PASS + 1)); }
14
- fail() { echo "FAIL: $1"; FAIL=$((FAIL + 1)); }
15
-
16
- echo "=== test-codex-adapter.sh ==="
17
-
18
- TMP=$(mktemp -d)
19
- trap 'rm -rf "$TMP"' EXIT
20
-
21
- if echo '{"name":"test-skill","description":"test desc","body":"test body"}' \
22
- | CODEX_SKILLS="$TMP" bash "$REPO_ROOT/scripts/adapters/codex.sh" \
23
- && [[ -f $TMP/test-skill/SKILL.md ]] \
24
- && grep -q 'name: test-skill' $TMP/test-skill/SKILL.md \
25
- && grep -q 'test body' $TMP/test-skill/SKILL.md; then
26
- pass "render_skill emits artifact from stdin SkillIR"
27
- else
28
- fail "render_skill emits artifact from stdin SkillIR"
29
- fi
30
-
31
- if ! echo '{"name":"../escape","description":"d","body":"b"}' \
32
- | CODEX_SKILLS="$TMP/bad" bash "$REPO_ROOT/scripts/adapters/codex.sh" 2>/dev/null; then
33
- pass "rejects path traversal in skill name"
34
- else
35
- fail "rejects path traversal in skill name"
36
- fi
37
-
38
- if [[ -f "$REPO_ROOT/scripts/hooks/codex/pre-tool-git-guard.sh" ]] \
39
- && [[ -f "$REPO_ROOT/scripts/hooks/codex/hooks-manifest.json" ]] \
40
- && [[ -f "$REPO_ROOT/scripts/hooks/codex/settings.example.json" ]]; then
41
- pass "hook template bundle present"
42
- else
43
- fail "hook template bundle present"
44
- fi
45
-
46
- BLOCK_OUT=$(echo '{"tool_input":{"command":"git push --force origin main"}}' \
47
- | bash "$REPO_ROOT/scripts/hooks/codex/pre-tool-git-guard.sh")
48
- if echo "$BLOCK_OUT" | grep -q 'block'; then
49
- pass "pre-tool guard blocks dangerous command"
50
- else
51
- fail "pre-tool guard blocks dangerous command"
52
- fi
53
-
54
- ADAPTER_OUT=$(bash "$REPO_ROOT/scripts/test-adapters.sh" codex 2>&1 || true)
55
- if echo "$ADAPTER_OUT" | grep -q '0 failed'; then
56
- pass "test-adapters.sh codex"
57
- else
58
- fail "test-adapters.sh codex"
59
- echo "$ADAPTER_OUT"
60
- fi
61
-
62
- echo "test-codex-adapter: $PASS passed, $FAIL failed"
63
- [[ "$FAIL" -eq 0 ]] || exit 1