cc-codeconductor 1.1.0 → 1.3.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 (355) hide show
  1. package/README.md +34 -12
  2. package/dist/core/config/codeconductor-config.d.ts +2 -1
  3. package/dist/core/presets/package-paths.d.ts +1 -0
  4. package/dist/core/runner/runner-target.d.ts +32 -0
  5. package/dist/core/verification/verification-runner.d.ts +7 -0
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +2934 -761
  8. package/dist/library.js +103 -14
  9. package/dist/validation/schemas.d.ts +294 -61
  10. package/package.json +4 -1
  11. package/presets/agy/AGENTS.md +11 -10
  12. package/presets/agy/hooks.json +3 -3
  13. package/presets/agy/scripts/invoke-hook.cjs +119 -0
  14. package/presets/agy/skills/backlog/SKILL.md +40 -70
  15. package/presets/agy/skills/cc-spec-mutation/SKILL.md +165 -0
  16. package/presets/agy/skills/cc-tdd-cycle/SKILL.md +3 -0
  17. package/presets/agy/skills/evaluation/SKILL.md +61 -2
  18. package/presets/agy/skills/openspec/SKILL.md +49 -19
  19. package/presets/agy/skills/testing-tdd/SKILL.md +53 -0
  20. package/presets/agy/skills/using-cc-skills/SKILL.md +48 -0
  21. package/presets/agy/workflows/cc-api-contract.md +18 -0
  22. package/presets/agy/workflows/cc-ask.md +10 -10
  23. package/presets/agy/workflows/cc-council.md +4 -0
  24. package/presets/agy/workflows/cc-db-migration.md +18 -0
  25. package/presets/agy/workflows/cc-explore.md +2 -2
  26. package/presets/agy/workflows/cc-feature.md +22 -0
  27. package/presets/agy/workflows/cc-fix.md +18 -0
  28. package/presets/agy/workflows/cc-handoff.md +1 -1
  29. package/presets/agy/workflows/cc-iterative.md +14 -0
  30. package/presets/agy/workflows/cc-openspec.md +14 -0
  31. package/presets/agy/workflows/cc-prototype.md +1 -1
  32. package/presets/agy/workflows/cc-refactor.md +5 -1
  33. package/presets/agy/workflows/cc-review.md +5 -1
  34. package/presets/agy/workflows/cc-scorecard.md +2 -0
  35. package/presets/agy/workflows/cc-security.md +4 -0
  36. package/presets/agy/workflows/cc-spec-mutation.md +195 -0
  37. package/presets/agy/workflows/cc-tdd-cycle.md +15 -1
  38. package/presets/agy/workflows/cc-test-plan.md +5 -1
  39. package/presets/claude/commands/cc/api-contract.md +19 -1
  40. package/presets/claude/commands/cc/ask.md +1 -1
  41. package/presets/claude/commands/cc/backlog.md +1 -1
  42. package/presets/claude/commands/cc/clarify.md +1 -1
  43. package/presets/claude/commands/cc/council.md +4 -0
  44. package/presets/claude/commands/cc/db-migration.md +19 -1
  45. package/presets/claude/commands/cc/explore.md +1 -1
  46. package/presets/claude/commands/cc/feature.md +23 -1
  47. package/presets/claude/commands/cc/fix.md +22 -1
  48. package/presets/claude/commands/cc/handoff.md +1 -1
  49. package/presets/claude/commands/cc/iterative.md +15 -1
  50. package/presets/claude/commands/cc/openspec.md +15 -1
  51. package/presets/claude/commands/cc/prototype.md +1 -1
  52. package/presets/claude/commands/cc/refactor.md +5 -1
  53. package/presets/claude/commands/cc/review.md +8 -1
  54. package/presets/claude/commands/cc/scorecard.md +3 -1
  55. package/presets/claude/commands/cc/security.md +5 -1
  56. package/presets/claude/commands/cc/spec-mutation.md +194 -0
  57. package/presets/claude/commands/cc/tdd-cycle.md +18 -1
  58. package/presets/claude/commands/cc/test-plan.md +5 -1
  59. package/presets/claude/commands/cc/triage.md +1 -1
  60. package/presets/claude/settings.json +13 -11
  61. package/presets/claude/skills/android/SKILL.md +0 -1
  62. package/presets/claude/skills/api-versioning/SKILL.md +0 -1
  63. package/presets/claude/skills/backlog/SKILL.md +40 -70
  64. package/presets/claude/skills/django-orm/SKILL.md +0 -1
  65. package/presets/claude/skills/django-testing/SKILL.md +0 -1
  66. package/presets/claude/skills/evaluation/SKILL.md +47 -24
  67. package/presets/claude/skills/jpa-postgres/SKILL.md +0 -1
  68. package/presets/claude/skills/openspec/SKILL.md +46 -38
  69. package/presets/claude/skills/pagespeed-perf/SKILL.md +1 -2
  70. package/presets/claude/skills/python/SKILL.md +0 -1
  71. package/presets/claude/skills/python-django-stack/SKILL.md +0 -1
  72. package/presets/claude/skills/python-fastapi-stack/SKILL.md +0 -1
  73. package/presets/claude/skills/security/SKILL.md +0 -1
  74. package/presets/claude/skills/spring-boot-feature/SKILL.md +0 -1
  75. package/presets/claude/skills/spring-boot-kotlin/SKILL.md +0 -1
  76. package/presets/claude/skills/sqlalchemy/SKILL.md +0 -1
  77. package/presets/claude/skills/testing-strategy/SKILL.md +0 -1
  78. package/presets/claude/skills/testing-tdd/SKILL.md +53 -0
  79. package/presets/claude/skills/using-cc-skills/SKILL.md +48 -0
  80. package/presets/codex/AGENTS.md +19 -14
  81. package/presets/codex/commands/cc-ask.md +10 -10
  82. package/presets/codex/skills/android/SKILL.md +0 -1
  83. package/presets/codex/skills/api-versioning/SKILL.md +0 -1
  84. package/presets/codex/skills/backlog/SKILL.md +61 -0
  85. package/presets/codex/skills/cc-api-contract/SKILL.md +91 -0
  86. package/presets/codex/skills/cc-backlog/SKILL.md +108 -0
  87. package/presets/codex/skills/cc-clarify/SKILL.md +36 -0
  88. package/presets/codex/skills/cc-council/SKILL.md +96 -0
  89. package/presets/codex/skills/cc-db-migration/SKILL.md +92 -0
  90. package/presets/codex/skills/cc-explore/SKILL.md +40 -0
  91. package/presets/codex/skills/cc-feature/SKILL.md +162 -0
  92. package/presets/codex/skills/cc-fix/SKILL.md +172 -0
  93. package/presets/codex/skills/cc-handoff/SKILL.md +45 -0
  94. package/presets/codex/skills/cc-iterative/SKILL.md +150 -0
  95. package/presets/codex/skills/cc-openspec/SKILL.md +191 -0
  96. package/presets/codex/skills/cc-pagespeed/SKILL.md +124 -0
  97. package/presets/codex/skills/cc-prototype/SKILL.md +42 -0
  98. package/presets/codex/skills/cc-refactor/SKILL.md +167 -0
  99. package/presets/codex/skills/cc-review/SKILL.md +156 -0
  100. package/presets/codex/skills/cc-scorecard/SKILL.md +82 -0
  101. package/presets/codex/skills/cc-security/SKILL.md +186 -0
  102. package/presets/codex/skills/cc-spec-mutation/SKILL.md +196 -0
  103. package/presets/codex/skills/cc-tdd-cycle/SKILL.md +266 -0
  104. package/presets/codex/skills/cc-test-plan/SKILL.md +157 -0
  105. package/presets/codex/skills/cc-triage/SKILL.md +38 -0
  106. package/presets/codex/skills/django-orm/SKILL.md +0 -1
  107. package/presets/codex/skills/django-testing/SKILL.md +0 -1
  108. package/presets/codex/skills/evaluation/SKILL.md +65 -0
  109. package/presets/codex/skills/jpa-postgres/SKILL.md +0 -1
  110. package/presets/codex/skills/openspec/SKILL.md +66 -0
  111. package/presets/codex/skills/pagespeed-perf/SKILL.md +1 -2
  112. package/presets/codex/skills/python/SKILL.md +0 -1
  113. package/presets/codex/skills/python-django-stack/SKILL.md +0 -1
  114. package/presets/codex/skills/python-fastapi-stack/SKILL.md +0 -1
  115. package/presets/codex/skills/spring-boot-feature/SKILL.md +0 -1
  116. package/presets/codex/skills/spring-boot-kotlin/SKILL.md +0 -1
  117. package/presets/codex/skills/sqlalchemy/SKILL.md +0 -1
  118. package/presets/codex/skills/testing-strategy/SKILL.md +0 -1
  119. package/presets/codex/skills/testing-tdd/SKILL.md +53 -0
  120. package/presets/codex/skills/using-cc-skills/SKILL.md +48 -0
  121. package/presets/cursor/agents/architect.md +1 -1
  122. package/presets/cursor/agents/complexity-auditor.md +1 -1
  123. package/presets/cursor/agents/contract-builder.md +1 -1
  124. package/presets/cursor/agents/docs.md +1 -1
  125. package/presets/cursor/agents/goal-planner.md +1 -1
  126. package/presets/cursor/agents/implementer.md +2 -2
  127. package/presets/cursor/agents/orchestrator.md +3 -3
  128. package/presets/cursor/agents/reviewer.md +4 -4
  129. package/presets/cursor/agents/security-reviewer.md +1 -1
  130. package/presets/cursor/agents/task-coach.md +1 -1
  131. package/presets/cursor/agents/tester.md +1 -1
  132. package/presets/cursor/commands/cc/api-contract.md +19 -1
  133. package/presets/cursor/commands/cc/ask.md +1 -1
  134. package/presets/cursor/commands/cc/backlog.md +1 -1
  135. package/presets/cursor/commands/cc/clarify.md +1 -1
  136. package/presets/cursor/commands/cc/council.md +4 -0
  137. package/presets/cursor/commands/cc/db-migration.md +19 -1
  138. package/presets/cursor/commands/cc/explore.md +1 -1
  139. package/presets/cursor/commands/cc/feature.md +23 -1
  140. package/presets/cursor/commands/cc/fix.md +22 -1
  141. package/presets/cursor/commands/cc/handoff.md +1 -1
  142. package/presets/cursor/commands/cc/iterative.md +15 -1
  143. package/presets/cursor/commands/cc/openspec.md +15 -1
  144. package/presets/cursor/commands/cc/prototype.md +1 -1
  145. package/presets/cursor/commands/cc/refactor.md +5 -1
  146. package/presets/cursor/commands/cc/review.md +5 -1
  147. package/presets/cursor/commands/cc/scorecard.md +3 -1
  148. package/presets/cursor/commands/cc/security.md +5 -1
  149. package/presets/cursor/commands/cc/spec-mutation.md +194 -0
  150. package/presets/cursor/commands/cc/tdd-cycle.md +15 -1
  151. package/presets/cursor/commands/cc/test-plan.md +5 -1
  152. package/presets/cursor/commands/cc/triage.md +1 -1
  153. package/presets/cursor/skills/android/SKILL.md +0 -1
  154. package/presets/cursor/skills/api-versioning/SKILL.md +0 -1
  155. package/presets/cursor/skills/astro/SKILL.md +0 -1
  156. package/presets/cursor/skills/auth-token-inspector/SKILL.md +0 -1
  157. package/presets/cursor/skills/backlog/SKILL.md +40 -70
  158. package/presets/cursor/skills/code-review/SKILL.md +0 -1
  159. package/presets/cursor/skills/django-orm/SKILL.md +0 -1
  160. package/presets/cursor/skills/django-testing/SKILL.md +0 -1
  161. package/presets/cursor/skills/django-uv/SKILL.md +0 -1
  162. package/presets/cursor/skills/drizzle-schema-architect/SKILL.md +0 -1
  163. package/presets/cursor/skills/evaluation/SKILL.md +61 -4
  164. package/presets/cursor/skills/fastapi-pydantic-strict/SKILL.md +0 -1
  165. package/presets/cursor/skills/jpa-nplusone-detector/SKILL.md +0 -1
  166. package/presets/cursor/skills/jpa-postgres/SKILL.md +0 -1
  167. package/presets/cursor/skills/livewire-alpine-bridge/SKILL.md +0 -1
  168. package/presets/cursor/skills/nextjs-typescript/SKILL.md +0 -1
  169. package/presets/cursor/skills/openspec/SKILL.md +46 -36
  170. package/presets/cursor/skills/pagespeed-perf/SKILL.md +1 -2
  171. package/presets/cursor/skills/python/SKILL.md +0 -1
  172. package/presets/cursor/skills/python-django-stack/SKILL.md +0 -1
  173. package/presets/cursor/skills/python-fastapi-stack/SKILL.md +0 -1
  174. package/presets/cursor/skills/security/SKILL.md +0 -1
  175. package/presets/cursor/skills/seo-analytics-injector/SKILL.md +0 -1
  176. package/presets/cursor/skills/spring-auth-auditor/SKILL.md +0 -1
  177. package/presets/cursor/skills/spring-boot-feature/SKILL.md +0 -1
  178. package/presets/cursor/skills/spring-boot-kotlin/SKILL.md +0 -1
  179. package/presets/cursor/skills/spring-boot-testing-strategy/SKILL.md +0 -1
  180. package/presets/cursor/skills/sqlalchemy/SKILL.md +0 -1
  181. package/presets/cursor/skills/tailwind-responsive-auditor/SKILL.md +0 -1
  182. package/presets/cursor/skills/tdd-mutation-tester/SKILL.md +0 -1
  183. package/presets/cursor/skills/testing-tdd/SKILL.md +35 -574
  184. package/presets/cursor/skills/using-cc-skills/SKILL.md +48 -0
  185. package/presets/gemini/GEMINI.md +38 -0
  186. package/presets/gemini/commands/cc/api-contract.toml +86 -0
  187. package/presets/gemini/commands/cc/ask.toml +54 -0
  188. package/presets/gemini/commands/cc/backlog.toml +103 -0
  189. package/presets/gemini/commands/cc/clarify.toml +31 -0
  190. package/presets/gemini/commands/cc/council.toml +91 -0
  191. package/presets/gemini/commands/cc/db-migration.toml +87 -0
  192. package/presets/gemini/commands/cc/explore.toml +35 -0
  193. package/presets/gemini/commands/cc/feature.toml +157 -0
  194. package/presets/gemini/commands/cc/fix.toml +167 -0
  195. package/presets/gemini/commands/cc/handoff.toml +40 -0
  196. package/presets/gemini/commands/cc/iterative.toml +145 -0
  197. package/presets/gemini/commands/cc/openspec.toml +186 -0
  198. package/presets/gemini/commands/cc/pagespeed.toml +119 -0
  199. package/presets/gemini/commands/cc/prototype.toml +37 -0
  200. package/presets/gemini/commands/cc/refactor.toml +162 -0
  201. package/presets/gemini/commands/cc/review.toml +151 -0
  202. package/presets/gemini/commands/cc/scorecard.toml +77 -0
  203. package/presets/gemini/commands/cc/security.toml +181 -0
  204. package/presets/gemini/commands/cc/spec-mutation.toml +191 -0
  205. package/presets/gemini/commands/cc/tdd-cycle.toml +261 -0
  206. package/presets/gemini/commands/cc/test-plan.toml +152 -0
  207. package/presets/gemini/commands/cc/triage.toml +33 -0
  208. package/presets/gemini/settings.json +3 -0
  209. package/presets/opencode/README.md +24 -21
  210. package/presets/opencode/agents/architect.md +6 -0
  211. package/presets/opencode/agents/docs.md +1 -1
  212. package/presets/opencode/agents/implementer.md +7 -0
  213. package/presets/opencode/agents/reviewer.md +7 -1
  214. package/presets/opencode/agents/tester.md +6 -0
  215. package/presets/opencode/commands/cc-api-contract.md +18 -0
  216. package/presets/opencode/commands/cc-ask.md +10 -10
  217. package/presets/opencode/commands/cc-council.md +4 -0
  218. package/presets/opencode/commands/cc-db-migration.md +18 -0
  219. package/presets/opencode/commands/cc-explore.md +2 -2
  220. package/presets/opencode/commands/cc-feature.md +22 -0
  221. package/presets/opencode/commands/cc-fix.md +21 -0
  222. package/presets/opencode/commands/cc-handoff.md +1 -1
  223. package/presets/opencode/commands/cc-iterative.md +14 -0
  224. package/presets/opencode/commands/cc-openspec.md +14 -0
  225. package/presets/opencode/commands/cc-prototype.md +1 -1
  226. package/presets/opencode/commands/cc-refactor.md +5 -1
  227. package/presets/opencode/commands/cc-review.md +5 -1
  228. package/presets/opencode/commands/cc-scorecard.md +2 -0
  229. package/presets/opencode/commands/cc-security.md +4 -0
  230. package/presets/opencode/commands/cc-spec-mutation.md +194 -0
  231. package/presets/opencode/commands/cc-tdd-cycle.md +15 -1
  232. package/presets/opencode/commands/cc-test-plan.md +5 -1
  233. package/presets/opencode/opencode.jsonc +1 -1
  234. package/presets/opencode/prompts/v1.0.0/README.md +1 -1
  235. package/presets/opencode/prompts/v1.0.0/architect.md +6 -0
  236. package/presets/opencode/prompts/v1.0.0/docs.md +1 -1
  237. package/presets/opencode/prompts/v1.0.0/implementer.md +7 -0
  238. package/presets/opencode/prompts/v1.0.0/reviewer.md +7 -1
  239. package/presets/opencode/prompts/v1.0.0/tester.md +6 -0
  240. package/presets/opencode/skills/android/SKILL.md +0 -1
  241. package/presets/opencode/skills/api-versioning/SKILL.md +0 -1
  242. package/presets/opencode/skills/astro/SKILL.md +0 -1
  243. package/presets/opencode/skills/auth-token-inspector/SKILL.md +0 -1
  244. package/presets/opencode/skills/backlog/SKILL.md +40 -70
  245. package/presets/opencode/skills/code-review/SKILL.md +0 -1
  246. package/presets/opencode/skills/django-orm/SKILL.md +0 -1
  247. package/presets/opencode/skills/django-testing/SKILL.md +0 -1
  248. package/presets/opencode/skills/django-uv/SKILL.md +0 -1
  249. package/presets/opencode/skills/drizzle-schema-architect/SKILL.md +0 -1
  250. package/presets/opencode/skills/evaluation/SKILL.md +61 -2
  251. package/presets/opencode/skills/fastapi-pydantic-strict/SKILL.md +0 -1
  252. package/presets/opencode/skills/jpa-nplusone-detector/SKILL.md +0 -1
  253. package/presets/opencode/skills/jpa-postgres/SKILL.md +0 -1
  254. package/presets/opencode/skills/livewire-alpine-bridge/SKILL.md +0 -1
  255. package/presets/opencode/skills/nextjs-typescript/SKILL.md +0 -1
  256. package/presets/opencode/skills/openspec/SKILL.md +46 -34
  257. package/presets/opencode/skills/pagespeed-perf/SKILL.md +1 -2
  258. package/presets/opencode/skills/python/SKILL.md +0 -1
  259. package/presets/opencode/skills/python-django-stack/SKILL.md +0 -1
  260. package/presets/opencode/skills/python-fastapi-stack/SKILL.md +0 -1
  261. package/presets/opencode/skills/security/SKILL.md +0 -1
  262. package/presets/opencode/skills/seo-analytics-injector/SKILL.md +0 -1
  263. package/presets/opencode/skills/spring-auth-auditor/SKILL.md +0 -1
  264. package/presets/opencode/skills/spring-boot-feature/SKILL.md +0 -1
  265. package/presets/opencode/skills/spring-boot-kotlin/SKILL.md +0 -1
  266. package/presets/opencode/skills/spring-boot-testing-strategy/SKILL.md +0 -1
  267. package/presets/opencode/skills/sqlalchemy/SKILL.md +0 -1
  268. package/presets/opencode/skills/tailwind-responsive-auditor/SKILL.md +0 -1
  269. package/presets/opencode/skills/tdd-mutation-tester/SKILL.md +0 -1
  270. package/presets/opencode/skills/testing-tdd/SKILL.md +35 -574
  271. package/presets/opencode/skills/using-cc-skills/SKILL.md +48 -0
  272. package/presets/pi/AGENTS.md +43 -0
  273. package/presets/pi/settings.json +3 -0
  274. package/presets/seo-hotel/skills/astro-seo/SKILL.md +0 -1
  275. package/presets/seo-hotel/skills/geo-readiness/SKILL.md +0 -1
  276. package/presets/seo-hotel/skills/off-page/SKILL.md +0 -1
  277. package/presets/seo-hotel/skills/schema-validator/SKILL.md +0 -1
  278. package/presets/seo-hotel/skills/seo-audit/SKILL.md +0 -1
  279. package/presets/shared/invoke-hook.cjs +119 -0
  280. package/presets/shared/mutation_runner.py +273 -0
  281. package/src/presets/council/council.yml +12 -9
  282. package/src/presets/manifests/agy.yml +3 -1
  283. package/src/presets/manifests/claude.yml +3 -0
  284. package/src/presets/manifests/gemini.yml +15 -0
  285. package/src/presets/manifests/pi.yml +25 -0
  286. package/src/presets/models/agy.yml +2 -128
  287. package/src/presets/models/claude.yml +2 -144
  288. package/src/presets/models/codex.yml +2 -144
  289. package/src/presets/models/cursor.yml +2 -144
  290. package/src/presets/models/gemini.yml +2 -144
  291. package/src/presets/models/opencode.yml +3 -101
  292. package/src/presets/models/pi.yml +5 -0
  293. package/src/presets/models/roles.yml +193 -0
  294. package/src/presets/shared-skills.yml +64 -0
  295. package/src/presets/targets/agy.yml +11 -0
  296. package/src/presets/targets/claude.yml +12 -0
  297. package/src/presets/targets/codex.yml +14 -0
  298. package/src/presets/targets/cursor.yml +11 -0
  299. package/src/presets/targets/gemini.yml +15 -0
  300. package/src/presets/targets/opencode.yml +13 -0
  301. package/src/presets/targets/pi.yml +12 -0
  302. package/presets/agy/scripts/post-tool.sh +0 -25
  303. package/presets/agy/scripts/pre-tool.sh +0 -56
  304. package/presets/opencode/prompts/v0.1.0/DEPRECATED.md +0 -11
  305. package/presets/opencode/prompts/v0.1.0/architect.md +0 -213
  306. package/presets/opencode/prompts/v0.1.0/docs.md +0 -181
  307. package/presets/opencode/prompts/v0.1.0/implementer.md +0 -154
  308. package/presets/opencode/prompts/v0.1.0/orchestrator.md +0 -169
  309. package/presets/opencode/prompts/v0.1.0/repo-explorer.md +0 -102
  310. package/presets/opencode/prompts/v0.1.0/reviewer.md +0 -183
  311. package/presets/opencode/prompts/v0.1.0/task-coach.md +0 -142
  312. package/presets/opencode/prompts/v0.1.0/tester.md +0 -160
  313. package/presets/opencode/prompts/v0.2.0/DEPRECATED.md +0 -11
  314. package/presets/opencode/prompts/v0.2.0/architect.md +0 -219
  315. package/presets/opencode/prompts/v0.2.0/docs.md +0 -187
  316. package/presets/opencode/prompts/v0.2.0/implementer.md +0 -160
  317. package/presets/opencode/prompts/v0.2.0/orchestrator.md +0 -238
  318. package/presets/opencode/prompts/v0.2.0/repo-explorer.md +0 -108
  319. package/presets/opencode/prompts/v0.2.0/reviewer.md +0 -190
  320. package/presets/opencode/prompts/v0.2.0/task-coach.md +0 -153
  321. package/presets/opencode/prompts/v0.2.0/tester.md +0 -249
  322. package/presets/opencode/prompts/v0.3.0/DEPRECATED.md +0 -11
  323. package/presets/opencode/prompts/v0.3.0/architect.md +0 -221
  324. package/presets/opencode/prompts/v0.3.0/docs.md +0 -189
  325. package/presets/opencode/prompts/v0.3.0/implementer.md +0 -162
  326. package/presets/opencode/prompts/v0.3.0/orchestrator.md +0 -360
  327. package/presets/opencode/prompts/v0.3.0/repo-explorer.md +0 -110
  328. package/presets/opencode/prompts/v0.3.0/reviewer.md +0 -225
  329. package/presets/opencode/prompts/v0.3.0/task-coach.md +0 -155
  330. package/presets/opencode/prompts/v0.3.0/tester.md +0 -251
  331. package/presets/opencode/prompts/v0.4.0/DEPRECATED.md +0 -11
  332. package/presets/opencode/prompts/v0.4.0/architect.md +0 -221
  333. package/presets/opencode/prompts/v0.4.0/complexity-auditor.md +0 -89
  334. package/presets/opencode/prompts/v0.4.0/docs.md +0 -189
  335. package/presets/opencode/prompts/v0.4.0/implementer.md +0 -162
  336. package/presets/opencode/prompts/v0.4.0/orchestrator.md +0 -348
  337. package/presets/opencode/prompts/v0.4.0/repo-explorer.md +0 -110
  338. package/presets/opencode/prompts/v0.4.0/reviewer.md +0 -225
  339. package/presets/opencode/prompts/v0.4.0/task-coach.md +0 -155
  340. package/presets/opencode/prompts/v0.4.0/tester.md +0 -251
  341. package/presets/opencode/prompts/v0.5.0/architect.md +0 -222
  342. package/presets/opencode/prompts/v0.5.0/complexity-auditor.md +0 -91
  343. package/presets/opencode/prompts/v0.5.0/contract-builder.md +0 -84
  344. package/presets/opencode/prompts/v0.5.0/docs.md +0 -190
  345. package/presets/opencode/prompts/v0.5.0/goal-planner.md +0 -80
  346. package/presets/opencode/prompts/v0.5.0/implementer.md +0 -171
  347. package/presets/opencode/prompts/v0.5.0/orchestrator.md +0 -388
  348. package/presets/opencode/prompts/v0.5.0/repo-explorer.md +0 -111
  349. package/presets/opencode/prompts/v0.5.0/reviewer.md +0 -248
  350. package/presets/opencode/prompts/v0.5.0/security-reviewer.md +0 -123
  351. package/presets/opencode/prompts/v0.5.0/task-coach.md +0 -156
  352. package/presets/opencode/prompts/v0.5.0/tester.md +0 -252
  353. package/presets/opencode/prompts/v0.6.0/implementer.md +0 -35
  354. package/presets/opencode/prompts/v0.6.0/planner.md +0 -36
  355. package/presets/opencode/prompts/v0.6.0/reviewer.md +0 -40
