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.
- package/LICENSE +395 -0
- package/README.md +410 -0
- package/content/distilled/abstraction-miner.md +32 -0
- package/content/distilled/adversarial-stakeholder-evaluation.md +121 -0
- package/content/distilled/anti-slop-prose.md +46 -0
- package/content/distilled/bias-audit.md +39 -0
- package/content/distilled/code-review/SKILL.md +53 -0
- package/content/distilled/code-review/references/criteria.md +50 -0
- package/content/distilled/code-review/references/templates.md +75 -0
- package/content/distilled/code-review/references/variants.md +32 -0
- package/content/distilled/commit/SKILL.md +41 -0
- package/content/distilled/commit/references/criteria.md +21 -0
- package/content/distilled/commit/references/templates.md +46 -0
- package/content/distilled/composability-diagnostician.md +67 -0
- package/content/distilled/context-guardian.md +20 -0
- package/content/distilled/create-handoff/SKILL.md +16 -0
- package/content/distilled/create-handoff/references/handoff-template.md +65 -0
- package/content/distilled/create-handoff/references/naming.md +7 -0
- package/content/distilled/create-issues/SKILL.md +72 -0
- package/content/distilled/create-issues/references/criteria.md +44 -0
- package/content/distilled/create-issues/references/templates.md +75 -0
- package/content/distilled/create-plan/SKILL.md +19 -0
- package/content/distilled/create-plan/references/plan-template.md +87 -0
- package/content/distilled/create-plan/references/scenarios.md +19 -0
- package/content/distilled/debug/SKILL.md +42 -0
- package/content/distilled/debug/references/criteria.md +27 -0
- package/content/distilled/debug/references/templates.md +39 -0
- package/content/distilled/describe-pr/SKILL.md +17 -0
- package/content/distilled/describe-pr/references/pr-template.md +62 -0
- package/content/distilled/design-practice.md +213 -0
- package/content/distilled/design-review/SKILL.md +29 -0
- package/content/distilled/design-review/references/combined-review.md +27 -0
- package/content/distilled/design-review/references/decision-matrix.md +122 -0
- package/content/distilled/design-review/references/problem-statement.md +141 -0
- package/content/distilled/design-review/references/report-template.md +36 -0
- package/content/distilled/design-review/references/scope-document.md +51 -0
- package/content/distilled/distill-prompt/SKILL.md +41 -0
- package/content/distilled/distill-prompt/references/criteria.md +26 -0
- package/content/distilled/distill-prompt/references/templates.md +30 -0
- package/content/distilled/doc-link-verifier/SKILL.md +212 -0
- package/content/distilled/doc-link-verifier/scripts/check_links.py +453 -0
- package/content/distilled/doc-link-verifier/scripts/extract_links.py +521 -0
- package/content/distilled/edge-case-discovery.md +123 -0
- package/content/distilled/error-handling-diagnostician.md +90 -0
- package/content/distilled/extract-prompt.md +220 -0
- package/content/distilled/formal-verification-evaluator.md +158 -0
- package/content/distilled/grill-me.md +24 -0
- package/content/distilled/guided-review.md +68 -0
- package/content/distilled/implement-documentation.md +68 -0
- package/content/distilled/implement-plan/SKILL.md +23 -0
- package/content/distilled/implement-plan/references/common-situations.md +36 -0
- package/content/distilled/implement-plan/references/verification-template.md +18 -0
- package/content/distilled/invalid-states-diagnostician.md +63 -0
- package/content/distilled/issue-review/SKILL.md +37 -0
- package/content/distilled/issue-review/references/convergence.md +19 -0
- package/content/distilled/issue-review/references/final-report.md +60 -0
- package/content/distilled/issue-review/references/pass-1-clarity.md +28 -0
- package/content/distilled/issue-review/references/pass-2-scope.md +22 -0
- package/content/distilled/issue-review/references/pass-3-dependencies.md +23 -0
- package/content/distilled/issue-review/references/pass-4-alignment.md +17 -0
- package/content/distilled/issue-review/references/pass-5-executability.md +17 -0
- package/content/distilled/issue-review/references/setup.md +25 -0
- package/content/distilled/iterate-plan/SKILL.md +24 -0
- package/content/distilled/iterate-plan/references/change-template.md +15 -0
- package/content/distilled/iterate-plan/references/common-scenarios.md +14 -0
- package/content/distilled/julia-performance-diagnostician.md +71 -0
- package/content/distilled/modularity-diagnostician.md +68 -0
- package/content/distilled/multi-agent-review.md +196 -0
- package/content/distilled/mutability-diagnostician.md +63 -0
- package/content/distilled/narrative-article.md +60 -0
- package/content/distilled/optionality-review.md +190 -0
- package/content/distilled/parallel-review/SKILL.md +49 -0
- package/content/distilled/parallel-review/references/criteria.md +34 -0
- package/content/distilled/parallel-review/references/templates.md +59 -0
- package/content/distilled/plan-review/SKILL.md +42 -0
- package/content/distilled/plan-review/references/criteria.md +51 -0
- package/content/distilled/plan-review/references/templates.md +67 -0
- package/content/distilled/pre-mortem.md +10 -0
- package/content/distilled/project-status-report.md +124 -0
- package/content/distilled/pwa-accessibility-review.md +81 -0
- package/content/distilled/rca-diagnostician/SKILL.md +30 -0
- package/content/distilled/rca-diagnostician/references/action-hierarchy.md +77 -0
- package/content/distilled/rca-diagnostician/references/bias-countermeasures.md +64 -0
- package/content/distilled/rca-diagnostician/references/evidence-timeline.md +49 -0
- package/content/distilled/rca-diagnostician/references/hypothesis-methods.md +53 -0
- package/content/distilled/rca-diagnostician/references/problem-definition.md +34 -0
- package/content/distilled/rca-diagnostician/references/report-template.md +75 -0
- package/content/distilled/rca-diagnostician/references/rigor-checklist.md +66 -0
- package/content/distilled/red-team-review.md +133 -0
- package/content/distilled/research-codebase/SKILL.md +22 -0
- package/content/distilled/research-codebase/references/report-template.md +75 -0
- package/content/distilled/research-codebase/references/search-patterns.md +27 -0
- package/content/distilled/research-documentation.md +79 -0
- package/content/distilled/research-review/SKILL.md +42 -0
- package/content/distilled/research-review/references/criteria.md +51 -0
- package/content/distilled/research-review/references/templates.md +73 -0
- package/content/distilled/resonant-refactor.md +45 -0
- package/content/distilled/resume-handoff/SKILL.md +19 -0
- package/content/distilled/resume-handoff/references/analysis-template.md +40 -0
- package/content/distilled/resume-handoff/references/locating.md +12 -0
- package/content/distilled/review-documentation.md +44 -0
- package/content/distilled/rigidity-diagnostician.md +70 -0
- package/content/distilled/rule-of-5-universal/SKILL.md +26 -0
- package/content/distilled/rule-of-5-universal/references/criteria.md +34 -0
- package/content/distilled/rule-of-5-universal/references/examples.md +69 -0
- package/content/distilled/rule-of-5-universal/references/templates.md +136 -0
- package/content/distilled/specification-evaluation-diagnostician.md +106 -0
- package/content/distilled/specification-review/SKILL.md +43 -0
- package/content/distilled/specification-review/references/criteria.md +51 -0
- package/content/distilled/specification-review/references/templates.md +67 -0
- package/content/distilled/systematic-housekeeping.md +27 -0
- package/content/distilled/tdd/SKILL.md +38 -0
- package/content/distilled/tdd/references/criteria.md +26 -0
- package/content/distilled/tdd/references/templates.md +53 -0
- package/content/distilled/test-abstraction-miner.md +43 -0
- package/content/distilled/test-friction.md +51 -0
- package/content/distilled/testability-implementability-evaluator.md +144 -0
- package/content/distilled/ui-align.md +32 -0
- package/content/distilled/ux-dx-evaluation-diagnostician/SKILL.md +21 -0
- package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-1-product.md +20 -0
- package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-2-engineering.md +20 -0
- package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-3-interface.md +23 -0
- package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-4-ecosystem.md +20 -0
- package/content/distilled/ux-dx-evaluation-diagnostician/references/layer-5-documentation.md +19 -0
- package/content/distilled/ux-dx-evaluation-diagnostician/references/report-template.md +36 -0
- package/content/distilled/verification-diagnostician.md +90 -0
- package/content/distilled/verify-prompt/SKILL.md +32 -0
- package/content/distilled/verify-prompt/references/criteria.md +21 -0
- package/content/manifest.json +3220 -0
- package/package.json +50 -0
- package/pi-package/README.md +9 -0
- package/pi-package/prompts/abstraction-miner.md +10 -0
- package/pi-package/prompts/adversarial-stakeholder-evaluation.md +10 -0
- package/pi-package/prompts/anti-slop-prose.md +10 -0
- package/pi-package/prompts/bias-audit.md +10 -0
- package/pi-package/prompts/code-review.md +10 -0
- package/pi-package/prompts/commit.md +10 -0
- package/pi-package/prompts/composability-diagnostician.md +10 -0
- package/pi-package/prompts/context-guardian.md +10 -0
- package/pi-package/prompts/create-handoff.md +10 -0
- package/pi-package/prompts/create-issues.md +10 -0
- package/pi-package/prompts/create-plan.md +10 -0
- package/pi-package/prompts/debug.md +10 -0
- package/pi-package/prompts/describe-pr.md +10 -0
- package/pi-package/prompts/design-practice.md +10 -0
- package/pi-package/prompts/design-review.md +10 -0
- package/pi-package/prompts/distill-prompt.md +10 -0
- package/pi-package/prompts/doc-link-verifier.md +10 -0
- package/pi-package/prompts/edge-case-discovery.md +10 -0
- package/pi-package/prompts/error-handling-diagnostician.md +10 -0
- package/pi-package/prompts/extract-prompt.md +10 -0
- package/pi-package/prompts/formal-verification-evaluator.md +10 -0
- package/pi-package/prompts/grill-me.md +10 -0
- package/pi-package/prompts/guided-review.md +10 -0
- package/pi-package/prompts/implement-documentation.md +10 -0
- package/pi-package/prompts/implement-plan.md +10 -0
- package/pi-package/prompts/invalid-states-diagnostician.md +10 -0
- package/pi-package/prompts/issue-review.md +10 -0
- package/pi-package/prompts/iterate-plan.md +10 -0
- package/pi-package/prompts/julia-performance-diagnostician.md +10 -0
- package/pi-package/prompts/modularity-diagnostician.md +10 -0
- package/pi-package/prompts/multi-agent-review.md +10 -0
- package/pi-package/prompts/mutability-diagnostician.md +10 -0
- package/pi-package/prompts/narrative-article.md +10 -0
- package/pi-package/prompts/optionality-review.md +10 -0
- package/pi-package/prompts/parallel-review.md +10 -0
- package/pi-package/prompts/plan-review.md +10 -0
- package/pi-package/prompts/pre-mortem.md +10 -0
- package/pi-package/prompts/project-status-report.md +10 -0
- package/pi-package/prompts/pwa-accessibility-review.md +10 -0
- package/pi-package/prompts/rca-diagnostician.md +10 -0
- package/pi-package/prompts/red-team-review.md +10 -0
- package/pi-package/prompts/research-codebase.md +10 -0
- package/pi-package/prompts/research-documentation.md +10 -0
- package/pi-package/prompts/research-review.md +10 -0
- package/pi-package/prompts/resonant-refactor.md +10 -0
- package/pi-package/prompts/resume-handoff.md +10 -0
- package/pi-package/prompts/review-documentation.md +10 -0
- package/pi-package/prompts/rigidity-diagnostician.md +10 -0
- package/pi-package/prompts/rule-of-5-universal.md +10 -0
- package/pi-package/prompts/specification-evaluation-diagnostician.md +10 -0
- package/pi-package/prompts/specification-review.md +10 -0
- package/pi-package/prompts/systematic-housekeeping.md +10 -0
- package/pi-package/prompts/tdd.md +10 -0
- package/pi-package/prompts/test-abstraction-miner.md +10 -0
- package/pi-package/prompts/test-friction.md +10 -0
- package/pi-package/prompts/testability-implementability-evaluator.md +10 -0
- package/pi-package/prompts/ui-align.md +10 -0
- package/pi-package/prompts/ux-dx-evaluation-diagnostician.md +10 -0
- package/pi-package/prompts/verification-diagnostician.md +10 -0
- package/pi-package/prompts/verify-prompt.md +10 -0
- package/pi-package/skills/abstraction-miner/SKILL.md +38 -0
- package/pi-package/skills/adversarial-stakeholder-evaluation/SKILL.md +127 -0
- package/pi-package/skills/anti-slop-prose/SKILL.md +52 -0
- package/pi-package/skills/bias-audit/SKILL.md +45 -0
- package/pi-package/skills/code-review/SKILL.md +59 -0
- package/pi-package/skills/code-review/references/criteria.md +50 -0
- package/pi-package/skills/code-review/references/templates.md +75 -0
- package/pi-package/skills/code-review/references/variants.md +32 -0
- package/pi-package/skills/commit/SKILL.md +47 -0
- package/pi-package/skills/commit/references/criteria.md +21 -0
- package/pi-package/skills/commit/references/templates.md +46 -0
- package/pi-package/skills/composability-diagnostician/SKILL.md +73 -0
- package/pi-package/skills/context-guardian/SKILL.md +26 -0
- package/pi-package/skills/create-handoff/SKILL.md +22 -0
- package/pi-package/skills/create-handoff/references/handoff-template.md +65 -0
- package/pi-package/skills/create-handoff/references/naming.md +7 -0
- package/pi-package/skills/create-issues/SKILL.md +78 -0
- package/pi-package/skills/create-issues/references/criteria.md +44 -0
- package/pi-package/skills/create-issues/references/templates.md +75 -0
- package/pi-package/skills/create-plan/SKILL.md +25 -0
- package/pi-package/skills/create-plan/references/plan-template.md +87 -0
- package/pi-package/skills/create-plan/references/scenarios.md +19 -0
- package/pi-package/skills/debug/SKILL.md +48 -0
- package/pi-package/skills/debug/references/criteria.md +27 -0
- package/pi-package/skills/debug/references/templates.md +39 -0
- package/pi-package/skills/describe-pr/SKILL.md +23 -0
- package/pi-package/skills/describe-pr/references/pr-template.md +62 -0
- package/pi-package/skills/design-practice/SKILL.md +219 -0
- package/pi-package/skills/design-review/SKILL.md +35 -0
- package/pi-package/skills/design-review/references/combined-review.md +27 -0
- package/pi-package/skills/design-review/references/decision-matrix.md +122 -0
- package/pi-package/skills/design-review/references/problem-statement.md +141 -0
- package/pi-package/skills/design-review/references/report-template.md +36 -0
- package/pi-package/skills/design-review/references/scope-document.md +51 -0
- package/pi-package/skills/distill-prompt/SKILL.md +47 -0
- package/pi-package/skills/distill-prompt/references/criteria.md +26 -0
- package/pi-package/skills/distill-prompt/references/templates.md +30 -0
- package/pi-package/skills/doc-link-verifier/SKILL.md +218 -0
- package/pi-package/skills/doc-link-verifier/scripts/check_links.py +453 -0
- package/pi-package/skills/doc-link-verifier/scripts/extract_links.py +521 -0
- package/pi-package/skills/edge-case-discovery/SKILL.md +129 -0
- package/pi-package/skills/error-handling-diagnostician/SKILL.md +96 -0
- package/pi-package/skills/extract-prompt/SKILL.md +226 -0
- package/pi-package/skills/formal-verification-evaluator/SKILL.md +164 -0
- package/pi-package/skills/grill-me/SKILL.md +30 -0
- package/pi-package/skills/guided-review/SKILL.md +74 -0
- package/pi-package/skills/implement-documentation/SKILL.md +74 -0
- package/pi-package/skills/implement-plan/SKILL.md +29 -0
- package/pi-package/skills/implement-plan/references/common-situations.md +36 -0
- package/pi-package/skills/implement-plan/references/verification-template.md +18 -0
- package/pi-package/skills/invalid-states-diagnostician/SKILL.md +69 -0
- package/pi-package/skills/issue-review/SKILL.md +43 -0
- package/pi-package/skills/issue-review/references/convergence.md +19 -0
- package/pi-package/skills/issue-review/references/final-report.md +60 -0
- package/pi-package/skills/issue-review/references/pass-1-clarity.md +28 -0
- package/pi-package/skills/issue-review/references/pass-2-scope.md +22 -0
- package/pi-package/skills/issue-review/references/pass-3-dependencies.md +23 -0
- package/pi-package/skills/issue-review/references/pass-4-alignment.md +17 -0
- package/pi-package/skills/issue-review/references/pass-5-executability.md +17 -0
- package/pi-package/skills/issue-review/references/setup.md +25 -0
- package/pi-package/skills/iterate-plan/SKILL.md +30 -0
- package/pi-package/skills/iterate-plan/references/change-template.md +15 -0
- package/pi-package/skills/iterate-plan/references/common-scenarios.md +14 -0
- package/pi-package/skills/julia-performance-diagnostician/SKILL.md +77 -0
- package/pi-package/skills/modularity-diagnostician/SKILL.md +74 -0
- package/pi-package/skills/multi-agent-review/SKILL.md +202 -0
- package/pi-package/skills/mutability-diagnostician/SKILL.md +69 -0
- package/pi-package/skills/narrative-article/SKILL.md +66 -0
- package/pi-package/skills/optionality-review/SKILL.md +196 -0
- package/pi-package/skills/parallel-review/SKILL.md +55 -0
- package/pi-package/skills/parallel-review/references/criteria.md +34 -0
- package/pi-package/skills/parallel-review/references/templates.md +59 -0
- package/pi-package/skills/plan-review/SKILL.md +48 -0
- package/pi-package/skills/plan-review/references/criteria.md +51 -0
- package/pi-package/skills/plan-review/references/templates.md +67 -0
- package/pi-package/skills/pre-mortem/SKILL.md +16 -0
- package/pi-package/skills/project-status-report/SKILL.md +130 -0
- package/pi-package/skills/pwa-accessibility-review/SKILL.md +87 -0
- package/pi-package/skills/rca-diagnostician/SKILL.md +36 -0
- package/pi-package/skills/rca-diagnostician/references/action-hierarchy.md +77 -0
- package/pi-package/skills/rca-diagnostician/references/bias-countermeasures.md +64 -0
- package/pi-package/skills/rca-diagnostician/references/evidence-timeline.md +49 -0
- package/pi-package/skills/rca-diagnostician/references/hypothesis-methods.md +53 -0
- package/pi-package/skills/rca-diagnostician/references/problem-definition.md +34 -0
- package/pi-package/skills/rca-diagnostician/references/report-template.md +75 -0
- package/pi-package/skills/rca-diagnostician/references/rigor-checklist.md +66 -0
- package/pi-package/skills/red-team-review/SKILL.md +139 -0
- package/pi-package/skills/research-codebase/SKILL.md +28 -0
- package/pi-package/skills/research-codebase/references/report-template.md +75 -0
- package/pi-package/skills/research-codebase/references/search-patterns.md +27 -0
- package/pi-package/skills/research-documentation/SKILL.md +85 -0
- package/pi-package/skills/research-review/SKILL.md +48 -0
- package/pi-package/skills/research-review/references/criteria.md +51 -0
- package/pi-package/skills/research-review/references/templates.md +73 -0
- package/pi-package/skills/resonant-refactor/SKILL.md +51 -0
- package/pi-package/skills/resume-handoff/SKILL.md +25 -0
- package/pi-package/skills/resume-handoff/references/analysis-template.md +40 -0
- package/pi-package/skills/resume-handoff/references/locating.md +12 -0
- package/pi-package/skills/review-documentation/SKILL.md +50 -0
- package/pi-package/skills/rigidity-diagnostician/SKILL.md +76 -0
- package/pi-package/skills/rule-of-5-universal/SKILL.md +32 -0
- package/pi-package/skills/rule-of-5-universal/references/criteria.md +34 -0
- package/pi-package/skills/rule-of-5-universal/references/examples.md +69 -0
- package/pi-package/skills/rule-of-5-universal/references/templates.md +136 -0
- package/pi-package/skills/specification-evaluation-diagnostician/SKILL.md +112 -0
- package/pi-package/skills/specification-review/SKILL.md +49 -0
- package/pi-package/skills/specification-review/references/criteria.md +51 -0
- package/pi-package/skills/specification-review/references/templates.md +67 -0
- package/pi-package/skills/systematic-housekeeping/SKILL.md +33 -0
- package/pi-package/skills/tdd/SKILL.md +44 -0
- package/pi-package/skills/tdd/references/criteria.md +26 -0
- package/pi-package/skills/tdd/references/templates.md +53 -0
- package/pi-package/skills/test-abstraction-miner/SKILL.md +49 -0
- package/pi-package/skills/test-friction/SKILL.md +57 -0
- package/pi-package/skills/testability-implementability-evaluator/SKILL.md +150 -0
- package/pi-package/skills/ui-align/SKILL.md +38 -0
- package/pi-package/skills/ux-dx-evaluation-diagnostician/SKILL.md +27 -0
- package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-1-product.md +20 -0
- package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-2-engineering.md +20 -0
- package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-3-interface.md +23 -0
- package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-4-ecosystem.md +20 -0
- package/pi-package/skills/ux-dx-evaluation-diagnostician/references/layer-5-documentation.md +19 -0
- package/pi-package/skills/ux-dx-evaluation-diagnostician/references/report-template.md +36 -0
- package/pi-package/skills/verification-diagnostician/SKILL.md +96 -0
- package/pi-package/skills/verify-prompt/SKILL.md +38 -0
- package/pi-package/skills/verify-prompt/references/criteria.md +21 -0
- package/scripts/cli.mjs +453 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!-- skill: plan-review, version: 1.2.0, status: verified -->
|
|
2
|
+
# Iterative Plan Review
|
|
3
|
+
|
|
4
|
+
Thoroughly review implementation plans for feasibility, completeness, and TDD alignment using the Rule of 5 iterative refinement process.
|
|
5
|
+
|
|
6
|
+
## Role
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
## Procedure
|
|
10
|
+
|
|
11
|
+
1. **Plan Identification:**
|
|
12
|
+
* Identify the plan to review. If none is provided, list available plans from `plans/`.
|
|
13
|
+
* Read the plan completely to understand the overall architecture and phase structure.
|
|
14
|
+
|
|
15
|
+
2. **Iterative Analysis (Rule of 5):**
|
|
16
|
+
Perform up to 5 passes, each with a specific focus. After each pass (starting with Pass 2), perform a **Convergence Check**.
|
|
17
|
+
* **Pass 1: Feasibility & Risk** — Technical feasibility, external dependencies, unrealistic estimates, and missing rollback strategies.
|
|
18
|
+
* **Pass 2: Completeness & Scope** — Missing phases, vague success criteria, and gaps between current and desired states.
|
|
19
|
+
* **Pass 3: Spec & TDD Alignment** — Alignment with specification files and a clear test-first approach in every phase.
|
|
20
|
+
* **Pass 4: Ordering & Dependencies** — Logical phase sequencing, parallelizable work, and independent verifiability of each phase.
|
|
21
|
+
* **Pass 5: Clarity & Executability** — Specific file paths, concrete change descriptions, and unambiguous "done" definitions.
|
|
22
|
+
|
|
23
|
+
3. **Convergence Check:**
|
|
24
|
+
* Stop and report if **CONVERGED**: No new CRITICAL issues found AND new issue rate is <10% compared to the previous pass.
|
|
25
|
+
* Otherwise, continue to the next pass.
|
|
26
|
+
|
|
27
|
+
4. **Verification (CRITICAL):**
|
|
28
|
+
* **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.
|
|
29
|
+
* Flag "We'll just..." statements that hide complexity as high-risk.
|
|
30
|
+
|
|
31
|
+
5. **Final Synthesis:**
|
|
32
|
+
* Produce a Final Report with a clear **Verdict** (READY_TO_IMPLEMENT | NEEDS_REVISION | NEEDS_MORE_RESEARCH).
|
|
33
|
+
|
|
34
|
+
## Rules
|
|
35
|
+
- **Specific Fixes:** Do not just say "add detail"; specify *what* detail (e.g., "Add try-catch for JWT errors in Phase 2").
|
|
36
|
+
- **Test-First Mandate:** Any phase without a corresponding verification/test step is a CRITICAL failure.
|
|
37
|
+
- **Incremental Value:** Each phase must be independently verifiable and deployable (where possible).
|
|
38
|
+
- **Stop Early:** Do not force 5 stages if convergence is reached sooner.
|
|
39
|
+
|
|
40
|
+
## References
|
|
41
|
+
- **Templates:** Use `references/templates.md` for the exact output format of each pass and the final report.
|
|
42
|
+
- **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,10 @@
|
|
|
1
|
+
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].
|
|
2
|
+
|
|
3
|
+
You are the lead investigator writing the internal autopsy report. Your job is to uncover the root causes of the failure.
|
|
4
|
+
|
|
5
|
+
Do not speculate on *if* it might fail. You must assume it *has* failed.
|
|
6
|
+
|
|
7
|
+
Your task:
|
|
8
|
+
1. Write a brief, 1-2 paragraph narrative describing how the failure unfolded.
|
|
9
|
+
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*.
|
|
10
|
+
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,124 @@
|
|
|
1
|
+
# Evidence-Backed Project Status Report
|
|
2
|
+
|
|
3
|
+
Create a concise, decision-grade project status report for the requested project, workstream, or agent run.
|
|
4
|
+
|
|
5
|
+
## Inputs
|
|
6
|
+
|
|
7
|
+
If missing, ask for the minimum context before drafting:
|
|
8
|
+
- project/workstream name;
|
|
9
|
+
- reporting period;
|
|
10
|
+
- audience: executive, engineering, product, client/sponsor, or mixed;
|
|
11
|
+
- available evidence sources: tickets, PRs, commits, CI/CD, incidents, metrics, docs, risk logs, decision logs, traces, or notes;
|
|
12
|
+
- baseline commitments, if any: scope, date, budget, quality, OKR, milestone, or SOW.
|
|
13
|
+
|
|
14
|
+
## Rules
|
|
15
|
+
|
|
16
|
+
- Prefer evidence-linked claims over narrative claims.
|
|
17
|
+
- Separate facts from interpretation.
|
|
18
|
+
- Mark unknowns explicitly; do not invent missing evidence.
|
|
19
|
+
- Link to access-controlled evidence; do not paste secrets, credentials, personal data, private code, sensitive prompts, or sensitive trace content.
|
|
20
|
+
- If no safe evidence link exists, summarize only non-sensitive metadata, such as artifact ID, trace ID, run time, status, and redacted outcome.
|
|
21
|
+
- Never report Green without objective supporting evidence.
|
|
22
|
+
- If evidence conflicts, report dimension-specific status before assigning overall RAG.
|
|
23
|
+
- Separate “blocked” from “at risk.” Blocked means work cannot proceed without external action; at risk means the forecast is threatened.
|
|
24
|
+
- Separate “tests passed” from “accepted,” “merged,” “deployed,” or “independently verified.”
|
|
25
|
+
- 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.
|
|
26
|
+
|
|
27
|
+
## Status Scale
|
|
28
|
+
|
|
29
|
+
Use organization-specific thresholds when available. Otherwise:
|
|
30
|
+
|
|
31
|
+
- **Unknown / Unrated:** no agreed baseline exists, evidence is insufficient, or discovery work has not established meaningful thresholds.
|
|
32
|
+
- **Green:** within agreed tolerance; no unresolved blocker threatens a key commitment; evidence supports the forecast.
|
|
33
|
+
- **Amber:** material variance or dependency risk exists, but there is a credible recovery plan with owner and date.
|
|
34
|
+
- **Red:** a critical objective, milestone, safety requirement, compliance requirement, or budget/schedule constraint is no longer under control, or no credible recovery plan exists.
|
|
35
|
+
|
|
36
|
+
## Procedure
|
|
37
|
+
|
|
38
|
+
1. Identify audience and decision the report supports.
|
|
39
|
+
2. Gather/inspect available evidence before drafting.
|
|
40
|
+
3. Compare baseline vs current state.
|
|
41
|
+
4. Assign dimension-specific status when useful: scope, schedule, quality, reliability, cost, risk, governance.
|
|
42
|
+
5. Assign overall status only after reviewing evidence.
|
|
43
|
+
6. Summarize completed outcomes, current work, forecast changes, blockers, risks, dependencies, and decisions needed.
|
|
44
|
+
7. Include agentic AI evidence when applicable.
|
|
45
|
+
8. Keep executive summary short; put trace-level/ticket-level detail behind links or appendices.
|
|
46
|
+
9. For mixed audiences, put the executive summary first and move technical detail to evidence links or an appendix.
|
|
47
|
+
|
|
48
|
+
## Output Template
|
|
49
|
+
|
|
50
|
+
Use only applicable sections. Omit empty sections.
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
# Project Status: <project name>
|
|
54
|
+
|
|
55
|
+
Reporting period: <date range>
|
|
56
|
+
Owner / DRI: <name or unknown>
|
|
57
|
+
Audience: <executive | engineering | product | client | mixed>
|
|
58
|
+
Overall status: <Unknown / Unrated | Green | Amber | Red>
|
|
59
|
+
Trend: <Improving | Stable | Worsening | Unknown>
|
|
60
|
+
Confidence: <High | Medium | Low | Unknown>
|
|
61
|
+
|
|
62
|
+
## Executive Summary
|
|
63
|
+
- <1-3 bullets on outcome, forecast, and most important risk/ask>
|
|
64
|
+
|
|
65
|
+
## What Changed Since Last Report
|
|
66
|
+
- Completed: <evidence-linked outcomes, not activity lists>
|
|
67
|
+
- In progress: <current work and expected completion>
|
|
68
|
+
- Not completed as planned: <variance and reason>
|
|
69
|
+
|
|
70
|
+
## Evidence
|
|
71
|
+
- Tickets / roadmap items: <links or IDs>
|
|
72
|
+
- PRs / commits / releases: <links or IDs>
|
|
73
|
+
- CI / test / deployment status: <links or summary>
|
|
74
|
+
- Metrics: <DORA, flow, EVM, SLO, OKR, or domain-specific metrics>
|
|
75
|
+
- Agent traces, if applicable: <trace IDs / run IDs; link to access-controlled evidence>
|
|
76
|
+
|
|
77
|
+
## Forecast and Variance
|
|
78
|
+
- Baseline commitment: <scope/date/budget/quality target>
|
|
79
|
+
- Current forecast: <updated forecast>
|
|
80
|
+
- Variance: <numeric or concrete difference>
|
|
81
|
+
- Reason for variance: <root cause or current best explanation>
|
|
82
|
+
|
|
83
|
+
## Risks, Issues, Blockers, Dependencies
|
|
84
|
+
Use one row per risk, issue, blocker, or dependency.
|
|
85
|
+
|
|
86
|
+
| Type | Description | Impact | Owner | Due / review date | Mitigation / ask |
|
|
87
|
+
|---|---|---|---|---|---|
|
|
88
|
+
| Risk/Issue/Blocker/Dependency | | | | | |
|
|
89
|
+
|
|
90
|
+
## Decisions
|
|
91
|
+
- Decisions made this period: <decision + rationale + link>
|
|
92
|
+
- Decisions needed: <decision + owner + deadline + consequence of no decision>
|
|
93
|
+
|
|
94
|
+
## Next Commitments
|
|
95
|
+
- By next report: <specific promised outcomes>
|
|
96
|
+
- Next 2-4 weeks: <look-ahead commitments and dependencies>
|
|
97
|
+
|
|
98
|
+
## Agentic AI Evidence, if applicable
|
|
99
|
+
Omit this section when no agentic AI was used.
|
|
100
|
+
|
|
101
|
+
Minimum evidence:
|
|
102
|
+
- Agent/model/prompt/tool versions: <versions>
|
|
103
|
+
- Autonomy level: <manual | assisted | supervised autonomous | autonomous with audit>
|
|
104
|
+
- Human checkpoints: <approvals, overrides, rejected actions>
|
|
105
|
+
- Verification state: <generated | tested | independently verified | merged | deployed>
|
|
106
|
+
- Trace/provenance: <trace IDs, commit SHA, PR, build, deployment>
|
|
107
|
+
- Cost/latency: <tokens, cost, runtime if material>
|
|
108
|
+
- Safety/policy exceptions: <none or details>
|
|
109
|
+
|
|
110
|
+
Extended governance evidence, when risk or regulation warrants:
|
|
111
|
+
- Retrieved context and data sources
|
|
112
|
+
- Detailed tool-call sequence / span tree
|
|
113
|
+
- Independent evaluation results
|
|
114
|
+
- SBOM, signatures, or release provenance
|
|
115
|
+
- Red-team, abuse-test, or policy-review notes
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Quality Bar
|
|
119
|
+
|
|
120
|
+
Before finalizing, verify:
|
|
121
|
+
- The report answers: what changed, what is next, what is blocked, and what decision/help is needed.
|
|
122
|
+
- Every nontrivial claim has evidence or is marked unknown.
|
|
123
|
+
- Amber/Red items include owner, mitigation, and next review date, or unknown fields are marked and converted into decisions/asks.
|
|
124
|
+
- The audience can act on the report without asking for a second status meeting.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# PWA Accessibility & Reliability Review for Micro-Merchants
|
|
2
|
+
|
|
3
|
+
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.
|
|
4
|
+
|
|
5
|
+
## Domain 1: Cognitive Usability & WCAG Accessibility
|
|
6
|
+
|
|
7
|
+
### 1.1 Linguistic Audit
|
|
8
|
+
- 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").
|
|
9
|
+
|
|
10
|
+
### 1.2 Interaction Target Sizing
|
|
11
|
+
- All interactive elements must have minimum **44x44px** touch area with minimum **8px** gap between adjacent targets.
|
|
12
|
+
|
|
13
|
+
### 1.3 Visual Hierarchy & Progressive Disclosure
|
|
14
|
+
- 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.
|
|
15
|
+
|
|
16
|
+
### 1.4 Feedback & Error Handling
|
|
17
|
+
- 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.
|
|
18
|
+
|
|
19
|
+
## Domain 2: Offline Architecture & Reliability
|
|
20
|
+
|
|
21
|
+
### 2.1 Storage Separation
|
|
22
|
+
- **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.
|
|
23
|
+
|
|
24
|
+
### 2.2 Caching Strategy Validation
|
|
25
|
+
- **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.
|
|
26
|
+
|
|
27
|
+
### 2.3 iOS Resilience
|
|
28
|
+
- 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.
|
|
29
|
+
|
|
30
|
+
### 2.4 Background Sync & Data Integrity
|
|
31
|
+
- `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()`.
|
|
32
|
+
|
|
33
|
+
## Domain 3: Hardware Optimization & Main Thread
|
|
34
|
+
|
|
35
|
+
### 3.1 Main Thread Blocking
|
|
36
|
+
- Lists >50 items require **virtual scrolling**. Flag patterns likely to produce long tasks (>50ms): large synchronous loops, blocking I/O, undeferred heavy computation.
|
|
37
|
+
|
|
38
|
+
### 3.2 Execution Yielding
|
|
39
|
+
- 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.
|
|
40
|
+
|
|
41
|
+
### 3.3 Bundle & Rendering
|
|
42
|
+
- Flag DOM >1500 nodes (warning) or >3000 (critical). Verify code splitting — initial bundle for first screen only. Flag hydration that blocks input responsiveness.
|
|
43
|
+
|
|
44
|
+
## Domain 4: Security & Data Integrity
|
|
45
|
+
|
|
46
|
+
### 4.1 Data Leakage
|
|
47
|
+
- Sensitive views (login, password reset) excluded from SW cache via `Cache-Control: no-store`. No tokens/PII in Cache API.
|
|
48
|
+
|
|
49
|
+
### 4.2 Payload Integrity
|
|
50
|
+
- Offline IndexedDB payloads **cryptographically signed** (HMAC) before Background Sync upload. Server validates signature.
|
|
51
|
+
|
|
52
|
+
### 4.3 CSP & Service Worker Protection
|
|
53
|
+
- 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.
|
|
54
|
+
|
|
55
|
+
## Output Format
|
|
56
|
+
|
|
57
|
+
Per domain:
|
|
58
|
+
```
|
|
59
|
+
## Domain N: [Name]
|
|
60
|
+
Status: PASS | FAIL | PARTIAL
|
|
61
|
+
### Violations
|
|
62
|
+
[DOM-N.M] [CRITICAL|HIGH|MEDIUM|LOW] — [file:line]
|
|
63
|
+
Finding: [What's wrong]
|
|
64
|
+
Fix: [Actionable remediation]
|
|
65
|
+
### Passes
|
|
66
|
+
- [What was correct]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Conclude with:
|
|
70
|
+
```
|
|
71
|
+
## Summary
|
|
72
|
+
- Domain 1 (Usability): [PASS|FAIL|PARTIAL]
|
|
73
|
+
- Domain 2 (Offline): [PASS|FAIL|PARTIAL]
|
|
74
|
+
- Domain 3 (Performance): [PASS|FAIL|PARTIAL]
|
|
75
|
+
- Domain 4 (Security): [PASS|FAIL|PARTIAL]
|
|
76
|
+
Overall: [READY | NEEDS_REVISION | NOT_READY]
|
|
77
|
+
Top 3 Critical Fixes: [list]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
[INPUT]:
|
|
81
|
+
{provide_code_or_architecture_here}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# RCA Diagnostician
|
|
2
|
+
|
|
3
|
+
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.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
- If an incident description or RCA report is provided, read it completely.
|
|
8
|
+
- If no input is provided, ask what incident or failure to investigate.
|
|
9
|
+
- Determine the mode: INVESTIGATE (new RCA) or EVALUATE (review existing report).
|
|
10
|
+
|
|
11
|
+
## Procedure
|
|
12
|
+
|
|
13
|
+
1. **Scope the problem.** Define WHAT/WHERE/WHEN/SEVERITY and the counterfactual. Use `references/problem-definition.md`.
|
|
14
|
+
2. **Collect and map evidence.** Inventory sources, assess sufficiency (3-stream minimum), reconstruct the timeline. Use `references/evidence-timeline.md`.
|
|
15
|
+
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`.
|
|
16
|
+
4. **Apply bias countermeasures.** Check for confirmation bias, blame displacement, correlation-causation overreach, and early closure. Use `references/bias-countermeasures.md`.
|
|
17
|
+
5. **Define corrective actions.** Rank by strength (strong/intermediate/weak). Require at least one strong action. Define verification metrics. Use `references/action-hierarchy.md`.
|
|
18
|
+
6. **Evaluate rigor.** Apply the minimum viable rigor checklist. If AI tools were used, apply the AI governance checklist. Use `references/rigor-checklist.md`.
|
|
19
|
+
7. **Produce the final report.** Use `references/report-template.md`.
|
|
20
|
+
|
|
21
|
+
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.
|
|
22
|
+
|
|
23
|
+
## Rules
|
|
24
|
+
|
|
25
|
+
- Never promote correlation to causation without a causal model or explicit uncertainty.
|
|
26
|
+
- Never accept a single-cause narrative without testing alternatives.
|
|
27
|
+
- Never recommend only weak actions (retraining, reminders) when the system predictably creates the error.
|
|
28
|
+
- Every action must have a verification metric and monitoring period.
|
|
29
|
+
- Reference exact evidence from the input. Do not fabricate findings.
|
|
30
|
+
- 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
|
+
```
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
## Hypothesis Generation and Method Selection
|
|
2
|
+
|
|
3
|
+
### Multi-Level Hypothesis Generation
|
|
4
|
+
|
|
5
|
+
Produce at least three candidate root causes across different analytical levels:
|
|
6
|
+
|
|
7
|
+
- **Mechanism level**: What physical, logical, or behavioral process failed? (e.g., memory leak, O-ring degradation, medication dosage calculation error)
|
|
8
|
+
- **Process control level**: What check, barrier, or monitoring should have caught it? (e.g., missing alert threshold, no pre-deployment validation, absent second-check protocol)
|
|
9
|
+
- **Organizational level**: What policy, incentive, resource, or cultural factor enabled the failure? (e.g., staffing pressure, incentive misalignment, deferred maintenance, blame culture suppressing reports)
|
|
10
|
+
|
|
11
|
+
### Method Selection Guide
|
|
12
|
+
|
|
13
|
+
Select based on domain, evidence, and the question being asked:
|
|
14
|
+
|
|
15
|
+
| Method | Best when | Domain fit |
|
|
16
|
+
|--------|-----------|------------|
|
|
17
|
+
| **5 Whys** | Fast initial exploration; small team | Any — but stop only when you reach a system-modifiable cause |
|
|
18
|
+
| **Fishbone/Ishikawa** | Brainstorming across cause categories | Any — team-friendly for cross-functional groups |
|
|
19
|
+
| **FTA (Fault Tree)** | Combinations of failures matter; system architecture available | Engineering, manufacturing, safety |
|
|
20
|
+
| **FMEA/FMECA** | Preventive analysis of components/processes; need risk ranking | Engineering, manufacturing, design |
|
|
21
|
+
| **STAMP/STPA** | Complex sociotechnical systems with control interactions | Aviation, healthcare, autonomous systems |
|
|
22
|
+
| **Causal inference (DAG/SCM)** | Need to identify intervention effects formally; confounding is a concern | Social science, policy, epidemiology |
|
|
23
|
+
| **Qualitative inquiry** | Practices, incentives, or culture are the suspected drivers | Organizational, healthcare, education |
|
|
24
|
+
| **Bayesian networks** | Multiple uncertain evidence streams; need probabilistic diagnosis | Engineering, medical diagnostics, security |
|
|
25
|
+
| **Postmortem (structured)** | Software/infrastructure incidents; need detection-response-recovery analysis | Software, IT operations, security |
|
|
26
|
+
|
|
27
|
+
### Hypothesis Testing
|
|
28
|
+
|
|
29
|
+
For each candidate cause, answer:
|
|
30
|
+
|
|
31
|
+
1. **What evidence supports it?** (cite specific sources from evidence inventory)
|
|
32
|
+
2. **What evidence contradicts it?** (actively seek disconfirming data)
|
|
33
|
+
3. **What would falsify it?** (define the test that would eliminate this hypothesis)
|
|
34
|
+
4. **Is the mechanism plausible?** (can you explain how X causes Y, not just that X correlates with Y?)
|
|
35
|
+
5. **Causal role**: Is it necessary? Sufficient? Or a contributing factor?
|
|
36
|
+
|
|
37
|
+
### Differentiating Causal Levels
|
|
38
|
+
|
|
39
|
+
- **Contributing factor**: Exacerbated the outcome or increased its likelihood, but did not directly initiate it
|
|
40
|
+
- **Root cause**: The specific mechanism or broken process that, if removed, would have prevented the outcome
|
|
41
|
+
- **Latent/generic cause**: The overarching systemic flaw that allowed the root cause to exist (e.g., flawed policy, missing training program, cultural norm). Fixing these yields the highest ROI.
|
|
42
|
+
|
|
43
|
+
### Output
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
## Hypotheses
|
|
47
|
+
|
|
48
|
+
| # | Level | Candidate cause | Supporting evidence | Contradicting evidence | Falsification test | Status |
|
|
49
|
+
|---|-------|-----------------|--------------------|-----------------------|-------------------|--------|
|
|
50
|
+
| 1 | [mechanism/process/org] | [hypothesis] | [evidence] | [evidence] | [what would disprove] | [supported/weakened/falsified] |
|
|
51
|
+
|
|
52
|
+
Method selected: [method] — Rationale: [why this method fits the domain and evidence]
|
|
53
|
+
```
|