dsh-compound-engineering 0.0.0-stage → 0.1.1

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 (461) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +160 -2
  3. package/README.zh.md +161 -0
  4. package/cordis.patch.yml +6 -0
  5. package/lib/frontmatter.js +167 -0
  6. package/lib/index.js +46 -0
  7. package/lib/provider.js +201 -0
  8. package/package.json +62 -4
  9. package/skills/CODING_STANDARDS.md +68 -0
  10. package/skills/ce-babysit-pr/SKILL.md +59 -0
  11. package/skills/ce-babysit-pr/references/branch-currency.md +22 -0
  12. package/skills/ce-babysit-pr/references/envelope.md +44 -0
  13. package/skills/ce-babysit-pr/references/pipeline.md +15 -0
  14. package/skills/ce-babysit-pr/references/report.md +20 -0
  15. package/skills/ce-babysit-pr/references/settle.md +37 -0
  16. package/skills/ce-babysit-pr/references/setup.md +33 -0
  17. package/skills/ce-babysit-pr/references/stack-commands.md +39 -0
  18. package/skills/ce-babysit-pr/references/stack.md +43 -0
  19. package/skills/ce-babysit-pr/references/tick.md +102 -0
  20. package/skills/ce-babysit-pr/references/watch-loop.md +222 -0
  21. package/skills/ce-babysit-pr/scripts/pr-snapshot +3656 -0
  22. package/skills/ce-bakeoff/SKILL.md +48 -0
  23. package/skills/ce-bakeoff/references/candidates.md +37 -0
  24. package/skills/ce-bakeoff/references/judging.md +19 -0
  25. package/skills/ce-bakeoff/references/output.md +11 -0
  26. package/skills/ce-bakeoff/references/verification.md +15 -0
  27. package/skills/ce-brainstorm/SKILL.md +69 -0
  28. package/skills/ce-brainstorm/references/agents/slack-researcher.md +127 -0
  29. package/skills/ce-brainstorm/references/approaches.md +57 -0
  30. package/skills/ce-brainstorm/references/bakeoff.md +9 -0
  31. package/skills/ce-brainstorm/references/blindspot-pass.md +70 -0
  32. package/skills/ce-brainstorm/references/brainstorm-sections.md +458 -0
  33. package/skills/ce-brainstorm/references/dialogue.md +89 -0
  34. package/skills/ce-brainstorm/references/handoff.md +187 -0
  35. package/skills/ce-brainstorm/references/html-rendering.md +638 -0
  36. package/skills/ce-brainstorm/references/interaction-rules.md +33 -0
  37. package/skills/ce-brainstorm/references/markdown-rendering.md +242 -0
  38. package/skills/ce-brainstorm/references/model-tiers.md +13 -0
  39. package/skills/ce-brainstorm/references/output-mode.md +26 -0
  40. package/skills/ce-brainstorm/references/phase-0.md +104 -0
  41. package/skills/ce-brainstorm/references/plan-write.md +32 -0
  42. package/skills/ce-brainstorm/references/product-pressure-test.md +42 -0
  43. package/skills/ce-brainstorm/references/reasoning-elevation.md +124 -0
  44. package/skills/ce-brainstorm/references/settled-decisions.md +45 -0
  45. package/skills/ce-brainstorm/references/synthesis-summary.md +149 -0
  46. package/skills/ce-brainstorm/references/universal-brainstorming.md +72 -0
  47. package/skills/ce-brainstorm/references/verdict-routing.md +26 -0
  48. package/skills/ce-brainstorm/references/visual-probes.md +164 -0
  49. package/skills/ce-brainstorm/scripts/elevation-dispatch.sh +288 -0
  50. package/skills/ce-brainstorm/scripts/light-webserver.js +1275 -0
  51. package/skills/ce-brainstorm/scripts/packs-resolve.py +737 -0
  52. package/skills/ce-brainstorm/scripts/peer-job-runner.py +2594 -0
  53. package/skills/ce-code-review/SKILL.md +40 -0
  54. package/skills/ce-code-review/references/action-class-rubric.md +67 -0
  55. package/skills/ce-code-review/references/cross-model-recovery.md +38 -0
  56. package/skills/ce-code-review/references/cross-model-review.md +191 -0
  57. package/skills/ce-code-review/references/depth-paths.md +32 -0
  58. package/skills/ce-code-review/references/diff-scope.md +59 -0
  59. package/skills/ce-code-review/references/dispatch-reviewers.md +135 -0
  60. package/skills/ce-code-review/references/findings-schema.json +125 -0
  61. package/skills/ce-code-review/references/finish-input.md +118 -0
  62. package/skills/ce-code-review/references/finish-review.md +202 -0
  63. package/skills/ce-code-review/references/intent-and-plan.md +73 -0
  64. package/skills/ce-code-review/references/modes-and-output.md +156 -0
  65. package/skills/ce-code-review/references/persona-catalog.md +66 -0
  66. package/skills/ce-code-review/references/personas/adversarial-reviewer.md +111 -0
  67. package/skills/ce-code-review/references/personas/agent-native-reviewer.md +173 -0
  68. package/skills/ce-code-review/references/personas/api-contract-reviewer.md +44 -0
  69. package/skills/ce-code-review/references/personas/correctness-reviewer.md +48 -0
  70. package/skills/ce-code-review/references/personas/data-migration-reviewer.md +111 -0
  71. package/skills/ce-code-review/references/personas/deployment-verification-agent.md +157 -0
  72. package/skills/ce-code-review/references/personas/julik-frontend-races-reviewer.md +45 -0
  73. package/skills/ce-code-review/references/personas/learnings-researcher.md +260 -0
  74. package/skills/ce-code-review/references/personas/maintainability-reviewer.md +85 -0
  75. package/skills/ce-code-review/references/personas/performance-reviewer.md +45 -0
  76. package/skills/ce-code-review/references/personas/previous-comments-reviewer.md +59 -0
  77. package/skills/ce-code-review/references/personas/project-standards-reviewer.md +77 -0
  78. package/skills/ce-code-review/references/personas/reliability-reviewer.md +49 -0
  79. package/skills/ce-code-review/references/personas/security-reviewer.md +50 -0
  80. package/skills/ce-code-review/references/personas/swift-ios-reviewer.md +99 -0
  81. package/skills/ce-code-review/references/personas/testing-reviewer.md +51 -0
  82. package/skills/ce-code-review/references/review-output-template.md +172 -0
  83. package/skills/ce-code-review/references/scope.md +176 -0
  84. package/skills/ce-code-review/references/select-and-route.md +93 -0
  85. package/skills/ce-code-review/references/subagent-template.md +206 -0
  86. package/skills/ce-code-review/references/validator-batch-template.md +67 -0
  87. package/skills/ce-code-review/scripts/cross-model-adversarial-review.sh +1275 -0
  88. package/skills/ce-code-review/scripts/findings-mechanics.py +274 -0
  89. package/skills/ce-code-review/scripts/packs-resolve.py +737 -0
  90. package/skills/ce-code-review/scripts/peer-job-runner.py +2594 -0
  91. package/skills/ce-code-review/scripts/review-scope.py +419 -0
  92. package/skills/ce-code-review/scripts/run-log.py +280 -0
  93. package/skills/ce-commit/SKILL.md +60 -0
  94. package/skills/ce-commit-push-pr/SKILL.md +69 -0
  95. package/skills/ce-commit-push-pr/references/apply-and-handoff.md +79 -0
  96. package/skills/ce-commit-push-pr/references/branch-creation.md +47 -0
  97. package/skills/ce-commit-push-pr/references/commit-and-push.md +26 -0
  98. package/skills/ce-commit-push-pr/references/compose.md +29 -0
  99. package/skills/ce-commit-push-pr/references/context.md +42 -0
  100. package/skills/ce-commit-push-pr/references/gh-stack-cli.md +83 -0
  101. package/skills/ce-commit-push-pr/references/pr-description-writing.md +208 -0
  102. package/skills/ce-commit-push-pr/references/stack-submit.md +81 -0
  103. package/skills/ce-compound/SKILL.md +79 -0
  104. package/skills/ce-compound/assets/resolution-template.md +96 -0
  105. package/skills/ce-compound/references/agents/best-practices-researcher.md +115 -0
  106. package/skills/ce-compound/references/agents/data-integrity-guardian.md +68 -0
  107. package/skills/ce-compound/references/agents/framework-docs-researcher.md +93 -0
  108. package/skills/ce-compound/references/agents/pattern-recognition-specialist.md +55 -0
  109. package/skills/ce-compound/references/agents/performance-oracle.md +108 -0
  110. package/skills/ce-compound/references/agents/security-sentinel.md +91 -0
  111. package/skills/ce-compound/references/agents/session-historian.md +82 -0
  112. package/skills/ce-compound/references/assembly.md +127 -0
  113. package/skills/ce-compound/references/concepts-vocabulary.md +98 -0
  114. package/skills/ce-compound/references/enhancement.md +42 -0
  115. package/skills/ce-compound/references/grounding-validation.md +89 -0
  116. package/skills/ce-compound/references/lightweight.md +56 -0
  117. package/skills/ce-compound/references/modes.md +13 -0
  118. package/skills/ce-compound/references/refresh-and-discoverability.md +96 -0
  119. package/skills/ce-compound/references/report.md +115 -0
  120. package/skills/ce-compound/references/research.md +144 -0
  121. package/skills/ce-compound/references/schema.yaml +236 -0
  122. package/skills/ce-compound/references/session-history.md +73 -0
  123. package/skills/ce-compound/references/yaml-schema.md +130 -0
  124. package/skills/ce-compound/scripts/packs-resolve.py +737 -0
  125. package/skills/ce-compound/scripts/session-history/__pycache__/dsh_session.cpython-314.pyc +0 -0
  126. package/skills/ce-compound/scripts/session-history/discover-sessions.sh +290 -0
  127. package/skills/ce-compound/scripts/session-history/discover_dsh.py +123 -0
  128. package/skills/ce-compound/scripts/session-history/dsh_session.py +225 -0
  129. package/skills/ce-compound/scripts/session-history/extract-errors.py +178 -0
  130. package/skills/ce-compound/scripts/session-history/extract-metadata.py +301 -0
  131. package/skills/ce-compound/scripts/session-history/extract-skeleton.py +346 -0
  132. package/skills/ce-compound/scripts/validate-doc-claims.py +497 -0
  133. package/skills/ce-compound/scripts/validate-frontmatter.py +137 -0
  134. package/skills/ce-compound-refresh/SKILL.md +88 -0
  135. package/skills/ce-compound-refresh/assets/resolution-template.md +96 -0
  136. package/skills/ce-compound-refresh/references/classify.md +42 -0
  137. package/skills/ce-compound-refresh/references/commit.md +7 -0
  138. package/skills/ce-compound-refresh/references/concepts-vocabulary.md +116 -0
  139. package/skills/ce-compound-refresh/references/discoverability.md +15 -0
  140. package/skills/ce-compound-refresh/references/investigate.md +23 -0
  141. package/skills/ce-compound-refresh/references/modes.md +27 -0
  142. package/skills/ce-compound-refresh/references/per-action-flows.md +142 -0
  143. package/skills/ce-compound-refresh/references/report.md +23 -0
  144. package/skills/ce-compound-refresh/references/schema.yaml +236 -0
  145. package/skills/ce-compound-refresh/references/scope.md +18 -0
  146. package/skills/ce-compound-refresh/references/worth-audit.md +35 -0
  147. package/skills/ce-compound-refresh/references/yaml-schema.md +130 -0
  148. package/skills/ce-compound-refresh/scripts/validate-doc-claims.py +497 -0
  149. package/skills/ce-compound-refresh/scripts/validate-frontmatter.py +137 -0
  150. package/skills/ce-debug/SKILL.md +122 -0
  151. package/skills/ce-debug/references/anti-patterns.md +91 -0
  152. package/skills/ce-debug/references/defense-in-depth.md +39 -0
  153. package/skills/ce-debug/references/fix.md +21 -0
  154. package/skills/ce-debug/references/investigate.md +114 -0
  155. package/skills/ce-debug/references/investigation-techniques.md +384 -0
  156. package/skills/ce-debug/references/pipeline-mode.md +78 -0
  157. package/skills/ce-debug/references/post-fix-handoff.md +60 -0
  158. package/skills/ce-debug/references/return-to-caller.md +57 -0
  159. package/skills/ce-doc-review/SKILL.md +75 -0
  160. package/skills/ce-doc-review/references/bulk-preview.md +146 -0
  161. package/skills/ce-doc-review/references/cross-model-review.md +207 -0
  162. package/skills/ce-doc-review/references/decision-primer.md +47 -0
  163. package/skills/ce-doc-review/references/dispatch.md +56 -0
  164. package/skills/ce-doc-review/references/document-intake.md +44 -0
  165. package/skills/ce-doc-review/references/findings-schema.json +85 -0
  166. package/skills/ce-doc-review/references/modes.md +20 -0
  167. package/skills/ce-doc-review/references/open-questions-defer.md +158 -0
  168. package/skills/ce-doc-review/references/persona-selection.md +41 -0
  169. package/skills/ce-doc-review/references/personas/adversarial-document-reviewer.md +109 -0
  170. package/skills/ce-doc-review/references/personas/coherence-reviewer.md +69 -0
  171. package/skills/ce-doc-review/references/personas/design-lens-reviewer.md +48 -0
  172. package/skills/ce-doc-review/references/personas/feasibility-reviewer.md +50 -0
  173. package/skills/ce-doc-review/references/personas/product-lens-reviewer.md +85 -0
  174. package/skills/ce-doc-review/references/personas/scope-guardian-reviewer.md +83 -0
  175. package/skills/ce-doc-review/references/personas/security-lens-reviewer.md +41 -0
  176. package/skills/ce-doc-review/references/personas/whole-doc-reviewer.md +25 -0
  177. package/skills/ce-doc-review/references/rendering-floor.md +175 -0
  178. package/skills/ce-doc-review/references/review-output-template.md +123 -0
  179. package/skills/ce-doc-review/references/subagent-template.md +188 -0
  180. package/skills/ce-doc-review/references/synthesis-and-presentation.md +350 -0
  181. package/skills/ce-doc-review/references/walkthrough.md +347 -0
  182. package/skills/ce-doc-review/scripts/cross-model-doc-review.sh +1270 -0
  183. package/skills/ce-doc-review/scripts/packs-resolve.py +737 -0
  184. package/skills/ce-doc-review/scripts/peer-job-runner.py +2594 -0
  185. package/skills/ce-dogfood/SKILL.md +66 -0
  186. package/skills/ce-dogfood/agents/openai.yaml +2 -0
  187. package/skills/ce-dogfood/references/dogfood-report-template.md +97 -0
  188. package/skills/ce-dogfood/references/phases.md +167 -0
  189. package/skills/ce-dogfood/references/test-matrix-taxonomy.md +62 -0
  190. package/skills/ce-dogfood/scripts/packs-resolve.py +737 -0
  191. package/skills/ce-explain/SKILL.md +81 -0
  192. package/skills/ce-explain/references/agents/behavior-trace-scout.md +19 -0
  193. package/skills/ce-explain/references/agents/work-recap-scout.md +23 -0
  194. package/skills/ce-explain/references/check-in.md +18 -0
  195. package/skills/ce-explain/references/destinations.md +35 -0
  196. package/skills/ce-explain/references/explainer-html.md +29 -0
  197. package/skills/ce-explain/references/explainer-markdown.md +24 -0
  198. package/skills/ce-explain/references/intake.md +50 -0
  199. package/skills/ce-explain/references/orchestration.md +46 -0
  200. package/skills/ce-handoff/SKILL.md +54 -0
  201. package/skills/ce-handoff/references/create.md +88 -0
  202. package/skills/ce-handoff/references/resume.md +46 -0
  203. package/skills/ce-ideate/SKILL.md +75 -0
  204. package/skills/ce-ideate/references/agents/issue-intelligence-analyst.md +166 -0
  205. package/skills/ce-ideate/references/agents/learnings-researcher.md +247 -0
  206. package/skills/ce-ideate/references/agents/slack-researcher.md +127 -0
  207. package/skills/ce-ideate/references/agents/web-researcher.md +121 -0
  208. package/skills/ce-ideate/references/decomposition.md +39 -0
  209. package/skills/ce-ideate/references/divergent-ideation.md +112 -0
  210. package/skills/ce-ideate/references/grounding.md +138 -0
  211. package/skills/ce-ideate/references/html-rendering.md +638 -0
  212. package/skills/ce-ideate/references/ideation-sections.md +191 -0
  213. package/skills/ce-ideate/references/issue-intelligence.md +44 -0
  214. package/skills/ce-ideate/references/markdown-rendering.md +242 -0
  215. package/skills/ce-ideate/references/output-mode.md +34 -0
  216. package/skills/ce-ideate/references/post-ideation-workflow.md +169 -0
  217. package/skills/ce-ideate/references/scope-gates.md +148 -0
  218. package/skills/ce-ideate/references/universal-ideation.md +119 -0
  219. package/skills/ce-ideate/references/user-research-artifacts.md +28 -0
  220. package/skills/ce-ideate/references/web-research-cache.md +56 -0
  221. package/skills/ce-noslop/SKILL.md +45 -0
  222. package/skills/ce-noslop/references/patterns.md +61 -0
  223. package/skills/ce-noslop/references/terminology.md +3 -0
  224. package/skills/ce-optimize/SKILL.md +64 -0
  225. package/skills/ce-optimize/references/agents/learnings-researcher.md +247 -0
  226. package/skills/ce-optimize/references/agents/repo-research-analyst.md +258 -0
  227. package/skills/ce-optimize/references/example-expensive-benchmark-spec.yaml +88 -0
  228. package/skills/ce-optimize/references/example-hard-spec.yaml +64 -0
  229. package/skills/ce-optimize/references/example-judge-spec.yaml +83 -0
  230. package/skills/ce-optimize/references/example-text-target-spec.yaml +80 -0
  231. package/skills/ce-optimize/references/experiment-log-schema.yaml +563 -0
  232. package/skills/ce-optimize/references/experiment-prompt-template.md +143 -0
  233. package/skills/ce-optimize/references/judge-prompt-template.md +117 -0
  234. package/skills/ce-optimize/references/loop.md +286 -0
  235. package/skills/ce-optimize/references/measurement.md +168 -0
  236. package/skills/ce-optimize/references/optimize-spec-schema.yaml +570 -0
  237. package/skills/ce-optimize/references/persistence.md +93 -0
  238. package/skills/ce-optimize/references/spec.md +107 -0
  239. package/skills/ce-optimize/references/text-targets.md +51 -0
  240. package/skills/ce-optimize/references/usage-guide.md +147 -0
  241. package/skills/ce-optimize/references/wrap-up.md +54 -0
  242. package/skills/ce-optimize/scripts/decide.mjs +676 -0
  243. package/skills/ce-optimize/scripts/experiment-worktree.sh +330 -0
  244. package/skills/ce-optimize/scripts/measure.sh +140 -0
  245. package/skills/ce-optimize/scripts/parallel-probe.sh +134 -0
  246. package/skills/ce-plan/SKILL.md +60 -0
  247. package/skills/ce-plan/references/agents/agent-native-planning-strategist.md +66 -0
  248. package/skills/ce-plan/references/agents/architecture-strategist.md +46 -0
  249. package/skills/ce-plan/references/agents/best-practices-researcher.md +118 -0
  250. package/skills/ce-plan/references/agents/data-integrity-guardian.md +68 -0
  251. package/skills/ce-plan/references/agents/framework-docs-researcher.md +97 -0
  252. package/skills/ce-plan/references/agents/git-history-analyzer.md +40 -0
  253. package/skills/ce-plan/references/agents/learnings-researcher.md +268 -0
  254. package/skills/ce-plan/references/agents/pattern-recognition-specialist.md +55 -0
  255. package/skills/ce-plan/references/agents/performance-oracle.md +108 -0
  256. package/skills/ce-plan/references/agents/repo-research-analyst.md +262 -0
  257. package/skills/ce-plan/references/agents/security-sentinel.md +91 -0
  258. package/skills/ce-plan/references/agents/slack-researcher.md +131 -0
  259. package/skills/ce-plan/references/agents/spec-flow-analyzer.md +84 -0
  260. package/skills/ce-plan/references/agents/web-researcher.md +125 -0
  261. package/skills/ce-plan/references/approach-altitude.md +55 -0
  262. package/skills/ce-plan/references/bakeoff.md +9 -0
  263. package/skills/ce-plan/references/deepening-workflow.md +263 -0
  264. package/skills/ce-plan/references/final-review.md +134 -0
  265. package/skills/ce-plan/references/html-rendering.md +638 -0
  266. package/skills/ce-plan/references/intake.md +158 -0
  267. package/skills/ce-plan/references/markdown-rendering.md +242 -0
  268. package/skills/ce-plan/references/output-contracts.md +29 -0
  269. package/skills/ce-plan/references/output-mode.md +45 -0
  270. package/skills/ce-plan/references/plan-handoff.md +116 -0
  271. package/skills/ce-plan/references/plan-sections.md +489 -0
  272. package/skills/ce-plan/references/reasoning-elevation.md +124 -0
  273. package/skills/ce-plan/references/research.md +211 -0
  274. package/skills/ce-plan/references/resume.md +61 -0
  275. package/skills/ce-plan/references/settled-decisions.md +45 -0
  276. package/skills/ce-plan/references/structure.md +207 -0
  277. package/skills/ce-plan/references/synthesis-summary.md +260 -0
  278. package/skills/ce-plan/references/universal-planning.md +170 -0
  279. package/skills/ce-plan/scripts/elevation-dispatch.sh +288 -0
  280. package/skills/ce-plan/scripts/packs-resolve.py +737 -0
  281. package/skills/ce-plan/scripts/peer-job-runner.py +2594 -0
  282. package/skills/ce-polish/SKILL.md +22 -0
  283. package/skills/ce-polish/agents/openai.yaml +2 -0
  284. package/skills/ce-polish/references/dev-server-astro.md +58 -0
  285. package/skills/ce-polish/references/dev-server-detection.md +40 -0
  286. package/skills/ce-polish/references/dev-server-next.md +61 -0
  287. package/skills/ce-polish/references/dev-server-nuxt.md +58 -0
  288. package/skills/ce-polish/references/dev-server-procfile.md +59 -0
  289. package/skills/ce-polish/references/dev-server-rails.md +50 -0
  290. package/skills/ce-polish/references/dev-server-remix.md +58 -0
  291. package/skills/ce-polish/references/dev-server-sveltekit.md +58 -0
  292. package/skills/ce-polish/references/dev-server-vite.md +48 -0
  293. package/skills/ce-polish/references/install-riffrec.md +35 -0
  294. package/skills/ce-polish/references/launch-json-schema.md +177 -0
  295. package/skills/ce-polish/references/live-loop.md +98 -0
  296. package/skills/ce-polish/references/live-remote.md +35 -0
  297. package/skills/ce-polish/references/live-start.md +93 -0
  298. package/skills/ce-polish/references/live-stream-contract.md +253 -0
  299. package/skills/ce-polish/references/run.md +67 -0
  300. package/skills/ce-polish/scripts/detect-project-type.sh +277 -0
  301. package/skills/ce-polish/scripts/detect-riffrec.sh +225 -0
  302. package/skills/ce-polish/scripts/live-endpoint.js +2841 -0
  303. package/skills/ce-polish/scripts/read-launch-json.sh +117 -0
  304. package/skills/ce-polish/scripts/resolve-package-manager.sh +95 -0
  305. package/skills/ce-polish/scripts/resolve-port.sh +307 -0
  306. package/skills/ce-pov/SKILL.md +64 -0
  307. package/skills/ce-pov/references/agents/external-evidence-researcher.md +26 -0
  308. package/skills/ce-pov/references/agents/pov-peer.md +43 -0
  309. package/skills/ce-pov/references/agents/precedent-activity-scout.md +21 -0
  310. package/skills/ce-pov/references/agents/project-grounding-scout.md +32 -0
  311. package/skills/ce-pov/references/boundaries.md +36 -0
  312. package/skills/ce-pov/references/cross-model-panel.md +596 -0
  313. package/skills/ce-pov/references/followup.md +9 -0
  314. package/skills/ce-pov/references/grounding.md +47 -0
  315. package/skills/ce-pov/references/intake.md +61 -0
  316. package/skills/ce-pov/references/invocation.md +47 -0
  317. package/skills/ce-pov/references/method.md +68 -0
  318. package/skills/ce-pov/references/pov-schema.json +56 -0
  319. package/skills/ce-pov/references/report.md +7 -0
  320. package/skills/ce-pov/scripts/cross-model-pov.sh +1110 -0
  321. package/skills/ce-pov/scripts/peer-job-runner.py +2594 -0
  322. package/skills/ce-product-pulse/SKILL.md +81 -0
  323. package/skills/ce-product-pulse/agents/openai.yaml +2 -0
  324. package/skills/ce-product-pulse/references/config.md +20 -0
  325. package/skills/ce-product-pulse/references/interview.md +260 -0
  326. package/skills/ce-product-pulse/references/report-template.md +89 -0
  327. package/skills/ce-product-pulse/references/run.md +46 -0
  328. package/skills/ce-product-pulse/references/setup.md +43 -0
  329. package/skills/ce-promote/SKILL.md +90 -0
  330. package/skills/ce-promote/agents/openai.yaml +2 -0
  331. package/skills/ce-promote/references/spiral-cli.md +149 -0
  332. package/skills/ce-proof/SKILL.md +65 -0
  333. package/skills/ce-proof/references/api.md +176 -0
  334. package/skills/ce-proof/references/workflows.md +124 -0
  335. package/skills/ce-prototype/SKILL.md +59 -0
  336. package/skills/ce-prototype/assets/annotate.css +206 -0
  337. package/skills/ce-prototype/assets/annotate.js +837 -0
  338. package/skills/ce-prototype/references/annotation-loop.md +32 -0
  339. package/skills/ce-prototype/references/build.md +39 -0
  340. package/skills/ce-prototype/references/craft-floor.md +43 -0
  341. package/skills/ce-prototype/references/preview.md +118 -0
  342. package/skills/ce-prototype/references/scoping.md +38 -0
  343. package/skills/ce-prototype/references/write-back.md +37 -0
  344. package/skills/ce-prototype/scripts/light-webserver.js +1275 -0
  345. package/skills/ce-resolve-pr-feedback/SKILL.md +60 -0
  346. package/skills/ce-resolve-pr-feedback/references/agents/pr-comment-resolver.md +59 -0
  347. package/skills/ce-resolve-pr-feedback/references/evaluation-rubric.md +141 -0
  348. package/skills/ce-resolve-pr-feedback/references/full-mode.md +336 -0
  349. package/skills/ce-resolve-pr-feedback/references/pipeline-mode.md +23 -0
  350. package/skills/ce-resolve-pr-feedback/references/resume.md +60 -0
  351. package/skills/ce-resolve-pr-feedback/references/return-to-caller.md +111 -0
  352. package/skills/ce-resolve-pr-feedback/references/targeted-mode.md +48 -0
  353. package/skills/ce-resolve-pr-feedback/scripts/get-pr-comments +176 -0
  354. package/skills/ce-resolve-pr-feedback/scripts/get-thread-for-comment +84 -0
  355. package/skills/ce-resolve-pr-feedback/scripts/pending-feedback.py +287 -0
  356. package/skills/ce-resolve-pr-feedback/scripts/reply-to-pr-thread +57 -0
  357. package/skills/ce-resolve-pr-feedback/scripts/resolve-pr-thread +23 -0
  358. package/skills/ce-retune/SKILL.md +42 -0
  359. package/skills/ce-retune/agents/openai.yaml +2 -0
  360. package/skills/ce-retune/references/baseline-mining.md +122 -0
  361. package/skills/ce-retune/references/corpus-audit.md +128 -0
  362. package/skills/ce-retune/references/cut-passes.md +129 -0
  363. package/skills/ce-retune/references/halt-taxonomy.md +123 -0
  364. package/skills/ce-retune/references/noise-floor.md +131 -0
  365. package/skills/ce-retune/references/workflow-shapes.md +73 -0
  366. package/skills/ce-riffrec-feedback-analysis/SKILL.md +33 -0
  367. package/skills/ce-riffrec-feedback-analysis/references/analyzer.md +18 -0
  368. package/skills/ce-riffrec-feedback-analysis/references/compound-engineering-feedback-format.md +116 -0
  369. package/skills/ce-riffrec-feedback-analysis/references/extensive-analysis.md +98 -0
  370. package/skills/ce-riffrec-feedback-analysis/references/install-riffrec.md +27 -0
  371. package/skills/ce-riffrec-feedback-analysis/references/quick-bug-report.md +38 -0
  372. package/skills/ce-riffrec-feedback-analysis/scripts/analyze_riffrec_zip.py +1306 -0
  373. package/skills/ce-setup/SKILL.md +103 -0
  374. package/skills/ce-setup/agents/openai.yaml +2 -0
  375. package/skills/ce-setup/assets/compounding-directive.md +11 -0
  376. package/skills/ce-setup/assets/noslop-directive.md +7 -0
  377. package/skills/ce-setup/assets/pack-rule-template.md +11 -0
  378. package/skills/ce-setup/references/acpx-cache-warm.md +14 -0
  379. package/skills/ce-setup/references/config-template.yaml +210 -0
  380. package/skills/ce-setup/references/legacy-codex-tool-map.md +15 -0
  381. package/skills/ce-setup/references/pack-scaffold.md +45 -0
  382. package/skills/ce-setup/references/repo-fixes.md +121 -0
  383. package/skills/ce-setup/scripts/check-health +929 -0
  384. package/skills/ce-setup/scripts/packs-resolve.py +737 -0
  385. package/skills/ce-simplify-code/SKILL.md +76 -0
  386. package/skills/ce-simplify-code/references/personas/code-quality-reviewer.md +17 -0
  387. package/skills/ce-simplify-code/references/personas/code-reuse-reviewer.md +7 -0
  388. package/skills/ce-simplify-code/references/personas/comment-reviewer.md +24 -0
  389. package/skills/ce-simplify-code/references/personas/efficiency-reviewer.md +11 -0
  390. package/skills/ce-simplify-code/references/personas/test-value-reviewer.md +23 -0
  391. package/skills/ce-simplify-code/references/reviewer-dispatch.md +11 -0
  392. package/skills/ce-simplify-code/references/standalone-report.md +25 -0
  393. package/skills/ce-strategy/SKILL.md +61 -0
  394. package/skills/ce-strategy/references/grounding.md +22 -0
  395. package/skills/ce-strategy/references/interview.md +179 -0
  396. package/skills/ce-strategy/references/strategy-template.md +94 -0
  397. package/skills/ce-strategy/references/update-run.md +33 -0
  398. package/skills/ce-sweep/SKILL.md +93 -0
  399. package/skills/ce-sweep/agents/openai.yaml +2 -0
  400. package/skills/ce-sweep/references/agents/media-analyzer.md +54 -0
  401. package/skills/ce-sweep/references/interview.md +208 -0
  402. package/skills/ce-sweep/references/model-tiers.md +13 -0
  403. package/skills/ce-sweep/references/plan-template.md +62 -0
  404. package/skills/ce-sweep/references/run.md +126 -0
  405. package/skills/ce-sweep/references/sources/email.md +57 -0
  406. package/skills/ce-sweep/references/sources/github-issues.md +59 -0
  407. package/skills/ce-sweep/references/sources/slack.md +61 -0
  408. package/skills/ce-sweep/references/state-schema.md +157 -0
  409. package/skills/ce-sweep/references/subagent-template.md +60 -0
  410. package/skills/ce-sweep/scripts/analyze_riffrec_zip.py +1306 -0
  411. package/skills/ce-sweep/scripts/sweep-state.py +793 -0
  412. package/skills/ce-test-browser/SKILL.md +50 -0
  413. package/skills/ce-test-browser/references/agent-browser-driver.md +47 -0
  414. package/skills/ce-test-browser/references/pipeline-orchestration.md +45 -0
  415. package/skills/ce-test-browser/references/route-and-report.md +129 -0
  416. package/skills/ce-test-browser/scripts/resolve-port.sh +41 -0
  417. package/skills/ce-test-xcode/SKILL.md +26 -0
  418. package/skills/ce-test-xcode/agents/openai.yaml +2 -0
  419. package/skills/ce-test-xcode/references/setup-and-build.md +32 -0
  420. package/skills/ce-test-xcode/references/test-and-report.md +64 -0
  421. package/skills/ce-work/SKILL.md +62 -0
  422. package/skills/ce-work/references/agents/figma-design-sync.md +27 -0
  423. package/skills/ce-work/references/agents/implementation-worker.md +17 -0
  424. package/skills/ce-work/references/cross-model-execution.md +191 -0
  425. package/skills/ce-work/references/execution-engines.md +64 -0
  426. package/skills/ce-work/references/execution-strategy.md +73 -0
  427. package/skills/ce-work/references/implementation-loop.md +107 -0
  428. package/skills/ce-work/references/implementation-result-schema.json +52 -0
  429. package/skills/ce-work/references/input-triage.md +50 -0
  430. package/skills/ce-work/references/non-code-execution.md +23 -0
  431. package/skills/ce-work/references/return-to-caller.md +33 -0
  432. package/skills/ce-work/references/review-findings-followup.md +82 -0
  433. package/skills/ce-work/references/shipping-workflow.md +89 -0
  434. package/skills/ce-work/references/tracker-defer.md +150 -0
  435. package/skills/ce-work/references/work-intake.md +51 -0
  436. package/skills/ce-work/references/workspace-setup.md +27 -0
  437. package/skills/ce-work/scripts/__pycache__/unit_workspace_jobs.cpython-314.pyc +0 -0
  438. package/skills/ce-work/scripts/__pycache__/unit_workspace_state.cpython-314.pyc +0 -0
  439. package/skills/ce-work/scripts/cross-model-work.sh +1385 -0
  440. package/skills/ce-work/scripts/peer-job-runner.py +2594 -0
  441. package/skills/ce-work/scripts/unit-workspace.py +215 -0
  442. package/skills/ce-work/scripts/unit_workspace_ignored.py +93 -0
  443. package/skills/ce-work/scripts/unit_workspace_integration.py +677 -0
  444. package/skills/ce-work/scripts/unit_workspace_jobs.py +1216 -0
  445. package/skills/ce-work/scripts/unit_workspace_lifecycle.py +981 -0
  446. package/skills/ce-work/scripts/unit_workspace_state.py +1379 -0
  447. package/skills/ce-work/scripts/unit_workspace_transaction.py +612 -0
  448. package/skills/ce-worktree/SKILL.md +54 -0
  449. package/skills/lfg/SKILL.md +59 -0
  450. package/skills/lfg/references/debug-return.md +25 -0
  451. package/skills/lfg/references/intake.md +30 -0
  452. package/skills/lfg/references/next-work-handoff.md +96 -0
  453. package/skills/lfg/references/plan-brief.md +36 -0
  454. package/skills/lfg/references/review-followup.md +78 -0
  455. package/skills/lfg/references/shipping.md +65 -0
  456. package/skills/lfg/references/stage-routing.md +49 -0
  457. package/skills/lfg/references/task-visibility.md +11 -0
  458. package/skills/lfg/references/tracker-defer.md +150 -0
  459. package/skills/lfg/references/work-return.md +27 -0
  460. package/skills/wtf/SKILL.md +33 -0
  461. package/skills/wtf/agents/openai.yaml +2 -0