@@ -1,58 +1,66 @@
1
1
  ---
2
2
  name: openspec
3
3
  description:
4
- OpenSpec backlog format, state machine, and delivery workflow for CodeConductor.
5
- Use when running /cc:openspec or delivering a BACKLOG.md item.
6
- To create or append BACKLOG.md, use /cc:backlog (skill backlog).
4
+ Guides agents through OpenSpec delivery from BACKLOG.md (validate, analyze,
5
+ test-before-implement, scorecard, archive). Use when running /cc-openspec,
6
+ /cc:openspec, or delivering an existing backlog item. Authoring BACKLOG.md
7
+ is skill backlog, not this skill.
7
8
  ---
8
9
 
9
- # OpenSpec / BACKLOG Skill
10
+ # OpenSpec delivery
10
11
 
11
- Authoring (create or append `BACKLOG.md`, then `openspec validate` / `plan`) is
12
- `/cc:backlog` and skill `backlog`. This skill is **delivery**.
12
+ ## Overview
13
13
 
14
- ## BACKLOG.md contract
14
+ This skill delivers an existing `BACKLOG.md` item. It is a workflow with CLI
15
+ gates, not a reference doc. Specs describe WHAT; `design.md` describes HOW.
15
16
 
16
- `BACKLOG.md` at repo root is the operational queue. Required sections:
17
+ ## When to Use
17
18
 
