incitaciones 0.1.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 (318) hide show
  1. package/LICENSE +395 -0
  2. package/README.md +410 -0
  3. package/content/distilled/abstraction-miner.md +32 -0
  4. package/content/distilled/adversarial-stakeholder-evaluation.md +121 -0
  5. package/content/distilled/anti-slop-prose.md +46 -0
  6. package/content/distilled/bias-audit.md +39 -0
  7. package/content/distilled/code-review/SKILL.md +53 -0
  8. package/content/distilled/code-review/references/criteria.md +50 -0
  9. package/content/distilled/code-review/references/templates.md +75 -0
  10. package/content/distilled/code-review/references/variants.md +32 -0
  11. package/content/distilled/commit/SKILL.md +41 -0
  12. package/content/distilled/commit/references/criteria.md +21 -0
  13. package/content/distilled/commit/references/templates.md +46 -0
  14. package/content/distilled/composability-diagnostician.md +67 -0
  15. package/content/distilled/context-guardian.md +20 -0
  16. package/content/distilled/create-handoff/SKILL.md +16 -0
  17. package/content/distilled/create-handoff/references/handoff-template.md +65 -0
  18. package/content/distilled/create-handoff/references/naming.md +7 -0
  19. package/content/distilled/create-issues/SKILL.md +72 -0
  20. package/content/distilled/create-issues/references/criteria.md +44 -0
  21. package/content/distilled/create-issues/references/templates.md +75 -0
  22. package/content/distilled/create-plan/SKILL.md +19 -0
  23. package/content/distilled/create-plan/references/plan-template.md +87 -0
  24. package/content/distilled/create-plan/references/scenarios.md +19 -0
  25. package/content/distilled/debug/SKILL.md +42 -0
  26. package/content/distilled/debug/references/criteria.md +27 -0
  27. package/content/distilled/debug/references/templates.md +39 -0
  28. package/content/distilled/describe-pr/SKILL.md +17 -0
  29. package/content/distilled/describe-pr/references/pr-template.md +62 -0
  30. package/content/distilled/design-practice.md +213 -0
  31. package/content/distilled/design-review/SKILL.md +29 -0
  32. package/content/distilled/design-review/references/combined-review.md +27 -0
  33. package/content/distilled/design-review/references/decision-matrix.md +122 -0
  34. package/content/distilled/design-review/references/problem-statement.md +141 -0
  35. package/content/distilled/design-review/references/report-template.md +36 -0
  36. package/content/distilled/design-review/references/scope-document.md +51 -0
  37. package/content/distilled/distill-prompt/SKILL.md +41 -0
  38. package/content/distilled/distill-prompt/references/criteria.md +26 -0
  39. package/content/distilled/distill-prompt/references/templates.md +30 -0
  40. package/content/distilled/doc-link-verifier/SKILL.md +212 -0
  41. package/content/distilled/doc-link-verifier/scripts/check_links.py +453 -0
  42. package/content/distilled/doc-link-verifier/scripts/extract_links.py +521 -0
  43. package/content/distilled/edge-case-discovery.md +123 -0
  44. package/content/distilled/error-handling-diagnostician.md +90 -0
  45. package/content/distilled/extract-prompt.md +220 -0
  46. package/content/distilled/formal-verification-evaluator.md +158 -0
  47. package/content/distilled/grill-me.md +24 -0
  48. package/content/distilled/guided-review.md +68 -0
  49. package/content/distilled/implement-documentation.md +68 -0
  50. package/content/distilled/implement-plan/SKILL.md +23 -0
  51. package/content/distilled/implement-plan/references/common-situations.md +36 -0
  52. package/content/distilled/implement-plan/references/verification-template.md +18 -0
  53. package/content/distilled/invalid-states-diagnostician.md +63 -0
  54. package/content/distilled/issue-review/SKILL.md +37 -0
  55. package/content/distilled/issue-review/references/convergence.md +19 -0
  56. package/content/distilled/issue-review/references/final-report.md +60 -0
  57. package/content/distilled/issue-review/references/pass-1-clarity.md +28 -0
  58. package/content/distilled/issue-review/references/pass-2-scope.md +22 -0
  59. package/content/distilled/issue-review/references/pass-3-dependencies.md +23 -0
  60. package/content/distilled/issue-review/references/pass-4-alignment.md +17 -0
  61. package/content/distilled/issue-review/references/pass-5-executability.md +17 -0
  62. package/content/distilled/issue-review/references/setup.md +25 -0
  63. package/content/distilled/iterate-plan/SKILL.md +24 -0
  64. package/content/distilled/iterate-plan/references/change-template.md +15 -0
  65. package/content/distilled/iterate-plan/references/common-scenarios.md +14 -0
  66. package/content/distilled/julia-performance-diagnostician.md +71 -0
  67. package/content/distilled/modularity-diagnostician.md +68 -0
  68. package/content/distilled/multi-agent-review.md +196 -0
  69. package/content/distilled/mutability-diagnostician.md +63 -0
  70. package/content/distilled/narrative-article.md +60 -0
  71. package/content/distilled/optionality-review.md +190 -0
  72. package/content/distilled/parallel-review/SKILL.md +49 -0
  73. package/content/distilled/parallel-review/references/criteria.md +34 -0
  74. package/content/distilled/parallel-review/references/templates.md +59 -0
  75. package/content/distilled/plan-review/SKILL.md +42 -0
  76. package/content/distilled/plan-review/references/criteria.md +51 -0
  77. package/content/distilled/plan-review/references/templates.md +67 -0
  78. package/content/distilled/pre-mortem.md +10 -0
  79. package/content/distilled/project-status-report.md +124 -0
  80. package/content/distilled/pwa-accessibility-review.md +81 -0
  81. package/content/distilled/rca-diagnostician/SKILL.md +30 -0
  82. package/content/distilled/rca-diagnostician/references/action-hierarchy.md +77 -0
  83. package/content/distilled/rca-diagnostician/references/bias-countermeasures.md +64 -0
  84. package/content/distilled/rca-diagnostician/references/evidence-timeline.md +49 -0
  85. package/content/distilled/rca-diagnostician/references/hypothesis-methods.md +53 -0
  86. package/content/distilled/rca-diagnostician/references/problem-definition.md +34 -0
  87. package/content/distilled/rca-diagnostician/references/report-template.md +75 -0
  88. package/content/distilled/rca-diagnostician/references/rigor-checklist.md +66 -0
  89. package/content/distilled/red-team-review.md +133 -0
  90. package/content/distilled/research-codebase/SKILL.md +22 -0
  91. package/content/distilled/research-codebase/references/report-template.md +75 -0
  92. package/content/distilled/research-codebase/references/search-patterns.md +27 -0
  93. package/content/distilled/research-documentation.md +79 -0
  94. package/content/distilled/research-review/SKILL.md +42 -0
  95. package/content/distilled/research-review/references/criteria.md +51 -0
  96. package/content/distilled/research-review/references/templates.md +73 -0
  97. package/content/distilled/resonant-refactor.md +45 -0
  98. package/content/distilled/resume-handoff/SKILL.md +19 -0
  99. package/content/distilled/resume-handoff/references/analysis-template.md +40 -0
  100. package/content/distilled/resume-handoff/references/locating.md +12 -0
  101. package/content/distilled/review-documentation.md +44 -0
  102. package/content/distilled/rigidity-diagnostician.md +70 -0
  103. package/content/distilled/rule-of-5-universal/SKILL.md +26 -0
  104. package/content/distilled/rule-of-5-universal/references/criteria.md +34 -0
  105. package/content/distilled/rule-of-5-universal/references/examples.md +69 -0
  106. package/content/distilled/rule-of-5-universal/references/templates.md +136 -0
  107. package/content/distilled/specification-evaluation-diagnostician.md +106 -0
  108. package/content/distilled/specification-review/SKILL.md +43 -0
  109. package/content/distilled/specification-review/references/criteria.md +51 -0
  110. package/content/distilled/specification-review/references/templates.md +67 -0
  111. package/content/distilled/systematic-housekeeping.md +27 -0
  112. package/content/distilled/tdd/SKILL.md +38 -0
  113. package/content/distilled/tdd/references/criteria.md +26 -0
  114. package/content/distilled/tdd/references/templates.md +53 -0
  115. package/content/distilled/test-abstraction-miner.md +43 -0
  116. package/content/distilled/test-friction.md +51 -0
  117. package/content/distilled/testability-implementability-evaluator.md +144 -0
  118. package/content/distilled/ui-align.md +32 -0
  119. package/content/distilled/ux-dx-evaluation-diagnostician/SKILL.md +21 -0
  120. package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-1-product.md +20 -0
  121. package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-2-engineering.md +20 -0
  122. package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-3-interface.md +23 -0
  123. package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-4-ecosystem.md +20 -0
  124. package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-5-documentation.md +19 -0
  125. package/content/distilled/ux-dx-evaluation-diagnostician/references/report-template.md +36 -0
  126. package/content/distilled/verification-diagnostician.md +90 -0
  127. package/content/distilled/verify-prompt/SKILL.md +32 -0
  128. package/content/distilled/verify-prompt/references/criteria.md +21 -0
  129. package/content/manifest.json +3220 -0
  130. package/package.json +50 -0
  131. package/pi-package/README.md +9 -0
  132. package/pi-package/prompts/abstraction-miner.md +10 -0
  133. package/pi-package/prompts/adversarial-stakeholder-evaluation.md +10 -0
  134. package/pi-package/prompts/anti-slop-prose.md +10 -0
  135. package/pi-package/prompts/bias-audit.md +10 -0
  136. package/pi-package/prompts/code-review.md +10 -0
  137. package/pi-package/prompts/commit.md +10 -0
  138. package/pi-package/prompts/composability-diagnostician.md +10 -0
  139. package/pi-package/prompts/context-guardian.md +10 -0
  140. package/pi-package/prompts/create-handoff.md +10 -0
  141. package/pi-package/prompts/create-issues.md +10 -0
  142. package/pi-package/prompts/create-plan.md +10 -0
  143. package/pi-package/prompts/debug.md +10 -0
  144. package/pi-package/prompts/describe-pr.md +10 -0
  145. package/pi-package/prompts/design-practice.md +10 -0
  146. package/pi-package/prompts/design-review.md +10 -0
  147. package/pi-package/prompts/distill-prompt.md +10 -0
  148. package/pi-package/prompts/doc-link-verifier.md +10 -0
  149. package/pi-package/prompts/edge-case-discovery.md +10 -0
  150. package/pi-package/prompts/error-handling-diagnostician.md +10 -0
  151. package/pi-package/prompts/extract-prompt.md +10 -0
  152. package/pi-package/prompts/formal-verification-evaluator.md +10 -0
  153. package/pi-package/prompts/grill-me.md +10 -0
  154. package/pi-package/prompts/guided-review.md +10 -0
  155. package/pi-package/prompts/implement-documentation.md +10 -0
  156. package/pi-package/prompts/implement-plan.md +10 -0
  157. package/pi-package/prompts/invalid-states-diagnostician.md +10 -0
  158. package/pi-package/prompts/issue-review.md +10 -0
  159. package/pi-package/prompts/iterate-plan.md +10 -0
  160. package/pi-package/prompts/julia-performance-diagnostician.md +10 -0
  161. package/pi-package/prompts/modularity-diagnostician.md +10 -0
  162. package/pi-package/prompts/multi-agent-review.md +10 -0
  163. package/pi-package/prompts/mutability-diagnostician.md +10 -0
  164. package/pi-package/prompts/narrative-article.md +10 -0
  165. package/pi-package/prompts/optionality-review.md +10 -0
  166. package/pi-package/prompts/parallel-review.md +10 -0
  167. package/pi-package/prompts/plan-review.md +10 -0
  168. package/pi-package/prompts/pre-mortem.md +10 -0
  169. package/pi-package/prompts/project-status-report.md +10 -0
  170. package/pi-package/prompts/pwa-accessibility-review.md +10 -0
  171. package/pi-package/prompts/rca-diagnostician.md +10 -0
  172. package/pi-package/prompts/red-team-review.md +10 -0
  173. package/pi-package/prompts/research-codebase.md +10 -0
  174. package/pi-package/prompts/research-documentation.md +10 -0
  175. package/pi-package/prompts/research-review.md +10 -0
  176. package/pi-package/prompts/resonant-refactor.md +10 -0
  177. package/pi-package/prompts/resume-handoff.md +10 -0
  178. package/pi-package/prompts/review-documentation.md +10 -0
  179. package/pi-package/prompts/rigidity-diagnostician.md +10 -0
  180. package/pi-package/prompts/rule-of-5-universal.md +10 -0
  181. package/pi-package/prompts/specification-evaluation-diagnostician.md +10 -0
  182. package/pi-package/prompts/specification-review.md +10 -0
  183. package/pi-package/prompts/systematic-housekeeping.md +10 -0
  184. package/pi-package/prompts/tdd.md +10 -0
  185. package/pi-package/prompts/test-abstraction-miner.md +10 -0
  186. package/pi-package/prompts/test-friction.md +10 -0
  187. package/pi-package/prompts/testability-implementability-evaluator.md +10 -0
  188. package/pi-package/prompts/ui-align.md +10 -0
  189. package/pi-package/prompts/ux-dx-evaluation-diagnostician.md +10 -0
  190. package/pi-package/prompts/verification-diagnostician.md +10 -0
  191. package/pi-package/prompts/verify-prompt.md +10 -0
  192. package/pi-package/skills/abstraction-miner/SKILL.md +38 -0
  193. package/pi-package/skills/adversarial-stakeholder-evaluation/SKILL.md +127 -0
  194. package/pi-package/skills/anti-slop-prose/SKILL.md +52 -0
  195. package/pi-package/skills/bias-audit/SKILL.md +45 -0
  196. package/pi-package/skills/code-review/SKILL.md +59 -0
  197. package/pi-package/skills/code-review/references/criteria.md +50 -0
  198. package/pi-package/skills/code-review/references/templates.md +75 -0
  199. package/pi-package/skills/code-review/references/variants.md +32 -0
  200. package/pi-package/skills/commit/SKILL.md +47 -0
  201. package/pi-package/skills/commit/references/criteria.md +21 -0
  202. package/pi-package/skills/commit/references/templates.md +46 -0
  203. package/pi-package/skills/composability-diagnostician/SKILL.md +73 -0
  204. package/pi-package/skills/context-guardian/SKILL.md +26 -0
  205. package/pi-package/skills/create-handoff/SKILL.md +22 -0
  206. package/pi-package/skills/create-handoff/references/handoff-template.md +65 -0
  207. package/pi-package/skills/create-handoff/references/naming.md +7 -0
  208. package/pi-package/skills/create-issues/SKILL.md +78 -0
  209. package/pi-package/skills/create-issues/references/criteria.md +44 -0
  210. package/pi-package/skills/create-issues/references/templates.md +75 -0
  211. package/pi-package/skills/create-plan/SKILL.md +25 -0
  212. package/pi-package/skills/create-plan/references/plan-template.md +87 -0
  213. package/pi-package/skills/create-plan/references/scenarios.md +19 -0
  214. package/pi-package/skills/debug/SKILL.md +48 -0
  215. package/pi-package/skills/debug/references/criteria.md +27 -0
  216. package/pi-package/skills/debug/references/templates.md +39 -0
  217. package/pi-package/skills/describe-pr/SKILL.md +23 -0
  218. package/pi-package/skills/describe-pr/references/pr-template.md +62 -0
  219. package/pi-package/skills/design-practice/SKILL.md +219 -0
  220. package/pi-package/skills/design-review/SKILL.md +35 -0
  221. package/pi-package/skills/design-review/references/combined-review.md +27 -0
  222. package/pi-package/skills/design-review/references/decision-matrix.md +122 -0
  223. package/pi-package/skills/design-review/references/problem-statement.md +141 -0
  224. package/pi-package/skills/design-review/references/report-template.md +36 -0
  225. package/pi-package/skills/design-review/references/scope-document.md +51 -0
  226. package/pi-package/skills/distill-prompt/SKILL.md +47 -0
  227. package/pi-package/skills/distill-prompt/references/criteria.md +26 -0
  228. package/pi-package/skills/distill-prompt/references/templates.md +30 -0
  229. package/pi-package/skills/doc-link-verifier/SKILL.md +218 -0
  230. package/pi-package/skills/doc-link-verifier/scripts/check_links.py +453 -0
  231. package/pi-package/skills/doc-link-verifier/scripts/extract_links.py +521 -0
  232. package/pi-package/skills/edge-case-discovery/SKILL.md +129 -0
  233. package/pi-package/skills/error-handling-diagnostician/SKILL.md +96 -0
  234. package/pi-package/skills/extract-prompt/SKILL.md +226 -0
  235. package/pi-package/skills/formal-verification-evaluator/SKILL.md +164 -0
  236. package/pi-package/skills/grill-me/SKILL.md +30 -0
  237. package/pi-package/skills/guided-review/SKILL.md +74 -0
  238. package/pi-package/skills/implement-documentation/SKILL.md +74 -0
  239. package/pi-package/skills/implement-plan/SKILL.md +29 -0
  240. package/pi-package/skills/implement-plan/references/common-situations.md +36 -0
  241. package/pi-package/skills/implement-plan/references/verification-template.md +18 -0
  242. package/pi-package/skills/invalid-states-diagnostician/SKILL.md +69 -0
  243. package/pi-package/skills/issue-review/SKILL.md +43 -0
  244. package/pi-package/skills/issue-review/references/convergence.md +19 -0
  245. package/pi-package/skills/issue-review/references/final-report.md +60 -0
  246. package/pi-package/skills/issue-review/references/pass-1-clarity.md +28 -0
  247. package/pi-package/skills/issue-review/references/pass-2-scope.md +22 -0
  248. package/pi-package/skills/issue-review/references/pass-3-dependencies.md +23 -0
  249. package/pi-package/skills/issue-review/references/pass-4-alignment.md +17 -0
  250. package/pi-package/skills/issue-review/references/pass-5-executability.md +17 -0
  251. package/pi-package/skills/issue-review/references/setup.md +25 -0
  252. package/pi-package/skills/iterate-plan/SKILL.md +30 -0
  253. package/pi-package/skills/iterate-plan/references/change-template.md +15 -0
  254. package/pi-package/skills/iterate-plan/references/common-scenarios.md +14 -0
  255. package/pi-package/skills/julia-performance-diagnostician/SKILL.md +77 -0
  256. package/pi-package/skills/modularity-diagnostician/SKILL.md +74 -0
  257. package/pi-package/skills/multi-agent-review/SKILL.md +202 -0
  258. package/pi-package/skills/mutability-diagnostician/SKILL.md +69 -0
  259. package/pi-package/skills/narrative-article/SKILL.md +66 -0
  260. package/pi-package/skills/optionality-review/SKILL.md +196 -0
  261. package/pi-package/skills/parallel-review/SKILL.md +55 -0
  262. package/pi-package/skills/parallel-review/references/criteria.md +34 -0
  263. package/pi-package/skills/parallel-review/references/templates.md +59 -0
  264. package/pi-package/skills/plan-review/SKILL.md +48 -0
  265. package/pi-package/skills/plan-review/references/criteria.md +51 -0
  266. package/pi-package/skills/plan-review/references/templates.md +67 -0
  267. package/pi-package/skills/pre-mortem/SKILL.md +16 -0
  268. package/pi-package/skills/project-status-report/SKILL.md +130 -0
  269. package/pi-package/skills/pwa-accessibility-review/SKILL.md +87 -0
  270. package/pi-package/skills/rca-diagnostician/SKILL.md +36 -0
  271. package/pi-package/skills/rca-diagnostician/references/action-hierarchy.md +77 -0
  272. package/pi-package/skills/rca-diagnostician/references/bias-countermeasures.md +64 -0
  273. package/pi-package/skills/rca-diagnostician/references/evidence-timeline.md +49 -0
  274. package/pi-package/skills/rca-diagnostician/references/hypothesis-methods.md +53 -0
  275. package/pi-package/skills/rca-diagnostician/references/problem-definition.md +34 -0
  276. package/pi-package/skills/rca-diagnostician/references/report-template.md +75 -0
  277. package/pi-package/skills/rca-diagnostician/references/rigor-checklist.md +66 -0
  278. package/pi-package/skills/red-team-review/SKILL.md +139 -0
  279. package/pi-package/skills/research-codebase/SKILL.md +28 -0
  280. package/pi-package/skills/research-codebase/references/report-template.md +75 -0
  281. package/pi-package/skills/research-codebase/references/search-patterns.md +27 -0
  282. package/pi-package/skills/research-documentation/SKILL.md +85 -0
  283. package/pi-package/skills/research-review/SKILL.md +48 -0
  284. package/pi-package/skills/research-review/references/criteria.md +51 -0
  285. package/pi-package/skills/research-review/references/templates.md +73 -0
  286. package/pi-package/skills/resonant-refactor/SKILL.md +51 -0
  287. package/pi-package/skills/resume-handoff/SKILL.md +25 -0
  288. package/pi-package/skills/resume-handoff/references/analysis-template.md +40 -0
  289. package/pi-package/skills/resume-handoff/references/locating.md +12 -0
  290. package/pi-package/skills/review-documentation/SKILL.md +50 -0
  291. package/pi-package/skills/rigidity-diagnostician/SKILL.md +76 -0
  292. package/pi-package/skills/rule-of-5-universal/SKILL.md +32 -0
  293. package/pi-package/skills/rule-of-5-universal/references/criteria.md +34 -0
  294. package/pi-package/skills/rule-of-5-universal/references/examples.md +69 -0
  295. package/pi-package/skills/rule-of-5-universal/references/templates.md +136 -0
  296. package/pi-package/skills/specification-evaluation-diagnostician/SKILL.md +112 -0
  297. package/pi-package/skills/specification-review/SKILL.md +49 -0
  298. package/pi-package/skills/specification-review/references/criteria.md +51 -0
  299. package/pi-package/skills/specification-review/references/templates.md +67 -0
  300. package/pi-package/skills/systematic-housekeeping/SKILL.md +33 -0
  301. package/pi-package/skills/tdd/SKILL.md +44 -0
  302. package/pi-package/skills/tdd/references/criteria.md +26 -0
  303. package/pi-package/skills/tdd/references/templates.md +53 -0
  304. package/pi-package/skills/test-abstraction-miner/SKILL.md +49 -0
  305. package/pi-package/skills/test-friction/SKILL.md +57 -0
  306. package/pi-package/skills/testability-implementability-evaluator/SKILL.md +150 -0
  307. package/pi-package/skills/ui-align/SKILL.md +38 -0
  308. package/pi-package/skills/ux-dx-evaluation-diagnostician/SKILL.md +27 -0
  309. package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-1-product.md +20 -0
  310. package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-2-engineering.md +20 -0
  311. package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-3-interface.md +23 -0
  312. package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-4-ecosystem.md +20 -0
  313. package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-5-documentation.md +19 -0
  314. package/pi-package/skills/ux-dx-evaluation-diagnostician/references/report-template.md +36 -0
  315. package/pi-package/skills/verification-diagnostician/SKILL.md +96 -0
  316. package/pi-package/skills/verify-prompt/SKILL.md +38 -0
  317. package/pi-package/skills/verify-prompt/references/criteria.md +21 -0
  318. package/scripts/cli.mjs +453 -0
