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,75 @@
|
|
|
1
|
+
# Issue Creation Templates
|
|
2
|
+
|
|
3
|
+
Use these templates for proposed slice breakdowns, issue descriptions, and the final creation summary.
|
|
4
|
+
|
|
5
|
+
## Proposed Slice Review Template
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
1. **[Title]**
|
|
9
|
+
- **Type:** [AFK|HITL]
|
|
10
|
+
- **Blocked by:** [None | Slice 1, Slice 2]
|
|
11
|
+
- **User stories covered:** [Story A, Story B]
|
|
12
|
+
- **Tracer-bullet rationale:** [Why this is a thin end-to-end slice]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Issue Description Template
|
|
16
|
+
|
|
17
|
+
```markdown
|
|
18
|
+
## Parent
|
|
19
|
+
|
|
20
|
+
[Reference to parent plan/spec/issue, if applicable]
|
|
21
|
+
|
|
22
|
+
## What to build
|
|
23
|
+
|
|
24
|
+
[Describe the end-to-end behavior of this slice in domain language.]
|
|
25
|
+
|
|
26
|
+
**Context:** [Brief explanation tied to the source plan/spec]
|
|
27
|
+
Ref: [Link to plan/spec file and section]
|
|
28
|
+
|
|
29
|
+
**Files / Systems:**
|
|
30
|
+
- `path/to/file1`
|
|
31
|
+
- `path/to/file2`
|
|
32
|
+
- `[subsystem or surface area if exact files are not yet known]`
|
|
33
|
+
|
|
34
|
+
## Acceptance Criteria
|
|
35
|
+
|
|
36
|
+
- [ ] [Binary, observable criterion 1]
|
|
37
|
+
- [ ] [Binary, observable criterion 2]
|
|
38
|
+
- [ ] [Automated tests cover the slice end-to-end]
|
|
39
|
+
|
|
40
|
+
## Blocked by
|
|
41
|
+
|
|
42
|
+
- [Issue reference]
|
|
43
|
+
|
|
44
|
+
Or: `None - can start immediately`
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
**CRITICAL: Follow Test Driven Development and Tidy First workflows.**
|
|
48
|
+
- Write tests *before* writing implementation code.
|
|
49
|
+
- Clean up related code *before* adding new functionality.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Issue Creation Summary Template
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
## Issue Creation Summary
|
|
56
|
+
|
|
57
|
+
**System:** [e.g., GitHub/Beads]
|
|
58
|
+
**Plan:** [path/to/plan.md]
|
|
59
|
+
|
|
60
|
+
### Approved Slice Set
|
|
61
|
+
1. **[Title]** — [AFK|HITL], blocked by [None|IDs]
|
|
62
|
+
2. **[Title]** — [AFK|HITL], blocked by [None|IDs]
|
|
63
|
+
|
|
64
|
+
### Summary
|
|
65
|
+
- **Total Issues Created:** [count]
|
|
66
|
+
- **Dependencies Defined:** [count]
|
|
67
|
+
- **Labels Applied:** [e.g., needs-triage]
|
|
68
|
+
|
|
69
|
+
### Created Issues
|
|
70
|
+
1. **[ID] [Title]** - [Link/Reference]
|
|
71
|
+
2. **[ID] ...**
|
|
72
|
+
|
|
73
|
+
### Verdict: [ISSUES_CREATED | FAILED_TO_CREATE | WAITING_FOR_APPROVAL]
|
|
74
|
+
**Rationale:** [1-2 sentences explaining the result]
|
|
75
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Create Implementation Plan
|
|
2
|
+
|
|
3
|
+
Create a detailed implementation plan for the requested feature.
|
|
4
|
+
|
|
5
|
+
## Procedure
|
|
6
|
+
|
|
7
|
+
1. Read any provided spec or task description fully.
|
|
8
|
+
2. Research the codebase and existing patterns.
|
|
9
|
+
3. If multiple approaches are viable, present options and get alignment before finalizing.
|
|
10
|
+
4. Write the plan using `references/plan-template.md`.
|
|
11
|
+
5. If needed, use `references/scenarios.md` for example interaction patterns.
|
|
12
|
+
|
|
13
|
+
## Rules
|
|
14
|
+
|
|
15
|
+
- Be specific: include actual file paths and concrete changes.
|
|
16
|
+
- Plan tests before implementation for each phase.
|
|
17
|
+
- Keep phases independently verifiable.
|
|
18
|
+
- Resolve open questions with normal user clarification, not tool-specific assumptions.
|
|
19
|
+
- Prefer realistic plans over exhaustive but unusable plans.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
```markdown
|
|
2
|
+
# [Feature Name] Implementation Plan
|
|
3
|
+
|
|
4
|
+
Date: YYYY-MM-DD
|
|
5
|
+
|
|
6
|
+
## Overview
|
|
7
|
+
|
|
8
|
+
[Brief description of what is being implemented]
|
|
9
|
+
|
|
10
|
+
## Related
|
|
11
|
+
|
|
12
|
+
- Spec: `specs/...` [if applicable]
|
|
13
|
+
- Research: `research/...` [if applicable]
|
|
14
|
+
- Related issues or tickets: [references]
|
|
15
|
+
|
|
16
|
+
## Current State
|
|
17
|
+
|
|
18
|
+
[What exists now and what is missing]
|
|
19
|
+
|
|
20
|
+
## Desired End State
|
|
21
|
+
|
|
22
|
+
[What will exist after implementation]
|
|
23
|
+
|
|
24
|
+
How to verify:
|
|
25
|
+
- [Specific verification step]
|
|
26
|
+
- [Expected behavior]
|
|
27
|
+
|
|
28
|
+
## Out of Scope
|
|
29
|
+
|
|
30
|
+
[What is explicitly excluded]
|
|
31
|
+
|
|
32
|
+
## Risks & Mitigations
|
|
33
|
+
|
|
34
|
+
[Key risks and mitigations]
|
|
35
|
+
|
|
36
|
+
## Phase 1: [Name]
|
|
37
|
+
|
|
38
|
+
### Changes Required
|
|
39
|
+
|
|
40
|
+
File: `path/to/file.ext`
|
|
41
|
+
- Changes: [Specific modifications needed]
|
|
42
|
+
- Tests: [What to write first]
|
|
43
|
+
|
|
44
|
+
### Implementation Approach
|
|
45
|
+
|
|
46
|
+
[How this phase should be implemented]
|
|
47
|
+
|
|
48
|
+
### Success Criteria
|
|
49
|
+
|
|
50
|
+
Automated:
|
|
51
|
+
- [ ] Tests pass
|
|
52
|
+
- [ ] Type checking passes [if applicable]
|
|
53
|
+
- [ ] Linting passes [if applicable]
|
|
54
|
+
- [ ] Build succeeds [if applicable]
|
|
55
|
+
|
|
56
|
+
Manual:
|
|
57
|
+
- [ ] [Manual verification step]
|
|
58
|
+
|
|
59
|
+
### Dependencies
|
|
60
|
+
|
|
61
|
+
[Dependencies or blockers]
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Testing Strategy
|
|
66
|
+
|
|
67
|
+
Following TDD:
|
|
68
|
+
1. Write tests first.
|
|
69
|
+
2. Confirm they fail.
|
|
70
|
+
3. Implement the minimum to pass.
|
|
71
|
+
4. Refactor while staying green.
|
|
72
|
+
|
|
73
|
+
Test types needed:
|
|
74
|
+
- Unit tests: [What to cover]
|
|
75
|
+
- Integration tests: [What to cover]
|
|
76
|
+
- E2E tests: [If applicable]
|
|
77
|
+
|
|
78
|
+
## Rollback Strategy
|
|
79
|
+
|
|
80
|
+
[How to back out safely]
|
|
81
|
+
|
|
82
|
+
## Related Links
|
|
83
|
+
|
|
84
|
+
- [Documentation]
|
|
85
|
+
- [Similar implementation]
|
|
86
|
+
- [External resource]
|
|
87
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## Example Scenarios
|
|
2
|
+
|
|
3
|
+
### Feature with spec
|
|
4
|
+
|
|
5
|
+
- Read the spec.
|
|
6
|
+
- Research existing patterns.
|
|
7
|
+
- Propose a phased plan grounded in the codebase.
|
|
8
|
+
|
|
9
|
+
### No spec, only feature description
|
|
10
|
+
|
|
11
|
+
- Research the current implementation.
|
|
12
|
+
- Present viable options if there is a meaningful design choice.
|
|
13
|
+
- Recommend one approach and then write the detailed plan.
|
|
14
|
+
|
|
15
|
+
### Complex feature with technical uncertainty
|
|
16
|
+
|
|
17
|
+
- Research the architectural constraints first.
|
|
18
|
+
- Present 2-3 options with tradeoffs.
|
|
19
|
+
- Get user alignment before writing the final plan.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!-- skill: debug, version: 1.1.0, status: verified -->
|
|
2
|
+
# Systematic Debugging (Differential Diagnosis)
|
|
3
|
+
|
|
4
|
+
Apply a clinical, systematic approach to debugging complex software issues using the principles of **Differential Diagnosis (DDx)** to eliminate anchoring bias and find root causes.
|
|
5
|
+
|
|
6
|
+
## Role
|
|
7
|
+
You are an Expert Systems Diagnostician. Your goal is to move from a symptom to a confirmed root cause through a structured process of elimination, treating the system as a patient with observable "illness scripts."
|
|
8
|
+
|
|
9
|
+
## Procedure
|
|
10
|
+
|
|
11
|
+
1. **Symptom Representation:**
|
|
12
|
+
* Describe the primary symptom (e.g., latency spike, intermittent 500s).
|
|
13
|
+
* Describe the system context (e.g., Node.js on K8s, PostgreSQL).
|
|
14
|
+
* **Re-state the Problem:** Translate the user's description into precise engineering terminology.
|
|
15
|
+
|
|
16
|
+
2. **Differential Diagnosis (Hypotheses):**
|
|
17
|
+
* List all plausible root causes (Hypotheses), from most likely to least likely.
|
|
18
|
+
* Include at least one "Zebra" (a rare, non-obvious cause) to prevent premature closure.
|
|
19
|
+
|
|
20
|
+
3. **Illness Scripts:**
|
|
21
|
+
* For the top 3 hypotheses, describe the "illness script"—the typical narrative or pattern of how that specific cause would manifest in metrics, logs, or behavior.
|
|
22
|
+
|
|
23
|
+
4. **Diagnostic Testing (CRITICAL):**
|
|
24
|
+
* For each hypothesis, propose a specific, executable test (command, query, or metric check) to *conclusively rule it out*.
|
|
25
|
+
* **Verification Phase:** Use `run_shell_command`, `read_file`, or `grep_search` to actually execute these tests or examine relevant logs/configs if the environment allows. **DO NOT** just simulate results if you have the tools to check reality.
|
|
26
|
+
|
|
27
|
+
5. **Evidence Synthesis:**
|
|
28
|
+
* If you cannot run tests, simulate the logic: "If Test #1 (most likely) is negative, what does that eliminate? If Test #2 is positive, what does that confirm?"
|
|
29
|
+
* State the **Probable Diagnosis** based on the evidence.
|
|
30
|
+
|
|
31
|
+
6. **Treatment Recommendation:**
|
|
32
|
+
* Propose a specific, immediate action to mitigate the issue.
|
|
33
|
+
* Propose a long-term fix to prevent recurrence.
|
|
34
|
+
|
|
35
|
+
## Rules
|
|
36
|
+
- **No Anchoring:** Do not fixate on the first cause. You must generate at least 4 hypotheses before narrowing.
|
|
37
|
+
- **Evidence-Based:** Every diagnosis must be linked to a specific test result or observation.
|
|
38
|
+
- **Clinical Precision:** Use precise terminology (e.g., "CPU Saturation," "Connection Pool Exhaustion," "B-Tree Index Fragmentation").
|
|
39
|
+
|
|
40
|
+
## References
|
|
41
|
+
- **Templates:** Use `references/templates.md` for the DDx report structure.
|
|
42
|
+
- **Criteria:** See `references/criteria.md` for severity levels of "illness" and diagnostic confidence rules.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Systematic Debugging Criteria
|
|
2
|
+
|
|
3
|
+
Use these criteria to evaluate the quality of a debugging diagnosis.
|
|
4
|
+
|
|
5
|
+
## Diagnostic Confidence Rules
|
|
6
|
+
|
|
7
|
+
| Confidence | Criteria | Action |
|
|
8
|
+
| :--- | :--- | :--- |
|
|
9
|
+
| **High** | Hypothesis verified by direct evidence (log trace, metric spike, failing test) and related causes ruled out. | **Implement fix.** |
|
|
10
|
+
| **Medium** | Hypothesis consistent with symptoms and simulated tests positive, but direct evidence missing. | **Gather more logs.** |
|
|
11
|
+
| **Low** | Hypothesis only explains some symptoms; major contradictions remain. | **Re-run DDx.** |
|
|
12
|
+
|
|
13
|
+
## "Illness Severity" (Bug Prioritization)
|
|
14
|
+
|
|
15
|
+
| Severity | Criteria | Treatment Strategy |
|
|
16
|
+
| :--- | :--- | :--- |
|
|
17
|
+
| **CRITICAL** | Production data loss, security breach, or system-wide outage. | **Immediate mitigation first (Restart/Rollback), then root cause fix.** |
|
|
18
|
+
| **HIGH** | Severe performance degradation or core feature broken. | **Prioritize fix above all in-flight work.** |
|
|
19
|
+
| **MEDIUM** | Intermittent error or minor feature failure. | **Add monitoring/logging to catch next occurrence.** |
|
|
20
|
+
| **LOW** | Cosmetic or non-functional issue. | **Record in backlog for future fix.** |
|
|
21
|
+
|
|
22
|
+
## Hypotheses Quality Checklist
|
|
23
|
+
|
|
24
|
+
- [ ] **Broad Spectrum:** Did you list at least 4 hypotheses?
|
|
25
|
+
- [ ] **Zebra Presence:** Did you include at least one non-obvious cause?
|
|
26
|
+
- [ ] **Mutual Exclusivity:** Are the hypotheses distinct, or are they different symptoms of the same cause?
|
|
27
|
+
- [ ] **Executable Verification:** Is there at least one test for each that uses a project tool or command?
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Systematic Debugging Templates
|
|
2
|
+
|
|
3
|
+
Use this template for reporting findings during a Differential Diagnosis (DDx) session.
|
|
4
|
+
|
|
5
|
+
## Differential Diagnosis Report
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
### 1. Problem Representation
|
|
9
|
+
**Symptom:** [User's description]
|
|
10
|
+
**System:** [Brief context]
|
|
11
|
+
**Refined Representation:** [Engineering terminology for the problem]
|
|
12
|
+
|
|
13
|
+
### 2. Hypotheses (Differential Diagnosis)
|
|
14
|
+
1. **[Hypothesis 1]** (Probability: High) - [Brief reasoning]
|
|
15
|
+
2. **[Hypothesis 2]** (Probability: Medium) - [Brief reasoning]
|
|
16
|
+
3. **[Hypothesis 3]** (Probability: Medium) - [Brief reasoning]
|
|
17
|
+
4. **[Hypothesis 4]** (Probability: Low) - [Brief reasoning]
|
|
18
|
+
5. **[Hypothesis 5 (ZEBRA)]** (Probability: Very Low) - [Brief reasoning]
|
|
19
|
+
|
|
20
|
+
### 3. Top 3 Illness Scripts
|
|
21
|
+
1. **[Hypothesis 1]:** [How it manifests in metrics/logs]
|
|
22
|
+
2. **[Hypothesis 2]:** [How it manifests in metrics/logs]
|
|
23
|
+
3. **[Hypothesis 3]:** [How it manifests in metrics/logs]
|
|
24
|
+
|
|
25
|
+
### 4. Diagnostic Tests & Verified Results
|
|
26
|
+
| Hypothesis | Diagnostic Test | Result (Verified/Simulated) | Finding |
|
|
27
|
+
| :--- | :--- | :--- | :--- |
|
|
28
|
+
| **H1** | [Executable test] | [Positive/Negative] | [What was found] |
|
|
29
|
+
| **H2** | [Executable test] | [Positive/Negative] | [What was found] |
|
|
30
|
+
| **H3** | [Executable test] | [Positive/Negative] | [What was found] |
|
|
31
|
+
|
|
32
|
+
### 5. Probable Diagnosis
|
|
33
|
+
**Conclusion:** [State the most likely root cause based on findings]
|
|
34
|
+
**Confidence Score:** [0-100%]
|
|
35
|
+
|
|
36
|
+
### 6. Treatment Plan
|
|
37
|
+
**Immediate Mitigation:** [Specific action to restore service]
|
|
38
|
+
**Long-term Fix:** [Specific action to prevent recurrence]
|
|
39
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generate PR Description
|
|
2
|
+
|
|
3
|
+
Create a pull request description based on the actual PR changes.
|
|
4
|
+
|
|
5
|
+
## Procedure
|
|
6
|
+
|
|
7
|
+
1. Identify the PR.
|
|
8
|
+
2. Gather diff, commit history, and metadata.
|
|
9
|
+
3. Analyze what changed, why it changed, and reviewer-relevant impact.
|
|
10
|
+
4. Generate the description using `references/pr-template.md`.
|
|
11
|
+
5. Show the draft to the user before updating the PR.
|
|
12
|
+
|
|
13
|
+
## Rules
|
|
14
|
+
|
|
15
|
+
- Focus on why, not just what.
|
|
16
|
+
- Be specific about impact, testing, and reviewer guidance.
|
|
17
|
+
- Highlight breaking changes, security implications, and rollout concerns when present.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
```markdown
|
|
2
|
+
## Summary
|
|
3
|
+
|
|
4
|
+
[2-3 sentence overview of what the PR does and why]
|
|
5
|
+
|
|
6
|
+
## Changes
|
|
7
|
+
|
|
8
|
+
Key changes:
|
|
9
|
+
- [Specific change with rationale]
|
|
10
|
+
- [Specific change with rationale]
|
|
11
|
+
|
|
12
|
+
Files changed:
|
|
13
|
+
- `path/to/file.ext` - [What changed and why]
|
|
14
|
+
|
|
15
|
+
## Motivation
|
|
16
|
+
|
|
17
|
+
[Problem solved or requirement fulfilled]
|
|
18
|
+
|
|
19
|
+
## Implementation Details
|
|
20
|
+
|
|
21
|
+
[Key decisions and tradeoffs]
|
|
22
|
+
|
|
23
|
+
## Related
|
|
24
|
+
|
|
25
|
+
- Issue: [reference if applicable]
|
|
26
|
+
- Plan: `plans/...` [if applicable]
|
|
27
|
+
- Design doc: `docs/...` [if applicable]
|
|
28
|
+
- Depends on: [PR or issue]
|
|
29
|
+
- Blocks: [PR or issue]
|
|
30
|
+
|
|
31
|
+
## Testing
|
|
32
|
+
|
|
33
|
+
Automated:
|
|
34
|
+
- [ ] [Command or suite]
|
|
35
|
+
|
|
36
|
+
Manual:
|
|
37
|
+
- [ ] [Verification step]
|
|
38
|
+
|
|
39
|
+
## Breaking Changes
|
|
40
|
+
|
|
41
|
+
[List them, or state none]
|
|
42
|
+
|
|
43
|
+
## Security Considerations
|
|
44
|
+
|
|
45
|
+
[List them, or state none]
|
|
46
|
+
|
|
47
|
+
## Performance Impact
|
|
48
|
+
|
|
49
|
+
[List them, or state none]
|
|
50
|
+
|
|
51
|
+
## Rollout Plan
|
|
52
|
+
|
|
53
|
+
[If needed]
|
|
54
|
+
|
|
55
|
+
## Follow-up Work
|
|
56
|
+
|
|
57
|
+
- [ ] [Follow-up]
|
|
58
|
+
|
|
59
|
+
## Reviewer Notes
|
|
60
|
+
|
|
61
|
+
[What reviewers should focus on]
|
|
62
|
+
```
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
Apply the 6-phase design framework to understand a problem before implementing a solution.
|
|
2
|
+
|
|
3
|
+
## Phases
|
|
4
|
+
|
|
5
|
+
Work through each phase sequentially. Do not skip phases. The goal is understanding, not artifacts.
|
|
6
|
+
|
|
7
|
+
### PHASE 1: DESCRIBE (Symptoms)
|
|
8
|
+
|
|
9
|
+
**Objective:** Capture the reality without imposing solutions.
|
|
10
|
+
|
|
11
|
+
1. **Gather signals:**
|
|
12
|
+
- What symptoms are observed? (errors, complaints, metrics)
|
|
13
|
+
- Where do they occur? (files, components, conditions)
|
|
14
|
+
- When did they start? (commits, deployments, changes)
|
|
15
|
+
- Who is affected? (users, systems, processes)
|
|
16
|
+
|
|
17
|
+
2. **Write a neutral description:**
|
|
18
|
+
- Facts only, no speculation on causes
|
|
19
|
+
- No mention of solutions
|
|
20
|
+
- Observable behaviors, not interpretations
|
|
21
|
+
|
|
22
|
+
**Output format:**
|
|
23
|
+
```
|
|
24
|
+
## Description
|
|
25
|
+
|
|
26
|
+
### Observed Symptoms
|
|
27
|
+
- [Symptom 1]: [Where/When observed]
|
|
28
|
+
- [Symptom 2]: [Where/When observed]
|
|
29
|
+
|
|
30
|
+
### Signal Sources
|
|
31
|
+
- [Bug reports, logs, user complaints, metrics]
|
|
32
|
+
|
|
33
|
+
### Timeline
|
|
34
|
+
- [When symptoms first appeared, any patterns]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Anti-patterns to avoid:**
|
|
38
|
+
- "The database is slow" (diagnosis, not description)
|
|
39
|
+
- "We need to add caching" (solution, not description)
|
|
40
|
+
- "Users are confused by the UI" (interpretation, not observation)
|
|
41
|
+
|
|
42
|
+
**Correct examples:**
|
|
43
|
+
- "Page load time exceeds 5s when user count > 100"
|
|
44
|
+
- "Error rate increased from 0.1% to 2.3% after deploy on Jan 15"
|
|
45
|
+
- "Users submit support tickets asking how to find the export button"
|
|
46
|
+
|
|
47
|
+
### PHASE 2: DIAGNOSE (Root Cause)
|
|
48
|
+
|
|
49
|
+
**Objective:** Identify the mechanism causing the symptoms.
|
|
50
|
+
|
|
51
|
+
1. **Generate multiple hypotheses:**
|
|
52
|
+
- List at least 3 possible causes
|
|
53
|
+
- "If I only have one hypothesis, I'm probably wrong"
|
|
54
|
+
|
|
55
|
+
2. **Test hypotheses systematically:**
|
|
56
|
+
- Use logic to rule things out (negative progress)
|
|
57
|
+
- Use evidence to support remaining hypotheses
|
|
58
|
+
- Divide and conquer (git bisect, component isolation)
|
|
59
|
+
|
|
60
|
+
3. **Write the Problem Statement:**
|
|
61
|
+
|
|
62
|
+
**Problem Statement Template:**
|
|
63
|
+
```
|
|
64
|
+
## Problem Statement
|
|
65
|
+
|
|
66
|
+
**Current behavior:** [What happens now - factual]
|
|
67
|
+
|
|
68
|
+
**Mechanism:** [Root cause - how/why it happens]
|
|
69
|
+
|
|
70
|
+
**Evidence:**
|
|
71
|
+
- [Fact supporting this diagnosis]
|
|
72
|
+
- [Fact supporting this diagnosis]
|
|
73
|
+
|
|
74
|
+
**Ruled out:**
|
|
75
|
+
- [Hypothesis A]: [Why it's not this]
|
|
76
|
+
- [Hypothesis B]: [Why it's not this]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Quality check:** The solution should feel obvious after writing the right problem statement. If it doesn't, the diagnosis is incomplete.
|
|
80
|
+
|
|
81
|
+
### PHASE 3: DELIMIT (Scope)
|
|
82
|
+
|
|
83
|
+
**Objective:** Define what's in and what's out.
|
|
84
|
+
|
|
85
|
+
1. **Set explicit boundaries:**
|
|
86
|
+
- What subset of the problem will we solve?
|
|
87
|
+
- What constraints do we accept?
|
|
88
|
+
- What's explicitly NOT being addressed?
|
|
89
|
+
|
|
90
|
+
2. **Document non-goals:**
|
|
91
|
+
- Future considerations
|
|
92
|
+
- Related problems not in scope
|
|
93
|
+
- Nice-to-haves deferred
|
|
94
|
+
|
|
95
|
+
**Output format:**
|
|
96
|
+
```
|
|
97
|
+
## Scope
|
|
98
|
+
|
|
99
|
+
### In Scope
|
|
100
|
+
- [What we will address]
|
|
101
|
+
- [Specific constraints we'll work within]
|
|
102
|
+
|
|
103
|
+
### Out of Scope (Non-Goals)
|
|
104
|
+
- [What we explicitly won't do]
|
|
105
|
+
- [Why it's deferred]
|
|
106
|
+
|
|
107
|
+
### Constraints
|
|
108
|
+
- [Technical limitations]
|
|
109
|
+
- [Time/resource constraints]
|
|
110
|
+
- [Compatibility requirements]
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**Why this matters:** Prevents scope creep. Sets the "physics" of the project before considering solutions.
|
|
114
|
+
|
|
115
|
+
### PHASE 4: DIRECTION (Strategic Approach)
|
|
116
|
+
|
|
117
|
+
**Objective:** Select the best approach from viable alternatives.
|
|
118
|
+
|
|
119
|
+
1. **Generate multiple approaches:**
|
|
120
|
+
- **Status Quo**: Always include "do nothing" as baseline
|
|
121
|
+
- **Approach A**: [First viable approach]
|
|
122
|
+
- **Approach B**: [Different viable approach]
|
|
123
|
+
- **Approach C**: [If applicable]
|
|
124
|
+
|
|
125
|
+
2. **Build a Decision Matrix:**
|
|
126
|
+
|
|
127
|
+
**Decision Matrix Structure:**
|
|
128
|
+
```
|
|
129
|
+
## Decision Matrix
|
|
130
|
+
|
|
131
|
+
| Criterion | Status Quo | Approach A | Approach B |
|
|
132
|
+
|-----------|------------|------------|------------|
|
|
133
|
+
| [Criterion 1] | [Fact] | [Fact] | [Fact] |
|
|
134
|
+
| [Criterion 2] | [Fact] | [Fact] | [Fact] |
|
|
135
|
+
| [Criterion 3] | [Fact] | [Fact] | [Fact] |
|
|
136
|
+
|
|
137
|
+
### Criteria Definitions
|
|
138
|
+
- **[Criterion 1]**: [What this measures]
|
|
139
|
+
- **[Criterion 2]**: [What this measures]
|
|
140
|
+
|
|
141
|
+
### Assessment Key
|
|
142
|
+
- Green: Desirable
|
|
143
|
+
- Yellow: Acceptable with trade-offs
|
|
144
|
+
- Red: Problematic or blocking
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
**Rules for Decision Matrix:**
|
|
148
|
+
- Text is FACT (neutral, objective descriptions)
|
|
149
|
+
- Color/assessment is JUDGMENT (subjective evaluation)
|
|
150
|
+
- Status Quo is always the first column
|
|
151
|
+
- Each cell must be specific, not "good" or "bad"
|
|
152
|
+
|
|
153
|
+
3. **Select and justify:**
|
|
154
|
+
```
|
|
155
|
+
### Decision
|
|
156
|
+
|
|
157
|
+
**Selected approach:** [Approach name]
|
|
158
|
+
|
|
159
|
+
**Rationale:** [Why this approach best addresses the scoped problem]
|
|
160
|
+
|
|
161
|
+
**Trade-offs accepted:** [What we're giving up]
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### PHASE 5: DESIGN (Tactical Plan)
|
|
165
|
+
|
|
166
|
+
**Objective:** Create detailed blueprint for implementation.
|
|
167
|
+
|
|
168
|
+
Only after Direction is selected:
|
|
169
|
+
|
|
170
|
+
1. **Define specifics:**
|
|
171
|
+
- Data structures and schemas
|
|
172
|
+
- API signatures and contracts
|
|
173
|
+
- Component responsibilities
|
|
174
|
+
- Error handling approach
|
|
175
|
+
- Edge cases
|
|
176
|
+
|
|
177
|
+
2. **Write Implementation Plan:**
|
|
178
|
+
|
|
179
|
+
Use the standard implementation plan format with:
|
|
180
|
+
- Phases that can be independently verified
|
|
181
|
+
- TDD approach (tests before implementation)
|
|
182
|
+
- Specific file paths and changes
|
|
183
|
+
- Success criteria for each phase
|
|
184
|
+
|
|
185
|
+
**Hammock time:** Write the plan, then sleep on it. Read it the next day before proceeding.
|
|
186
|
+
|
|
187
|
+
### PHASE 6: DEVELOP (Execute)
|
|
188
|
+
|
|
189
|
+
**Objective:** Translate design into working code.
|
|
190
|
+
|
|
191
|
+
If Phases 1-5 were rigorous, this phase should feel mechanical:
|
|
192
|
+
- Follow the plan
|
|
193
|
+
- Write tests first
|
|
194
|
+
- Implement to pass tests
|
|
195
|
+
- Verify against success criteria
|
|
196
|
+
|
|
197
|
+
**If you're struggling in this phase:** Return to earlier phases. Struggling to code usually means the design is incomplete.
|
|
198
|
+
|
|
199
|
+
## Process Rules
|
|
200
|
+
|
|
201
|
+
1. **No phase skipping:** Each phase builds on the previous
|
|
202
|
+
2. **Artifacts are thinking tools:** Not bureaucracy, but aids to understanding
|
|
203
|
+
3. **Hammock time:** Sleep on ideas before committing to them
|
|
204
|
+
4. **Multiple hypotheses:** One idea is a trap; generate alternatives
|
|
205
|
+
5. **Incremental over iterative:** Understand → Design → Code → Value (not Code → Fail → Learn)
|
|
206
|
+
|
|
207
|
+
## When to Return to Earlier Phases
|
|
208
|
+
|
|
209
|
+
- **Can't write Problem Statement clearly** → Back to Describe (need more symptoms)
|
|
210
|
+
- **Solution doesn't feel obvious** → Back to Diagnose (incomplete root cause)
|
|
211
|
+
- **Scope keeps expanding** → Back to Delimit (boundaries not firm)
|
|
212
|
+
- **Can't choose between approaches** → Back to Direction (need more criteria or research)
|
|
213
|
+
- **Implementation keeps hitting surprises** → Back to Design (missing edge cases)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Design Artifact Review
|
|
2
|
+
|
|
3
|
+
Review design artifacts for rigor, completeness, and adherence to Design in Practice principles.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
- If an artifact path is provided, read it completely.
|
|
8
|
+
- If no path is provided, ask which artifact to review or list available design documents.
|
|
9
|
+
|
|
10
|
+
## Procedure
|
|
11
|
+
|
|
12
|
+
1. Identify the artifact type:
|
|
13
|
+
- Problem statement
|
|
14
|
+
- Decision matrix
|
|
15
|
+
- Scope document
|
|
16
|
+
- Full design package
|
|
17
|
+
2. Run the appropriate review:
|
|
18
|
+
- For problem statements, use `references/problem-statement.md`.
|
|
19
|
+
- For decision matrices, use `references/decision-matrix.md`.
|
|
20
|
+
- For scope documents, use `references/scope-document.md`.
|
|
21
|
+
- For full design packages, use `references/combined-review.md`.
|
|
22
|
+
3. Generate the final output using `references/report-template.md`.
|
|
23
|
+
|
|
24
|
+
## Rules
|
|
25
|
+
|
|
26
|
+
- Reference exact evidence from the artifact.
|
|
27
|
+
- Use the artifact-specific output format from the reference file.
|
|
28
|
+
- Prefer the most critical issue over exhaustive nitpicks.
|
|
29
|
+
- If multiple artifacts are supplied, review each individually before synthesizing.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## Full Design Package Review
|
|
2
|
+
|
|
3
|
+
Use this when reviewing multiple related artifacts together.
|
|
4
|
+
|
|
5
|
+
### Alignment Check
|
|
6
|
+
|
|
7
|
+
Validate:
|
|
8
|
+
- The problem statement describes the actual problem without embedding the solution.
|
|
9
|
+
- The decision matrix evaluates approaches that actually address that problem.
|
|
10
|
+
- The scope document or plan respects the chosen approach and non-goals.
|
|
11
|
+
|
|
12
|
+
Output:
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
## Alignment Review
|
|
16
|
+
|
|
17
|
+
Problem -> Options alignment:
|
|
18
|
+
- [Evidence of alignment or drift]
|
|
19
|
+
|
|
20
|
+
Decision -> Scope alignment:
|
|
21
|
+
- [Evidence of scope adherence or creep]
|
|
22
|
+
|
|
23
|
+
Decision -> Plan execution:
|
|
24
|
+
- [Does the plan execute on the decision rationale?]
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Use the artifact-specific references first, then append this alignment section before the final report.
|