18
- - `## Global` — Product, Strategy, Policy, Review required, TDD required
19
- - `## Items` — active backlog entries
20
- - `## Archive` — completed entries (do not re-execute)
19
+ - `/cc-openspec` or `openspec next` / `plan` / `done` / `archive`
20
+ - An item is `READY` or later and must move through the state machine
21
21
 
22
- Each item: `### BC-001 | Short title` with Priority (P0–P3), Status, Type, Depends on, Description, Scope, Out of scope, Acceptance (measurable checklist).
22
+ **NOT** for creating `BACKLOG.md` (use skill `backlog`) or for stack-specific
23
+ coding rules.
23
24
 
24
- ## Status machine
25
+ ## Process
25
26
 
26
- `TODO` → `READY` → `PLANNED` → `IN_PROGRESS` → `REVIEW` → `DONE` → Archive
27
+ Local CLI is `bun run dev`. Published package is `npx cc-codeconductor`.
27
28
 
28
- `BLOCKED` can return to `READY` when resolved. Reviewer rejection: `REVIEW` → `IN_PROGRESS`.
29
+ 1. `openspec validate` — must pass before delivery.
30
+ 2. `openspec plan BC-xxx` if the item is not yet `PLANNED`.
31
+ 3. `openspec analyze --output json` — CRITICAL findings exit 1. Do not implement.
32
+ 4. Phases: discover (`repo-explorer`) → design (`architect`) → test (`tester`) →
33
+ implement (`implementer`) → review (`reviewer`). If Global `TDD required: yes`,
34
+ test runs before implement.
35
+ 5. `openspec done` on test/implement requires `captureTddSuiteEvidence`. Handmade
36
+ evidence JSON is rejected.
37
+ 6. `scorecard create --task BC-xxx --from-diff` then record a verdict.
38
+ 7. `openspec archive` only after human review when `Review required: yes` and
39
+ the scorecard is PASS.
29
40
 