@@ -0,0 +1,202 @@
1
+ ---
2
+ name: multi-agent-review
3
+ description: "Coordinate multiple agents for comprehensive review"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ I need a comprehensive multi-agent parallel code review using the Wave/Gate architecture.
8
+
9
+ CODE TO REVIEW:
10
+ [paste code or specify: "Review all files in src/auth/"]
11
+
12
+ ARCHITECTURE:
13
+ Wave 1 (Parallel) → Gate 1 (Sequential) → Wave 2 (Parallel) → Gate 2 (Sequential) → Wave 3 (Sequential)
14
+
15
+ Execute this workflow:
16
+
17
+ ═══════════════════════════════════════════════════════════════
18
+ WAVE 1: PARALLEL INDEPENDENT ANALYSIS
19
+ ═══════════════════════════════════════════════════════════════
20
+
21
+ Launch 5 parallel tasks. Each task is independent and can run simultaneously.
22
+
23
+ TASK 1: Security Review
24
+ Role: Security Engineer
25
+ Focus:
26
+ - OWASP Top 10 vulnerabilities
27
+ - Input validation and sanitization
28
+ - Authentication and authorization flaws
29
+ - SQL injection, XSS, CSRF, SSRF
30
+ - Secret management and data exposure
31
+ - API security and rate limiting
32
+ - Cryptography usage
33
+
34
+ Output JSON format:
35
+ {
36
+ "issues": [
37
+ {
38
+ "id": "SEC-001",
39
+ "severity": "CRITICAL|HIGH|MEDIUM|LOW",
40
+ "category": "authentication|input-validation|data-exposure|cryptography",
41
+ "cwe_id": "CWE-XXX",
42
+ "location": "file.js:line",
43
+ "description": "Detailed description",
44
+ "attack_vector": "How an attacker could exploit this",
45
+ "recommendation": "Specific fix with code example"
46
+ }
47
+ ],
48
+ "security_score": 0-3,
49
+ "summary": "One-line summary"
50
+ }
51
+
52
+ TASK 2: Performance Review
53
+ Role: Performance Engineer
54
+ Focus:
55
+ - Time complexity (O(n²), O(n³) patterns)
56
+ - Database queries (N+1, missing indexes, full table scans)
57
+ - Memory allocation and leaks
58
+ - Unnecessary loops and iterations
59
+ - Caching opportunities
60
+ - Blocking I/O operations
61
+ - Resource pooling
62
+
63
+ TASK 3: Maintainability Review
64
+ Role: Future Developer (6 months out, original author gone)
65
+ Focus:
66
+ - Code clarity and readability
67
+ - Documentation (comments, docstrings, README)
68
+ - Pattern consistency across codebase
69
+ - Naming conventions (clear, descriptive)
70
+ - Technical debt indicators
71
+ - DRY violations
72
+ - Magic numbers and hard-coded values
73
+ - Complex conditionals
74
+
75
+ TASK 4: Requirements Validation
76
+ Role: QA Engineer
77
+ Focus:
78
+ - Requirements coverage (are all requirements implemented?)
79
+ - Edge case handling
80
+ - Test coverage gaps
81
+ - Behavioral correctness
82
+ - Missing functionality
83
+ - Acceptance criteria satisfaction
84
+
85
+ TASK 5: Operations Review
86
+ Role: SRE (on-call at 3am when this breaks)
87
+ Focus:
88
+ - Failure modes and error handling
89
+ - Observability (logging, metrics, tracing)
90
+ - Timeout and retry logic
91
+ - Circuit breakers and graceful degradation
92
+ - Resource management (connections, files, memory)
93
+ - Deployment/rollback complexity
94
+ - Configuration management
95
+ - Health checks and readiness probes
96
+
97
+ ═══════════════════════════════════════════════════════════════
98
+ GATE 1: CONFLICT RESOLUTION (Wait for all Wave 1 tasks)
99
+ ═══════════════════════════════════════════════════════════════
100
+
101
+ After all 5 tasks complete, consolidate findings:
102
+
103
+ TASK 6: Consolidation
104
+ Role: Senior Technical Lead
105
+
106
+ Tasks:
107
+ 1. DEDUPLICATE ISSUES
108
+ - Same issue reported by multiple reviewers → merge
109
+ - Similar issues → merge if same root cause
110
+ - Different perspectives on same code → keep separate if addressing different concerns
111
+
112
+ 2. RESOLVE SEVERITY CONFLICTS
113
+ Rules:
114
+ - Security CRITICAL always wins
115
+ - Take highest severity if 2+ reviewers agree it's a problem
116
+ - Downgrade if only 1 reviewer flagged and others cleared
117
+
118
+ 3. CALCULATE CONFIDENCE
119
+ - Found by 1 reviewer: confidence = 0.60
120
+ - Found by 2 reviewers: confidence = 0.80
121
+ - Found by 3+ reviewers: confidence = 0.95
122
+ - Severity disagreement: reduce confidence by 0.15
123
+
124
+ 4. IDENTIFY CROSS-CUTTING CONCERNS
125
+ - Issues affecting multiple domains
126
+ - Systemic patterns (same problem in multiple places)
127
+
128
+ ═══════════════════════════════════════════════════════════════
129
+ WAVE 2: PARALLEL CROSS-VALIDATION
130
+ ═══════════════════════════════════════════════════════════════
131
+
132
+ Launch 2-3 parallel tasks reviewing the consolidated findings.
133
+
134
+ TASK 7: Meta-Review
135
+ Role: Quality Control Lead
136
+
137
+ Check:
138
+ 1. COVERAGE GAPS - What wasn't examined?
139
+ 2. FALSE POSITIVES - Are flagged issues actually problems?
140
+ 3. SEVERITY CALIBRATION - Are CRITICAL ratings actually critical?
141
+ 4. REVIEWER QUALITY - Did reviewers follow their focus areas?
142
+ 5. SYSTEMIC PATTERNS - Do issues indicate deeper architectural problems?
143
+
144
+ TASK 8: Integration Analysis
145
+ Role: Systems Architect
146
+
147
+ Check for:
148
+ - System-wide impacts of issues
149
+ - Cascading failure scenarios
150
+ - Service dependency problems
151
+ - Data flow issues across boundaries
152
+
153
+ ═══════════════════════════════════════════════════════════════
154
+ GATE 2: FINAL SYNTHESIS (Wait for Wave 2)
155
+ ═══════════════════════════════════════════════════════════════
156
+
157
+ TASK 9: Final Report
158
+
159
+ Generate:
160
+ 1. EXECUTIVE SUMMARY
161
+ - Total issues by severity
162
+ - Blockers (CRITICAL issues that prevent merge/deploy)
163
+ - Key systemic issues
164
+
165
+ 2. PRIORITIZED ACTION LIST
166
+ - Must fix before merge (CRITICAL)
167
+ - Should fix before deploy (HIGH)
168
+ - Can fix later (MEDIUM/LOW)
169
+
170
+ 3. BLOCKING ASSESSMENT
171
+ - BLOCKS MERGE: Has CRITICAL issues
172
+ - BLOCKS DEPLOY: Has HIGH operational risks
173
+ - APPROVED: Ready for production
174
+ - APPROVED_WITH_NOTES: Deploy with monitoring plan
175
+
176
+ 4. CONVERGENCE METRICS
177
+ - Number of issues found: CRITICAL/HIGH/MEDIUM/LOW
178
+ - Confidence level: X% high-confidence issues
179
+ - False positive estimate: X%
180
+ - Coverage assessment: X% of code reviewed thoroughly
181
+
182
+ ═══════════════════════════════════════════════════════════════
183
+ WAVE 3: CONVERGENCE CHECK
184
+ ═══════════════════════════════════════════════════════════════
185
+
186
+ Determine if another iteration is needed:
187
+
188
+ CONVERGED if:
189
+ - new_critical_count == 0 AND
190
+ - new_issue_rate < 0.10 AND
191
+ - false_positive_rate < 0.20
192
+
193
+ ESCALATE_TO_HUMAN if:
194
+ - iteration >= 3 OR
195
+ - Found conflicting CRITICAL issues OR
196
+ - Uncertain about severity
197
+
198
+ ITERATE if:
199
+ - new_critical_count > 0 OR
200
+ - new_issue_rate >= 0.10
201
+
202
+ If ITERATE: Start Wave 1 again focusing only on CRITICAL and HIGH issues.
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: mutability-diagnostician
3
+ description: "Diagnose pathological mutable state, side effect entanglement, and temporal coupling — map findings to immutability refactoring patterns"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ <!-- Full version: content/prompt-task-mutability-diagnostician.md -->
8
+ You are a Functional Architecture Analyst. Diagnose pathological mutable state — shared mutation, side effect entanglement, temporal coupling, and missing domain encapsulation — and map each finding to an immutability refactoring pattern. Do NOT modify any files — advisory only.
9
+
10
+ **GUARD:** Do not apply to greenfield projects, codebases already using functional architecture with isolated side effects, or when the problem is structural coupling/inheritance (use rigidity-diagnostician). Local mutation within pure functions (loop accumulators, builders) is acceptable — only flag mutation that crosses boundaries.
11
+
12
+ **INPUT**
13
+ - Target files/directory: [SPECIFY]
14
+ - High-churn files (optional): [git log output OR "none"]
15
+ - Architecture reference (optional): [AGENTS.md rules OR "none"]
16
+ - Language/framework (optional): [e.g., "TypeScript/React" — or "infer"]
17
+
18
+ **PROTOCOL (Five-Step Pipeline)**
19
+
20
+ Step 1 — Detect Mutability Signals: Read all files. Identify:
21
+ - Shared Mutable State (Critical): fields modified by multiple methods/classes; globals; mutable state across thread/async boundaries
22
+ - Side Effect Entanglement (High): functions mixing I/O (DB, API, file, clock) with business logic in the same method
23
+ - Temporal Coupling (High): methods requiring specific call order; setup-before-use with invalid intermediate states
24
+ - Primitive Obsession (High): domain concepts (money, email, coordinates) as raw strings/numbers without validation
25
+ - Void Mutation Methods (Medium): void return mutating objects in place — callers can't track changes
26
+ - Mutable Variable Overuse (Medium): `let`/`var`/non-final where `const`/`val`/`final`/`readonly` suffices
27
+ - Defensive Copy Absence (Medium): getters returning direct references to internal mutable collections
28
+ - Check-Then-Act Races (High): validation followed by operation assuming state unchanged — concurrent modification risk
29
+ Note file, line range, and description for each.
30
+
31
+ Step 2 — Classify Mutation Scope: For each signal, assess:
32
+ - Scope: Local (within function) / Object (instance state) / Cross-Object (shared between classes) / Global (singleton/static)
33
+ - Concurrency exposure: multi-threaded shared (Critical) / async shared (High) / single-threaded (Low)
34
+ - Temporal coupling: does correctness depend on call ordering? (High if yes)
35
+ - Test isolation: requires I/O mocking (High) / requires specific setup (Medium) / testable in isolation (Low)
36
+
37
+ Step 3 — Analyze Side Effect Boundaries: Classify every function as:
38
+ - **Data**: inert values/structures
39
+ - **Calculation**: pure — same inputs always produce same outputs, no side effects
40
+ - **Action**: impure — depends on when/how many times called (network, disk, clock, mutable external state)
41
+ For top 5-10 Actions by severity, identify Calculations trapped inside: business logic lines interleaved with I/O. Map which lines are Actions vs Calculations.
42
+
43
+ Step 4 — Map to Refactoring Pattern:
44
+ - Business logic tangled with I/O → **FC/IS**: extract pure calculations into functional core; push all I/O to imperative shell
45
+ - Read→compute→write in handlers → **Sandwich**: (1) impure read, (2) pure calculation, (3) impure write
46
+ - Domain concepts as raw primitives → **Value Object**: self-validating, immutable, equality-by-value types
47
+ - Void methods mutating in place → **Return-New-Instance** (Gilded Rose kata): return new instances instead of modifying
48
+ - Deep nested immutable updates (3+ levels) → **Optics/Lenses**: composable getter/setter abstractions
49
+ - `let`/`var` where `const` suffices → **Direct const migration**; loop-and-mutate → `map`/`filter`/`reduce`. Python: `Final` (PEP 591), `@dataclass(frozen=True)`
50
+ - Internal state leaked via getters → **Defensive copy / unmodifiable wrapper**
51
+
52
+ Native equivalents: Value Object → records (Java/C#/Kotlin); Return-New-Instance → `with` (C#), `copy()` (Kotlin), spread (JS/TS); Optics → FSharpPlus, monocle-ts, Higher-Kinded-J.
53
+
54
+ Step 5 — Prioritize: Score = Concurrency Risk (Multi-threaded=3, Async=2, Single=1) × Testability Impact (I/O mocking=3, Setup ordering=2, Isolated=1) × Mutation Scope (Global=3, Cross-object=2, Object or Local=1). Sequence: Value Objects first (smallest, safest), FC/IS extractions next (largest testability gain), const migrations opportunistically, Optics last (only after simpler patterns established). Each step independently deployable.
55
+
56
+ **OUTPUT**
57
+
58
+ Summary table:
59
+ | Location | Mutability Signal | Mutation Scope | Side Effect Type | Refactoring Pattern | Priority |
60
+
61
+ If multiple signals share root cause, consolidate. Then per finding: signal (files, lines, names), mutation scope (propagation + concurrency/temporal risk), side effect analysis (Action vs Calculation lines), recommended pattern (sketch, not full code), refactoring sequence (safe steps), success signals (pure functions testable with static data, side effects in thin shell, domain types rejecting invalid state).
62
+
63
+ Enforcement recommendations per language: JS/TS → ESLint (`functional/no-let`, `functional/immutable-data`, `ts-immutable/readonly-keyword`); Java → Mutability Detector, records; C#/.NET → Roslyn analyzers, `record` with `with`. For unlisted languages: Python (`@dataclass(frozen=True)`, `Final`, `NamedTuple`), Kotlin (`data class`, `val`), Go (unexported fields + constructors), Rust (default immutable bindings).
64
+
65
+ Needs Human Review: list ambiguous cases — local mutation that's clearest algorithm expression, performance-critical hot paths, framework-mandated mutability (ORM entity hydration), state that appears shared but is thread-confined by framework guarantees, reactive/observable patterns where side effects are deferred to subscription (classify pipeline as Calculation, `subscribe()` as Action).
66
+
67
+ If no signals found: "No pathological mutability found. Functions are pure or have well-isolated side effects, domain concepts are properly encapsulated, mutable state is appropriately scoped." Do not fabricate findings.
68
+
69
+ Stop when all files analyzed. Do not modify anything.
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: narrative-article
3
+ description: "Create engaging technical articles with narrative structure"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ # Write a Narrative-Driven Article
8
+
9
+ We will collaborate to write a compelling article or blog post using the Three-Act narrative structure. We will work through four phases: Idea, Outline, Draft, and Review.
10
+
11
+ ## Phase 1: The Idea (The Setup)
12
+
13
+ First, we must define the core of our story. Please answer these questions:
14
+
15
+ 1. **What is the main topic or subject?**
16
+ 2. **Who is the target audience?** What do they currently know or believe about this topic (The Ordinary World)?
17
+ 3. **What is the central question or problem you want to address?** This is the "Inciting Incident" that will hook the reader. What puzzle will this article solve?
18
+ 4. **What is the key takeaway or "new normal"?** What should the reader understand or be able to do after reading the article? This is the ultimate Resolution.
19
+
20
+ Based on your answers, I will propose a title and a "hook" for the introduction.
21
+
22
+ ---
23
+
24
+ ## Phase 2: The Outline (The Three Acts)
25
+
26
+ Once we agree on the core idea, I will create a detailed outline based on the Three-Act Structure:
27
+
28
+ ### Act I: The Setup
29
+ - **Hook:** Grab the reader's attention.
30
+ - **Introduce the Problem:** State the central question or conflict.
31
+ - **Establish the Stakes:** Explain why the reader should care.
32
+ - **Thesis Statement:** Promise the reader what they will learn.
33
+
34
+ ### Act II: The Exploration
35
+ - **Point 1 (Rising Action):** The first major argument or piece of evidence.
36
+ - **Point 2 (Obstacles):** Address counter-arguments, complexities, or common misconceptions.
37
+ - **Point 3 (The Midpoint):** A key turning point or "aha!" moment in the argument.
38
+ - **Point 4 (Escalation):** Deeper insights that build on the midpoint.
39
+
40
+ ### Act III: The Resolution
41
+ - **Climax (The Synthesis):** Present the main conclusion, tying all the points together.
42
+ - **Falling Action (Practical Application):** Provide concrete examples, practical steps, or implications.
43
+ - **The New Normal (The Call to Action):** State the key takeaway and what the reader should do or think now.
44
+
45
+ We will review and refine this outline before moving on.
46
+
47
+ ---
48
+
49
+ ## Phase 3: The Draft (The Writing)
50
+
51
+ With an approved outline, I will write the full draft of the article. I will focus on:
52
+ - Following the narrative flow of the outline.
53
+ - Maintaining a consistent tone and voice.
54
+ - Using clear and engaging language.
55
+
56
+ ---
57
+
58
+ ## Phase 4: The Review (The Refinement)
59
+
60
+ Finally, I will perform an editorial review of the draft, checking for:
61
+ - **Clarity and Flow:** Is the article easy to read and understand?
62
+ - **Strength of Argument:** Is the narrative compelling and persuasive?
63
+ - **Grammar and Style:** Are there any grammatical errors or stylistic issues?
64
+ - **Impact:** Does the introduction hook the reader effectively? Does the conclusion provide a satisfying resolution?
65
+
66
+ I will provide a list of suggested revisions for your approval.
@@ -0,0 +1,196 @@
1
+ ---
2
+ name: optionality-review
3
+ description: "Evaluate design decisions for flexibility and reversibility"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ # Optionality Review
8
+
9
+ Review this [CODE/ARCHITECTURE/PLAN/DECISION] through the lens of strategic optionality.
10
+
11
+ (See Quick Reference section below for optionality principles and red/green flags)
12
+
13
+ ## Work to Review
14
+
15
+ [PASTE YOUR WORK OR SPECIFY FILE PATH]
16
+
17
+ ## Context (optional)
18
+
19
+ [Any relevant context: timeline, constraints, uncertainty level]
20
+
21
+ ---
22
+
23
+ ## Phase 1: Decision Classification
24
+
25
+ First, classify the key decisions using Bezos's framework:
26
+
27
+ **Type 1 (One-Way Doors):** Consequential and irreversible
28
+ - Require careful, methodical consideration
29
+ - Need broad consultation
30
+ - Examples: Core architecture, public APIs, major vendor commitments
31
+
32
+ **Type 2 (Two-Way Doors):** Changeable and reversible
33
+ - Should be made quickly with ~70% information
34
+ - Can be changed if wrong
35
+ - Examples: Internal tooling, feature flags, config choices
36
+
37
+ For each major decision in this work:
38
+
39
+ | Decision | Type | Reversibility | Decision Deadline | Justification |
40
+ |----------|------|---------------|-------------------|---------------|
41
+ | [What's being decided] | [1 or 2] | [EASY/MODERATE/HARD/IRREVERSIBLE] | [When must we decide?] | [Why this classification] |
42
+
43
+ **Early Exit:** If NO Type 1 decisions identified, output abbreviated report:
44
+ - List Type 2 decisions with brief notes
45
+ - Recommend: "Proceed quickly - all decisions are reversible"
46
+ - Skip Phases 2-6
47
+
48
+ ---
49
+
50
+ ## Phase 2: Alternative Paths
51
+
52
+ For Type 1 decisions, evaluate the option space (2-4 alternatives):
53
+
54
+ ### Current Approach
55
+ - Description: [Brief summary]
56
+ - Locks in: [What future choices this constrains]
57
+ - Enables: [What this makes possible]
58
+
59
+ ### Alternative A
60
+ - Description: [Different approach]
61
+ - Would preserve: [What options stay open]
62
+ - Trade-off: [What we'd give up]
63
+
64
+ ### Alternative B (if applicable)
65
+ - Description: [Another approach]
66
+ - Would preserve: [What options stay open]
67
+ - Trade-off: [What we'd give up]
68
+
69
+ ### Alternative C, D... (add more if needed for complex decisions)
70
+
71
+ **Assessment:** Are alternatives adequately explored? [YES/NO]
72
+ If NO, what should be investigated before committing?
73
+
74
+ **For Type 2 decisions:** Don't deep-dive. Briefly note 1-2 alternatives, then move on - speed matters more than exhaustive analysis for reversible decisions.
75
+
76
+ ---
77
+
78
+ ## Phase 3: Exit Costs & Escape Hatches
79
+
80
+ For Type 1 decisions from Phase 1, map the exit strategy:
81
+
82
+ | Decision | Reversal Cost | Reversal Time | Escape Hatch |
83
+ |----------|---------------|---------------|--------------|
84
+ | [Choice made] | [LOW/MED/HIGH] | [hours/days/weeks/months] | [Concrete path to undo if needed] |
85
+ | [Another choice] | [LOW/MED/HIGH] | [hours/days/weeks/months] | [How to exit] |
86
+
87
+ **Red Flags:**
88
+ - [ ] Irreversible decisions without clear justification
89
+ - [ ] No escape hatches for major commitments
90
+ - [ ] Assumptions treated as facts
91
+ - [ ] "We can refactor later" without a concrete path
92
+
93
+ **Reversibility Score:** [1-10] (10 = easily reversible)
94
+
95
+ ---
96
+
97
+ ## Phase 4: Failure Modes & Fallbacks
98
+
99
+ What if things go wrong?
100
+
101
+ | Failure Scenario | Probability | Impact | Fallback Plan | Recovery Cost |
102
+ |------------------|-------------|--------|---------------|---------------|
103
+ | [What could fail] | [L/M/H] | [L/M/H/CRITICAL] | [Plan B] | [time/effort] |
104
+
105
+ **External Dependencies:**
106
+ - [ ] Vendor lock-in: [None / Acceptable / Concerning]
107
+ - [ ] Technology bets: [Reversible / Locked]
108
+ - [ ] Regulatory assumptions: [Validated / Assumed]
109
+ - [ ] Single points of failure identified: [YES/NO]
110
+
111
+ **Resilience Score:** [1-10] (10 = multiple fallbacks, graceful degradation)
112
+
113
+ **Convergence Check:** If Reversibility ≥7 AND Resilience ≥7, consider skipping to Final Report.
114
+
115
+ ---
116
+
117
+ ## Phase 5: Future Value Assessment
118
+
119
+ Does this create or destroy options?
120
+
121
+ ### Options CREATED
122
+ 1. [New capability enabled]
123
+ - Enables: [What becomes possible]
124
+ - Value: [Why this matters]
125
+
126
+ 2. [Another capability]
127
+ - Enables: [What becomes possible]
128
+ - Value: [Why this matters]
129
+
130
+ ### Options DESTROYED (with justification)
131
+ 1. [Closed off possibility]
132
+ - Prevents: [What becomes harder/impossible]
133
+ - Justified because: [Why trade-off is acceptable]
134
+
135
+ ### Growth Potential
136
+ - Can scale to 10x: [YES/PARTIALLY/NO]
137
+ - Can add features without rewrite: [YES/PARTIALLY/NO]
138
+ - Can be extracted/reused: [YES/PARTIALLY/NO]
139
+ - Learning/telemetry built in: [YES/NO]
140
+
141
+ **Future Value Score:** [1-10] (10 = maximum option creation)
142
+
143
+ ---
144
+
145
+ ## Phase 6: Decision Points & Triggers
146
+
147
+ Where should we reassess?
148
+
149
+ | Milestone | What to Assess | Reassess Trigger | Go/No-Go Criteria |
150
+ |-----------|----------------|------------------|-------------------|
151
+ | [When] | [What we're evaluating] | [What would cause review] | [How to decide] |
152
+ | [Next milestone] | [Another assessment] | [Trigger condition] | [Decision criteria] |
153
+ | [Future checkpoint] | [Long-term assessment] | [Warning sign] | [How to decide] |
154
+
155
+ **Assumption Validation:**
156
+ - [ ] Key assumptions explicitly stated
157
+ - [ ] Validation checkpoints defined
158
+ - [ ] Early warning metrics identified
159
+
160
+ ---
161
+
162
+ ## Final Report
163
+
164
+ ### Scores Summary
165
+ - Reversibility: [X/10]
166
+ - Resilience: [X/10]
167
+ - Future Value: [X/10]
168
+ - **Overall Optionality: [X/10]** (average, or lowest score if any ≤3)
169
+
170
+ ### Verdict
171
+
172
+ **Optionality Assessment:** [FLEXIBLE | BALANCED | LOCKED_IN | CONCERNING]
173
+ - FLEXIBLE (8-10): Excellent strategic flexibility
174
+ - BALANCED (5-7): Acceptable trade-offs, some lock-in justified
175
+ - LOCKED_IN (3-4): Significant constraints, ensure they're intentional
176
+ - CONCERNING (1-2): High risk, reconsider approach
177
+
178
+ **Key Findings:**
179
+ 1. [Most significant optionality issue or strength]
180
+ 2. [Second finding]
181
+ 3. [Third finding]
182
+
183
+ ### Recommendations
184
+
185
+ **Before proceeding:**
186
+ - [Critical actions to preserve flexibility]
187
+
188
+ **Build in over time:**
189
+ - [Strategic improvements for future flexibility]
190
+
191
+ ### The Bottom Line
192
+
193
+ [2-3 sentences: Is the level of lock-in appropriate for our uncertainty level? Are we preserving the right options? What's the key trade-off?]
194
+
195
+ **Human review recommended:** [YES/NO]
196
+ **Reason:** [Why human judgment needed, or why assessment is sufficient]
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: parallel-review
3
+ description: "High-stakes code review with parallel agent waves"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ <!-- skill: parallel-review, version: 1.2.0, status: verified -->
8
+ # Parallel Review (Multi-Agent Code Review)
9
+
10
+ Orchestrate a comprehensive, multi-agent code review using an extended parallel review workflow inspired by the Rule of 5 principle to achieve maximum defect detection (85-92%).
11
+
12
+ ## Role
13
+ You are a Lead Orchestration Engineer. Your goal is to simulate and synthesize the perspectives of multiple specialist agents to uncover critical vulnerabilities, performance bottlenecks, and reliability risks that a single-pass review would miss.
14
+
15
+ ## Procedure
16
+
17
+ 1. **Context Building:**
18
+ * Identify the code to review.
19
+ * Identify the core requirements or user stories the code aims to satisfy.
20
+ * Read the code and any existing tests completely.
21
+
22
+ 2. **Wave 1: Parallel Specialist Analysis:**
23
+ Simulate five independent reviewers, each producing a prioritized list of findings (CRITICAL, HIGH, MEDIUM, LOW):
24
+ * **Security Reviewer:** OWASP Top 10, input validation, auth, and data leaks.
25
+ * **Performance Reviewer:** Algorithmic complexity, DB efficiency, and memory.
26
+ * **Maintainer Reviewer:** Readability, structure, design patterns, and tech debt.
27
+ * **Requirements Validator:** Correctness, requirement coverage, and edge cases.
28
+ * **Operations Reviewer (SRE):** Failure modes, logging, metrics, and resilience.
29
+
30
+ 3. **Gate 1: Synthesis & Conflict Resolution:**
31
+ Consolidate findings into a single deduplicated list. Resolve severity conflicts (Security CRITICALs outrank all; 3+ agents flagging an issue elevates its severity).
32
+
33
+ 4. **Wave 2: Cross-Validation:**
34
+ Simulate two validation agents:
35
+ * **False Positive Checker:** Scrutinize the list for misunderstandings or irrelevant findings.
36
+ * **Integration Validator:** Identify system-wide risks or cascading failures.
37
+
38
+ 5. **Gate 2: Final Synthesis:**
39
+ Remove false positives, add integration risks, and produce the final prioritized list of actionable issues.
40
+
41
+ 6. **Verification (CRITICAL):**
42
+ * **DO NOT** rely on simulated agent findings without checking them against the code. As the orchestrator, you MUST use `read_file` or `grep_search` to verify the validity of any CRITICAL or HIGH severity issues before final reporting.
43
+ * Verify that suggested fixes (e.g., using a specific library) are actually feasible within the current project's environment.
44
+
45
+ 7. **Wave 3: Convergence Check:**
46
+ Assess if the review has CONVERGED or if the findings are contradictory/unclear enough to require another iteration or human judgment.
47
+
48
+ ## Rules
49
+ - **Specific Locations:** Every finding must include a file:line reference.
50
+ - **Actionable Advice:** Every issue must have a specific recommendation for a fix.
51
+ - **Verification Mandate:** You are responsible for the truth of the simulated findings. Verify high-severity claims manually.
52
+
53
+ ## References
54
+ - **Templates:** Use `references/templates.md` for wave outputs and the final report.
55
+ - **Criteria:** See `references/criteria.md` for severity definitions and convergence rules.
@@ -0,0 +1,34 @@
1
+ # Multi-Agent Code Review Criteria
2
+
3
+ Use these criteria to categorize findings and determine when the review process is complete.
4
+
5
+ ## Issue Severity Definitions
6
+
7
+ | Severity | Criteria | Example Findings |
8
+ | :--- | :--- | :--- |
9
+ | **CRITICAL** | Severe security vulnerability, data loss risk, or fundamental logic failure that makes the code unshipable. | SQL Injection, plaintext passwords, unhandled exceptions in core path. |
10
+ | **HIGH** | Significant performance issue, major regression risk, or violation of key requirements. | Missing index on hot query, non-singular requirement, missing error states. |
11
+ | **MEDIUM** | Minor technical debt, sub-optimal pattern, or readability issues. | Magic strings, DRY violations, lack of docstrings, magic numbers. |
12
+ | **LOW** | Nice to have. Stylistic improvements, minor metadata gaps, or typos in non-critical comments. | Minor formatting, redundant comments, small consistency improvements. |
13
+
14
+ ## Convergence Criteria
15
+
16
+ **CONVERGED** if:
17
+ - All CRITICAL and HIGH severity issues have been cross-validated by at least two agents (e.g., Security Reviewer and False Positive Checker).
18
+ - Gate 1 and Gate 2 synthesis steps result in a stable list of issues with no major contradictions.
19
+ - The Integration Validator confirms that no new cascading failures are likely.
20
+
21
+ **ITERATE** if:
22
+ - Wave 2 identifies more than two HIGH or one CRITICAL severity issue that were missed in Wave 1.
23
+ - Specialist agents have directly contradictory findings on a CRITICAL issue.
24
+
25
+ **NEEDS_HUMAN** if:
26
+ - After two full multi-agent cycles, no consensus is reached on a CRITICAL issue.
27
+ - The specialist agents identify a foundational architectural conflict.
28
+
29
+ ## Verification Checklist (For Orchestrator)
30
+
31
+ As the Lead Orchestration Engineer, you MUST:
32
+ - [ ] Use `read_file` to confirm that every CRITICAL finding actually exists at the cited file:line.
33
+ - [ ] Cross-check the "Requirements Validator" findings against the actual specification file (if provided).
34
+ - [ ] Verify that suggested performance optimizations don't violate existing project constraints (e.g., using a library that is explicitly forbidden).
@@ -0,0 +1,59 @@
1
+ # Multi-Agent Code Review Templates
2
+
3
+ Use these templates to structure the waves and final reporting of the multi-agent code review.
4
+
5
+ ## Wave 1 Output Template
6
+
7
+ ```markdown
8
+ ### WAVE 1: Parallel Analysis Findings
9
+
10
+ #### 1. Security Reviewer
11
+ - [Severity] [Description] - [File:Line]
12
+ - [Severity] ...
13
+
14
+ #### 2. Performance Reviewer
15
+ - [Severity] [Description] - [File:Line]
16
+
17
+ ... [Remaining Reviewers]
18
+ ```
19
+
20
+ ## Wave 2 & 3 Convergence Check Template
21
+
22
+ ```markdown
23
+ ### WAVE 3: Convergence Check
24
+
25
+ **Status:** [CONVERGED | ITERATE | NEEDS_HUMAN]
26
+ **Confidence Score:** [0-100%]
27
+ **Rationale:** [1-2 sentences explaining why the review is complete or requires more focus]
28
+ ```
29
+
30
+ ## Final Report Template
31
+
32
+ ```markdown
33
+ # Multi-Agent Code Review Final Report
34
+
35
+ **Code:** [Short description/path] | **Convergence:** Wave [N]
36
+
37
+ ## Synthesized Issue Summary
38
+ | Severity | Count | Primary Focus |
39
+ | :--- | :--- | :--- |
40
+ | **CRITICAL** | [count] | Security / Logic Failures |
41
+ | **HIGH** | [count] | Performance / Reliability |
42
+ | **MEDIUM** | [count] | Maintainability / Tech Debt |
43
+ | **LOW** | [count] | Clarity / Style |
44
+
45
+ ## Top 3 Critical Findings (Verified)
46
+ 1. **[ID] [Description]** - [File:Line]
47
+ * **Impact:** [Why this blocks implementation or causes failure]
48
+ * **Fix:** [Specific actionable step]
49
+
50
+ 2. **[ID] ...**
51
+
52
+ ## Final Actionable List
53
+ 1. [Verified Action 1 - specific and actionable]
54
+ 2. [Verified Action 2 - specific and actionable]
55
+ 3. [Verified Action 3 - specific and actionable]
56
+
57
+ ## Verdict: [READY_TO_MERGE | NEEDS_FIXES | BLOCKS_MERGE]
58
+ **Rationale:** [Final summary of system-wide health and prioritized fixes]
59
+ ```