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,48 @@
1
+ ---
2
+ name: plan-review
3
+ description: "Iterative review of implementation plans"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ <!-- skill: plan-review, version: 1.2.0, status: verified -->
8
+ # Iterative Plan Review
9
+
10
+ Thoroughly review implementation plans for feasibility, completeness, and TDD alignment using the Rule of 5 iterative refinement process.
11
+
12
+ ## Role
13
+ You are a Principal Systems Planner. Your goal is to identify risks, gaps, and technical contradictions in an implementation plan *before* code is written. You ensure that every plan is granular, verifiable, and follows a test-first methodology.
14
+
15
+ ## Procedure
16
+
17
+ 1. **Plan Identification:**
18
+ * Identify the plan to review. If none is provided, list available plans from `plans/`.
19
+ * Read the plan completely to understand the overall architecture and phase structure.
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: Feasibility & Risk** — Technical feasibility, external dependencies, unrealistic estimates, and missing rollback strategies.
24
+ * **Pass 2: Completeness & Scope** — Missing phases, vague success criteria, and gaps between current and desired states.
25
+ * **Pass 3: Spec & TDD Alignment** — Alignment with specification files and a clear test-first approach in every phase.
26
+ * **Pass 4: Ordering & Dependencies** — Logical phase sequencing, parallelizable work, and independent verifiability of each phase.
27
+ * **Pass 5: Clarity & Executability** — Specific file paths, concrete change descriptions, and unambiguous "done" definitions.
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** assume the plan's technical claims are correct. Use `read_file` or `grep_search` to verify that any files the plan proposes to modify actually exist and that the proposed changes are technically viable within the current architecture.
35
+ * Flag "We'll just..." statements that hide complexity as high-risk.
36
+
37
+ 5. **Final Synthesis:**
38
+ * Produce a Final Report with a clear **Verdict** (READY_TO_IMPLEMENT | NEEDS_REVISION | NEEDS_MORE_RESEARCH).
39
+
40
+ ## Rules
41
+ - **Specific Fixes:** Do not just say "add detail"; specify *what* detail (e.g., "Add try-catch for JWT errors in Phase 2").
42
+ - **Test-First Mandate:** Any phase without a corresponding verification/test step is a CRITICAL failure.
43
+ - **Incremental Value:** Each phase must be independently verifiable and deployable (where possible).
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.
@@ -0,0 +1,51 @@
1
+ # Plan 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** | Blocks implementation or will cause catastrophic system failure. Violates TDD mandate (no test planned). | Feasibility contradiction, missing test for critical path, impossible phase order, hidden complexity ("We'll just..."). |
10
+ | **HIGH** | Significantly impacts quality, security, or maintainability. High risk of regression. | Missing edge case handling, unmitigated security risk, vague success criteria, missing rollback plan. |
11
+ | **MEDIUM** | Worth addressing to improve the plan but not blocking implementation. | Sub-optimal ordering, missing parallelization opportunities, vague file paths, minor dependency issues. |
12
+ | **LOW** | Minor improvements, stylistic issues, or metadata gaps. | Typos in description, missing versioning, redundant phase commentary. |
13
+
14
+ ## Convergence Criteria
15
+
16
+ **CONVERGED** if:
17
+ - No new **CRITICAL** issues were found in the current pass AND
18
+ - The number of new issues found is less than 10% compared to the previous pass AND
19
+ - The estimated false positive rate is below 20%.
20
+
21
+ **NEEDS_HUMAN** if:
22
+ - After 5 passes, new **CRITICAL** issues are still being discovered.
23
+ - The false positive rate exceeds 30%.
24
+ - A major disagreement on architectural direction is identified.
25
+
26
+ ## Pass Focus Checklist
27
+
28
+ ### Pass 1: Feasibility & Risk
29
+ - [ ] Is the proposed logic technically possible in the current codebase?
30
+ - [ ] Are all external API/library dependencies accounted for?
31
+ - [ ] Is there a rollback strategy for high-risk changes?
32
+
33
+ ### Pass 2: Completeness & Scope
34
+ - [ ] Does the plan cover all affected files and components?
35
+ - [ ] Are the success criteria for each phase clear and verifiable?
36
+ - [ ] Is "Out of Scope" explicitly defined?
37
+
38
+ ### Pass 3: Spec & TDD Alignment
39
+ - [ ] Does every implementation step have a corresponding test/verification step?
40
+ - [ ] Are tests planned *before* implementation in the phase sequence?
41
+ - [ ] Does the plan fulfill all requirements from the related specification?
42
+
43
+ ### Pass 4: Ordering & Dependencies
44
+ - [ ] Are phases in a logical, executable order?
45
+ - [ ] Are dependencies between phases clearly identified?
46
+ - [ ] Is each phase independently verifiable?
47
+
48
+ ### Pass 5: Clarity & Executability
49
+ - [ ] Are all file paths concrete and correct?
50
+ - [ ] Could another engineer implement this without asking for more context?
51
+ - [ ] Is it clear what "done" means for the overall plan?
@@ -0,0 +1,67 @@
1
+ # Plan Review Templates
2
+
3
+ Use these templates to provide a structured, high-signal report for each pass and the final verdict.
4
+
5
+ ## Pass Output Template
6
+
7
+ Use this format for reporting results from any of the five passes.
8
+
9
+ ```markdown
10
+ ### PASS [N]: [Focus Area]
11
+
12
+ #### Issues Found:
13
+ [ID] [CRITICAL|HIGH|MEDIUM|LOW] - [Phase/Section]
14
+ **Description:** [What's wrong or risky]
15
+ **Evidence:** [Why this is a problem - cite codebase if relevant]
16
+ **Recommendation:** [How to fix with specific technical guidance]
17
+
18
+ [ID] ...
19
+ ```
20
+
21
+ ## Convergence Check Template
22
+
23
+ Use this format after each pass (starting with Pass 2).
24
+
25
+ ```markdown
26
+ **Convergence Check After Pass [N]:**
27
+
28
+ 1. New CRITICAL issues: [count]
29
+ 2. Total new issues this pass: [count]
30
+ 3. Total new issues previous pass: [count]
31
+ 4. Estimated false positive rate: [percentage]
32
+
33
+ **Status:** [CONVERGED | ITERATE | NEEDS_HUMAN]
34
+ ```
35
+
36
+ ## Final Report Template
37
+
38
+ After convergence or completing all 5 passes, provide this summary.
39
+
40
+ ```markdown
41
+ # Plan Review Final Report
42
+
43
+ **Plan:** plans/[filename].md | **Convergence:** Pass [N]
44
+
45
+ ## Summary Table
46
+ | Severity | Count | Key Focus |
47
+ | :--- | :--- | :--- |
48
+ | **CRITICAL** | [count] | Feasibility / TDD Mandate |
49
+ | **HIGH** | [count] | Completeness / Risks |
50
+ | **MEDIUM** | [count] | Ordering / Dependencies |
51
+ | **LOW** | [count] | Clarity / Formatting |
52
+
53
+ ## Top 3 Critical Findings
54
+ 1. **[ID] [Description]** - [Phase]
55
+ * **Impact:** [Why this blocks implementation or causes failure]
56
+ * **Fix:** [Specific actionable step]
57
+
58
+ 2. **[ID] ...**
59
+
60
+ ## Recommended Next Actions
61
+ 1. [Action 1 - specific and actionable]
62
+ 2. [Action 2 - specific and actionable]
63
+ 3. [Action 3 - specific and actionable]
64
+
65
+ ## Verdict: [READY_TO_IMPLEMENT | NEEDS_REVISION | NEEDS_MORE_RESEARCH]
66
+ **Rationale:** [1-2 sentences explaining the verdict]
67
+ ```
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: pre-mortem
3
+ description: "Anticipate failures before they happen"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ Imagine it is [FUTURE DATE, e.g., six months from now]. The [PROJECT NAME] project has failed spectacularly. It was a complete disaster, resulting in [SPECIFIC NEGATIVE BUSINESS OUTCOME, e.g., 40% customer churn, a major security breach, a total budget overrun].
8
+
9
+ You are the lead investigator writing the internal autopsy report. Your job is to uncover the root causes of the failure.
10
+
11
+ Do not speculate on *if* it might fail. You must assume it *has* failed.
12
+
13
+ Your task:
14
+ 1. Write a brief, 1-2 paragraph narrative describing how the failure unfolded.
15
+ 2. Based on that narrative, identify the top 3-5 root causes of the failure. For each root cause, trace it back to a specific decision, assumption, or action made in the plan *today*.
16
+ 3. Be specific and unflinching in your analysis. Your goal is to provide the team with the "prospective hindsight" needed to prevent this future from happening.
@@ -0,0 +1,130 @@
1
+ ---
2
+ name: project-status-report
3
+ description: "Create audience-specific project status reports grounded in evidence, variance, blockers, decisions, and agentic AI provenance when applicable"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ # Evidence-Backed Project Status Report
8
+
9
+ Create a concise, decision-grade project status report for the requested project, workstream, or agent run.
10
+
11
+ ## Inputs
12
+
13
+ If missing, ask for the minimum context before drafting:
14
+ - project/workstream name;
15
+ - reporting period;
16
+ - audience: executive, engineering, product, client/sponsor, or mixed;
17
+ - available evidence sources: tickets, PRs, commits, CI/CD, incidents, metrics, docs, risk logs, decision logs, traces, or notes;
18
+ - baseline commitments, if any: scope, date, budget, quality, OKR, milestone, or SOW.
19
+
20
+ ## Rules
21
+
22
+ - Prefer evidence-linked claims over narrative claims.
23
+ - Separate facts from interpretation.
24
+ - Mark unknowns explicitly; do not invent missing evidence.
25
+ - Link to access-controlled evidence; do not paste secrets, credentials, personal data, private code, sensitive prompts, or sensitive trace content.
26
+ - If no safe evidence link exists, summarize only non-sensitive metadata, such as artifact ID, trace ID, run time, status, and redacted outcome.
27
+ - Never report Green without objective supporting evidence.
28
+ - If evidence conflicts, report dimension-specific status before assigning overall RAG.
29
+ - Separate “blocked” from “at risk.” Blocked means work cannot proceed without external action; at risk means the forecast is threatened.
30
+ - Separate “tests passed” from “accepted,” “merged,” “deployed,” or “independently verified.”
31
+ - Every Amber or Red item must include owner, mitigation, and next review date; if any field is unknown, mark it unknown and list it as a decision/ask.
32
+
33
+ ## Status Scale
34
+
35
+ Use organization-specific thresholds when available. Otherwise:
36
+
37
+ - **Unknown / Unrated:** no agreed baseline exists, evidence is insufficient, or discovery work has not established meaningful thresholds.
38
+ - **Green:** within agreed tolerance; no unresolved blocker threatens a key commitment; evidence supports the forecast.
39
+ - **Amber:** material variance or dependency risk exists, but there is a credible recovery plan with owner and date.
40
+ - **Red:** a critical objective, milestone, safety requirement, compliance requirement, or budget/schedule constraint is no longer under control, or no credible recovery plan exists.
41
+
42
+ ## Procedure
43
+
44
+ 1. Identify audience and decision the report supports.
45
+ 2. Gather/inspect available evidence before drafting.
46
+ 3. Compare baseline vs current state.
47
+ 4. Assign dimension-specific status when useful: scope, schedule, quality, reliability, cost, risk, governance.
48
+ 5. Assign overall status only after reviewing evidence.
49
+ 6. Summarize completed outcomes, current work, forecast changes, blockers, risks, dependencies, and decisions needed.
50
+ 7. Include agentic AI evidence when applicable.
51
+ 8. Keep executive summary short; put trace-level/ticket-level detail behind links or appendices.
52
+ 9. For mixed audiences, put the executive summary first and move technical detail to evidence links or an appendix.
53
+
54
+ ## Output Template
55
+
56
+ Use only applicable sections. Omit empty sections.
57
+
58
+ ```markdown
59
+ # Project Status: <project name>
60
+
61
+ Reporting period: <date range>
62
+ Owner / DRI: <name or unknown>
63
+ Audience: <executive | engineering | product | client | mixed>
64
+ Overall status: <Unknown / Unrated | Green | Amber | Red>
65
+ Trend: <Improving | Stable | Worsening | Unknown>
66
+ Confidence: <High | Medium | Low | Unknown>
67
+
68
+ ## Executive Summary
69
+ - <1-3 bullets on outcome, forecast, and most important risk/ask>
70
+
71
+ ## What Changed Since Last Report
72
+ - Completed: <evidence-linked outcomes, not activity lists>
73
+ - In progress: <current work and expected completion>
74
+ - Not completed as planned: <variance and reason>
75
+
76
+ ## Evidence
77
+ - Tickets / roadmap items: <links or IDs>
78
+ - PRs / commits / releases: <links or IDs>
79
+ - CI / test / deployment status: <links or summary>
80
+ - Metrics: <DORA, flow, EVM, SLO, OKR, or domain-specific metrics>
81
+ - Agent traces, if applicable: <trace IDs / run IDs; link to access-controlled evidence>
82
+
83
+ ## Forecast and Variance
84
+ - Baseline commitment: <scope/date/budget/quality target>
85
+ - Current forecast: <updated forecast>
86
+ - Variance: <numeric or concrete difference>
87
+ - Reason for variance: <root cause or current best explanation>
88
+
89
+ ## Risks, Issues, Blockers, Dependencies
90
+ Use one row per risk, issue, blocker, or dependency.
91
+
92
+ | Type | Description | Impact | Owner | Due / review date | Mitigation / ask |
93
+ |---|---|---|---|---|---|
94
+ | Risk/Issue/Blocker/Dependency | | | | | |
95
+
96
+ ## Decisions
97
+ - Decisions made this period: <decision + rationale + link>
98
+ - Decisions needed: <decision + owner + deadline + consequence of no decision>
99
+
100
+ ## Next Commitments
101
+ - By next report: <specific promised outcomes>
102
+ - Next 2-4 weeks: <look-ahead commitments and dependencies>
103
+
104
+ ## Agentic AI Evidence, if applicable
105
+ Omit this section when no agentic AI was used.
106
+
107
+ Minimum evidence:
108
+ - Agent/model/prompt/tool versions: <versions>
109
+ - Autonomy level: <manual | assisted | supervised autonomous | autonomous with audit>
110
+ - Human checkpoints: <approvals, overrides, rejected actions>
111
+ - Verification state: <generated | tested | independently verified | merged | deployed>
112
+ - Trace/provenance: <trace IDs, commit SHA, PR, build, deployment>
113
+ - Cost/latency: <tokens, cost, runtime if material>
114
+ - Safety/policy exceptions: <none or details>
115
+
116
+ Extended governance evidence, when risk or regulation warrants:
117
+ - Retrieved context and data sources
118
+ - Detailed tool-call sequence / span tree
119
+ - Independent evaluation results
120
+ - SBOM, signatures, or release provenance
121
+ - Red-team, abuse-test, or policy-review notes
122
+ ```
123
+
124
+ ## Quality Bar
125
+
126
+ Before finalizing, verify:
127
+ - The report answers: what changed, what is next, what is blocked, and what decision/help is needed.
128
+ - Every nontrivial claim has evidence or is marked unknown.
129
+ - Amber/Red items include owner, mitigation, and next review date, or unknown fields are marked and converted into decisions/asks.
130
+ - The audience can act on the report without asking for a second status meeting.
@@ -0,0 +1,87 @@
1
+ ---
2
+ name: pwa-accessibility-review
3
+ description: "4-domain heuristic review of PWAs targeting non-technical merchants on entry-level devices with volatile connectivity"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ # PWA Accessibility & Reliability Review for Micro-Merchants
8
+
9
+ Act as a Senior Mobile Web Performance and Digital Inclusion Architect. Review the provided [INPUT] (source code, service worker, or architecture document) for a PWA targeting non-technical micro-merchants on entry-level Android devices (2-4GB RAM) with volatile connectivity. Evaluate across four domains. Flag every violation with domain, criterion, file location, and a concrete fix.
10
+
11
+ ## Domain 1: Cognitive Usability & WCAG Accessibility
12
+
13
+ ### 1.1 Linguistic Audit
14
+ - Flag technical jargon in user-facing strings ("sync," "cache," "authenticate," "fetch," "timeout," "session," "token," "retry") and suggest plain-language replacements ("saving," "saved data," "log in," "loading," "taking too long").
15
+
16
+ ### 1.2 Interaction Target Sizing
17
+ - All interactive elements must have minimum **44x44px** touch area with minimum **8px** gap between adjacent targets.
18
+
19
+ ### 1.3 Visual Hierarchy & Progressive Disclosure
20
+ - Navigation depth maximum **2 layers**. Text/background contrast must meet **WCAG AA** (4.5:1 normal, 3:1 large). Every icon must have a paired text label or `aria-label`. Primary action must dominate each screen.
21
+
22
+ ### 1.4 Feedback & Error Handling
23
+ - Every async operation needs immediate visual feedback (button disable, spinner, success/failure state). Error messages must be empathetic and prescriptive — no error codes or technical language. Explicit Undo/Back/Cancel for destructive or financial actions. Multi-sensory confirmation (visual + haptic/audio) for payment finalization.
24
+
25
+ ## Domain 2: Offline Architecture & Reliability
26
+
27
+ ### 2.1 Storage Separation
28
+ - **Cache API** strictly for static shell assets (HTML, CSS, JS, fonts, images). **IndexedDB** (via Dexie.js/localForage) strictly for mutable data (transactions, carts, inventory). Flag `localStorage` for structured data. Flag mutable state in Cache API.
29
+
30
+ ### 2.2 Caching Strategy Validation
31
+ - **CacheFirst** for static shell. **NetworkFirst** (cache fallback) for dynamic data. **StaleWhileRevalidate** for catalogs/images/pricing. Workbox or equivalent required. Service worker `activate` must `caches.delete()` old versions.
32
+
33
+ ### 2.3 iOS Resilience
34
+ - Detect iOS UA + `navigator.standalone`. Render "Add to Home Screen" overlay if not standalone. Push handlers must use `event.waitUntil(self.registration.showNotification(...))` (3 silent pushes = permanent subscription kill). `Notification.requestPermission()` only on user gesture.
35
+
36
+ ### 2.4 Background Sync & Data Integrity
37
+ - `sync.register()` for offline action queuing. `sync` event listener replays on connectivity. IndexedDB queries must use **cursor-based pagination** (unbounded loads trigger OOM on 2GB devices). Monitor quota via `navigator.storage.estimate()`.
38
+
39
+ ## Domain 3: Hardware Optimization & Main Thread
40
+
41
+ ### 3.1 Main Thread Blocking
42
+ - Lists >50 items require **virtual scrolling**. Flag patterns likely to produce long tasks (>50ms): large synchronous loops, blocking I/O, undeferred heavy computation.
43
+
44
+ ### 3.2 Execution Yielding
45
+ - Defer non-critical scripts (analytics, telemetry) until after first interaction via `requestIdleCallback`, `scheduler.yield()`, `setTimeout(0)`, or dynamic `import()`. Flag synchronous third-party scripts in critical path.
46
+
47
+ ### 3.3 Bundle & Rendering
48
+ - Flag DOM >1500 nodes (warning) or >3000 (critical). Verify code splitting — initial bundle for first screen only. Flag hydration that blocks input responsiveness.
49
+
50
+ ## Domain 4: Security & Data Integrity
51
+
52
+ ### 4.1 Data Leakage
53
+ - Sensitive views (login, password reset) excluded from SW cache via `Cache-Control: no-store`. No tokens/PII in Cache API.
54
+
55
+ ### 4.2 Payload Integrity
56
+ - Offline IndexedDB payloads **cryptographically signed** (HMAC) before Background Sync upload. Server validates signature.
57
+
58
+ ### 4.3 CSP & Service Worker Protection
59
+ - Strict `Content-Security-Policy` restricting `script-src`, `worker-src`, `connect-src`. No `unsafe-inline`/`unsafe-eval`. HTTPS enforced for all SW registrations and sync endpoints.
60
+
61
+ ## Output Format
62
+
63
+ Per domain:
64
+ ```
65
+ ## Domain N: [Name]
66
+ Status: PASS | FAIL | PARTIAL
67
+ ### Violations
68
+ [DOM-N.M] [CRITICAL|HIGH|MEDIUM|LOW] — [file:line]
69
+ Finding: [What's wrong]
70
+ Fix: [Actionable remediation]
71
+ ### Passes
72
+ - [What was correct]
73
+ ```
74
+
75
+ Conclude with:
76
+ ```
77
+ ## Summary
78
+ - Domain 1 (Usability): [PASS|FAIL|PARTIAL]
79
+ - Domain 2 (Offline): [PASS|FAIL|PARTIAL]
80
+ - Domain 3 (Performance): [PASS|FAIL|PARTIAL]
81
+ - Domain 4 (Security): [PASS|FAIL|PARTIAL]
82
+ Overall: [READY | NEEDS_REVISION | NOT_READY]
83
+ Top 3 Critical Fixes: [list]
84
+ ```
85
+
86
+ [INPUT]:
87
+ {provide_code_or_architecture_here}
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: rca-diagnostician
3
+ description: "Conduct or evaluate root cause analysis using cross-disciplinary principles — structured investigation from symptom to systemic cause with method selection, cognitive bias countermeasures, and corrective actions ranked by strength"
4
+ metadata:
5
+ installed-from: "incitaciones"
6
+ ---
7
+ # RCA Diagnostician
8
+
9
+ Conduct or evaluate a root cause analysis using cross-disciplinary principles. Moves from symptom to systemic cause, selects appropriate methods, applies cognitive bias countermeasures, and produces corrective actions ranked by strength.
10
+
11
+ ## Setup
12
+
13
+ - If an incident description or RCA report is provided, read it completely.
14
+ - If no input is provided, ask what incident or failure to investigate.
15
+ - Determine the mode: INVESTIGATE (new RCA) or EVALUATE (review existing report).
16
+
17
+ ## Procedure
18
+
19
+ 1. **Scope the problem.** Define WHAT/WHERE/WHEN/SEVERITY and the counterfactual. Use `references/problem-definition.md`.
20
+ 2. **Collect and map evidence.** Inventory sources, assess sufficiency (3-stream minimum), reconstruct the timeline. Use `references/evidence-timeline.md`.
21
+ 3. **Generate and test hypotheses.** Produce candidates at mechanism, process, and organizational levels. Select the appropriate RCA method for the domain. Use `references/hypothesis-methods.md`.
22
+ 4. **Apply bias countermeasures.** Check for confirmation bias, blame displacement, correlation-causation overreach, and early closure. Use `references/bias-countermeasures.md`.
23
+ 5. **Define corrective actions.** Rank by strength (strong/intermediate/weak). Require at least one strong action. Define verification metrics. Use `references/action-hierarchy.md`.
24
+ 6. **Evaluate rigor.** Apply the minimum viable rigor checklist. If AI tools were used, apply the AI governance checklist. Use `references/rigor-checklist.md`.
25
+ 7. **Produce the final report.** Use `references/report-template.md`.
26
+
27
+ For EVALUATE mode: read the existing report, extract the problem definition (step 1), then skip to step 6 (rigor evaluation), then produce the report. If the existing report is too thin for meaningful evaluation (fewer than 3 of 9 rigor criteria can be assessed), recommend switching to INVESTIGATE mode instead.
28
+
29
+ ## Rules
30
+
31
+ - Never promote correlation to causation without a causal model or explicit uncertainty.
32
+ - Never accept a single-cause narrative without testing alternatives.
33
+ - Never recommend only weak actions (retraining, reminders) when the system predictably creates the error.
34
+ - Every action must have a verification metric and monitoring period.
35
+ - Reference exact evidence from the input. Do not fabricate findings.
36
+ - This diagnostic is advisory — do not implement fixes during this session.
@@ -0,0 +1,77 @@
1
+ ## Corrective Action Hierarchy and Verification
2
+
3
+ ### Action Strength Classification
4
+
5
+ Rank every proposed corrective action by its ability to change the system:
6
+
7
+ **Strong (system redesign):**
8
+ - Architectural changes that eliminate the failure mode
9
+ - Forcing functions and interlocks (make the error physically/logically impossible)
10
+ - Automation of detection or prevention (the system catches or prevents without human action)
11
+ - Interface redesign that removes the ambiguity or error pathway
12
+ - Examples: circuit breakers, type-safe interfaces, automated rollback triggers, equipment redesign, workflow interlocks
13
+
14
+ **Intermediate (enhanced controls):**
15
+ - Improved monitoring and alerting (reduces detection time but doesn't prevent)
16
+ - Checklists and standardized procedures (reduces variation but depends on compliance)
17
+ - Staffing changes (reduces workload-driven errors but doesn't eliminate the mechanism)
18
+ - Process redesign (changes the workflow but doesn't add forcing functions)
19
+ - Examples: new dashboard alerts, pre-deployment checklists, on-call rotation changes, peer review gates
20
+
21
+ **Weak (awareness-only):**
22
+ - Retraining or education
23
+ - Policy memos and reminders
24
+ - "Be more careful" directives
25
+ - Documentation updates without verification that they are read or followed
26
+ - Examples: email reminders, updated wiki pages, all-hands announcements, annual training modules
27
+
28
+ ### Minimum Strong Action Requirement
29
+
30
+ **Every RCA must include at least one strong action.** If only intermediate or weak actions are proposed:
31
+
32
+ 1. Flag this explicitly: "Action portfolio contains no strong actions"
33
+ 2. Describe what system change would be needed — even if it requires resources, authority, or timeline the team doesn't currently have
34
+ 3. Recommend escalation to the authority level that can approve the strong action
35
+ 4. Document the risk accepted by proceeding with only intermediate/weak actions
36
+
37
+ ### Verification Plan
38
+
39
+ For each action, define:
40
+
41
+ | Element | Required |
42
+ |---------|----------|
43
+ | **Verification metric** | What measurable outcome confirms the action reduced risk? |
44
+ | **Monitoring period** | How long must the metric be tracked? (Minimum: 2x the mean time between previous occurrences. For novel incidents without recurrence history, use 90 days or one full operational cycle, whichever is longer.) |
45
+ | **Owner** | Named person accountable for implementation and verification |
46
+ | **Deadline** | Implementation completion date |
47
+ | **Escalation path** | What happens if the metric does not improve within the monitoring period? |
48
+
49
+ ### Learning Loop
50
+
51
+ Identify how findings feed back into the organization:
52
+
53
+ - Standards or specifications to update
54
+ - Training content to modify
55
+ - Design review criteria to add
56
+ - Monitoring and alerting to change
57
+ - Audit or compliance checks to introduce
58
+
59
+ ### Output
60
+
61
+ ```text
62
+ ## Corrective Actions
63
+
64
+ | # | Root cause addressed | Action | Strength | Owner | Deadline | Verification metric | Monitoring period |
65
+ |---|---------------------|--------|----------|-------|----------|--------------------|--------------------|
66
+ | 1 | [cause] | [action] | [strong/intermediate/weak] | [who] | [when] | [metric] | [duration] |
67
+
68
+ Action strength mix: [N strong, N intermediate, N weak]
69
+ Minimum strong action requirement: [MET | NOT MET — escalation needed]
70
+
71
+ ## Learning Loop
72
+
73
+ - Standards to update: [list]
74
+ - Training to modify: [list]
75
+ - Monitoring to add/change: [list]
76
+ - Design reviews to inform: [list]
77
+ ```
@@ -0,0 +1,64 @@
1
+ ## Cognitive Bias Countermeasures
2
+
3
+ RCA fails more often from cognitive and organizational barriers than from lack of method. Apply these checks explicitly during hypothesis generation and evaluation.
4
+
5
+ ### Check 1: Confirmation Bias
6
+
7
+ Question: Did you actively seek disconfirming evidence for your leading hypothesis?
8
+
9
+ Red flags:
10
+ - All cited evidence supports one narrative
11
+ - Alternative hypotheses were listed but not seriously tested
12
+ - Disconfirming data was explained away rather than weighted
13
+ - The investigation stopped at the first plausible story
14
+
15
+ Test: Can you name specific evidence that would weaken your leading hypothesis? If you cannot, the investigation has early-closure risk.
16
+
17
+ ### Check 2: Blame Displacement
18
+
19
+ Question: Are you attributing to individuals what the system predictably creates?
20
+
21
+ Red flags:
22
+ - Root cause is stated as "operator error," "didn't follow procedure," or "lack of training"
23
+ - No analysis of why the system allowed or encouraged the error
24
+ - Corrective actions are person-only (retraining, disciplinary action, reminders)
25
+ - The same error has occurred before with different individuals
26
+
27
+ Test: If you replaced this person with a competent peer, would the system still create conditions for the same failure? If YES, the system is the root cause, not the individual.
28
+
29
+ ### Check 3: Correlation-Causation Overreach
30
+
31
+ Question: Are you promoting a statistical association to a causal claim without a mechanistic explanation?
32
+
33
+ Red flags:
34
+ - "X happened before Y, therefore X caused Y" (temporal precedence alone)
35
+ - Pattern found in data without explanation of how X produces Y
36
+ - Confounding variables not considered (something else changed simultaneously)
37
+ - AI/ML tool surfaced a correlation and it was adopted as a root cause
38
+
39
+ Test: Can you explain the mechanism by which X causes Y? Can you identify confounders that might explain the association? If not, label this as "candidate association, not confirmed cause."
40
+
41
+ ### Check 4: Early Closure
42
+
43
+ Question: Did the investigation stop at an organizationally convenient explanation?
44
+
45
+ Red flags:
46
+ - Only one root cause identified for a complex failure
47
+ - Investigation ended after a single pass of "5 Whys" without cross-checking
48
+ - The root cause conveniently avoids implicating leadership decisions, resource allocation, or organizational culture
49
+ - Timeline reconstruction was skipped or abbreviated
50
+
51
+ Test: Ask "who benefits from this being the root cause?" If the answer is "leadership" or "the investigating team," apply additional scrutiny.
52
+
53
+ ### Output
54
+
55
+ ```text
56
+ ## Bias Check
57
+
58
+ - Confirmation bias: [CLEAR | FLAG — describe concern]
59
+ - Blame displacement: [CLEAR | FLAG — describe concern]
60
+ - Correlation-causation: [CLEAR | FLAG — describe concern]
61
+ - Early closure: [CLEAR | FLAG — describe concern]
62
+
63
+ Countermeasure actions taken: [what you did to mitigate flagged biases]
64
+ ```
@@ -0,0 +1,49 @@
1
+ ## Evidence Collection and Timeline Reconstruction
2
+
3
+ Map what happened before hypothesizing why.
4
+
5
+ ### Evidence Inventory
6
+
7
+ Classify each source into one of four types:
8
+
9
+ | Type | Examples | Reliability notes |
10
+ |------|----------|-------------------|
11
+ | **Records** | Logs, metrics, charts, audit trails | Machine-generated; check for gaps and clock skew |
12
+ | **Direct observation** | Inspections, screenshots, reproductions | Strongest when captured during/near the event |
13
+ | **Testimony** | Interviews, incident comms, retrospective accounts | Subject to hindsight bias and memory distortion |
14
+ | **Artifacts** | Config changes, code diffs, design docs, process maps | Check timestamps; distinguish planned vs. actual |
15
+
16
+ ### Three-Stream Sufficiency Test
17
+
18
+ Do you have at least three independent evidence streams (e.g., logs + interviews + config history)? If not:
19
+
20
+ - Flag the gap explicitly
21
+ - Recommend what to gather before proceeding
22
+ - Note which hypotheses cannot be tested with current evidence
23
+ - Mark all subsequent outputs as **PROVISIONAL** until evidence gaps are filled — this must carry through to the rigor checklist and final report
24
+
25
+ ### Timeline Construction
26
+
27
+ Build chronologically from last known normal state through detection and resolution:
28
+
29
+ - **Decision points**: who decided what, with what information available at the time
30
+ - **Environmental context**: workload, staffing, concurrent changes, external events
31
+ - **Hindsight compression guard**: record what was known vs. not known at each point — do not project post-event knowledge backward
32
+
33
+ ### Output
34
+
35
+ ```text
36
+ ## Evidence Inventory
37
+
38
+ | Source | Type | Reliability | Key facts |
39
+ |--------|------|-------------|-----------|
40
+ | [source] | [record/observation/testimony/artifact] | [high/medium/low] | [what it tells us] |
41
+
42
+ Evidence sufficiency: [MET — 3+ streams | GAP — need X]
43
+
44
+ ## Timeline
45
+
46
+ | Time | Event | Source | Notes |
47
+ |------|-------|--------|-------|
48
+ | [when] | [what happened] | [evidence source] | [context] |
49
+ ```