30
- ## CLI commands
41
+ Status machine: `TODO` → `READY` → `PLANNED` → `IN_PROGRESS` → `REVIEW` → `DONE`
42
+ → Archive. `BLOCKED` returns to `READY`. Reviewer rejection: `REVIEW` →
43
+ `IN_PROGRESS`.
31
44
 
32
- ```bash
33
- npx cc-codeconductor openspec validate # gate — must pass before delivery
34
- npx cc-codeconductor openspec scan
35
- npx cc-codeconductor openspec plan BC-001
36
- npx cc-codeconductor openspec status
37
- npx cc-codeconductor openspec next
38
- ```
45
+ ## Common Rationalizations
39
46
 
40
- ## OpenSpec folders
47
+ | Rationalization | Reality |
48
+ | --- | --- |
49
+ | Validate is bureaucracy | `openspec validate` is the gate. Skipping it is a defect. |
50
+ | I'll add tests after green | Global TDD required means tester before implementer. |
51
+ | I'll write the evidence JSON myself | Handmade TDD JSON is rejected. Use the verification runner. |
52
+ | The item is small; skip analyze | `openspec analyze` CRITICAL still stops implement. |
41
53
 
42
- Each item generates `openspec/changes/<slug>/` with `proposal.md`, `design.md`, `tasks.md`, `specs/` — compatible with Fission-AI OpenSpec layout (no external CLI required).
54
+ ## Red Flags
43
55
 