@@ -0,0 +1,258 @@
1
+ **Note: The current year is 2026.** Use this when searching for recent documentation and patterns.
2
+
3
+ You are an expert repository research analyst specializing in understanding codebases, documentation structures, and project conventions. Your mission is to conduct thorough, systematic research to uncover patterns, guidelines, and best practices within repositories.
4
+
5
+ ## Invocation Contract
6
+
7
+ For optimization invocations, convert repository research into optimization inputs: likely hot paths, existing benchmark or profiling hooks, places where metrics are exposed or logged, expensive loops or queries, caching boundaries, test commands that measure behavior, and constraints that affect safe experimentation. Prefer concrete paths, commands, and measurement opportunities over broad architecture summaries.
8
+
9
+ **Scoped Invocation**
10
+
11
+ When the input begins with `Scope:` followed by a comma-separated list, run only the phases that match the requested scopes. This lets consumers request exactly the research they need.
12
+
13
+ Valid scopes and the phases they control:
14
+
15
+ | Scope | What runs | Output section |
16
+ |-------|-----------|----------------|
17
+ | `technology` | Phase 0 (full): manifest detection, monorepo scan, infrastructure, API surface, module structure | Technology & Infrastructure |
18
+ | `architecture` | Architecture and Structure Analysis: key documentation files, directory mapping, architectural patterns, design decisions | Architecture & Structure |
19
+ | `patterns` | Codebase Pattern Search: implementation patterns, naming conventions, code organization | Implementation Patterns |
20
+ | `conventions` | Documentation and Guidelines Review: contribution guidelines, coding standards, review processes | Documentation Insights |
21
+ | `issues` | GitHub Issue Pattern Analysis: formatting patterns, label conventions, issue structures | Issue Conventions |
22
+ | `templates` | Template Discovery: issue templates, PR templates, RFC templates | Templates Found |
23
+
24
+ **Scoping rules:**
25
+
26
+ - Multiple scopes combine: `Scope: technology, architecture, patterns` runs three phases.
27
+ - When scoped, produce output sections only for the requested scopes. Omit sections for phases that did not run.
28
+ - Include the Recommendations section only when the full set of phases runs (no scope specified).
29
+ - When `technology` is not in scope, use the caller-supplied planning context and go directly to the requested scopes. If the work cannot be scoped, run one targeted root or workspace probe. Omit Technology & Infrastructure from the output.
30
+ - When no `Scope:` prefix is present, run all phases and produce the full output. This is the default behavior.
31
+
32
+ Everything after the `Scope:` line is the research context (feature description, planning summary, or section-specific question). Use it to focus the requested phases on what matters for the consumer.
33
+
34
+ ---
35
+
36
+ **Phase 0: Technology & Infrastructure Scan (Run First When In Scope)**
37
+
38
+ Run Phase 0 only when `technology` is requested or when the invocation has no `Scope:` prefix.
39
+
40
+ Before open-ended exploration, run a structured scan to identify the project's technology stack and infrastructure. This grounds all subsequent research.
41
+
42
+ Phase 0 is designed to be fast and cheap. The goal is signal, not exhaustive enumeration. Prefer a small number of broad tool calls over many narrow ones.
43
+
44
+ **0.1 Root-Level Discovery (single tool call)**
45
+
46
+ Start with one broad glob of the repository root (`*` or a root-level directory listing) to see which files and directories exist. Match the results against the reference table below to identify ecosystems present. Only read manifests that actually exist -- skip ecosystems with no matching files.
47
+
48
+ When reading manifests, extract what matters for planning -- runtime/language version, major framework dependencies, and build/test tooling. Skip transitive dependency lists and lock files.
49
+
50
+ Reference -- manifest-to-ecosystem mapping:
51
+
52
+ | File | Ecosystem |
53
+ |------|-----------|
54
+ | `package.json` | Node.js / JavaScript / TypeScript |
55
+ | `tsconfig.json` | TypeScript (confirms TS usage, captures compiler config) |
56
+ | `go.mod` | Go |
57
+ | `Cargo.toml` | Rust |
58
+ | `Gemfile` | Ruby |
59
+ | `requirements.txt`, `pyproject.toml`, `Pipfile` | Python |
60
+ | `Podfile` | iOS / CocoaPods |
61
+ | `build.gradle`, `build.gradle.kts` | JVM / Android |
62
+ | `pom.xml` | Java / Maven |
63
+ | `mix.exs` | Elixir |
64
+ | `composer.json` | PHP |
65
+ | `pubspec.yaml` | Dart / Flutter |
66
+ | `CMakeLists.txt`, `Makefile` | C / C++ |
67
+ | `Package.swift` | Swift |
68
+ | `*.csproj`, `*.sln` | C# / .NET |
69
+ | `deno.json`, `deno.jsonc` | Deno |
70
+
71
+ **0.1b Monorepo Detection**
72
+
73
+ Check for monorepo signals in manifests already read in 0.1 and directories already visible from the root listing. If `pnpm-workspace.yaml`, `nx.json`, or `lerna.json` appeared in the root listing but were not read in 0.1, read them now -- they contain workspace paths needed for scoping:
74
+
75
+ | Signal | Indicator |
76
+ |--------|-----------|
77
+ | `workspaces` field in root `package.json` | npm/Yarn workspaces |
78
+ | `pnpm-workspace.yaml` | pnpm workspaces |
79
+ | `nx.json` | Nx monorepo |
80
+ | `lerna.json` | Lerna monorepo |
81
+ | `[workspace.members]` in root `Cargo.toml` | Cargo workspace |
82
+ | `go.mod` files one level deep (`*/go.mod`) -- run this glob only when Go directories are visible in the root listing but no root `go.mod` was found | Go multi-module |
83
+ | `apps/`, `packages/`, `services/` directories containing their own manifests | Convention-based monorepo |
84
+
85
+ If monorepo signals are detected:
86
+
87
+ 1. **When the planning context names a specific service or workspace:** Scope the remaining scan (0.2--0.4) to that subtree. Also note shared root-level config (CI, shared tooling, root tsconfig) as "shared infrastructure" since it often constrains service-level choices.
88
+ 2. **When no scope is clear:** Report the workspace/service map -- list the top-level workspaces or services with a one-line summary of each (name + primary language/framework if obvious from its manifest). Do not enumerate every dependency across every service. Note in the output that downstream planning should specify which service to focus on for a deeper scan.
89
+
90
+ Keep the monorepo check shallow: root-level manifests plus one directory level into `apps/*/`, `packages/*/`, `services/*/`, and any paths listed in workspace config. Do not recurse unboundedly.
91
+
92
+ **0.2 Infrastructure & API Surface (conditional -- skip entire categories that 0.1 rules out)**
93
+
94
+ Before running any globs, use the 0.1 findings to decide which categories to check. The root listing already revealed what files and directories exist -- many of these checks can be answered from that listing alone without additional tool calls.
95
+
96
+ **Skip rules (apply before globbing):**
97
+ - **API surface:** If 0.1 found no web framework or server dependency, **and** the root listing shows no API-related directories or files (`routes/`, `api/`, `proto/`, `*.proto`, `openapi.yaml`, `swagger.json`): skip the API surface category. Report "None detected." Note: some languages (Go, Node) use stdlib servers with no visible framework dependency -- check the root listing for structural signals before skipping.
98
+ - **Data layer:** Evaluate independently from API surface -- a CLI or worker can have a database without any HTTP layer. Skip only if 0.1 found no database-related dependency (e.g., prisma, sequelize, typeorm, activerecord, sqlalchemy, knex, diesel, ecto) **and** the root listing shows no data-related directories (`db/`, `prisma/`, `migrations/`, `models/`). Otherwise, check the data layer table below.
99
+ - If 0.1 found no Dockerfile, docker-compose, or infra directories in the root listing (and no monorepo service was scoped): skip the orchestration and IaC checks. Only check platform deployment files if they appeared in the root listing. When a monorepo service is scoped, also check for infra files within that service's subtree (e.g., `apps/api/Dockerfile`, `services/foo/k8s/`).
100
+ - If the root listing already showed deployment files (e.g., `fly.toml`, `vercel.json`): read them directly instead of globbing.
101
+
102
+ For categories that remain relevant, use batch globs to check in parallel.
103
+
104
+ Deployment architecture:
105
+
106
+ | File / Pattern | What it reveals |
107
+ |----------------|-----------------|
108
+ | `docker-compose.yml`, `Dockerfile`, `Procfile` | Containerization, process types |
109
+ | `kubernetes/`, `k8s/`, YAML with `kind: Deployment` | Orchestration |
110
+ | `serverless.yml`, `sam-template.yaml`, `app.yaml` | Serverless architecture |
111
+ | `terraform/`, `*.tf`, `pulumi/` | Infrastructure as code |
112
+ | `fly.toml`, `vercel.json`, `netlify.toml`, `render.yaml` | Platform deployment |
113
+
114
+ API surface (skip if no web framework or server dependency in 0.1):
115
+
116
+ | File / Pattern | What it reveals |
117
+ |----------------|-----------------|
118
+ | `*.proto` | gRPC services |
119
+ | `*.graphql`, `*.gql` | GraphQL API |
120
+ | `openapi.yaml`, `swagger.json` | REST API specs |
121
+ | Route / controller directories (`routes/`, `app/controllers/`, `src/routes/`, `src/api/`) | HTTP routing patterns |
122
+
123
+ Data layer (skip if no database library, ORM, or migration tool in 0.1):
124
+
125
+ | File / Pattern | What it reveals |
126
+ |----------------|-----------------|
127
+ | Migration directories (`db/migrate/`, `migrations/`, `alembic/`, `prisma/`) | Database structure |
128
+ | ORM model directories (`app/models/`, `src/models/`, `models/`) | Data model patterns |
129
+ | Schema files (`prisma/schema.prisma`, `db/schema.rb`, `schema.sql`) | Data model definitions |
130
+ | Queue / event config (Redis, Kafka, SQS references) | Async patterns |
131
+
132
+ **0.3 Module Structure -- Internal Boundaries**
133
+
134
+ Scan top-level directories under `src/`, `lib/`, `app/`, `pkg/`, `internal/` to identify how the codebase is organized. In monorepos where a specific service was scoped in 0.1b, scan that service's internal structure rather than the full repo.
135
+
136
+ **Using Phase 0 Findings**
137
+
138
+ If no dependency manifests or infrastructure files are found, note the absence briefly and proceed to the next phase -- the scan is a best-effort grounding step, not a check that must pass.
139
+
140
+ Include a **Technology & Infrastructure** section at the top of the research output summarizing what was found. This section should list:
141
+ - Languages and major frameworks detected (with versions when available)
142
+ - Deployment model (monolith, multi-service, serverless, etc.)
143
+ - API styles in use (or "none detected" when absent -- absence is a useful signal)
144
+ - Data stores and async patterns
145
+ - Module organization style
146
+ - Monorepo structure (if detected): workspace layout and which service was scoped for the scan
147
+
148
+ This context informs all subsequent research phases -- use it to focus documentation analysis, pattern search, and convention identification on the technologies actually present.
149
+
150
+ ---
151
+
152
+ **Core Responsibilities:**
153
+
154
+ 1. **Architecture and Structure Analysis**
155
+ - Examine key documentation files (ARCHITECTURE.md, README.md, CONTRIBUTING.md, and the project's root agent-instruction file for this harness, for example AGENTS.md, CLAUDE.md, GEMINI.md, or .cursor/rules, when present)
156
+ - Map out the repository's organizational structure
157
+ - Identify architectural patterns and design decisions
158
+ - Note any project-specific conventions or standards
159
+
160
+ 2. **GitHub Issue Pattern Analysis**
161
+ - Review existing issues to identify formatting patterns
162
+ - Document label usage conventions and categorization schemes
163
+ - Note common issue structures and required information
164
+ - Identify any automation or bot interactions
165
+
166
+ 3. **Documentation and Guidelines Review**
167
+ - Locate and analyze all contribution guidelines
168
+ - Check for issue/PR submission requirements
169
+ - Document any coding standards or style guides
170
+ - Note testing requirements and review processes
171
+
172
+ 4. **Template Discovery**
173
+ - Search for issue templates in `.github/ISSUE_TEMPLATE/`
174
+ - Check for pull request templates
175
+ - Document any other template files (e.g., RFC templates)
176
+ - Analyze template structure and required fields
177
+
178
+ 5. **Codebase Pattern Search**
179
+ - Use the native content-search tool for text and regex pattern searches
180
+ - Use the native file-search/glob tool to discover files by name or extension
181
+ - Use the native file-read tool to examine file contents
182
+ - Use `ast-grep` via shell when syntax-aware pattern matching is needed
183
+ - Identify common implementation patterns
184
+ - Document naming conventions and code organization
185
+
186
+ **Research Methodology:**
187
+
188
+ 1. Run the Phase 0 structured scan to establish the technology baseline
189
+ 2. Start with high-level documentation to understand project context
190
+ 3. Progressively drill down into specific areas based on findings
191
+ 4. Cross-reference discoveries across different sources
192
+ 5. Prioritize official documentation over inferred patterns
193
+ 6. Note any inconsistencies or areas lacking documentation
194
+
195
+ **Output Format:**
196
+
197
+ Structure your findings as:
198
+
199
+ ```markdown
200
+ ## Repository Research Summary
201
+
202
+ ### Technology & Infrastructure
203
+ - Languages and major frameworks detected (with versions)
204
+ - Deployment model (monolith, multi-service, serverless, etc.)
205
+ - API styles in use (REST, gRPC, GraphQL, etc.)
206
+ - Data stores and async patterns
207
+ - Module organization style
208
+ - Monorepo structure (if detected): workspace layout and scoped service
209
+
210
+ ### Architecture & Structure
211
+ - Key findings about project organization
212
+ - Important architectural decisions
213
+
214
+ ### Issue Conventions
215
+ - Formatting patterns observed
216
+ - Label taxonomy and usage
217
+ - Common issue types and structures
218
+
219
+ ### Documentation Insights
220
+ - Contribution guidelines summary
221
+ - Coding standards and practices
222
+ - Testing and review requirements
223
+
224
+ ### Templates Found
225
+ - List of template files with purposes
226
+ - Required fields and formats
227
+ - Usage instructions
228
+
229
+ ### Implementation Patterns
230
+ - Common code patterns identified
231
+ - Naming conventions
232
+ - Project-specific practices
233
+
234
+ ### Recommendations
235
+ - How to best align with project conventions
236
+ - Areas needing clarification
237
+ - Next steps for deeper investigation
238
+ ```
239
+
240
+ **Quality Assurance:**
241
+
242
+ - Verify findings by checking multiple sources
243
+ - Distinguish between official guidelines and observed patterns
244
+ - Note the recency of documentation (check last update dates)
245
+ - Flag any contradictions or outdated information
246
+ - Provide specific file paths (repo-relative, never absolute) and examples to support findings
247
+
248
+ **Tool Selection:** Use native file-search/glob (e.g., `Glob`), content-search (e.g., `Grep`), and file-read (e.g., `Read`) tools for repository exploration. Only use shell for commands with no native equivalent (e.g., `ast-grep`), one command at a time.
249
+
250
+ **Important Considerations:**
251
+
252
+ - Respect any AGENTS.md or other project-specific instructions found
253
+ - Pay attention to both explicit rules and implicit conventions
254
+ - Consider the project's maturity and size when interpreting patterns
255
+ - Note any tools or automation mentioned in documentation
256
+ - Return only findings that change the plan
257
+
258
+ Your research should enable someone to quickly understand and align with the project's established patterns and practices. Be systematic, thorough, and always provide evidence for your findings.
@@ -0,0 +1,88 @@
1
+ # Expensive-benchmark template (test-suite wall time, CI critical path, runner-minutes).
2
+ # Use this shape when each evaluation costs minutes and "better" is more than one hard target.
3
+ # Existing single-primary specs stay valid; this file is an opt-in example, not a new default.
4
+
5
+ name: reduce-test-suite-wall-time
6
+ description: >
7
+ Reduce local full-suite wall time without raising the CI critical path
8
+ or aggregate runner-minutes. A change that helps only CI is eligible
9
+ if it does not regress the other required targets.
10
+
11
+ metric:
12
+ primary:
13
+ type: hard
14
+ name: local_wall_seconds
15
+ direction: minimize
16
+ target: 300
17
+ objectives:
18
+ - name: local_wall_seconds
19
+ direction: minimize
20
+ role: required
21
+ target: 300
22
+ - name: ci_critical_path_seconds
23
+ direction: minimize
24
+ role: required
25
+ target: 90
26
+ - name: runner_minutes
27
+ direction: minimize
28
+ role: required
29
+ target: 40
30
+ degenerate_gates:
31
+ - name: suite_passed
32
+ check: "== 1"
33
+ description: The full suite must stay green
34
+ diagnostics:
35
+ - name: python_group_seconds
36
+ - name: go_group_seconds
37
+
38
+ measurement:
39
+ command: "python tools/eval/measure_suite.py"
40
+ timeout_seconds: 1200
41
+ working_directory: "."
42
+ stability:
43
+ mode: ladder
44
+ repeat_count: 5
45
+ aggregation: median
46
+ noise_threshold: 10
47
+ comparison:
48
+ method: relative
49
+ relative_threshold: 0.05
50
+ ladder:
51
+ smoke_command: "python tools/eval/measure_suite.py --smoke"
52
+ exploratory_pairs: 1
53
+ confirmation_repeats: 5
54
+ futility:
55
+ worse_factor: 1.2
56
+
57
+ scope:
58
+ mutable:
59
+ - "Makefile"
60
+ - "scripts/test/"
61
+ - ".github/workflows/"
62
+ immutable:
63
+ - "tools/eval/measure_suite.py"
64
+ - "tests/fixtures/"
65
+
66
+ execution:
67
+ mode: serial
68
+ backend: worktree
69
+ max_concurrent: 1
70
+
71
+ parallel:
72
+ port_strategy: none
73
+ shared_files: []
74
+
75
+ dependencies:
76
+ approved: []
77
+
78
+ constraints:
79
+ - "Do not skip required tests to win a timing metric"
80
+ - "Do not change the measurement harness"
81
+
82
+ stopping:
83
+ max_iterations: 12
84
+ max_hours: 8
85
+ plateau_iterations: 6
86
+ target_reached: true
87
+
88
+ max_runner_up_merges_per_batch: 0
@@ -0,0 +1,64 @@
1
+ # Minimal first-run template for objective metrics.
2
+ # Start here when "better" is a scalar value from the measurement harness.
3
+
4
+ name: improve-build-latency
5
+ description: Reduce build latency without regressing correctness
6
+
7
+ metric:
8
+ primary:
9
+ type: hard
10
+ name: build_seconds
11
+ direction: minimize
12
+ degenerate_gates:
13
+ - name: build_passed
14
+ check: "== 1"
15
+ description: The build must stay green
16
+ - name: test_pass_rate
17
+ check: ">= 1.0"
18
+ description: Required tests must keep passing
19
+ diagnostics:
20
+ - name: artifact_size_mb
21
+ - name: peak_memory_mb
22
+
23
+ measurement:
24
+ command: "python evaluate.py"
25
+ timeout_seconds: 300
26
+ working_directory: "tools/eval"
27
+ stability:
28
+ mode: repeat
29
+ repeat_count: 3
30
+ aggregation: median
31
+ noise_threshold: 0.05
32
+
33
+ scope:
34
+ mutable:
35
+ - "src/build/"
36
+ - "config/build.yaml"
37
+ immutable:
38
+ - "tools/eval/evaluate.py"
39
+ - "tests/fixtures/"
40
+ - "scripts/ci/"
41
+
42
+ execution:
43
+ mode: serial
44
+ backend: worktree
45
+ max_concurrent: 1
46
+
47
+ parallel:
48
+ port_strategy: none
49
+ shared_files: []
50
+
51
+ dependencies:
52
+ approved: []
53
+
54
+ constraints:
55
+ - "Keep output artifacts backward compatible"
56
+ - "Do not skip required validation steps"
57
+
58
+ stopping:
59
+ max_iterations: 4
60
+ max_hours: 1
61
+ plateau_iterations: 3
62
+ target_reached: true
63
+
64
+ max_runner_up_merges_per_batch: 0
@@ -0,0 +1,83 @@
1
+ # Minimal first-run template for qualitative metrics.
2
+ # Start here when true quality requires semantic judgment, not a proxy metric.
3
+
4
+ name: improve-search-relevance
5
+ description: Improve semantic relevance of search results without obvious failures
6
+
7
+ metric:
8
+ primary:
9
+ type: judge
10
+ name: mean_score
11
+ direction: maximize
12
+ degenerate_gates:
13
+ - name: result_count
14
+ check: ">= 5"
15
+ description: Return enough results to judge quality
16
+ - name: empty_query_failures
17
+ check: "== 0"
18
+ description: Empty or trivial queries must not fail
19
+ diagnostics:
20
+ - name: latency_ms
21
+ - name: recall_at_10
22
+ judge:
23
+ rubric: |
24
+ Rate each result set from 1-5 for relevance:
25
+ - 5: Results are directly relevant and well ordered
26
+ - 4: Mostly relevant with minor ordering issues
27
+ - 3: Mixed relevance or one obvious miss
28
+ - 2: Weak relevance, several misses, or poor ordering
29
+ - 1: Mostly irrelevant
30
+ Also report: ambiguous (boolean)
31
+ scoring:
32
+ primary: mean_score
33
+ secondary:
34
+ - ambiguous_rate
35
+ model: cheap # capability tier; the harness picks the concrete model
36
+ sample_size: 10
37
+ batch_size: 5
38
+ sample_seed: 42
39
+ confirmation_seed: 7 # held-out sample, scored only before a keep and at final confirmation
40
+ calibration:
41
+ labels: "tools/eval/judge-labels.yaml" # optional: your own scores for some outputs; omit the block and Phase 1 offers a guided check
42
+ min_agreement: 0.8
43
+ minimum_improvement: 0.2
44
+ max_total_cost_usd: 5
45
+
46
+ measurement:
47
+ command: "python eval_search.py"
48
+ timeout_seconds: 300
49
+ working_directory: "tools/eval"
50
+
51
+ scope:
52
+ mutable:
53
+ - "src/search/"
54
+ - "config/search.yaml"
55
+ immutable:
56
+ - "tools/eval/eval_search.py"
57
+ - "tools/eval/judge-labels.yaml"
58
+ - "tests/fixtures/"
59
+ - "docs/"
60
+
61
+ execution:
62
+ mode: serial
63
+ backend: worktree
64
+ max_concurrent: 1
65
+
66
+ parallel:
67
+ port_strategy: none
68
+ shared_files: []
69
+
70
+ dependencies:
71
+ approved: []
72
+
73
+ constraints:
74
+ - "Preserve the existing search response shape"
75
+ - "Do not add new dependencies on the first run"
76
+
77
+ stopping:
78
+ max_iterations: 4
79
+ max_hours: 1
80
+ plateau_iterations: 3
81
+ target_reached: true
82
+
83
+ max_runner_up_merges_per_batch: 0
@@ -0,0 +1,80 @@
1
+ # Instruction-text target: a SKILL.md scored on a fixed case set.
2
+ # Start here when the mutable files are instructions a model runs under.
3
+ # See references/text-targets.md for the eval-set coverage rule, model roles,
4
+ # and the hypothesis moves this spec's categories name.
5
+
6
+ name: tighten-triage-skill
7
+ description: Raise the pass rate of the issue-triage skill on recorded failures without growing the prompt
8
+
9
+ metric:
10
+ primary:
11
+ type: hard
12
+ name: pass_rate # fraction of selection cases the task model passes
13
+ direction: maximize
14
+ target: 0.95 # a 1.0 here means the case set stopped separating candidates
15
+ objectives:
16
+ - name: prompt_tokens
17
+ direction: minimize
18
+ role: secondary # logged on every experiment; make it required to forbid growth
19
+ degenerate_gates:
20
+ - name: cases_run
21
+ check: ">= 24"
22
+ description: Every selection case ran; a partial run is not a measurement
23
+ - name: skill_parses
24
+ check: "== 1"
25
+ description: Frontmatter and body still parse as a skill
26
+ diagnostics:
27
+ - name: mean_output_tokens
28
+ - name: cases_ambiguous
29
+
30
+ measurement:
31
+ # Runs every case in eval/triage/selection.jsonl under the pinned task model
32
+ # and prints {"pass_rate", "prompt_tokens", "cases_run", "skill_parses",
33
+ # "mean_output_tokens", "cases_ambiguous", "cases": {"<id>": true|false}}.
34
+ command: "python eval/triage/run_cases.py --cases eval/triage/selection.jsonl --model task-model-pinned-in-script"
35
+ timeout_seconds: 900
36
+ working_directory: "."
37
+ per_case: true # decide.mjs reports cases the baseline passed and a candidate fails
38
+ holdout:
39
+ # Same script, a case file the selection command never reads. Scored only
40
+ # before a keep and at final confirmation.
41
+ command: "python eval/triage/run_cases.py --cases eval/triage/holdout.jsonl --model task-model-pinned-in-script"
42
+ stability:
43
+ mode: repeat
44
+ repeat_count: 3 # the task model is not deterministic; aggregate
45
+ aggregation: median
46
+ comparison:
47
+ method: absolute
48
+ noise_threshold: 0.04 # one case in 25
49
+
50
+ scope:
51
+ mutable:
52
+ - "skills/triage/SKILL.md"
53
+ - "skills/triage/references/"
54
+ immutable:
55
+ - "eval/triage/" # cases, holdout, and the runner are the artifact the run keeps
56
+ - "tests/"
57
+
58
+ execution:
59
+ mode: serial
60
+ backend: worktree
61
+ max_concurrent: 1
62
+
63
+ dependencies:
64
+ approved: []
65
+
66
+ constraints:
67
+ - "Keep the skill's name and description frontmatter fields unchanged"
68
+ - "Every rule kept in the body must have at least one case in eval/triage/ that fails without it"
69
+
70
+ # Hypothesis categories for this target are the moves in text-targets.md:
71
+ # add-examples, bootstrap-examples, rewrite-from-feedback, shorten,
72
+ # restructure, decompose, vote, external-optimizer.
73
+
74
+ stopping:
75
+ max_iterations: 8
76
+ max_hours: 2
77
+ plateau_iterations: 4
78
+ target_reached: true
79
+
80
+ max_runner_up_merges_per_batch: 0