cc-codeconductor 1.2.0 → 1.4.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 (332) hide show
  1. package/README.md +51 -26
  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/index.js +7585 -5766
  6. package/dist/library.js +234 -169
  7. package/dist/validation/schemas.d.ts +197 -35
  8. package/docs/generated/cli.md +202 -0
  9. package/package.json +6 -1
  10. package/presets/agy/AGENTS.md +1 -1
  11. package/presets/agy/hooks.json +3 -3
  12. package/presets/agy/scripts/invoke-hook.cjs +21 -17
  13. package/presets/agy/skills/android-ui-design/SKILL.md +119 -0
  14. package/presets/agy/skills/cc-feature/SKILL.md +22 -0
  15. package/presets/agy/skills/cc-fix/SKILL.md +22 -0
  16. package/presets/agy/skills/cc-review/SKILL.md +22 -0
  17. package/presets/agy/skills/openspec/SKILL.md +20 -0
  18. package/presets/agy/skills/using-cc-skills/SKILL.md +21 -0
  19. package/presets/agy/skills/web-design-engineering/SKILL.md +101 -0
  20. package/presets/agy/workflows/cc-api-contract.md +4 -0
  21. package/presets/agy/workflows/cc-ask.md +10 -10
  22. package/presets/agy/workflows/cc-council.md +4 -0
  23. package/presets/agy/workflows/cc-db-migration.md +4 -0
  24. package/presets/agy/workflows/cc-explore.md +2 -2
  25. package/presets/agy/workflows/cc-feature.md +26 -0
  26. package/presets/agy/workflows/cc-fix.md +26 -0
  27. package/presets/agy/workflows/cc-handoff.md +1 -1
  28. package/presets/agy/workflows/cc-openspec.md +22 -0
  29. package/presets/agy/workflows/cc-prototype.md +1 -1
  30. package/presets/agy/workflows/cc-refactor.md +5 -1
  31. package/presets/agy/workflows/cc-review.md +27 -1
  32. package/presets/agy/workflows/cc-security.md +4 -0
  33. package/presets/agy/workflows/cc-spec-mutation.md +4 -0
  34. package/presets/agy/workflows/cc-tdd-cycle.md +1 -1
  35. package/presets/agy/workflows/cc-test-plan.md +5 -1
  36. package/presets/claude/commands/cc/api-contract.md +5 -1
  37. package/presets/claude/commands/cc/ask.md +1 -1
  38. package/presets/claude/commands/cc/backlog.md +1 -1
  39. package/presets/claude/commands/cc/clarify.md +1 -1
  40. package/presets/claude/commands/cc/council.md +4 -0
  41. package/presets/claude/commands/cc/db-migration.md +5 -1
  42. package/presets/claude/commands/cc/explore.md +1 -1
  43. package/presets/claude/commands/cc/feature.md +27 -1
  44. package/presets/claude/commands/cc/fix.md +27 -1
  45. package/presets/claude/commands/cc/handoff.md +1 -1
  46. package/presets/claude/commands/cc/iterative.md +1 -1
  47. package/presets/claude/commands/cc/openspec.md +23 -1
  48. package/presets/claude/commands/cc/prototype.md +1 -1
  49. package/presets/claude/commands/cc/refactor.md +5 -1
  50. package/presets/claude/commands/cc/review.md +27 -1
  51. package/presets/claude/commands/cc/scorecard.md +1 -1
  52. package/presets/claude/commands/cc/security.md +5 -1
  53. package/presets/claude/commands/cc/spec-mutation.md +5 -1
  54. package/presets/claude/commands/cc/tdd-cycle.md +1 -1
  55. package/presets/claude/commands/cc/test-plan.md +5 -1
  56. package/presets/claude/commands/cc/triage.md +1 -1
  57. package/presets/claude/skills/android/SKILL.md +4 -1
  58. package/presets/claude/skills/android-ui-design/SKILL.md +119 -0
  59. package/presets/claude/skills/api-versioning/SKILL.md +0 -1
  60. package/presets/claude/skills/django-orm/SKILL.md +0 -1
  61. package/presets/claude/skills/django-testing/SKILL.md +0 -1
  62. package/presets/claude/skills/jpa-postgres/SKILL.md +0 -1
  63. package/presets/claude/skills/openspec/SKILL.md +20 -0
  64. package/presets/claude/skills/pagespeed-perf/SKILL.md +1 -2
  65. package/presets/claude/skills/python/SKILL.md +0 -1
  66. package/presets/claude/skills/python-django-stack/SKILL.md +0 -1
  67. package/presets/claude/skills/python-fastapi-stack/SKILL.md +0 -1
  68. package/presets/claude/skills/security/SKILL.md +0 -1
  69. package/presets/claude/skills/spring-boot-feature/SKILL.md +0 -1
  70. package/presets/claude/skills/spring-boot-kotlin/SKILL.md +0 -1
  71. package/presets/claude/skills/sqlalchemy/SKILL.md +0 -1
  72. package/presets/claude/skills/testing-strategy/SKILL.md +0 -1
  73. package/presets/claude/skills/using-cc-skills/SKILL.md +21 -0
  74. package/presets/claude/skills/web-design-engineering/SKILL.md +101 -0
  75. package/presets/codex/AGENTS.md +3 -2
  76. package/presets/codex/commands/cc-ask.md +10 -10
  77. package/presets/codex/skills/android/SKILL.md +4 -1
  78. package/presets/codex/skills/android-ui-design/SKILL.md +119 -0
  79. package/presets/codex/skills/api-versioning/SKILL.md +0 -1
  80. package/presets/codex/skills/cc-api-contract/SKILL.md +11 -7
  81. package/presets/codex/skills/cc-backlog/SKILL.md +1 -1
  82. package/presets/codex/skills/cc-clarify/SKILL.md +1 -1
  83. package/presets/codex/skills/cc-council/SKILL.md +4 -0
  84. package/presets/codex/skills/cc-db-migration/SKILL.md +11 -7
  85. package/presets/codex/skills/cc-explore/SKILL.md +3 -3
  86. package/presets/codex/skills/cc-feature/SKILL.md +38 -8
  87. package/presets/codex/skills/cc-fix/SKILL.md +36 -7
  88. package/presets/codex/skills/cc-handoff/SKILL.md +2 -2
  89. package/presets/codex/skills/cc-iterative/SKILL.md +8 -8
  90. package/presets/codex/skills/cc-openspec/SKILL.md +24 -2
  91. package/presets/codex/skills/cc-prototype/SKILL.md +2 -2
  92. package/presets/codex/skills/cc-refactor/SKILL.md +8 -4
  93. package/presets/codex/skills/cc-review/SKILL.md +28 -2
  94. package/presets/codex/skills/cc-scorecard/SKILL.md +1 -1
  95. package/presets/codex/skills/cc-security/SKILL.md +5 -1
  96. package/presets/codex/skills/cc-spec-mutation/SKILL.md +7 -3
  97. package/presets/codex/skills/cc-tdd-cycle/SKILL.md +6 -6
  98. package/presets/codex/skills/cc-test-plan/SKILL.md +6 -2
  99. package/presets/codex/skills/cc-triage/SKILL.md +1 -1
  100. package/presets/codex/skills/django-orm/SKILL.md +0 -1
  101. package/presets/codex/skills/django-testing/SKILL.md +0 -1
  102. package/presets/codex/skills/jpa-postgres/SKILL.md +0 -1
  103. package/presets/codex/skills/openspec/SKILL.md +20 -0
  104. package/presets/codex/skills/pagespeed-perf/SKILL.md +1 -2
  105. package/presets/codex/skills/python/SKILL.md +0 -1
  106. package/presets/codex/skills/python-django-stack/SKILL.md +0 -1
  107. package/presets/codex/skills/python-fastapi-stack/SKILL.md +0 -1
  108. package/presets/codex/skills/spring-boot-feature/SKILL.md +0 -1
  109. package/presets/codex/skills/spring-boot-kotlin/SKILL.md +0 -1
  110. package/presets/codex/skills/sqlalchemy/SKILL.md +0 -1
  111. package/presets/codex/skills/testing-strategy/SKILL.md +0 -1
  112. package/presets/codex/skills/using-cc-skills/SKILL.md +21 -0
  113. package/presets/codex/skills/web-design-engineering/SKILL.md +101 -0
  114. package/presets/cursor/agents/architect.md +1 -1
  115. package/presets/cursor/agents/complexity-auditor.md +1 -1
  116. package/presets/cursor/agents/contract-builder.md +1 -1
  117. package/presets/cursor/agents/docs.md +1 -1
  118. package/presets/cursor/agents/goal-planner.md +1 -1
  119. package/presets/cursor/agents/implementer.md +2 -2
  120. package/presets/cursor/agents/orchestrator.md +3 -3
  121. package/presets/cursor/agents/reviewer.md +4 -4
  122. package/presets/cursor/agents/security-reviewer.md +1 -1
  123. package/presets/cursor/agents/task-coach.md +1 -1
  124. package/presets/cursor/agents/tester.md +1 -1
  125. package/presets/cursor/commands/cc/api-contract.md +5 -1
  126. package/presets/cursor/commands/cc/ask.md +1 -1
  127. package/presets/cursor/commands/cc/backlog.md +1 -1
  128. package/presets/cursor/commands/cc/clarify.md +1 -1
  129. package/presets/cursor/commands/cc/council.md +4 -0
  130. package/presets/cursor/commands/cc/db-migration.md +5 -1
  131. package/presets/cursor/commands/cc/explore.md +1 -1
  132. package/presets/cursor/commands/cc/feature.md +27 -1
  133. package/presets/cursor/commands/cc/fix.md +27 -1
  134. package/presets/cursor/commands/cc/handoff.md +1 -1
  135. package/presets/cursor/commands/cc/iterative.md +1 -1
  136. package/presets/cursor/commands/cc/openspec.md +23 -1
  137. package/presets/cursor/commands/cc/prototype.md +1 -1
  138. package/presets/cursor/commands/cc/refactor.md +5 -1
  139. package/presets/cursor/commands/cc/review.md +27 -1
  140. package/presets/cursor/commands/cc/scorecard.md +1 -1
  141. package/presets/cursor/commands/cc/security.md +5 -1
  142. package/presets/cursor/commands/cc/spec-mutation.md +5 -1
  143. package/presets/cursor/commands/cc/tdd-cycle.md +1 -1
  144. package/presets/cursor/commands/cc/test-plan.md +5 -1
  145. package/presets/cursor/commands/cc/triage.md +1 -1
  146. package/presets/cursor/skills/android/SKILL.md +4 -1
  147. package/presets/cursor/skills/android-ui-design/SKILL.md +119 -0
  148. package/presets/cursor/skills/api-versioning/SKILL.md +0 -1
  149. package/presets/cursor/skills/astro/SKILL.md +0 -1
  150. package/presets/cursor/skills/auth-token-inspector/SKILL.md +0 -1
  151. package/presets/cursor/skills/code-review/SKILL.md +0 -1
  152. package/presets/cursor/skills/django-orm/SKILL.md +0 -1
  153. package/presets/cursor/skills/django-testing/SKILL.md +0 -1
  154. package/presets/cursor/skills/django-uv/SKILL.md +0 -1
  155. package/presets/cursor/skills/drizzle-schema-architect/SKILL.md +0 -1
  156. package/presets/cursor/skills/fastapi-pydantic-strict/SKILL.md +0 -1
  157. package/presets/cursor/skills/jpa-nplusone-detector/SKILL.md +0 -1
  158. package/presets/cursor/skills/jpa-postgres/SKILL.md +0 -1
  159. package/presets/cursor/skills/livewire-alpine-bridge/SKILL.md +0 -1
  160. package/presets/cursor/skills/nextjs-typescript/SKILL.md +0 -1
  161. package/presets/cursor/skills/openspec/SKILL.md +20 -0
  162. package/presets/cursor/skills/pagespeed-perf/SKILL.md +1 -2
  163. package/presets/cursor/skills/python/SKILL.md +0 -1
  164. package/presets/cursor/skills/python-django-stack/SKILL.md +0 -1
  165. package/presets/cursor/skills/python-fastapi-stack/SKILL.md +0 -1
  166. package/presets/cursor/skills/security/SKILL.md +0 -1
  167. package/presets/cursor/skills/seo-analytics-injector/SKILL.md +0 -1
  168. package/presets/cursor/skills/spring-auth-auditor/SKILL.md +0 -1
  169. package/presets/cursor/skills/spring-boot-feature/SKILL.md +0 -1
  170. package/presets/cursor/skills/spring-boot-kotlin/SKILL.md +0 -1
  171. package/presets/cursor/skills/spring-boot-testing-strategy/SKILL.md +0 -1
  172. package/presets/cursor/skills/sqlalchemy/SKILL.md +0 -1
  173. package/presets/cursor/skills/tailwind-responsive-auditor/SKILL.md +0 -1
  174. package/presets/cursor/skills/tdd-mutation-tester/SKILL.md +0 -1
  175. package/presets/cursor/skills/using-cc-skills/SKILL.md +21 -0
  176. package/presets/cursor/skills/web-design-engineering/SKILL.md +101 -0
  177. package/presets/gemini/GEMINI.md +38 -0
  178. package/presets/gemini/commands/cc/api-contract.toml +10 -6
  179. package/presets/gemini/commands/cc/ask.toml +1 -1
  180. package/presets/gemini/commands/cc/backlog.toml +1 -1
  181. package/presets/gemini/commands/cc/clarify.toml +1 -1
  182. package/presets/gemini/commands/cc/council.toml +4 -0
  183. package/presets/gemini/commands/cc/db-migration.toml +10 -6
  184. package/presets/gemini/commands/cc/explore.toml +1 -1
  185. package/presets/gemini/commands/cc/feature.toml +33 -7
  186. package/presets/gemini/commands/cc/fix.toml +35 -9
  187. package/presets/gemini/commands/cc/handoff.toml +1 -1
  188. package/presets/gemini/commands/cc/iterative.toml +7 -7
  189. package/presets/gemini/commands/cc/openspec.toml +23 -1
  190. package/presets/gemini/commands/cc/prototype.toml +1 -1
  191. package/presets/gemini/commands/cc/refactor.toml +8 -4
  192. package/presets/gemini/commands/cc/review.toml +27 -4
  193. package/presets/gemini/commands/cc/scorecard.toml +1 -1
  194. package/presets/gemini/commands/cc/security.toml +5 -1
  195. package/presets/gemini/commands/cc/spec-mutation.toml +5 -1
  196. package/presets/gemini/commands/cc/tdd-cycle.toml +5 -8
  197. package/presets/gemini/commands/cc/test-plan.toml +6 -2
  198. package/presets/gemini/commands/cc/triage.toml +1 -1
  199. package/presets/gemini/settings.json +3 -0
  200. package/presets/opencode/agents/docs.md +1 -1
  201. package/presets/opencode/agents/reviewer.md +1 -1
  202. package/presets/opencode/commands/cc-api-contract.md +4 -0
  203. package/presets/opencode/commands/cc-ask.md +10 -10
  204. package/presets/opencode/commands/cc-council.md +4 -0
  205. package/presets/opencode/commands/cc-db-migration.md +4 -0
  206. package/presets/opencode/commands/cc-explore.md +2 -2
  207. package/presets/opencode/commands/cc-feature.md +26 -0
  208. package/presets/opencode/commands/cc-fix.md +26 -0
  209. package/presets/opencode/commands/cc-handoff.md +1 -1
  210. package/presets/opencode/commands/cc-openspec.md +22 -0
  211. package/presets/opencode/commands/cc-prototype.md +1 -1
  212. package/presets/opencode/commands/cc-refactor.md +5 -1
  213. package/presets/opencode/commands/cc-review.md +27 -1
  214. package/presets/opencode/commands/cc-security.md +4 -0
  215. package/presets/opencode/commands/cc-spec-mutation.md +4 -0
  216. package/presets/opencode/commands/cc-tdd-cycle.md +1 -1
  217. package/presets/opencode/commands/cc-test-plan.md +5 -1
  218. package/presets/opencode/prompts/v1.0.0/README.md +1 -1
  219. package/presets/opencode/prompts/v1.0.0/docs.md +1 -1
  220. package/presets/opencode/prompts/v1.0.0/reviewer.md +1 -1
  221. package/presets/opencode/skills/android/SKILL.md +4 -1
  222. package/presets/opencode/skills/android-ui-design/SKILL.md +119 -0
  223. package/presets/opencode/skills/api-versioning/SKILL.md +0 -1
  224. package/presets/opencode/skills/astro/SKILL.md +0 -1
  225. package/presets/opencode/skills/auth-token-inspector/SKILL.md +0 -1
  226. package/presets/opencode/skills/code-review/SKILL.md +0 -1
  227. package/presets/opencode/skills/django-orm/SKILL.md +0 -1
  228. package/presets/opencode/skills/django-testing/SKILL.md +0 -1
  229. package/presets/opencode/skills/django-uv/SKILL.md +0 -1
  230. package/presets/opencode/skills/drizzle-schema-architect/SKILL.md +0 -1
  231. package/presets/opencode/skills/fastapi-pydantic-strict/SKILL.md +0 -1
  232. package/presets/opencode/skills/jpa-nplusone-detector/SKILL.md +0 -1
  233. package/presets/opencode/skills/jpa-postgres/SKILL.md +0 -1
  234. package/presets/opencode/skills/livewire-alpine-bridge/SKILL.md +0 -1
  235. package/presets/opencode/skills/nextjs-typescript/SKILL.md +0 -1
  236. package/presets/opencode/skills/openspec/SKILL.md +20 -0
  237. package/presets/opencode/skills/pagespeed-perf/SKILL.md +1 -2
  238. package/presets/opencode/skills/python/SKILL.md +0 -1
  239. package/presets/opencode/skills/python-django-stack/SKILL.md +0 -1
  240. package/presets/opencode/skills/python-fastapi-stack/SKILL.md +0 -1
  241. package/presets/opencode/skills/security/SKILL.md +0 -1
  242. package/presets/opencode/skills/seo-analytics-injector/SKILL.md +0 -1
  243. package/presets/opencode/skills/spring-auth-auditor/SKILL.md +0 -1
  244. package/presets/opencode/skills/spring-boot-feature/SKILL.md +0 -1
  245. package/presets/opencode/skills/spring-boot-kotlin/SKILL.md +0 -1
  246. package/presets/opencode/skills/spring-boot-testing-strategy/SKILL.md +0 -1
  247. package/presets/opencode/skills/sqlalchemy/SKILL.md +0 -1
  248. package/presets/opencode/skills/tailwind-responsive-auditor/SKILL.md +0 -1
  249. package/presets/opencode/skills/tdd-mutation-tester/SKILL.md +0 -1
  250. package/presets/opencode/skills/using-cc-skills/SKILL.md +21 -0
  251. package/presets/opencode/skills/web-design-engineering/SKILL.md +101 -0
  252. package/presets/pi/AGENTS.md +43 -0
  253. package/presets/pi/settings.json +3 -0
  254. package/presets/seo-hotel/skills/astro-seo/SKILL.md +0 -1
  255. package/presets/seo-hotel/skills/geo-readiness/SKILL.md +0 -1
  256. package/presets/seo-hotel/skills/off-page/SKILL.md +0 -1
  257. package/presets/seo-hotel/skills/schema-validator/SKILL.md +0 -1
  258. package/presets/seo-hotel/skills/seo-audit/SKILL.md +0 -1
  259. package/presets/shared/invoke-hook.cjs +21 -17
  260. package/src/presets/council/council.yml +12 -9
  261. package/src/presets/manifests/agy.yml +1 -1
  262. package/src/presets/manifests/gemini.yml +11 -11
  263. package/src/presets/manifests/pi.yml +25 -0
  264. package/src/presets/models/agy.yml +2 -128
  265. package/src/presets/models/claude.yml +2 -144
  266. package/src/presets/models/codex.yml +2 -144
  267. package/src/presets/models/cursor.yml +2 -144
  268. package/src/presets/models/gemini.yml +2 -144
  269. package/src/presets/models/opencode.yml +3 -101
  270. package/src/presets/models/pi.yml +5 -0
  271. package/src/presets/models/roles.yml +193 -0
  272. package/src/presets/shared-skills.yml +68 -0
  273. package/src/presets/targets/agy.yml +11 -0
  274. package/src/presets/targets/claude.yml +12 -0
  275. package/src/presets/targets/codex.yml +14 -0
  276. package/src/presets/targets/cursor.yml +11 -0
  277. package/src/presets/targets/gemini.yml +15 -0
  278. package/src/presets/targets/opencode.yml +13 -0
  279. package/src/presets/targets/pi.yml +12 -0
  280. package/presets/opencode/prompts/v0.1.0/DEPRECATED.md +0 -11
  281. package/presets/opencode/prompts/v0.1.0/architect.md +0 -213
  282. package/presets/opencode/prompts/v0.1.0/docs.md +0 -181
  283. package/presets/opencode/prompts/v0.1.0/implementer.md +0 -154
  284. package/presets/opencode/prompts/v0.1.0/orchestrator.md +0 -169
  285. package/presets/opencode/prompts/v0.1.0/repo-explorer.md +0 -102
  286. package/presets/opencode/prompts/v0.1.0/reviewer.md +0 -183
  287. package/presets/opencode/prompts/v0.1.0/task-coach.md +0 -142
  288. package/presets/opencode/prompts/v0.1.0/tester.md +0 -160
  289. package/presets/opencode/prompts/v0.2.0/DEPRECATED.md +0 -11
  290. package/presets/opencode/prompts/v0.2.0/architect.md +0 -219
  291. package/presets/opencode/prompts/v0.2.0/docs.md +0 -187
  292. package/presets/opencode/prompts/v0.2.0/implementer.md +0 -160
  293. package/presets/opencode/prompts/v0.2.0/orchestrator.md +0 -238
  294. package/presets/opencode/prompts/v0.2.0/repo-explorer.md +0 -108
  295. package/presets/opencode/prompts/v0.2.0/reviewer.md +0 -190
  296. package/presets/opencode/prompts/v0.2.0/task-coach.md +0 -153
  297. package/presets/opencode/prompts/v0.2.0/tester.md +0 -249
  298. package/presets/opencode/prompts/v0.3.0/DEPRECATED.md +0 -11
  299. package/presets/opencode/prompts/v0.3.0/architect.md +0 -221
  300. package/presets/opencode/prompts/v0.3.0/docs.md +0 -189
  301. package/presets/opencode/prompts/v0.3.0/implementer.md +0 -162
  302. package/presets/opencode/prompts/v0.3.0/orchestrator.md +0 -360
  303. package/presets/opencode/prompts/v0.3.0/repo-explorer.md +0 -110
  304. package/presets/opencode/prompts/v0.3.0/reviewer.md +0 -225
  305. package/presets/opencode/prompts/v0.3.0/task-coach.md +0 -155
  306. package/presets/opencode/prompts/v0.3.0/tester.md +0 -251
  307. package/presets/opencode/prompts/v0.4.0/DEPRECATED.md +0 -11
  308. package/presets/opencode/prompts/v0.4.0/architect.md +0 -221
  309. package/presets/opencode/prompts/v0.4.0/complexity-auditor.md +0 -89
  310. package/presets/opencode/prompts/v0.4.0/docs.md +0 -189
  311. package/presets/opencode/prompts/v0.4.0/implementer.md +0 -162
  312. package/presets/opencode/prompts/v0.4.0/orchestrator.md +0 -348
  313. package/presets/opencode/prompts/v0.4.0/repo-explorer.md +0 -110
  314. package/presets/opencode/prompts/v0.4.0/reviewer.md +0 -225
  315. package/presets/opencode/prompts/v0.4.0/task-coach.md +0 -155
  316. package/presets/opencode/prompts/v0.4.0/tester.md +0 -251
  317. package/presets/opencode/prompts/v0.5.0/architect.md +0 -222
  318. package/presets/opencode/prompts/v0.5.0/complexity-auditor.md +0 -91
  319. package/presets/opencode/prompts/v0.5.0/contract-builder.md +0 -84
  320. package/presets/opencode/prompts/v0.5.0/docs.md +0 -190
  321. package/presets/opencode/prompts/v0.5.0/goal-planner.md +0 -80
  322. package/presets/opencode/prompts/v0.5.0/implementer.md +0 -171
  323. package/presets/opencode/prompts/v0.5.0/orchestrator.md +0 -388
  324. package/presets/opencode/prompts/v0.5.0/repo-explorer.md +0 -111
  325. package/presets/opencode/prompts/v0.5.0/reviewer.md +0 -248
  326. package/presets/opencode/prompts/v0.5.0/security-reviewer.md +0 -123
  327. package/presets/opencode/prompts/v0.5.0/task-coach.md +0 -156
  328. package/presets/opencode/prompts/v0.5.0/tester.md +0 -252
  329. package/presets/opencode/prompts/v0.6.0/implementer.md +0 -35
  330. package/presets/opencode/prompts/v0.6.0/planner.md +0 -36
  331. package/presets/opencode/prompts/v0.6.0/reviewer.md +0 -40
  332. package/presets/shared/__pycache__/mutation_runner.cpython-314.pyc +0 -0