44
- ## Agent phases
56
+ - Implementing while analyze reports CRITICAL
57
+ - Archive without a PASS scorecard when review is required
58
+ - Acceptance like "improve UX" with no measurable check
45
59
 
46
- | Phase | Agent |
47
- |-------|-------|
48
- | discover | repo-explorer |
49
- | design | architect |
50
- | test | tester |
51
- | implement | implementer |
52
- | review | reviewer |
60
+ ## Verification
53
61
 
54
- When Global `TDD required: yes`, test runs before implement.
55
-
56
- ## Reject vague backlog
57
-
58
- Do not process items with acceptance like "improve UX" or "fix bugs". Require verifiable criteria.
62
+ - [ ] `openspec validate` exit 0
63
+ - [ ] `openspec analyze --output json` has no CRITICAL
64
+ - [ ] TDD evidence from the runner when TDD is required
65
+ - [ ] `scorecard create --from-diff` recorded
66
+ - [ ] Suite check (optional): `bun run dev scorecard suite-run --suite workflow-gates`
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: pagespeed-perf
3
- version: 1.0.0
4
3
  name: PageSpeed Performance Audit
5
4
  description: >
6
5
  Web Performance Engineering — analyzes Core Web Vitals using the PageSpeed
@@ -32,7 +31,7 @@ inputs:
32
31
  - name: url
33
32
  type: string
34
33
  required: true
