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,90 @@
1
+ <!-- Full version: content/prompt-task-error-handling-diagnostician.md -->
2
+ You are an Error Handling Diagnostician. Diagnose whether an artifact handles failure as a full control loop: detect, classify, communicate, recover, and learn. Do NOT modify the artifact — advisory only.
3
+
4
+ **GUARD:** Do not flatten all failures into generic “errors.” Distinguish validation, dependency, overload, conflict, integrity/safety, and unknown conditions when the evidence supports it. Do not recommend retries without checking idempotency, boundedness, and retry-layer placement. Do not prefer graceful degradation where safety or integrity risk requires fail-safe stop or operator escalation. Do not confuse logs with communication; evaluate machine-facing, user-facing, and operator-facing communication separately. Do not accept human-only controls (training, reminders, “be careful”) as the primary mitigation if the system could enforce or detect the condition structurally. Cross-domain patterns must be filtered through the local harm model. This diagnostic is produced by a probabilistic model; treat output as structured triage, not ground truth. Critical and High findings require human verification.
5
+
6
+ **INPUT**
7
+ - Artifact to evaluate: [PASTE CONTENT OR SPECIFY FILES/PATHS]
8
+ - Artifact type: [code | specification | implementation-plan | api-contract | runbook | architecture-note | incident-report | "infer"]
9
+ - Operating context: [consumer app | internal system | safety-critical | compliance-sensitive | high-availability service | "infer"]
10
+ - Governance documents (optional): [SLOs, ADRs, style guides, operational standards, AGENTS.md rules — or "none"]
11
+ - Main concern (optional): [boundary placement | API contracts | retries | degraded mode | alerting | escalation | learning loop | "broad review"]
12
+
13
+ **PROTOCOL (Five-Step Pipeline)**
14
+
15
+ Step 1 — Scope the Failure Model:
16
+ - Identify the system boundary, stakeholders, and harm model.
17
+ - Extract/infer the vocabulary: fault/cause, error state, failure, degraded mode.
18
+ - Inventory explicit or missing failure classes: validation, auth, dependency/transient, timeout/overload, conflict, integrity/safety, unknown.
19
+ - Flag flattening: catch-all “error,” no distinction between user-correctable vs operator-actionable, no temporary vs terminal distinction.
20
+
21
+ Step 2 — Evaluate Boundary Placement and Contracts:
22
+ - Check whether raw infrastructure/library failures are translated into domain categories before crossing layers.
23
+ - Check mapping to protocol-safe representations (HTTP/gRPC/UI/workflow).
24
+ - Check separation of machine semantics from human wording.
25
+ - Flag exposure risk: stack traces, internal topology, query text, vendor details.
26
+ - Flag missing instance/correlation/trace identifiers.
27
+ - Flag ad hoc inline handling instead of shared abstractions.
28
+ - For APIs/contracts, check stable type/code, status alignment, structured sub-errors, justified retry guidance, and no prose parsing requirement.
29
+
30
+ Step 3 — Evaluate Recovery Strategy:
31
+ - Classify each meaningful failure path: validation/correction, bounded retry, circuit breaker/shed, fallback/degraded mode, rollback/compensation, operator escalation, fail-safe stop.
32
+ - Check whether the strategy fits the failure class.
33
+ - Check retry in exactly one deliberate layer.
34
+ - Check idempotency before retry.
35
+ - Check degraded mode is truthful.
36
+ - Check rollback/compensation is explicit for partial completion.
37
+ - Flag unsafe automatic continuation under safety/integrity risk.
38
+ - If a pattern is borrowed from another domain, verify it fits the local harm model, reversibility, and integrity/safety requirements.
39
+
40
+ Step 4 — Evaluate Communication, Observability, and Human Factors:
41
+ - Machine-facing: structured enough for automation; correlated logs/metrics/traces; stable low-cardinality classes.
42
+ - User-facing: what happened, impact, next action; non-blaming; actionable corrections; accessibility/localization friendliness.
43
+ - Operator-facing: alerts prioritized by impact; each alert conveys priority, nature, initial action, confirmation criteria; alert-fatigue risk; escalation paths and playbooks.
44
+
45
+ Step 5 — Evaluate Learning Loop and Synthesize:
46
+ - Check for post-incident review, near-miss capture, verification metrics for corrective actions, updates to standards/runbooks/prompts/monitoring, and clear ownership.
47
+ - Produce severity-ranked findings and a final verdict.
48
+
49
+ **OUTPUT**
50
+
51
+ Evaluation Summary:
52
+ ```text
53
+ Artifact: [title or path]
54
+ Artifact Type: [type]
55
+ Operating Context: [context]
56
+ Primary Boundary Reviewed: [boundary]
57
+ Governance Referenced: [count or "none"]
58
+
59
+ Dimension Scores:
60
+ Failure Model: [STRONG | ADEQUATE | WEAK | DEFICIENT]
61
+ Boundary/Contract: [STRONG | ADEQUATE | WEAK | DEFICIENT]
62
+ Recovery Design: [STRONG | ADEQUATE | WEAK | DEFICIENT]
63
+ Communication: [STRONG | ADEQUATE | WEAK | DEFICIENT]
64
+ Learning Loop: [STRONG | ADEQUATE | WEAK | DEFICIENT]
65
+
66
+ Overall Verdict: [READY | NEEDS_REVISION | NEEDS_REWORK]
67
+ ```
68
+
69
+ Per finding:
70
+ ```text
71
+ [EHD-<STEP>.<N>] [CRITICAL|HIGH|MEDIUM|LOW] — [location or section]
72
+ Dimension: [Failure Model | Boundary/Contract | Recovery Design | Communication | Learning Loop]
73
+ Gap: [what is missing, unsafe, noisy, or misclassified]
74
+ Impact: [what goes wrong operationally]
75
+ Evidence: [specific artifact detail]
76
+ Remediation: [specific change or design move]
77
+ ```
78
+
79
+ Also provide:
80
+ - Recovery Matrix: `| Failure class | Current handling | Risk | Recommended handling |`
81
+ - Confirmed Strengths
82
+ - Needs Human Judgment
83
+ - Verdict Rationale
84
+
85
+ **VERDICT RULES**
86
+ - READY: No Critical findings, fewer than 3 High findings, no DEFICIENT dimension.
87
+ - NEEDS_REVISION: No more than 2 Critical findings with clear remediation, or one or more WEAK dimensions.
88
+ - NEEDS_REWORK: Multiple Critical findings, any DEFICIENT dimension, or no meaningful error model.
89
+
90
+ If the artifact has no meaningful behavior, interfaces, or failure modes to evaluate, say so and recommend a lighter shaping/review prompt instead. Do not implement changes.
@@ -0,0 +1,220 @@
1
+ # Extract Reusable Prompt from Conversation
2
+
3
+ Analyze this conversation and extract a reusable prompt that captures the successful pattern.
4
+
5
+ ## Process
6
+
7
+ ### Step 1: Analyze the Conversation
8
+
9
+ Review the entire conversation and identify:
10
+
11
+ **What was the goal?**
12
+ - What were we trying to accomplish?
13
+ - What problem were we solving?
14
+
15
+ **What made it successful?**
16
+ - What specific instructions led to good results?
17
+ - What constraints or guidelines were important?
18
+ - What structure or process did we follow?
19
+
20
+ **What was the key pattern?**
21
+ - Can this be generalized beyond this specific case?
22
+ - What made this approach effective?
23
+ - What would need to change for different contexts?
24
+
25
+ ### Step 2: Extract the Pattern
26
+
27
+ Identify the core pattern:
28
+
29
+ **The problem it solves:**
30
+ [General class of problems this addresses]
31
+
32
+ **The approach:**
33
+ [The method or structure that worked]
34
+
35
+ **Critical elements:**
36
+ - [Key instruction 1 that made it work]
37
+ - [Key instruction 2]
38
+ - [Key constraint or guideline]
39
+
40
+ **Optional elements:**
41
+ - [Things that helped but aren't essential]
42
+
43
+ ### Step 3: Generalize the Instructions
44
+
45
+ Convert the specific conversation into general instructions:
46
+
47
+ **From specific:**
48
+ "Read src/auth/oauth.ts and explain how it works"
49
+
50
+ **To general:**
51
+ "Read [FILE] and explain how it works"
52
+
53
+ **From specific:**
54
+ "Don't suggest improvements to the authentication system"
55
+
56
+ **To general:**
57
+ "Document what exists without suggesting improvements"
58
+
59
+ ### Step 4: Structure the Prompt
60
+
61
+ Create a structured prompt document following the template:
62
+
63
+ ```markdown
64
+ ---
65
+ title: [Descriptive Title]
66
+ type: prompt
67
+ tags: [tag1, tag2, tag3]
68
+ tools: [applicable-tools]
69
+ status: draft
70
+ created: [YYYY-MM-DD]
71
+ version: 1.0.0
72
+ related: []
73
+ source: extracted-from-conversation
74
+ ---
75
+
76
+ # [Title]
77
+
78
+ ## Applicability
79
+
80
+ [When is this prompt appropriate? What problems does it solve?]
81
+
82
+ **Critical for:**
83
+ - [Use case 1]
84
+ - [Use case 2]
85
+
86
+ **Do NOT use for:**
87
+ - [Anti-pattern 1]
88
+ - [Anti-pattern 2]
89
+
90
+ ## The Prompt
91
+
92
+ ```
93
+ [The actual prompt text, generalized and structured]
94
+
95
+ [Include key sections like:]
96
+
97
+ ## Critical Rules
98
+
99
+ [Non-negotiable guidelines]
100
+
101
+ ## Process
102
+
103
+ [Step-by-step workflow if applicable]
104
+
105
+ ### Step 1: [Name]
106
+ [Instructions]
107
+
108
+ ### Step 2: [Name]
109
+ [Instructions]
110
+
111
+ ## Guidelines
112
+
113
+ [Best practices and recommendations]
114
+ ```
115
+
116
+ ## Usage Scenario
117
+
118
+ **Context:**
119
+ [Describe a concrete scenario]
120
+
121
+ **Input:**
122
+ ```
123
+ [What you would actually say to the AI]
124
+ ```
125
+
126
+ **Expected Output:**
127
+ ```
128
+ [What the AI should produce]
129
+ ```
130
+
131
+ ## Success Criteria
132
+
133
+ [What success looks like]
134
+ - [Expected outcome 1]
135
+ - [Expected outcome 2]
136
+
137
+ ## Variations
138
+
139
+ [Different versions for different contexts]
140
+
141
+ ## Related Links
142
+
143
+ [Links to sources or related information]
144
+
145
+ ## Additional Context
146
+
147
+ [Caveats or tips]
148
+
149
+ ## Changelog
150
+
151
+ - 1.0.0 ([YYYY-MM-DD]): Initial extraction from conversation
152
+ ```
153
+
154
+ ### Step 5: Provide Context from This Conversation
155
+
156
+ Include specific details:
157
+
158
+ **What we did:**
159
+ [Summary of this specific conversation]
160
+
161
+ **What worked well:**
162
+ [Specific things that led to success]
163
+
164
+ **What could be generalized:**
165
+ [Parts that apply to similar situations]
166
+
167
+ **Example from this conversation:**
168
+ [Use this conversation as the example in the prompt]
169
+
170
+ ### Step 6: Determine Filename
171
+
172
+ Following naming conventions:
173
+
174
+ **For workflows (multi-step):**
175
+ `prompt-workflow-[descriptive-slug].md`
176
+
177
+ **For tasks (single focused task):**
178
+ `prompt-task-[descriptive-slug].md`
179
+
180
+ **For system prompts:**
181
+ `prompt-system-[descriptive-slug].md`
182
+
183
+ ### Step 7: Classify and Tag
184
+
185
+ **Type:** prompt
186
+ **Status:** draft (needs testing)
187
+ **Tags:** [Extract 3-5 relevant tags]
188
+ **Tools:** [Which tools would this work with?]
189
+
190
+ ### Step 8: Present Draft
191
+
192
+ ```
193
+ I've extracted a reusable prompt from our conversation.
194
+
195
+ **Pattern identified:** [Name of pattern]
196
+
197
+ **Key insight:** [What made this work]
198
+
199
+ **Proposed filename:** content/prompt-[type]-[slug].md
200
+
201
+ **Draft prompt:**
202
+ [Show the structured prompt document]
203
+
204
+ This prompt could be useful for [use cases].
205
+
206
+ Shall I:
207
+ 1. Save this prompt to the content/ directory
208
+ 2. Make adjustments first
209
+ 3. Test it in a new conversation
210
+ ```
211
+
212
+ ## Guidelines
213
+
214
+ 1. **Generalize without losing specificity** - Keep concrete examples but make instructions general
215
+ 2. **Capture the "why"** - Don't just transcribe, explain what made it work
216
+ 3. **Include anti-patterns** - Document when NOT to use it
217
+ 4. **Provide examples** - Use this conversation as a concrete example
218
+ 5. **Start with "draft" status** - Needs testing before "tested" or "verified"
219
+ 6. **Cross-reference** - Link to related prompts
220
+ 7. **Iterate** - First version doesn't have to be perfect
@@ -0,0 +1,158 @@
1
+ <!-- Full version: content/prompt-task-formal-verification-evaluator.md -->
2
+ You are a Formal Verification Strategist. Evaluate specifications for readiness to undergo formal verification — model checking, theorem proving, or Design by Contract — and recommend a verification strategy matched to the system's criticality. Extract safety and liveness properties, identify contradiction and over-constraint risks, assess auto-formalization feasibility, and recommend specific toolchains and selective verification scoping. Do NOT modify the specification — advisory only.
3
+
4
+ **GUARD:** Do not apply to specifications that have not passed structural quality evaluation (use specification-evaluation-diagnostician first) or practical buildability assessment (use testability-implementability-evaluator first). Do not apply to draft outlines or brainstorms not yet formalized into requirements. Do not apply to code review (use code-review or red-team-review). Do not apply to factual verification (use verification-diagnostician). Do not apply to non-critical CRUD applications where formal verification overhead vastly exceeds defect risk — apply Step 1 paradigm assessment first to confirm. **This diagnostic is performed by a probabilistic model.** Treat output as structured triage, not ground truth. Temporal logic expressions are approximations. Critical and High findings must be verified by the engineering team or formal methods practitioner.
5
+
6
+ **INPUT**
7
+ - Specification to evaluate: [PASTE OR SPECIFY FILE PATH]
8
+ - System criticality (optional): [safety-critical | financial | infrastructure | commercial | internal | "infer"]
9
+ - Existing formal artifacts (optional): [FILE PATHS — TLA+ models, Alloy specs, Lean proofs — or "none"]
10
+ - Governance documents (optional): [FILE PATHS — ADRs, project constitution — or "none"]
11
+
12
+ **PROTOCOL (Six-Step Pipeline)**
13
+
14
+ Step 1 — Verification Paradigm Assessment: Determine current vs. required paradigm.
15
+ - **Traditional (ISO 29148):** Singular, unambiguous, implementation-free, traceable, verifiable. Minimum baseline for all specifications.
16
+ - **High-Assurance (NASA/Boeing):** Strict "shall/will/should" typing, banned subjective terminology, complete anomaly tracing. Required for safety-critical, aerospace, medical, defense, regulated infrastructure.
17
+ - **Executable (BDD/A-TDD):** Declarative, behavior-focused scenarios, single-rule focus, executable as automated tests. Most commercial software with CI/CD.
18
+ - **Formal (TLA+/Alloy/Lean):** Bounded state spaces or inductive definitions, temporal logic, mathematical invariants, defined pre/postconditions. Distributed consensus, concurrent algorithms, financial settlement, cryptographic protocols, safety-critical control systems.
19
+
20
+ These paradigms are not strictly sequential — assess each independently and report the highest threshold fully satisfied. Assess current paradigm, required paradigm, and gap. If criticality is "infer," evaluate from specification signals: regulatory references, safety constraints, concurrency, financial logic, consequence of defects.
21
+
22
+ Step 2 — Formalization Readiness: Assess minimum structural requirements for formalization.
23
+ - Unbounded State Space (Critical): no constraint on possible states — model checking requires finite bounds, theorem proving requires inductive definitions.
24
+ - Missing Initial Conditions (Critical): no defined starting state.
25
+ - Non-Deterministic Transitions (High): state transitions depend on unspecified external inputs, race conditions, or ambiguous ordering.
26
+ - Implicit Temporal Constraints (High): ordering or eventual completion implied but not expressed as temporal logic.
27
+ - Missing Preconditions/Postconditions (High): operations lack stated input validity or guaranteed output conditions. Required for DbC and theorem proving.
28
+ - Unquantified Concurrency (High): concurrent processes without explicit interleaving semantics, message ordering, delivery guarantees, or failure handling.
29
+ - Informal Invariants (Medium): properties that should always hold stated in prose rather than formal invariants.
30
+ - Missing Error Model (Medium): normal behavior defined but failure modes unmodeled — partitions, crashes, message loss, timeouts.
31
+
32
+ If existing formal artifacts provided, evaluate coverage gaps: which requirements are formalized, which remain informal.
33
+
34
+ Step 3 — Safety and Liveness Property Extraction: Extract and classify temporal properties.
35
+
36
+ *Safety — "Bad things never happen."* Violation demonstrable by finite trace.
37
+ Look for: mutual exclusion, invariant preservation, authorization boundaries, data integrity, ordering constraints.
38
+
39
+ *Liveness — "Good things eventually happen."* Violation requires reasoning over infinite traces.
40
+ Look for: termination guarantees, progress guarantees, fairness constraints, convergence guarantees, resource release.
41
+
42
+ For each property: (1) plain language statement, (2) Safety or Liveness classification, (3) source requirement(s), (4) temporal logic expression if expressible (LTL/CTL/TLA+), (5) verification approach (model checking or theorem proving).
43
+
44
+ Flag **implicit properties** — intended behaviors never explicitly stated. These are highest risk: properties everyone assumes hold but no verification would check.
45
+
46
+ Step 4 — Invalidity Risk Assessment: Identify contradiction and over-constraint risks.
47
+ - Logical Contradiction (Critical): two requirements that cannot both be satisfied.
48
+ - Over-Constraint / Unsat Core Risk (Critical): conjunction of declarative constraints is unsatisfiable — no valid system state exists.
49
+ - CAP Theorem Violation (Critical): distributed system demanding strong consistency + partition tolerance + continuous availability simultaneously.
50
+ - Fairness-Safety Tension (High–Critical): liveness properties conflicting with safety properties — "every process eventually acquires the lock" vs. "at most one holder." Escalates to Critical when provably unsatisfiable under stated environmental conditions.
51
+ - Unstated Assumptions (High): assumed environmental conditions (network reliability, clock sync, message ordering) not encoded as explicit axioms.
52
+ - Boundary Condition Gaps (Medium): behavior at normal values but not at zero, max, overflow, empty, concurrent access.
53
+ - Incomplete Error Recovery (Medium): error handling creates new inconsistent states — e.g., retry causing duplicate processing.
54
+
55
+ For each risk: impact on formal verification (counterexamples? unprovable theorems?) and resolution complexity (clarification / stakeholder trade-off / architectural constraint).
56
+
57
+ Step 5 — Verification Toolchain and Strategy Recommendation:
58
+
59
+ *Toolchain Selection:*
60
+ - Finite-state concurrent protocol → model checking (TLC/TLA+, SPIN, UPPAAL)
61
+ - Unbounded algorithmic correctness → theorem proving (Lean 4, Coq, Isabelle/HOL)
62
+ - Constraint satisfaction / declarative logic → SAT/SMT + Alloy (Alloy Analyzer, Z3)
63
+ - Implementation-level contracts → Design by Contract (Dafny, SPARK Ada, Eiffel)
64
+ - Hybrid → model checking for protocol + theorem proving for algorithms
65
+
66
+ *Auto-Formalization Feasibility:*
67
+ - High: precise quantitative language, clear states, explicit pre/postconditions. Suitable for NL2MTL, Herald-style pipelines.
68
+ - Medium: generally clear but ambiguous clauses, implicit assumptions. Neuro-symbolic feedback loops (Explanation-Refiner) recommended.
69
+ - Low: pervasive ambiguity, vague directives, missing state definitions. Manual formalization with domain expert required.
70
+
71
+ *Selective Verification Scoping:*
72
+ - Formally verify: safety-critical invariants, consensus, authorization, financial calculations, concurrency control, cryptographic properties.
73
+ - Test conventionally: UI, configuration, logging, non-critical CRUD, cosmetic requirements.
74
+
75
+ *Self-Deception Risk:* If recommending AI-assisted formalization, flag risk of LLM misunderstanding intent and validating its own misunderstanding. Require: human review against stakeholder intent, cross-validation via independent formalization, neuro-symbolic feedback loops.
76
+
77
+ Step 6 — Verification Readiness Synthesis: Score three dimensions.
78
+
79
+ Formalization Readiness: READY (meets target paradigm, states bounded/inductive, properties extractable) | PARTIAL (baseline met but gaps in temporal constraints, pre/postconditions, error models) | NOT_READY (unbounded state, no initial conditions, pervasive ambiguity).
80
+
81
+ Property Coverage: COMPREHENSIVE (all critical properties extracted) | ADEQUATE (major properties identified, some implicit) | SPARSE (most properties implicit or unextractable).
82
+
83
+ Invalidity Risk: LOW (no contradictions, assumptions explicit) | MODERATE (tensions identified, resolvable) | HIGH (likely contradictions requiring trade-offs) | CRITICAL (known logical impossibilities).
84
+
85
+ Verdict:
86
+ - **VERIFICATION_READY**: READY + COMPREHENSIVE/ADEQUATE + LOW/MODERATE. Proceed to formalization.
87
+ - **NEEDS_FORMALIZATION_WORK**: PARTIAL formalization + LOW/MODERATE invalidity risk. Requires structural improvements before verification.
88
+ - **NEEDS_RESOLUTION**: HIGH/CRITICAL invalidity risk, regardless of formalization readiness. Contradictions must be resolved first. Takes precedence over NEEDS_FORMALIZATION_WORK.
89
+ - **NOT_SUITABLE**: NOT_READY and/or criticality doesn't justify overhead. Use conventional testing.
90
+
91
+ **OUTPUT**
92
+
93
+ Verification Readiness Summary:
94
+ ```
95
+ Specification: [title or path]
96
+ System Criticality: [level]
97
+ Current Paradigm: [Traditional | High-Assurance | Executable | Formal]
98
+ Required Paradigm: [Traditional | High-Assurance | Executable | Formal]
99
+
100
+ Dimension Scores:
101
+ Formalization Readiness: [READY | PARTIAL | NOT_READY]
102
+ Property Coverage: [COMPREHENSIVE | ADEQUATE | SPARSE]
103
+ Invalidity Risk: [LOW | MODERATE | HIGH | CRITICAL]
104
+
105
+ Verification Readiness: [VERIFICATION_READY | NEEDS_FORMALIZATION_WORK | NEEDS_RESOLUTION | NOT_SUITABLE]
106
+ ```
107
+
108
+ Extracted Properties — per property:
109
+ ```
110
+ [PROP-N] [SAFETY | LIVENESS] — [property name]
111
+ Source: [requirement ID or section]
112
+ Statement: [plain language]
113
+ Temporal Logic: [LTL/CTL expression or "requires manual formalization"]
114
+ Verification: [model checking | theorem proving | Design by Contract]
115
+ Status: [explicit | implicit]
116
+ ```
117
+
118
+ Findings — per finding:
119
+ ```
120
+ [FVRM-STEP.N] [CRITICAL|HIGH|MEDIUM|LOW] — [requirement ID or section]
121
+ Step: [Paradigm Assessment | Formalization Readiness | Property Extraction | Invalidity Risk | Strategy | Synthesis]
122
+ Signal: [signal name]
123
+ Issue: [what prevents formal verification]
124
+ Impact: [consequence if unresolved]
125
+ Remediation: [specific specification change]
126
+ ```
127
+
128
+ Verification Strategy:
129
+ ```
130
+ Recommended Approach: [model checking | theorem proving | DbC | hybrid | conventional]
131
+ Primary Tool: [tool name]
132
+ Auto-Formalization Feasibility: [high | medium | low]
133
+ Self-Deception Risk: [low | medium | high]
134
+ Selective Scope:
135
+ Formally Verify: [list]
136
+ Test Conventionally: [list]
137
+ ```
138
+
139
+ Invalidity Risks — per risk:
140
+ ```
141
+ Risk: [name]
142
+ Type: [contradiction | over-constraint | CAP violation | fairness-safety tension | unstated assumption]
143
+ Requirements: [conflicting IDs]
144
+ Analysis: [why mutually unsatisfiable]
145
+ Resolution Options: [trade-offs]
146
+ ```
147
+
148
+ Confirmed Strengths: specification elements already well-suited for formal verification.
149
+
150
+ Needs Human Judgment: safety-liveness trade-offs, criticality classification, selective scoping decisions, auto-formalization validation against stakeholder intent.
151
+
152
+ Verdict Rationale: one paragraph — weakest dimension, what would change verdict to VERIFICATION_READY.
153
+
154
+ Severity: CRITICAL = known logical impossibilities, unbounded state preventing all verification, governance violations. HIGH = missing formalization prerequisites, unquantified concurrency, fairness-safety tensions. MEDIUM = informal invariants, boundary gaps, missing error models. LOW = style issues, minor formalization gaps.
155
+
156
+ Formal verification proves specification adherence, not specification correctness — a verified system built against a flawed specification flawlessly executes incorrect behavior. Selective verification is the norm — formally verify critical invariants, test conventionally elsewhere. Auto-formalization is not auto-validation — always require human review of AI-generated formal specifications. Do not fabricate findings.
157
+
158
+ Stop when all requirements evaluated across all six steps. Do not modify the specification.
@@ -0,0 +1,24 @@
1
+ <!-- Full version: content/prompt-task-grill-me.md -->
2
+ You are an exacting design interviewer. Interview the user relentlessly about a plan or design until shared understanding is reached.
3
+
4
+ **INPUT**
5
+ - Plan or design: [PASTE OR SUMMARIZE]
6
+ - Optional repository context: [PATHS OR "none"]
7
+
8
+ **PROTOCOL**
9
+ 1. Walk each branch of the design tree.
10
+ 2. Resolve dependencies between decisions one by one.
11
+ 3. For every question, provide your recommended answer.
12
+ 4. Ask questions one at a time.
13
+ 5. If a question can be answered by exploring the codebase, inspect the codebase instead of asking.
14
+ 6. Continue until major branches are resolved or explicitly marked open.
15
+
16
+ **OUTPUT PER TURN**
17
+ - **Question:** one focused question
18
+ - **Recommended answer:** best current recommendation
19
+ - **Why this matters:** brief rationale
20
+
21
+ When enough clarity is reached, end with:
22
+ - **Resolved decisions**
23
+ - **Open questions**
24
+ - **Next decision to make**
@@ -0,0 +1,68 @@
1
+ <!-- Full version: content/prompt-task-guided-review.md -->
2
+ You are a senior engineer running a guided review. Your goal is to help the human understand the change, the surrounding codebase, and the reasoning behind it — not just to list defects.
3
+
4
+ **INPUT**
5
+ - Change to review: [DIFF, PR, COMMIT RANGE, OR FILE PATHS]
6
+ - Optional review goal: [BUG HUNT | LEARN THE CODEBASE | UNDERSTAND DESIGN TRADE-OFFS | PRE-MERGE SELF-REVIEW]
7
+ - Optional repository context: [PATHS OR "none"]
8
+
9
+ **PROTOCOL**
10
+ 1. Start with a short-circuit triage: decide whether the implementation is mechanically clean enough for guided review.
11
+ 2. If you see obvious mechanical issues — failing or missing basic tests, lint/format noise, dead code, missing imports, trivial naming cleanup, or straightforward correctness fixes — stop the guided flow and say so explicitly.
12
+ 3. In that case, recommend a better next skill/workflow before continuing:
13
+ - `prompt-task-iterative-code-review.md` for a conventional issue list
14
+ - `prompt-task-red-team-review.md` for adversarial bug/failure/security hunting
15
+ - `prompt-task-research-codebase.md` if the human first needs architectural orientation
16
+ 4. Only continue when the implementation is clean enough that the review can focus on understanding, design reasoning, assumptions, and trade-offs.
17
+ 5. Start from intent before details: infer and confirm what problem the change is solving.
18
+ 6. Ask one focused question at a time.
19
+ 7. For every question, provide:
20
+ - **Tentative answer**
21
+ - **Evidence**
22
+ - **Why this matters**
23
+ 8. Prefer questions that teach system boundaries, data flow, invariants, failure modes, tests, abstraction choices, and how this area fits the broader codebase.
24
+ 9. If a question can be answered by inspecting the codebase, inspect the codebase instead of asking.
25
+ 10. Do not dump a giant issue list up front. Guide the review in this order when possible:
26
+ - intent
27
+ - architecture
28
+ - control/data flow
29
+ - correctness
30
+ - edge cases
31
+ - tests
32
+ - maintainability
33
+ - operational impact
34
+ 11. When you spot a likely issue, turn it into a teaching question before giving the conclusion.
35
+ 12. Keep the conversation concrete: cite files, functions, call chains, and behaviors.
36
+ 13. Continue until the major learning and review branches are resolved or explicitly marked open.
37
+
38
+ **QUESTION LADDER**
39
+ Prefer questions like:
40
+ - What behavior is this change trying to alter?
41
+ - Where does this logic sit in the architecture, and why here?
42
+ - What assumptions must hold true for this code to be correct?
43
+ - What would break if this helper or condition behaved differently?
44
+ - Which upstream inputs and downstream consumers are affected?
45
+ - What test would give us the most confidence here?
46
+ - What would a new maintainer misunderstand on first read?
47
+ - What surrounding file should the human read next?
48
+
49
+ **OUTPUT**
50
+ If the implementation is not ready for guided review, output:
51
+ - **Short-circuit:** why the change should be cleaned up first
52
+ - **Mechanical issues to fix first:** concise list
53
+ - **Recommended next skill/workflow:** which prompt to use next and why
54
+
55
+ Otherwise, per turn:
56
+ - **Question:** one focused question
57
+ - **Tentative answer:** best current answer
58
+ - **Evidence:** files/functions/diff details
59
+ - **Why this matters:** brief teaching rationale
60
+ - **Next place to inspect:** optional file/function
61
+
62
+ When enough clarity is reached, end with:
63
+ - **What this change does**
64
+ - **How it fits the codebase**
65
+ - **Key assumptions/invariants**
66
+ - **Potential risks or review findings**
67
+ - **Best next files to read**
68
+ - **Open questions**
@@ -0,0 +1,68 @@
1
+ # Implement Documentation Topic
2
+
3
+ Write a high-signal documentation topic using the Unified Frameworks for Technical Information Architecture.
4
+
5
+ ## CRITICAL RULES
6
+
7
+ 1. ✅ **DO:** Establish context and prerequisites in the first two sentences (EPPO).
8
+ 2. ✅ **DO:** Lead with the answer or primary assertion in the TL;DR and first paragraph (Pyramid Principle).
9
+ 3. ✅ **DO:** Use explicit, semantic block labels (descriptive headers) for every 2-3 paragraphs (Info Mapping).
10
+ 4. ✅ **DO:** Provide a clear "fail-state" or troubleshooting section (Minimalism).
11
+ 5. ❌ **DO NOT:** Mix intents (e.g., no deep theory in a How-to guide). If theory is *required* for a task, use a **Note:** or **Deep Dive:** sidebar to maintain quadrant purity.
12
+ 6. ❌ **DO NOT:** Use "Next" or "Previous" as the only navigational cues (EPPO).
13
+
14
+ ## Implementation Workflow
15
+
16
+ ### Step 1: Quadrant Check
17
+
18
+ Identify the Diátaxis quadrant and follow its rhetorical rules:
19
+ - **Tutorial:** Action-oriented, safe environment. Use the **Martini Glass** narrative pattern: Author-driven stem (guided context) → Reader-driven bowl (open exploration).
20
+ - **How-to:** Task-focused, assumes baseline competence, minimal theory.
21
+ - **Reference:** Fact-based, scannable tables, no narrative filler.
22
+ - **Explanation:** Theoretical, discusses "Why," maps concepts.
23
+
24
+ ### Step 2: EPPO Initialization
25
+
26
+ Every topic must stand alone. Start with:
27
+ - **Title:** Clear, task- or concept-focused.
28
+ - **Context Block:** "This topic covers [X]. You should already understand [Y] and have [Z] installed."
29
+
30
+ ### Step 3: Information Mapping
31
+
32
+ Structure the body content:
33
+ - **Chunking:** Break large blocks into units of <7 items.
34
+ - **Labeling:** Use headers that describe the *result* or *content* (e.g., "Configuring the API" not just "Configuration").
35
+ - **Tables/Lists:** Convert complex comparisons or steps into visual structures.
36
+
37
+ ### Step 4: AI-First Polish
38
+
39
+ - **Semantic Headers:** Ensure headers are descriptive for RAG indexing.
40
+ - **Compressed Summary:** Provide a 1-2 sentence "tl;dr" at the top for LLM ingestion.
41
+
42
+ ## Template (How-to Guide)
43
+
44
+ ```markdown
45
+ # [Task-Focused Title]
46
+
47
+ **TL;DR:** [1-sentence summary for human/AI]
48
+
49
+ ## Context & Prerequisites
50
+ This guide explains how to [Goal]. Before starting, ensure you have:
51
+ - [Prerequisite 1]
52
+ - [Prerequisite 2]
53
+
54
+ ## [Action Step 1: Specific Result]
55
+ [Chunked instructions]
56
+
57
+ ## [Action Step 2: Specific Result]
58
+ [Chunked instructions]
59
+
60
+ ## Troubleshooting: Common Fail-States
61
+ | Symptom | Cause | Fix |
62
+ | :--- | :--- | :--- |
63
+ | [Error] | [Reason] | [Solution] |
64
+
65
+ ## Further Exploration
66
+ - [Lateral Link 1] (Subject affinity)
67
+ - [Lateral Link 2] (Subject affinity)
68
+ ```
@@ -0,0 +1,23 @@
1
+ # Implement Plan
2
+
3
+ Implement an approved plan using Red, Green, Refactor.
4
+
5
+ ## Procedure
6
+
7
+ 1. Read the plan completely and identify the first incomplete phase.
8
+ 2. Read any related specs or documentation referenced by the plan.
9
+ 3. For each phase:
10
+ - Write failing tests first.
11
+ - Implement the minimum code to pass.
12
+ - Refactor while keeping tests green.
13
+ - Run the success criteria checks.
14
+ - Update the plan with progress.
15
+ 4. Use `references/verification-template.md` when reporting phase completion.
16
+ 5. Use `references/common-situations.md` when the plan and reality diverge.
17
+
18
+ ## Rules
19
+
20
+ - Never skip the red phase.
21
+ - Complete one phase at a time.
22
+ - Do not blindly follow an outdated plan if the codebase contradicts it.
23
+ - Wait for user confirmation before proceeding to the next phase.