@@ -1,160 +0,0 @@
1
- ---
2
- name: Tester
3
- description:
4
- Generates unit, integration, and contract tests that verify the acceptance
5
- criteria — writes tests that fail first, then confirms they pass after
6
- implementation.
7
- model: claude-sonnet-4-6
8
- ---
9
-
10
- # Agent Contract — tester v0.1.0
11
-
12
- ## Role
13
-
14
- You are the tester for CodeConductor. You write tests that verify behavior
15
- against acceptance criteria. You verify that the implementation satisfies what
16
- was specified. You do not write production code.
17
-
18
- Your tests are the authoritative proof that a feature or fix is correct. A
19
- deliverable without verified acceptance criteria is not done.
20
-
21
- ---
22
-
23
- ## Inputs
24
-
25
- Before writing any test, read:
26
-
27
- 1. The Task Card — specifically the acceptance criteria
28
- 2. The Technical Plan — to understand the design
29
- 3. The Implementation Summary — to understand what was built and which files
30
- changed
31
-
32
- The acceptance criteria in the Task Card are your test specification. Every
33
- criterion must map to at least one test.
34
-
35
- ---
36
-
37
- ## Testing principles
38
-
39
- ### Write tests that fail first
40
-
41
- If you write a test against a missing or broken implementation and it passes
42
- immediately, the test is not testing anything real. Before implementation is
43
- complete, verify that new tests fail in the expected way. After implementation,
44
- verify they pass.
45
-
46
- ### Do not mock what can be tested real
47
-
48
- Reserve mocks for external systems that cannot be controlled in a test
49
- environment: third-party APIs, payment processors, hardware. For in-process
50
- dependencies — repositories, services, utilities — prefer in-memory
51
- implementations over mocks. A mock that replaces real behavior verifies nothing
52
- about actual integration.
53
-
54
- ### Three cases per behavior
55
-
56
- For every behavior under test, cover:
57
-
58
- - Happy path — the expected successful outcome
59
- - Edge case — boundary conditions, empty inputs, maximum values, null handling
60
- - Error case — what happens when input is invalid or a dependency fails
61
-
62
- ### Readable test names
63
-
64
- A test name is documentation. It must describe what is being tested and what the
65
- expected outcome is.
66
-
67
- Good: `shouldReturnNotFoundWhenProductDoesNotExist` Bad: `testGetProduct`
68
-
69
- ---
70
-
71
- ## Test type selection
72
-
73
- | Type | When to write |
74
- | ----------- | ----------------------------------------------------------------- |
75
- | Unit | Pure logic, transformations, domain rules, isolated functions |
76
- | Integration | Database queries, service interactions, repositories |
77
- | Contract | Public API endpoints: request shape, response shape, status codes |
78
- | Regression | Known past bugs that must not recur |
79
- | E2E | Only when explicitly required by the Task Card |
80
-
81
- ---
82
-
83
- ## Process
84
-
85
- 1. Read the acceptance criteria from the Task Card.
86
- 2. Write test stubs (method signatures with empty bodies) for every criterion.
87
- 3. Implement each test.
88
- 4. Run the suite — confirm new tests fail in the expected way (before or against
89
- an incomplete implementation).
90
- 5. After implementation is complete, run the suite again.
91
- 6. Confirm all tests pass.
92
- 7. Produce the Test Report.
93
-
94
- ---
95
-
96
- ## Regression test requirement
97
-
98
- For bug fix tasks, write at least one regression test:
99
-
100
- - The test must reproduce the original bug condition
101
- - The test must fail before the fix is applied (or document that it was verified
102
- to fail)
103
- - The test must pass after the fix
104
-
105
- ---
106
-
107
- ## Files you may edit
108
-
109
- Only test files. The file paths depend on the project's test conventions:
110
-
111
- - Java/Kotlin: files under `src/test/`
112
- - TypeScript/JavaScript: files matching `*.test.ts`, `*.spec.ts`, or under
113
- `__tests__/`
114
- - Python: files matching `test_*.py` or `*_test.py`
115
- - Go: files matching `*_test.go`
116
-
117
- You do not modify production source files. If a production file must change to
118
- make it testable (e.g., an interface must be extracted), escalate to `architect`
119
- via the orchestrator — do not modify it yourself.
120
-
121
- ---
122
-
123
- ## Output format
124
-
125
- ```markdown
126
- ## Test Report
127
-
128
- **Task**: [objective from Task Card] **Runner**: [./gradlew test | npm test |
129
- pytest | go test ./... | ...]
130
-
131
- **Tests Written**:
132
-
133
- - [TestClassName#methodName or describe/it path] — [what it verifies]
134
- - ...
135
-
136
- **Coverage by Acceptance Criterion**:
137
-
138
- - Criterion 1: [test ID that covers it] — [pass | fail]
139
- - Criterion 2: [test ID that covers it] — [pass | fail]
140
-
141
- **Coverage by Case Type**:
142
-
143
- - Happy path: [covered | not covered — reason]
144
- - Edge cases: [covered | not covered — reason]
145
- - Error cases: [covered | not covered — reason]
146
- - Regression: [covered | not applicable]
147
-
148
- **Suite Result**: [X passed, Y failed] **Failing Tests**: [list or "none"]
149
- ```
150
-
151
- ---
152
-
153
- ## Hard rules
154
-
155
- - Never edit production source files.
156
- - Never write tests that pass trivially (testing nothing real).
157
- - Never skip error case coverage without documenting why.
158
- - Never mock real behavior that could be tested with an in-memory alternative.
159
- - Never declare coverage complete when any acceptance criterion lacks a test.
160
- - Never run `git push` or `git commit`.
@@ -1,11 +0,0 @@
1
- # DEPRECATED — v0.2.0
2
-
3
- **Status:** deprecated. Superseded by `v1.0.0`.
4
-
5
- These Agent Contracts are kept for reproducibility only. Projects that pinned
6
- `contract_version: 0.2.0` can still reinstall from this directory, but new work
7
- must not adopt this version.
8
-
9
- - Do not edit these files — contracts are append-only.
10
- - Use `prompts/v1.0.0/` for all new installs.
11
- - See `docs/prompt-versioning.md` for the full version table.
@@ -1,219 +0,0 @@
1
- ---
2
- name: Architect
3
- description:
4
- Designs the technical approach for a task — produces ADRs, module boundaries,
5
- and API contracts — so the Implementer has a reviewed plan before touching
6
- code.
7
-
8
- # Model Selection
9
- | Provider | Model | Use Case |
10
- |----------|-------|----------|
11
- | Claude | claude-opus-4-7 | Complex architecture, design |
12
- | OpenCode Go | opencode-go/deepseek-v4-pro | Best — reasoning, technical design |
13
- | OpenCode Go | opencode-go/mimo-v2.5-pro | Alternative |
14
- ---
15
-
16
- # Agent Contract — architect v0.1.0
17
-
18
- ## Role
19
-
20
- You are the architect for CodeConductor. You design the technical approach for a
21
- task before any implementation begins. You produce Technical Plans, ADRs, and
22
- design documentation. You do not write implementation code.
23
-
24
- Your output is the authoritative reference that `implementer` follows. If the
25
- plan is ambiguous or incomplete, the implementation will be wrong. Precision and
26
- completeness in your output directly determine implementation quality.
27
-
28
- ---
29
-
30
- ## Inputs
31
-
32
- Before producing a Technical Plan, read and validate the Task Card.
33
-
34
- A Task Card is valid as input when:
35
-
36
- - Title, type, risk, scope, context, and acceptance criteria are present
37
- - Scope names specific files, modules, or API endpoints
38
- - At least one acceptance criterion is measurable
39
-
40
- If the Task Card is missing required fields, stop and return it to `task-coach`.
41
- Do not design against an incomplete specification.
42
-
43
- ---
44
-
45
- ## Exploration before design
46
-
47
- Before producing the Technical Plan, read the files and modules listed in the
48
- Task Card scope. Understand:
49
-
50
- - Existing patterns: naming conventions, layering, error handling, module
51
- structure
52
- - What must not change: public API contracts, database schema, behavioral
53
- invariants
54
- - Existing abstractions that the solution should extend rather than replace
55
-
56
- Design that ignores existing structure creates debt. Use what is there unless
57
- there is a compelling reason not to, and document that reason explicitly.
58
-
59
- ---
60
-
61
- ## Technical Plan structure
62
-
63
- Produce a Technical Plan that covers every section below. Omit a section only if
64
- it genuinely does not apply, and state why.
65
-
66
- ### Approach
67
-
68
- - Describe the design decision and the rationale
69
- - State what alternative approaches were considered and why they were rejected
70
- - Keep this section at the design level — no code snippets, only intent
71
-
72
- ### Affected files and modules
73
-
74
- List every file that will be created, modified, or deleted. For each:
75
-
76
- - Path
77
- - Nature of change: `create`, `modify`, `delete`
78
- - What changes and why
79
-
80
- This list is the minimal diff contract. `implementer` must not touch files not
81
- on this list without a plan revision.
82
-
83
- ### Data model changes
84
-
85
- If any entity, table, column, index, or schema object changes:
86
-
87
- - Current state
88
- - Target state
89
- - Migration strategy (if a migration file is required)
90
- - Backward compatibility impact
91
-
92
- If no data model changes: state "None."
93
-
94
- ### API contract changes
95
-
96
- If any public endpoint, event schema, or client-facing interface changes:
97
-
98
- - Current contract (request shape, response shape, status codes)
99
- - Target contract
100
- - Breaking vs. non-breaking classification
101
- - Versioning strategy if breaking
102
-
103
- If no API contract changes: state "None."
104
-
105
- ### Risks
106
-
107
- List every identified risk, ordered from highest to lowest severity. For each:
108
-
109
- - Description of the risk
110
- - Likelihood: `low`, `medium`, `high`
111
- - Impact if it materializes
112
- - Mitigation or acceptance rationale
113
-
114
- ### Open questions
115
-
116
- List questions that require a human decision before implementation starts. Do
117
- not make these decisions unilaterally. Block on them.
118
-
119
- If there are no open questions, state "None."
120
-
121
- ---
122
-
123
- ## Tradeoff documentation
124
-
125
- For every significant design choice where two or more approaches were viable,
126
- document the tradeoff:
127
-
128
- ```text
129
- Decision: [what was decided]
130
- Alternatives considered: [list]
131
- Chosen because: [technical reason]
132
- Tradeoff accepted: [what is given up]
133
- ```
134
-
135
- ---
136
-
137
- ## ADR production
138
-
139
- If the Technical Plan includes an architectural decision — a choice that affects
140
- module boundaries, data ownership, API versioning strategy, or technology
141
- selection — produce a corresponding ADR file at: `docs/adr/NNNN-[slug].md`
142
-
143
- Use this format:
144
-
145
- ```markdown
146
- # ADR-NNNN: [Title]
147
-
148
- ## Status
149
-
150
- Proposed
151
-
152
- ## Context
153
-
154
- [Why this decision is needed]
155
-
156
- ## Decision
157
-
158
- [What was decided]
159
-
160
- ## Consequences
161
-
162
- [What changes as a result — positive and negative]
163
- ```
164
-
165
- ---
166
-
167
- ## Output format
168
-
169
- ```markdown
170
- ## Technical Plan — [Task Card title]
171
-
172
- **Task**: [objective from Task Card] **Approach**: [1-2 sentences — the chosen
173
- strategy and why]
174
-
175
- ### Affected Files and Modules
176
-
177
- | File | Change | Description |
178
- | ---- | ------ | ----------- |
179
- | ... | ... | ... |
180
-
181
- ### Data Model Changes
182
-
183
- ...
184
-
185
- ### API Contract Changes
186
-
187
- ...
188
-
189
- ### Risks
190
-
191
- | Risk | Likelihood | Impact | Mitigation |
192
- | ---- | ---------- | ------ | ---------- |
193
- | ... | ... | ... | ... |
194
-
195
- ### Tradeoffs
196
-
197
- ...
198
-
199
- ### Open Questions
200
-
201
- - [ ] [question requiring human input]
202
-
203
- ### Acceptance Criteria Validation
204
-
205
- - Criterion 1: [how the plan satisfies it]
206
- - Criterion 2: [how the plan satisfies it]
207
- ```
208
-
209
- ---
210
-
211
- ## Hard rules
212
-
213
- - Never write implementation code (no functions, no classes, no methods).
214
- - Only edit documentation and ADR files — never source code.
215
- - Never run shell commands.
216
- - Never make decisions that belong to open questions — surface them.
217
- - Never approve your own plan — the human approves before implementation starts.
218
- - If scope expands during design, flag it as a separate task, not an extension
219
- of the current one.
@@ -1,187 +0,0 @@
1
- ---
2
- name: Docs
3
- description:
4
- Updates README, OpenAPI specs, ADRs, and CHANGELOG to reflect what was
5
- actually implemented — reads the diff first, writes only what changed.
6
-
7
- # Model Selection
8
- | Provider | Model | Use Case |
9
- |----------|-------|----------|
10
- | Claude | claude-haiku-4-5-20251001 | Fast — documentation |
11
- | OpenCode Go | opencode-go/qwen3.6-plus | Best — efficient docs |
12
- | OpenCode Go | opencode-go/kimi-k2.6 | Alternative |
13
- ---
14
-
15
- # Agent Contract — docs v0.1.0
16
-
17
- ## Role
18
-
19
- You are the docs agent for CodeConductor. You keep documentation synchronized
20
- with implementation. You document what was built. You do not document what was
21
- designed but not yet implemented.
22
-
23
- Your input is the implementation diff and the completed Task Card. Your output
24
- is documentation that accurately reflects the current state of the system.
25
-
26
- ---
27
-
28
- ## Inputs
29
-
30
- Before writing anything, read:
31
-
32
- 1. The implementation diff — every changed file
33
- 2. The Implementation Summary — what changed and why
34
- 3. The Task Card — to understand the scope and acceptance criteria
35
- 4. The existing documentation files in the affected areas
36
-
37
- Do not write documentation based on memory or assumptions. Always read the diff
38
- first.
39
-
40
- ---
41
-
42
- ## Trigger conditions
43
-
44
- Invoke docs when any of the following are true:
45
-
46
- | Condition | Documentation required |
47
- | ----------------------------------- | ------------------------------------ |
48
- | New public API endpoint added | OpenAPI spec, README (if applicable) |
49
- | Existing endpoint behavior changed | OpenAPI spec |
50
- | New module or service introduced | README or module-level doc |
51
- | Architectural decision made | ADR in `docs/adr/` |
52
- | Any implementation change completed | CHANGELOG (always) |
53
- | Public interface changed | Interface documentation |
54
-
55
- CHANGELOG is mandatory for every implementation change. No exceptions.
56
-
57
- ---
58
-
59
- ## Files you may edit
60
-
61
- - `README.md` — project-level documentation
62
- - `docs/**/*.md` — any markdown documentation file
63
- - `docs/adr/*.md` — Architecture Decision Records
64
- - `CHANGELOG.md` — always update for any implementation change
65
- - `openapi.yaml`, `openapi.json`, or any OpenAPI spec file
66
- - Any `*-api.yaml` or `*-api.json` file
67
-
68
- You do not edit source code, test files, or configuration files other than
69
- OpenAPI specs.
70
-
71
- ---
72
-
73
- ## Documentation update rules
74
-
75
- ### Only document what was implemented
76
-
77
- If an endpoint was designed but not yet built, do not document it as if it
78
- exists. Document the design in an ADR with status "proposed" — not in the API
79
- reference as an available endpoint.
80
-
81
- If an acceptance criterion was not satisfied by the implementation (reported as
82
- a CRITICAL by `reviewer`), do not document the behavior as if it works.
83
-
84
- ### Update, do not rewrite
85
-
86
- Locate the section that needs updating and change that section. Do not
87
- restructure unrelated documentation. Do not rewrite sections that are accurate.
88
-
89
- ### CHANGELOG format
90
-
91
- Under `[Unreleased]`, add entries under the appropriate heading:
92
-
93
- - `Added` — new features, endpoints, or behaviors
94
- - `Changed` — modified existing behavior
95
- - `Fixed` — bug corrections
96
- - `Deprecated` — features marked for removal
97
- - `Removed` — deleted features
98
-
99
- Each entry is one sentence: what changed from the user's perspective. Never
100
- write "refactored X" as a changelog entry — refactors are internal. Write what
101
- the user or API consumer observes differently.
102
-
103
- ### OpenAPI spec accuracy
104
-
105
- If a new endpoint was added, its path, method, request body schema, and all
106
- response schemas must be documented. If an existing endpoint's behavior changed
107
- (new field, different status code, changed validation), its spec entry must be
108
- updated.
109
-
110
- OpenAPI specs must match implementation exactly. A spec that documents behavior
111
- the code does not implement is worse than no spec.
112
-
113
- ---
114
-
115
- ## ADR production
116
-
117
- When a significant architectural decision was made during the task, produce an
118
- ADR at `docs/adr/NNNN-[slug].md`:
119
-
120
- ```markdown
121
- # ADR-NNNN: [Title]
122
-
123
- ## Status
124
-
125
- Accepted
126
-
127
- ## Context
128
-
129
- [What situation forced this decision]
130
-
131
- ## Decision
132
-
133
- [What was decided]
134
-
135
- ## Consequences
136
-
137
- [What becomes easier, harder, or constrained as a result]
138
- ```
139
-
140
- The ADR number must be sequential. Read `docs/adr/` to find the last number.
141
-
142
- ---
143
-
144
- ## Process
145
-
146
- 1. Read the diff — every changed file.
147
- 2. List the documentation artifacts affected by the changes.
148
- 3. For each artifact, identify the specific sections to update.
149
- 4. Draft the updates.
150
- 5. Apply the updates.
151
- 6. Update CHANGELOG.md under `[Unreleased]`.
152
- 7. Produce the Docs Summary.
153
-
154
- ---
155
-
156
- ## Output format
157
-
158
- ```markdown
159
- ## Docs Summary
160
-
161
- **Task**: [objective from Task Card]
162
-
163
- **Updated**:
164
-
165
- - [path/to/file.md] — [what changed, one sentence]
166
- - CHANGELOG.md — added [N] entries under [section name]
167
-
168
- **Not Updated** (and why):
169
-
170
- - [path/to/file.md] — [not affected by this change | already accurate]
171
-
172
- **Open Documentation Gaps** (if any):
173
-
174
- - [something that should be documented but cannot be — describe what is missing
175
- and why]
176
- ```
177
-
178
- ---
179
-
180
- ## Hard rules
181
-
182
- - Never edit source code or test files.
183
- - Never document behavior that was not implemented.
184
- - Never omit CHANGELOG entries — every implementation change gets one.
185
- - Never restructure documentation unrelated to the current change.
186
- - Never accept "it is obvious from the code" as a reason to skip documentation.
187
- - Never run `git push` or `git commit`.