35
- description: Full URL to audit (must include scheme: https://...)
34
+ description: "Full URL to audit (must include scheme: https://...)"
36
35
  - name: strategy
37
36
  type: string
38
37
  required: false
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: python
3
- version: 1.0.0
4
3
  name: Python
5
4
  description: >
6
5
  Python development best practices: clean code, patterns,
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: python-django-stack
3
- version: 1.0.0
4
3
  name: Python Django Stack
5
4
  description: >
6
5
  Python and Django conventions for multi-tenant SaaS POS projects:
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: python-fastapi-stack
3
- version: 1.0.0
4
3
  name: Python FastAPI Stack
5
4
  description: >
6
5
  FastAPI conventions for REST APIs: routers, Pydantic v2 schemas, dependency
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: security
3
- version: 1.0.0
4
3
  name: Security
5
4
  description: >
6
5
  Provides expert knowledge for implementing and reviewing application security following OWASP Top 10 (2021), with stack-specific patterns for Spring Boot, Django, Next.js, and Astro.
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: spring-boot-feature
3
- version: 1.0.0
4
3
  name: Spring Boot Feature Creation
5
4
  description: >
6
5
  Guides the creation of complete Spring Boot features following a structured,
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: spring-boot-kotlin
3
- version: 1.0.0
4
3
  name: Spring Boot + Kotlin
5
4
  description: >
6
5
  Provides expert knowledge of Spring Boot conventions, Kotlin idioms, and MVC
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: sqlalchemy
3
- version: 1.0.0
4
3
  name: SQLAlchemy
5
4
  description: >
6
5
  SQLAlchemy 2.x patterns for async FastAPI projects: models, sessions, queries,
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: testing-strategy
3
- version: 1.0.0
4
3
  name: Testing Strategy
5
4
  description: >
6
5
  Provides expert knowledge of the testing pyramid, test design principles,
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: testing-tdd
3
+ description:
4
+ Guides agents through Red-Green-Refactor with runner-captured evidence.
5
+ Use when running /cc-tdd-cycle, writing tests before implementation, or
6
+ Global TDD required is yes.
7
+ ---
8
+
9
+ # Test-Driven Development
10
+
11
+ ## Overview
12
+
13
+ Red (failing test) → Green (minimal code) → Refactor. Evidence comes from
14
+ `captureTddSuiteEvidence`, not handmade JSON.
15
+
16
+ ## When to Use
17
+
18
+ - `/cc-tdd-cycle`, new behavior, bug fixes, TDD-required OpenSpec items
19
+
20
+ **NOT** for docs-only changes or when the Task Card forbids tests.
21
+
22
+ ## Process
23
+
24
+ 1. Write the failing test that encodes one acceptance criterion. Run the suite.
25
+ It MUST fail (`suiteFails === true`).
26
+ 2. Implement the minimum that turns it green. Do not expand scope.
27
+ 3. Refactor only with a green suite.
28
+ 4. Capture evidence via the verification runner (`openspec done` on test/implement
29
+ when TDD is required).
30
+ 5. Cover happy path, edge, and error for each behavior.
31
+
32
+ Local: `bun run dev`. Pyramid default: many unit, fewer integration, rare E2E.
33
+
34
+ ## Common Rationalizations
35
+
36
+ | Rationalization | Reality |
37
+ | --- | --- |
38
+ | I'll add tests later | Later means never. Red first. |
39
+ | This is too small to test | If it can break, it needs a failing test first. |
40
+ | I'll write the evidence JSON | Handmade TDD JSON is rejected. |
41
+
42
+ ## Red Flags
43
+
44
+ - Tests that assert implementation details instead of behavior
45
+ - Green without a recorded red
46
+ - Skipping error cases
47
+
48
+ ## Verification
49
+
50
+ - [ ] Suite failed before implement
51
+ - [ ] Suite passed after implement
52
+ - [ ] Runner evidence exists (not handmade)
53
+ - [ ] Optional: `bun run dev scorecard suite-run --suite workflow-gates`
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: using-cc-skills
3
+ description:
4
+ Maps incoming work to the CodeConductor slash command and workflow skill.
5
+ Use when starting a session or deciding which /cc-* command applies.
6
+ ---
7
+
8
+ # Using CodeConductor skills
9
+
10
+ ## Overview
11
+
12
+ Pick one slash command. Follow its skill. Invoke CLI for gates. Do not invent
13
+ a parallel process.
14
+
15
+ ## When to Use
16
+
17
+ - Start of a session, ambiguous request, or "which /cc should I run?"
18
+
19
+ ## Process
20
+
21
+ | Intent | Command | Skill |
22
+ | --- | --- | --- |
23
+ | New backlog item | `/cc-backlog` | `backlog` |
24
+ | Deliver a BC-xxx item | `/cc-openspec` | `openspec` |
25
+ | New feature | `/cc-feature` | `openspec` + `testing-tdd` |
26
+ | Bug fix | `/cc-fix` | `testing-tdd` |
27
+ | Review a diff | `/cc-review` | `evaluation` |
28
+ | TDD cycle only | `/cc-tdd-cycle` | `testing-tdd` |
29
+ | Scorecard / suites | `/cc-scorecard` | `evaluation` |
30
+
31
+ Then run the matching CLI (`openspec validate`, `scorecard create --from-diff`,
32
+ `hook pre-tool`, `scorecard suite-run`).
33
+
34
+ ## Common Rationalizations
35
+
36
+ | Rationalization | Reality |
37
+ | --- | --- |
38
+ | I'll skip the slash and just code | Skipping the workflow is a defect. |
39
+
40
+ ## Red Flags
41
+
42
+ - Two slash commands in parallel that mutate the same files
43
+ - Implementing before `openspec analyze` when a change folder is active
44
+
45
+ ## Verification
46
+
47
+ - [ ] One command selected and shown to the user
48
+ - [ ] Matching skill loaded before edits
@@ -64,20 +64,24 @@ Skipping any step is not an optimization. It is a defect.
64
64
 
65
65
  ## Trigger Phrases
66
66
 
67
- Codex does not load custom slash commands from this preset. Use these natural
68
- language patterns to activate each workflow:
67
+ Invoke workflows as Codex skills (`$cc-feature`, `$cc-openspec`, …). Custom
68
+ prompts under `~/.codex/prompts` are deprecated. Natural-language phrases still
69
+ work:
69
70
 
70
- | Workflow | Trigger phrase |
71
+ | Workflow | Skill / trigger |
71
72
  | ------------ | -------------------------------------------------- |
72
- | Full feature | "Run the feature workflow for: [description]" |
73
- | Bug fix | "Run the fix workflow for: [description]" |
74
- | Refactor | "Run the refactor workflow for: [scope]" |
75
- | API contract | "Run the API contract workflow for: [change]" |
76
- | DB migration | "Run the database migration workflow for: [scope]" |
77
- | Code review | "Run a structured review of: [target]" |
78
- | Test plan | "Create a test plan for: [scope]" |
79
- | Task intake | "Help me define a Task Card for: [vague request]" |
80
- | PageSpeed | "Run a PageSpeed audit for: [url]" |
73
+ | Full feature | `$cc-feature` or "Run the feature workflow for:" |
74
+ | Bug fix | `$cc-fix` |
75
+ | Refactor | `$cc-refactor` |
76
+ | API contract | `$cc-api-contract` |
77
+ | DB migration | `$cc-db-migration` |
78
+ | Code review | `$cc-review` |
79
+ | Test plan | `$cc-test-plan` |
80
+ | TDD cycle | `$cc-tdd-cycle` |
81
+ | Backlog | `$cc-backlog` |
82
+ | OpenSpec | `$cc-openspec` |
83
+ | Scorecard | `$cc-scorecard` |
84
+ | PageSpeed | `$cc-pagespeed` or "PageSpeed audit" |
81
85
 
82
86
  ---
83
87
 
@@ -1036,11 +1040,12 @@ Contract version:** v0.1.0 **Date:** [YYYY-MM-DD] **Evaluator:** [human name or
1036
1040
  | --- | --------------------------------- | ------ | ----------- | ----- |
1037
1041
  | 1 | Acceptance criteria met | 30% | | |
1038
1042
  | 2 | Minimal diff (no scope creep) | 20% | | |
1039
- | 3 | Tests present and passing | 20% | | |
1043
+ | 3 | Tests present and passing | 15% | | |
1040
1044
  | 4 | No regressions introduced | 15% | | |
1041
- | 5 | Code follows project conventions | 10% | | |
1045
+ | 5 | Code follows project conventions | 5% | | |
1042
1046
  | 6 | Documentation updated if required | 5% | | |
1043
1047
  | 7 | Context discipline | 5% | | |
1048
+ | 8 | Complexity diffusion (cc-gain) | 5% | | |
1044
1049
 
1045
1050
  **Weighted score:** [calculated] **Pass threshold:** 2.0
1046
1051
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: >-
3
- [cc: alias] Recommend one CodeConductor slash command from a natural-language
3
+ Recommend one CodeConductor slash command from a natural-language
4
4
  problem. Does not start that workflow.
5
5
  ---
6
6
 
@@ -9,7 +9,7 @@ description: >-
9
9
  Problem: $ARGUMENTS
10
10
 
11
11
  This is a **router**, not a delivery workflow. Recommend exactly one command.
12
- Do **not** run the recommended `/cc:` command unless the human confirms.
12
+ Do **not** run the recommended `$cc-` command unless the human confirms.
13
13
 
14
14
  ---
15
15
 
@@ -31,13 +31,13 @@ The catalog is only:
31
31
 
32
32
  | Slash | When |
33
33
  | ----- | ---- |
34
- | `/cc:feature` | new behavior |
35
- | `/cc:fix` | bug / regression |
36
- | `/cc:refactor` | structure, no behavior change |
37
- | `/cc:review` | inspect a diff/PR |
38
- | `/cc:tdd-cycle` | red → green → refactor |
39
- | `/cc:backlog` | create or append BACKLOG.md / objectives |
40
- | `/cc:openspec` | BACKLOG / BC-xxx delivery |
34
+ | `$cc-feature` | new behavior |
35
+ | `$cc-fix` | bug / regression |
36
+ | `$cc-refactor` | structure, no behavior change |
37
+ | `$cc-review` | inspect a diff/PR |
38
+ | `$cc-tdd-cycle` | red → green → refactor |
39
+ | `$cc-backlog` | create or append BACKLOG.md / objectives |
40
+ | `$cc-openspec` | BACKLOG / BC-xxx delivery |
41
41
 
42
42
  If the CLI is unavailable, apply the same catalog and the same priority:
43
43
  backlog (author) vs openspec (deliver) → tdd-cycle → review → refactor → fix → feature (default).
@@ -53,4 +53,4 @@ Print:
53
53
 
54
54
  **STOP.** Wait for the human. Do not invoke the recommended workflow.
55
55
 
56
- For a full preset inventory (skills, commands on disk), use `/cc:help` / `cc-help`.
56
+ For a full preset inventory (skills, commands on disk), use `$cc-help` / `cc-help`.
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: android
3
- version: 1.0.0
4
3
  name: Android + Kotlin (Jetpack Compose & Media3)
5
4
  description: >
6
5
  Provides expert knowledge for building modern native Android apps using Kotlin, Jetpack Compose, Material Design 3, MVI architecture, Hilt dependency injection, and Media3/ExoPlayer.
@@ -1,6 +1,5 @@
1
1
  ---
2
2
  id: api-versioning
3
- version: 1.0.0
4
3
  name: API Versioning
5
4
  description: >
6
5
  Provides expert knowledge for designing, implementing, and managing REST API
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: backlog
3
+ description: >
4
+ Guides agents through authoring BACKLOG.md and OpenSpec change folders.
5
+ Use when running /cc-backlog or /cc:backlog, creating or appending backlog
6
+ items, or preparing work for /cc-openspec. Delivery is skill openspec.
7
+ ---
8
+
9
+ # Backlog authoring
10
+
11
+ ## Overview
12
+
13
+ Create or append `BACKLOG.md`, then `openspec validate` / `plan`. Do not deliver
14
+ the item here.
15
+
16
+ ## When to Use
17
+
18
+ - `/cc-backlog`, first backlog in a repo, or appending `### BC-xxx` items
19
+
20
+ **NOT** for executing an item (`openspec`) or for scorecards (`evaluation`).
21
+
22
+ ## Process
23
+
24
+ 1. If `graphify-out/graph.json` exists, `graphify query "<objectives>"`. Then
25
+ `repo-explorer`. Scope names real files.
26
+ 2. Invoke `task-coach`. One grilling question per assumption. Reject vague
27
+ acceptance ("improve UX"). At most 3 `[NEEDS CLARIFICATION]`.
28
+ 3. `ccep evaluate --command backlog`. If `stop`, wait for the human.
29
+ 4. Create `BACKLOG.md` from `presets/templates/BACKLOG.md` or append under
30
+ `## Items`. Do not rewrite `## Global` or `## Archive`.
31
+ 5. Next ID = max numeric suffix in Items + Archive + 1, zero-padded (`BC-013`).
32
+ 6. `bun run dev openspec validate` (or `npx cc-codeconductor`). Fix until valid.
33
+ 7. `openspec plan BC-xxx` for each **new** item this run. Then tell the user
34
+ to run `/cc-openspec`.
35
+
36
+ Required sections: `## Global`, `## Items`, `## Archive`. Each item:
37
+ `### BC-001 | Title` with Priority, Status (`READY` after grilling), Type,
38
+ Depends on, Description, Scope, Out of scope, Acceptance.
39
+
40
+ Local artifacts (`BACKLOG.md`, `openspec/`, `.codeconductor/openspec-state.json`)
41
+ are gitignored in consumer projects. Do not `git add` them.
42
+
43
+ ## Common Rationalizations
44
+
45
+ | Rationalization | Reality |
46
+ | --- | --- |
47
+ | This fix is small; skip the Task Card | Every item needs measurable acceptance. |
48
+ | I'll validate later | Do not plan until `openspec validate` passes. |
49
+ | Archive can be rewritten | Archive is history. Never rewrite or re-execute. |
50
+
51
+ ## Red Flags
52
+
53
+ - Acceptance that cannot fail a check
54
+ - Editing `openspec-state.json` by hand
55
+ - Planning an invalid backlog
56
+
57
+ ## Verification
58
+
59
+ - [ ] `openspec validate` exit 0
60
+ - [ ] New items have `FR`/`SC`-ready measurable acceptance
61
+ - [ ] User pointed at `/cc-openspec` for delivery
@@ -0,0 +1,91 @@
1
+ ---
2
+ name: cc-api-contract
3
+ description: Run the API contract workflow for public interface changes, compatibility constraints, contract tests, documentation, and review.
4
+ ---
5
+
6
+ # api-contract
7
+
8
+ Invoke as `$cc-api-contract`. The user request follows the skill mention.
9
+
10
+ # API Contract Workflow
11
+
12
+ API contract request: $ARGUMENTS
13
+
14
+ ## Step 0 — CCEP Bootstrap
15
+
16
+ Command: `api-contract` (fixed for this workflow — do not infer from user text)
17
+
18
+ 1. Run: `npx cc-codeconductor ccep parse --command api-contract "$ARGUMENTS" --output json`
19
+ 2. Run: `npx cc-codeconductor ccep resolve --command api-contract "$ARGUMENTS" --output json`
20
+ 3. Run: `npx cc-codeconductor ccep profile api-contract --output json`
21
+ 4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command api-contract --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
22
+ 5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
23
+
24
+ ---
25
+
26
+ ## Step 0b — OpenSpec quality gates
27
+
28
+ If `openspec status` reports an active change folder:
29
+
30
+ 1. Run: `npx cc-codeconductor openspec validate --output json`
31
+ 2. Run: `npx cc-codeconductor openspec analyze --output json`
32
+ 3. If analyze `stop` is true or any finding is CRITICAL, stop. Do not delegate to implementer.
33
+ 4. Next command spelling on this runner: `$cc-api-contract`
34
+
35
+ Local development: `bun run dev <same argv>`. Published package: `npx cc-codeconductor`.
36
+
37
+ ---
38
+
39
+
40
+ ## Step 1 — Task Card validation (Task Coach role)
41
+
42
+ Adopt the `task-coach` role as defined in `AGENTS.md`.
43
+
44
+ The Task Card must classify the task as high risk by default and include the
45
+ affected public interface, request/response examples, compatibility notes,
46
+ versioning impact, consumer impact, contract tests, and docs acceptance
47
+ criteria.
48
+
49
+ **STOP here. Show the completed Task Card and wait for human confirmation.**
50
+
51
+ ---
52
+
53
+ ## Step 2 — Technical Plan (Architect role)
54
+
55
+ Adopt the `architect` role as defined in `AGENTS.md`.
56
+
57
+ Define the API contract, validation strategy, compatibility behavior, docs or
58
+ OpenAPI changes, and reviewer blocking conditions.
59
+
60
+ **STOP here. Show the Technical Plan and wait for explicit human approval.**
61
+
62
+ ---
63
+
64
+ ## Step 3 — Implementation (Implementer role)
65
+
66
+ Adopt the `implementer` role as defined in `AGENTS.md`.
67
+
68
+ Apply the minimal diff, preserve compatible behavior unless explicitly approved
69
+ as breaking, and update only the planned files.
70
+
71
+ ---
72
+
73
+ ## Step 4 — Contract Tests (Tester role)
74
+
75
+ Adopt the `tester` role as defined in `AGENTS.md`.
76
+
77
+ Add or update tests for request shape, response shape, status/error behavior,
78
+ and backward compatibility.
79
+
80
+ ---
81
+
82
+ ## Step 5 — Review (Reviewer role)
83
+
84
+ Adopt the `reviewer` role as defined in `AGENTS.md`.
85
+
86
+ Block on missing contract tests, undocumented breaking changes, or docs/OpenAPI
87
+ drift.
88
+
89
+ ## Next
90
+
91
+ Run `$cc-review` on the diff before merging.
@@ -0,0 +1,108 @@
1
+ ---
2
+ name: cc-backlog
3
+ description: Author BACKLOG.md — wayfinding, grilling, create or append items, validate with openspec, and plan OpenSpec change folders for /cc-openspec.
4
+ ---
5
+
6
+ # backlog
7
+
8
+ Invoke as `$cc-backlog`. The user request follows the skill mention.
9
+
10
+ # Backlog Authoring Workflow
11
+
12
+ Objectives: $ARGUMENTS
13
+
14
+ Create or append valid `BACKLOG.md` items and OpenSpec change docs. Do **not**
15
+ deliver implementation — that is `/cc-openspec`.
16
+
17
+ ---
18
+
19
+ ## Step 0 — CCEP Bootstrap
20
+
21
+ Command: `backlog` (fixed for this workflow — do not infer from user text)
22
+
23
+ 1. Run: `npx cc-codeconductor ccep parse --command backlog "$ARGUMENTS" --output json`
24
+ 2. Run: `npx cc-codeconductor ccep resolve --command backlog "$ARGUMENTS" --output json`
25
+ 3. Run: `npx cc-codeconductor ccep profile backlog --output json`
26
+ 4. After planner/intake JSON is available, run: `npx cc-codeconductor ccep evaluate --command backlog --input <planner.json> --output json`. If `stop` is true, show questions or risks and wait for human input.
27
+ 5. Delegate to subagents using compiled CCEP prompts — never forward raw `$ARGUMENTS` to planners.
28
+
29
+ ---
30
+
31
+ ## Step 1 — Wayfinding (repo-explorer)
32
+
33
+ If `graphify-out/graph.json` exists, run `graphify query "$ARGUMENTS"` (and
34
+ `graphify path` / `graphify explain` when needed). Then invoke `repo-explorer`
35
+ to map modules, conventions, and impact radius. Do not write `BACKLOG.md` in
36
+ this step. Record a Repo Map so Scope names real files or modules.
37
+
38
+ ---
39
+
40
+ ## Step 2 — Relentless Grilling (task-coach)
41
+
42
+ Invoke `task-coach`. Produce complete backlog item fields: title, type, risk,
43
+ scope, description, out of scope, measurable acceptance criteria.
44
+
45
+ Every assumption must survive one grilling question. Reject vague acceptance
46
+ ("improve UX", "fix bugs").
47
+
48
+ If any field is missing or ambiguous, ask one clarifying question at a time.
49
+
50
+ **STOP here.** Unresolved grilling questions populate `questionsForUser` in the
51
+ CCEP-1 `planner-output`; `ccep evaluate --command backlog` halts until a human
52
+ answers. Do not write `BACKLOG.md` until that confirmation.
53
+
54
+ ---
55
+
56
+ ## Step 3 — Write or append BACKLOG.md (docs)
57
+
58
+ Apply skill `backlog`.
59
+
60
+ - If `BACKLOG.md` is absent, create it from the canonical template
61
+ (`presets/templates/BACKLOG.md`). Set Global `Product` from `package.json`
62
+ `name` when present.
63
+ - If it exists, append new `### BC-xxx` items under `## Items`. Do not rewrite
64
+ `## Global` or `## Archive`.
65
+ - Next ID = max `BC-NNN` across Items and Archive, plus one.
66
+ - New items: Status `READY`, Progress `0%`, measurable Acceptance checklist.
67
+
68
+ Do **not** `git add` `BACKLOG.md` or `openspec/`.
69
+
70
+ ---
71
+
72
+ ## Step 4 — Validate (mandatory gate)
73
+
74
+ Run:
75
+
76
+ ```bash
77
+ npx cc-codeconductor openspec validate
78
+ ```
79
+
80
+ If validation fails:
81
+
82
+ 1. List all errors and recommendations from the CLI output.
83
+ 2. Show the canonical BACKLOG.md structure (## Global, ## Items, ### BC-001 | Title, Priority, Status, Type, Depends on, Description, Scope, Acceptance).
84
+ 3. Fix the file and re-run validate. **STOP** planning until valid.
85
+
86
+ ---
87
+
88
+ ## Step 5 — Plan new items
89
+
90
+ For each **new** `BC-xxx` from this run:
91
+
92
+ ```bash
93
+ npx cc-codeconductor openspec plan <BC-id>
94
+ ```
95
+
96
+ Show TaskCards and `openspec/changes/<slug>/` (proposal, design, tasks, specs).
97
+
98
+ ---
99
+
100
+ ## Completion
101
+
102
+ Report: item IDs added, validate result, change folder paths.
103
+
104
+ Tell the user to run `/cc-openspec` (optionally `/cc-openspec BC-xxx`) to
105
+ deliver. Do not start delivery in this workflow.
106
+
107
+ Apply skill `backlog` for create/append rules. Apply skill `openspec` only for
108
+ format and state-machine reference.