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,53 @@
1
+ ## Hypothesis Generation and Method Selection
2
+
3
+ ### Multi-Level Hypothesis Generation
4
+
5
+ Produce at least three candidate root causes across different analytical levels:
6
+
7
+ - **Mechanism level**: What physical, logical, or behavioral process failed? (e.g., memory leak, O-ring degradation, medication dosage calculation error)
8
+ - **Process control level**: What check, barrier, or monitoring should have caught it? (e.g., missing alert threshold, no pre-deployment validation, absent second-check protocol)
9
+ - **Organizational level**: What policy, incentive, resource, or cultural factor enabled the failure? (e.g., staffing pressure, incentive misalignment, deferred maintenance, blame culture suppressing reports)
10
+
11
+ ### Method Selection Guide
12
+
13
+ Select based on domain, evidence, and the question being asked:
14
+
15
+ | Method | Best when | Domain fit |
16
+ |--------|-----------|------------|
17
+ | **5 Whys** | Fast initial exploration; small team | Any — but stop only when you reach a system-modifiable cause |
18
+ | **Fishbone/Ishikawa** | Brainstorming across cause categories | Any — team-friendly for cross-functional groups |
19
+ | **FTA (Fault Tree)** | Combinations of failures matter; system architecture available | Engineering, manufacturing, safety |
20
+ | **FMEA/FMECA** | Preventive analysis of components/processes; need risk ranking | Engineering, manufacturing, design |
21
+ | **STAMP/STPA** | Complex sociotechnical systems with control interactions | Aviation, healthcare, autonomous systems |
22
+ | **Causal inference (DAG/SCM)** | Need to identify intervention effects formally; confounding is a concern | Social science, policy, epidemiology |
23
+ | **Qualitative inquiry** | Practices, incentives, or culture are the suspected drivers | Organizational, healthcare, education |
24
+ | **Bayesian networks** | Multiple uncertain evidence streams; need probabilistic diagnosis | Engineering, medical diagnostics, security |
25
+ | **Postmortem (structured)** | Software/infrastructure incidents; need detection-response-recovery analysis | Software, IT operations, security |
26
+
27
+ ### Hypothesis Testing
28
+
29
+ For each candidate cause, answer:
30
+
31
+ 1. **What evidence supports it?** (cite specific sources from evidence inventory)
32
+ 2. **What evidence contradicts it?** (actively seek disconfirming data)
33
+ 3. **What would falsify it?** (define the test that would eliminate this hypothesis)
34
+ 4. **Is the mechanism plausible?** (can you explain how X causes Y, not just that X correlates with Y?)
35
+ 5. **Causal role**: Is it necessary? Sufficient? Or a contributing factor?
36
+
37
+ ### Differentiating Causal Levels
38
+
39
+ - **Contributing factor**: Exacerbated the outcome or increased its likelihood, but did not directly initiate it
40
+ - **Root cause**: The specific mechanism or broken process that, if removed, would have prevented the outcome
41
+ - **Latent/generic cause**: The overarching systemic flaw that allowed the root cause to exist (e.g., flawed policy, missing training program, cultural norm). Fixing these yields the highest ROI.
42
+
43
+ ### Output
44
+
45
+ ```text
46
+ ## Hypotheses
47
+
48
+ | # | Level | Candidate cause | Supporting evidence | Contradicting evidence | Falsification test | Status |
49
+ |---|-------|-----------------|--------------------|-----------------------|-------------------|--------|
50
+ | 1 | [mechanism/process/org] | [hypothesis] | [evidence] | [evidence] | [what would disprove] | [supported/weakened/falsified] |
51
+
52
+ Method selected: [method] — Rationale: [why this method fits the domain and evidence]
53
+ ```
@@ -0,0 +1,34 @@
1
+ ## Problem Definition
2
+
3
+ Define the outcome precisely before investigating causes.
4
+
5
+ ### Required Elements
6
+
7
+ 1. **WHAT** — Specific observable outcome (not interpretation)
8
+ 2. **WHERE** — System, component, location, scope
9
+ 3. **WHEN** — First detection, duration, resolution
10
+ 4. **SEVERITY** — Impact on users, safety, business, compliance
11
+ 5. **OUT OF SCOPE** — What this investigation does not cover
12
+
13
+ ### Counterfactual
14
+
15
+ State the expected/normal behavior and what changed relative to that baseline. This anchors the investigation — without a counterfactual, you cannot distinguish cause from background condition.
16
+
17
+ ### Red Flags
18
+
19
+ - Problem statement contains solutions ("we need to add...")
20
+ - Describes a symptom without measurable specificity ("the system is slow")
21
+ - No severity assessment — all problems feel urgent without scoping
22
+ - Scope is unbounded — investigation will grow without limit
23
+
24
+ ### Output
25
+
26
+ ```text
27
+ ## Problem Definition
28
+
29
+ Outcome: [precise statement]
30
+ Measurement: [how detected/measured]
31
+ Severity: [impact assessment]
32
+ Counterfactual: [expected vs. actual]
33
+ Scope boundary: [in scope / out of scope]
34
+ ```
@@ -0,0 +1,75 @@
1
+ ```text
2
+ # RCA Diagnostician Report
3
+
4
+ Date: [YYYY-MM-DD]
5
+ Mode: [INVESTIGATE | EVALUATE]
6
+ Domain: [discipline/context]
7
+
8
+ ## Problem Definition
9
+
10
+ Outcome: [precise statement of what failed]
11
+ Measurement: [how detected/measured]
12
+ Severity: [impact assessment]
13
+ Counterfactual: [expected vs. actual behavior]
14
+ Scope boundary: [in scope / out of scope]
15
+
16
+ ## Evidence Summary
17
+
18
+ Sources: [count] across [count] independent streams
19
+ Sufficiency: [MET | GAP — describe]
20
+
21
+ ## Timeline (key events)
22
+
23
+ | Time | Event | Source |
24
+ |------|-------|--------|
25
+ | [when] | [what happened] | [evidence source] |
26
+
27
+ ## Root Causes Identified
28
+
29
+ | # | Level | Root cause | Confidence | Key evidence |
30
+ |---|-------|-----------|------------|--------------|
31
+ | 1 | [mechanism/process/org] | [cause] | [high/medium/low] | [supporting evidence] |
32
+
33
+ ## Bias Check Summary
34
+
35
+ - Confirmation bias: [CLEAR | FLAG]
36
+ - Blame displacement: [CLEAR | FLAG]
37
+ - Correlation-causation: [CLEAR | FLAG]
38
+ - Early closure: [CLEAR | FLAG]
39
+
40
+ Countermeasure actions taken: [what was done to mitigate flagged biases]
41
+
42
+ ## Corrective Actions
43
+
44
+ | # | Root cause | Action | Strength | Owner | Deadline | Verification metric | Monitoring period |
45
+ |---|-----------|--------|----------|-------|----------|--------------------|--------------------|
46
+ | 1 | [cause] | [action] | [strong/intermediate/weak] | [who] | [when] | [metric] | [duration] |
47
+
48
+ Action strength mix: [N strong, N intermediate, N weak]
49
+ Minimum strong action: [MET | NOT MET]
50
+
51
+ ## Rigor Assessment
52
+
53
+ Overall: [STRONG | ADEQUATE | WEAK | INSUFFICIENT]
54
+ Key gaps: [list any PARTIAL or NOT MET criteria]
55
+
56
+ ## Recommendations
57
+
58
+ 1. [Most critical action — with owner and deadline]
59
+ 2. [Next priority]
60
+ 3. [Follow-up or monitoring action]
61
+
62
+ ## Open Questions
63
+
64
+ - [What remains uncertain]
65
+ - [What evidence is still needed]
66
+ - [What assumptions should be monitored]
67
+
68
+ ## Learning Loop
69
+
70
+ - Standards to update: [list]
71
+ - Training to modify: [list]
72
+ - Design reviews to inform: [list]
73
+ - Monitoring to add/change: [list]
74
+ - Audit/compliance to introduce: [list]
75
+ ```
@@ -0,0 +1,66 @@
1
+ ## Rigor Evaluation Checklist
2
+
3
+ Apply to your own RCA (self-check) or to an existing report (EVALUATE mode).
4
+
5
+ ### Core Criteria (always apply)
6
+
7
+ | # | Criterion | What to check | MET when |
8
+ |---|-----------|---------------|----------|
9
+ | 1 | **Problem definition** | Is the outcome measurable, time-bounded, and severity-scoped? | WHAT/WHERE/WHEN/SEVERITY all specified; no solution language embedded |
10
+ | 2 | **Counterfactual** | Is the expected/normal behavior stated? | Explicit baseline; change from normal identified |
11
+ | 3 | **Evidence sufficiency** | Are there at least three independent evidence streams? | 3+ distinct source types (records, observation, testimony, artifacts) |
12
+ | 4 | **Hypothesis discipline** | Were alternative hypotheses documented with falsification criteria? | 3+ candidates at different levels; disconfirming evidence sought for each |
13
+ | 5 | **Mechanism plausibility** | Is each claimed cause explained by mechanism, not just correlation? | "How X causes Y" stated; not just "X preceded Y" |
14
+ | 6 | **Action quality** | Do actions materially change system constraints? | At least 1 strong action; weak-only portfolios flagged |
15
+ | 7 | **Ownership** | Is there a named owner, deadline, and authority for each action? | Every action row complete |
16
+ | 8 | **Effectiveness verification** | Are verification metrics and monitoring periods defined? | Metric + period + escalation path for each action |
17
+ | 9 | **Learning loop** | Does the RCA feed back into standards, training, and monitoring? | At least one organizational update identified |
18
+
19
+ ### AI Governance Criteria (apply when AI tools were used in the investigation)
20
+
21
+ | # | Criterion | What to check | MET when |
22
+ |---|-----------|---------------|----------|
23
+ | 10 | **Provenance** | Does every AI-produced claim link to evidence artifacts? | Each AI output traceable to source data |
24
+ | 11 | **Explainability** | Are AI outputs interpretable and connected to interventions? | Explanations are meaningful to domain practitioners |
25
+ | 12 | **Causal guardrails** | Were associations distinguished from causal claims? | Uncertainty stated; no bare "AI found the root cause" |
26
+ | 13 | **Human decision rights** | Did accountable humans review and approve findings? | Named reviewer signed off on AI-informed conclusions |
27
+
28
+ ### Scoring
29
+
30
+ - **MET**: Criterion fully satisfied with evidence
31
+ - **PARTIAL**: Criterion addressed but with gaps or weak evidence
32
+ - **NOT MET**: Criterion absent or inadequate
33
+
34
+ Overall rigor (based on 9 core criteria):
35
+ - **STRONG**: All 9 core criteria MET
36
+ - **ADEQUATE**: No more than 2 PARTIAL, zero NOT MET
37
+ - **WEAK**: 1-2 NOT MET or 3+ PARTIAL
38
+ - **INSUFFICIENT**: 3+ NOT MET
39
+
40
+ AI governance criteria do not affect the core rigor score but are reported separately. If any AI governance criterion is NOT MET, append "(AI governance gaps)" to the overall rigor rating.
41
+
42
+ ### Output
43
+
44
+ ```text
45
+ ## Rigor Evaluation
46
+
47
+ | # | Criterion | Status | Evidence/Gap |
48
+ |---|-----------|--------|-------------|
49
+ | 1 | Problem definition | [MET/PARTIAL/NOT MET] | [detail] |
50
+ | 2 | Counterfactual | [MET/PARTIAL/NOT MET] | [detail] |
51
+ | 3 | Evidence sufficiency | [MET/PARTIAL/NOT MET] | [detail] |
52
+ | 4 | Hypothesis discipline | [MET/PARTIAL/NOT MET] | [detail] |
53
+ | 5 | Mechanism plausibility | [MET/PARTIAL/NOT MET] | [detail] |
54
+ | 6 | Action quality | [MET/PARTIAL/NOT MET] | [detail] |
55
+ | 7 | Ownership | [MET/PARTIAL/NOT MET] | [detail] |
56
+ | 8 | Effectiveness verification | [MET/PARTIAL/NOT MET] | [detail] |
57
+ | 9 | Learning loop | [MET/PARTIAL/NOT MET] | [detail] |
58
+
59
+ AI governance (if applicable):
60
+ | 10 | Provenance | [MET/PARTIAL/NOT MET/N/A] | [detail] |
61
+ | 11 | Explainability | [MET/PARTIAL/NOT MET/N/A] | [detail] |
62
+ | 12 | Causal guardrails | [MET/PARTIAL/NOT MET/N/A] | [detail] |
63
+ | 13 | Human decision rights | [MET/PARTIAL/NOT MET/N/A] | [detail] |
64
+
65
+ Overall rigor: [STRONG | ADEQUATE | WEAK | INSUFFICIENT]
66
+ ```
@@ -0,0 +1,139 @@
1
+ ---
2
+ name: red-team-review
3
+ description: "Red-team-style adversarial review finding logic bugs, failure modes, security vulnerabilities, and deployment risks"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ <!-- Full version: content/prompt-task-red-team-review.md -->
8
+ Act as a Senior Software Engineer running a red team diagnostic. Find every way the system can break, fail silently, corrupt data, or be exploited. Review the provided [INPUT] across four domains. Flag every finding with domain, criterion, file location, severity, concrete production failure scenario, and fix. For non-web codebases (CLI tools, libraries, data pipelines), adapt criteria to the relevant attack surface and build system; report N/A where criteria genuinely do not apply.
9
+
10
+ ## Domain 1: Logic & Correctness
11
+
12
+ Targets edge cases in internal logic; for external input validation see 2.4.
13
+
14
+ ### 1.1 Boundary Conditions & Edge Cases
15
+ - Flag numeric ops not handling: zero, negative, overflow/underflow, NaN, Infinity.
16
+ - Flag collection ops not handling: empty, single-element, at-capacity.
17
+ - Flag string ops not handling: empty, whitespace-only, Unicode edge cases (ZWJ, RTL, emoji), exceeding length.
18
+ - Flag date/time ops not handling: timezone conversion, DST, leap years/seconds, epoch boundaries.
19
+
20
+ ### 1.2 State & Data Integrity
21
+ - Flag state machines with unvalidated transitions or unreachable/inescapable states.
22
+ - Flag read-modify-write on shared data without lock/transaction/atomic (race conditions).
23
+ - Flag partial mutation before possible failure without rollback (inconsistent state).
24
+ - Flag caches servable stale after source-of-truth change without invalidation/TTL.
25
+
26
+ ### 1.3 Comparison & Equality
27
+ - Flag float equality (`==`/`===`) — require epsilon comparison.
28
+ - Flag sort/compare not handling nulls, undefined, mixed types.
29
+ - Flag case-sensitive comparison on user identifiers where case-insensitive is intent.
30
+ - Flag locale-dependent string ops on multi-locale data.
31
+
32
+ ### 1.4 Resource & Lifecycle
33
+ - Flag resources (files, connections, sockets) not guaranteed to close in all paths (including exceptions).
34
+ - Flag event listeners/timers registered but never unregistered (memory leaks).
35
+ - Flag retry logic without max attempts or backoff (cascade failures).
36
+ - Flag main thread/event loop blocking (>50ms UI, >100ms server).
37
+
38
+ ## Domain 2: Failure Modes & Reliability
39
+
40
+ ### 2.1 Error Propagation
41
+ - Flag silent error swallowing (empty catch, log-only without re-throw/error return).
42
+ - Flag broad exception catches masking unrelated bugs.
43
+ - Flag unhandled async rejections (promises, futures).
44
+ - Flag functions returning "success" on failure paths — callers proceed with bad data.
45
+
46
+ ### 2.2 Dependency Failures
47
+ - Flag external calls (HTTP, DB, API, filesystem) with **no timeout** — causes indefinite hangs.
48
+ - Flag external service integrations with **no resilience mechanism** (retry with backoff, circuit breaker, fallback, or timeout) at either the call site or client/middleware level — single dependency cascades to total failure.
49
+ - Flag assumptions of always-available network or always-successful disk writes.
50
+
51
+ ### 2.3 Concurrency & Ordering
52
+ - Flag operations depending on concurrent task execution order without synchronization.
53
+ - Flag event/queue processing without idempotency (at-least-once requires dedup).
54
+ - Flag check-then-act without atomicity — Time-of-Check-to-Time-of-Use (TOCTOU).
55
+ - Flag shared counters/balances outside atomic operations.
56
+
57
+ ### 2.4 Data Validation at Boundaries
58
+
59
+ Targets trust boundaries where external data enters the system; for internal logic edge cases see 1.1.
60
+
61
+ - Flag external input used without type checking and range validation.
62
+ - Flag deserialization of external data without malformed-input handling.
63
+ - Flag inter-service communication trusting schema without validation.
64
+ - Flag DB query results assumed non-null/non-empty without checks.
65
+
66
+ ## Domain 3: Security & Attack Surface
67
+
68
+ ### 3.1 Injection Flaws
69
+ - Flag SQL via string concatenation — require parameterized queries.
70
+ - Flag OS command execution with user input — require argument arrays/allowlisting.
71
+ - Flag unescaped user input in HTML — verify auto-escaping, flag bypasses (`dangerouslySetInnerHTML`, `| safe`, `{!! !!}`, `v-html`).
72
+ - Flag `eval`/`Function()` on user-derived data.
73
+
74
+ ### 3.2 Authentication & Authorization
75
+ - Flag user enumeration via differing auth error messages ("user not found" vs "wrong password").
76
+ - Flag session tokens or JWTs in `localStorage` (XSS-accessible). Verify `httpOnly`/`secure`/`SameSite` cookies.
77
+ - Flag endpoints performing sensitive operations without server-side authorization — client-side-only auth is no auth.
78
+ - Flag insecure direct object references (IDOR): ID parameter changes granting cross-user access without ownership check.
79
+
80
+ ### 3.3 Data Exposure
81
+ - Flag stack traces, schema, paths, versions in client errors.
82
+ - Flag sensitive data in logs (passwords, tokens, PII).
83
+ - Flag over-fetching exposing admin fields, internal IDs, or other users' data.
84
+ - Verify HTTPS. Flag CORS wildcard on auth endpoints.
85
+
86
+ ### 3.4 AI/LLM Integration *(skip if no AI components)*
87
+ - Flag user input in system prompts without structural separation (prompt injection).
88
+ - Flag unsanitized RAG content in prompts (indirect injection).
89
+ - Flag destructive LLM-callable tools without user confirmation.
90
+ - Flag LLM output used in HTML/queries/commands without sanitization — treat as untrusted.
91
+ - Flag agentic systems without iteration limits, cost caps, human-in-the-loop.
92
+
93
+ ## Domain 4: CI/CD & Deployment Safety
94
+
95
+ ### 4.1 Pipeline Injection & Supply Chain
96
+ - Flag actions pinned by **mutable tag** — require **commit SHA**. Flag `${{ }}` interpolation of user-controlled input in `run:` — require `env:`. Flag `pull_request_target` + PR head checkout. Flag `curl | bash` and installs without lockfiles.
97
+
98
+ ### 4.2 Secret & Permission Hygiene
99
+ - Flag secrets in outputs/logs. Flag secrets accessible during untrusted input processing. Verify least-privilege `permissions:`. Flag self-hosted runners on public repos.
100
+
101
+ ### 4.3 Deployment Safety
102
+ - Flag deploys with no rollback. Flag migrations that DROP columns, rename columns, add NOT NULL without defaults, or change column types (likely not backwards-compatible). Flag deploys without health checks. Flag undocumented staging/prod config differences.
103
+
104
+ ### 4.4 Test & Gating Gaps
105
+ - Check for SAST/DAST/SCA/secret scanning as **blocking gates**. Flag gates only on default branch. Flag test suites passable with zero tests. Flag deploys proceeding on skipped/cancelled tests.
106
+
107
+ ## Output Format
108
+
109
+ Per domain:
110
+ ```
111
+ ## Domain N: [Name]
112
+ Status: PASS | FAIL | PARTIAL
113
+ ### Findings
114
+ [RED-N.M] [CRITICAL|HIGH|MEDIUM|LOW] — [file:line]
115
+ Finding: [Bug, failure mode, or vulnerability]
116
+ Scenario: [How this manifests in production]
117
+ Fix: [Actionable remediation]
118
+ ### Passes
119
+ - [What was correct]
120
+ ```
121
+
122
+ Severity: CRITICAL = data corruption/loss/breach/total failure. HIGH = significant incorrect behavior under common conditions. MEDIUM = edge-case bugs or missing resilience. LOW = minor gaps, low probability.
123
+
124
+ Conclude with:
125
+ ```
126
+ ## Summary
127
+ - Domain 1 (Logic): [PASS|FAIL|PARTIAL]
128
+ - Domain 2 (Reliability): [PASS|FAIL|PARTIAL]
129
+ - Domain 3 (Security): [PASS|FAIL|PARTIAL]
130
+ - Domain 4 (CI/CD): [PASS|FAIL|PARTIAL]
131
+ Overall: [SOLID | NEEDS_HARDENING | FRAGILE]
132
+ Top 3 Critical Findings: [list]
133
+ Highest-Risk Area: [domain and why]
134
+ ```
135
+
136
+ If no findings in a domain, mark PASS with a brief note on what was correct. Do not fabricate findings.
137
+
138
+ [INPUT]:
139
+ {provide_code_config_or_architecture_here}
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: research-codebase
3
+ description: "Structured investigation of unfamiliar codebases"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ # Research Codebase
8
+
9
+ Document and explain the codebase as it exists today.
10
+
11
+ ## Core Rule
12
+
13
+ You are a documentarian, not an evaluator.
14
+
15
+ ## Procedure
16
+
17
+ 1. Understand the research question and clarify the focus if needed.
18
+ 2. Decompose the question into searchable components.
19
+ 3. Use `references/search-patterns.md` for search strategy and preferred commands.
20
+ 4. Read the identified files completely.
21
+ 5. Generate the report using `references/report-template.md`.
22
+
23
+ ## Rules
24
+
25
+ - Describe what exists, where it exists, and how it works.
26
+ - Provide file references for claims.
27
+ - Show relationships between components.
28
+ - Do not recommend improvements or refactors.
@@ -0,0 +1,75 @@
1
+ ```markdown
2
+ # Research: [Topic]
3
+
4
+ Date: [ISO date]
5
+ Question: [Original research question]
6
+
7
+ ## Summary
8
+
9
+ [2-3 paragraph high-level overview]
10
+
11
+ ## Architecture Overview
12
+
13
+ [Describe the overall architecture]
14
+
15
+ ## Key Components
16
+
17
+ ### Component 1: [Name]
18
+
19
+ Location: `path/to/file.ext:123`
20
+ Purpose: [What it does]
21
+ Used by: [What depends on this]
22
+ Depends on: [What this depends on]
23
+
24
+ How it works:
25
+ [Step-by-step explanation]
26
+
27
+ Key methods or functions:
28
+ - `functionName()` (line 123): [What it does]
29
+
30
+ ## Data Flow
31
+
32
+ 1. [Step 1]
33
+ 2. [Step 2]
34
+ 3. [Step 3]
35
+
36
+ File references:
37
+ - Step 1: `path/to/file.ext:123`
38
+ - Step 2: `path/to/file.ext:456`
39
+
40
+ ## Patterns and Conventions
41
+
42
+ - [Pattern]: [Purpose and evidence]
43
+
44
+ ## Configuration
45
+
46
+ - Env vars: [If relevant]
47
+ - Config files: [If relevant]
48
+
49
+ ## Error Handling
50
+
51
+ - Error types: [If relevant]
52
+ - Error handlers: [If relevant]
53
+
54
+ ## Testing
55
+
56
+ - Test files: [If relevant]
57
+ - Coverage or patterns: [If determinable]
58
+
59
+ ## Dependencies
60
+
61
+ - External libraries: [If relevant]
62
+ - Internal dependencies: [If relevant]
63
+
64
+ ## Entry Points
65
+
66
+ 1. `path/to/file.ext:123` - [Why it matters]
67
+
68
+ ## Related Documentation
69
+
70
+ - [Doc path or README section]
71
+
72
+ ## Open Questions
73
+
74
+ - [ ] [Anything still unclear]
75
+ ```
@@ -0,0 +1,27 @@
1
+ ## Research Search Patterns
2
+
3
+ Use fast search tools first.
4
+
5
+ ```bash
6
+ # Find auth-related files
7
+ rg --files | rg "auth"
8
+
9
+ # Search for authentication patterns
10
+ rg -n "authenticate" .
11
+ rg -n "login" .
12
+
13
+ # Look for middleware or hooks
14
+ rg -n "middleware" .
15
+ rg -n "useAuth" .
16
+
17
+ # Find configuration
18
+ rg -n "auth" config .env.example
19
+ ```
20
+
21
+ Research questions usually break down into:
22
+ - Where the logic lives
23
+ - What entry points exist
24
+ - How state is managed
25
+ - Where validation happens
26
+ - How errors are handled
27
+ - What the end-to-end flow looks like
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: research-documentation
3
+ description: "Audit existing documentation or plan a new suite using advanced frameworks"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ # Research Documentation Architecture
8
+
9
+ Audit the existing documentation or plan a new suite using the Unified Frameworks for Technical Information Architecture.
10
+
11
+ ## CRITICAL RULES
12
+
13
+ 1. ✅ **DO:** Categorize every document into exactly one Diátaxis quadrant.
14
+ 2. ✅ **DO:** Identify "Frankenbooks" (documents with mixed intent/quadrants).
15
+ 3. ✅ **DO:** Map the "Snowflake" progression from Core Assertion to granular topics.
16
+ 4. ✅ **DO:** Verify EPPO compliance (Does each page establish its own context?).
17
+ 5. ❌ **DO NOT:** Start writing content yet; focus on architecture and gaps.
18
+ 6. ❌ **DO NOT:** Suggest stylistic changes (focus on structural integrity).
19
+
20
+ ## Process
21
+
22
+ ### Step 1: Define the Scope
23
+
24
+ [User will provide a path to a documentation directory or a project description.]
25
+ - Identify the primary audience (Novice vs. Expert).
26
+ - State the "Core Assertion" (The single-sentence value proposition).
27
+ - **Legacy Conflict Resolution:** If existing documentation contains multiple, conflicting "hooks," identify the most impactful one or propose a synthesis for the new architecture.
28
+
29
+ ### Step 2: Audit Existing Content (if applicable)
30
+
31
+ For each file in the directory, determine:
32
+ - **Quadrant:** (Tutorial | How-to | Reference | Explanation).
33
+ - **EPPO Status:** (Pass/Fail) Does it have standalone utility and context?
34
+ - **Cognitive Load:** Are there "walls of words" or missing labels?
35
+
36
+ ### Step 3: Map the Snowflake Outline
37
+
38
+ Expand the Core Assertion into a structural map:
39
+ 1. **Core Assertion:** [1 sentence]
40
+ 2. **Macro-Expansion:** [1 paragraph user journey]
41
+ 3. **Component List:** [The "characters" of the system]
42
+ 4. **Topic Matrix:** A list of proposed EPPO topics categorized by quadrant.
43
+
44
+ ### Step 4: Identify Gaps and Friction
45
+
46
+ - **Quadrant Imbalance:** e.g., "Too much reference, not enough tutorials."
47
+ - **Structural Plot-holes:** Where does the user journey break?
48
+ - **AI-Readiness Gaps:** Missing `llms.txt`, poor semantic labeling.
49
+
50
+ ### Step 5: Final Research Report
51
+
52
+ Output the audit/plan using the following template:
53
+
54
+ ```markdown
55
+ # Documentation Research: [Project Name]
56
+
57
+ ## 1. Executive Summary & Core Assertion
58
+ **Core Assertion:** [The one-sentence hook]
59
+ **Status:** [Summary of current architecture health]
60
+
61
+ ## 2. Diátaxis Matrix
62
+ | Quadrant | Existing Topics | Proposed/Missing Topics |
63
+ | :--- | :--- | :--- |
64
+ | **Tutorial** | | |
65
+ | **How-to** | | |
66
+ | **Reference** | | |
67
+ | **Explanation** | | |
68
+
69
+ ## 3. Snowflake Structural Map
70
+ - **Macro-Journey:** [Description]
71
+ - **Key Components:** [List]
72
+
73
+ ## 4. EPPO & Cognitive Audit
74
+ - **Frankenbooks Found:** [List of files with mixed intent]
75
+ - **Context Gaps:** [Topics needing better orientation]
76
+
77
+ ## 5. AI-Readiness Assessment
78
+ - [ ] `llms.txt` present?
79
+ - [ ] Explicit semantic labeling for RAG?
80
+ - [ ] MCP endpoints identified?
81
+
82
+ ## 6. Recommended Next Steps
83
+ 1. [Actionable structural change]
84
+ 2. [Actionable topic creation]
85
+ ```
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: research-review
3
+ description: "Iterative review of research documents using Rule of 5"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ <!-- skill: research-review, version: 1.2.0, status: verified -->
8
+ # Iterative Research Review
9
+
10
+ Thoroughly review research documents for accuracy, completeness, and actionability using the Rule of 5 iterative refinement process.
11
+
12
+ ## Role
13
+ You are a Senior Research Scientist. Your goal is to validate the integrity of findings, ensure all research questions are answered, and confirm that conclusions are supported by empirical evidence. You protect the project from making decisions based on outdated, inaccurate, or incomplete information.
14
+
15
+ ## Procedure
16
+
17
+ 1. **Research Identification:**
18
+ * Identify the research document to review. If none is provided, list available research files.
19
+ * Read the document completely to understand the problem statement, methodology, and conclusions.
20
+
21
+ 2. **Iterative Analysis (Rule of 5):**
22
+ Perform up to 5 passes, each with a specific focus. After each pass (starting with Pass 2), perform a **Convergence Check**.
23
+ * **Pass 1: Accuracy & Sources** — Evidence-backed claims, source credibility/recency, and factual correctness of technical details.
24
+ * **Pass 2: Completeness & Scope** — Unanswered research questions, gaps in analysis, and appropriate depth for the topic.
25
+ * **Pass 3: Clarity & Structure** — Logical flow, clear definitions of terms, and consistent terminology.
26
+ * **Pass 4: Actionability & Conclusions** — Clear takeaways, trade-offs articulated, and practical applicability to the project.
27
+ * **Pass 5: Integration & Context** — Alignment with existing research, specs, and established project decisions.
28
+
29
+ 3. **Convergence Check:**
30
+ * Stop and report if **CONVERGED**: No new CRITICAL issues found AND new issue rate is <10% compared to the previous pass.
31
+ * Otherwise, continue to the next pass.
32
+
33
+ 4. **Verification (CRITICAL):**
34
+ * **DO NOT** take research claims at face value. Use `read_file` or `grep_search` to cross-check any code references or architectural claims against the actual codebase.
35
+ * Verify that referenced library versions or APIs are not deprecated or outdated.
36
+
37
+ 5. **Final Synthesis:**
38
+ * Produce a Final Report with a clear **Verdict** (READY | NEEDS_REVISION | NEEDS_MORE_RESEARCH) and a **Quality Assessment**.
39
+
40
+ ## Rules
41
+ - **Verify Every Claim:** If a research document says "File X does Y", you must verify it before approving the research.
42
+ - **Actionable Takeaways:** Research without a "next step" or recommendation is a HIGH-severity failure.
43
+ - **Cite the Code:** All technical findings must reference specific files and, where possible, line ranges.
44
+ - **Stop Early:** Do not force 5 stages if convergence is reached sooner.
45
+
46
+ ## References
47
+ - **Templates:** Use `references/templates.md` for the exact output format of each pass and the final report.
48
+ - **Criteria:** See `references/criteria.md` for detailed convergence rules and issue severity definitions.