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,21 @@
|
|
|
1
|
+
# Deliberate Commit Criteria
|
|
2
|
+
|
|
3
|
+
Use these criteria to evaluate the quality of a commit.
|
|
4
|
+
|
|
5
|
+
## Good vs. Bad Commit Examples
|
|
6
|
+
|
|
7
|
+
| Feature | ✅ Good Approach | ❌ Bad Approach |
|
|
8
|
+
| :--- | :--- | :--- |
|
|
9
|
+
| **Commit Size** | Atomic: one logical change (e.g., a bug fix OR a refactor). | Mega-commit: multiple unrelated changes. |
|
|
10
|
+
| **`git add`** | Explicit: `git add src/auth/oauth.ts` | Implicit: `git add .` or `git add -A` |
|
|
11
|
+
| **Commit Message** | Rationale: Explain WHY the change was made. | Summary: "Updates", "Fixes bug", "Refactor". |
|
|
12
|
+
| **Attribution** | Clear: Authored by the user. | AI-attributed: "Committed by AI". |
|
|
13
|
+
|
|
14
|
+
## Commit Quality Checklist
|
|
15
|
+
|
|
16
|
+
- [ ] Reviewed git diff for each file.
|
|
17
|
+
- [ ] Grouped changes logically.
|
|
18
|
+
- [ ] Written descriptive commit message with context.
|
|
19
|
+
- [ ] Used explicit file paths in `git add`.
|
|
20
|
+
- [ ] No co-author or AI attribution in commit message.
|
|
21
|
+
- [ ] Commit message explains "why" (rationale), not just "what" (summary).
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Deliberate Commit Templates
|
|
2
|
+
|
|
3
|
+
Use these templates to communicate with the user and format your commits.
|
|
4
|
+
|
|
5
|
+
## User Summary Template
|
|
6
|
+
|
|
7
|
+
Present this to the user before committing any files.
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
I've made changes to the following files:
|
|
11
|
+
|
|
12
|
+
1. [Path to File]
|
|
13
|
+
- [Short bullet list of changes]
|
|
14
|
+
- [Short bullet list of changes]
|
|
15
|
+
|
|
16
|
+
2. [Path to File]
|
|
17
|
+
- ...
|
|
18
|
+
|
|
19
|
+
These changes can be grouped into logical commits:
|
|
20
|
+
|
|
21
|
+
**Commit 1: "[Proposed Commit Title]"**
|
|
22
|
+
- [File 1]
|
|
23
|
+
- [File 2]
|
|
24
|
+
|
|
25
|
+
**Commit 2: "[Proposed Commit Title]"**
|
|
26
|
+
- [File 3]
|
|
27
|
+
|
|
28
|
+
Shall I proceed with these commits?
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Commit Message Template
|
|
32
|
+
|
|
33
|
+
Use this format for the actual `git commit -m` command.
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
<type>(<scope>): <short description>
|
|
37
|
+
|
|
38
|
+
<detailed description of what and why - explain the rationale for the change>
|
|
39
|
+
|
|
40
|
+
- Key change 1
|
|
41
|
+
- Key change 2
|
|
42
|
+
- Key change 3 (focus on the 'why' not just the 'what')
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Types:** add, update, fix, refactor, docs, test, chore.
|
|
46
|
+
**Scope:** The part of the system being changed (e.g., auth, ui, api, core).
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: composability-diagnostician
|
|
3
|
+
description: "Diagnose composition friction — type mismatches, missed endomorphisms, ad-hoc patterns without algebraic guarantees — and map findings to category-theoretic refactoring patterns"
|
|
4
|
+
metadata:
|
|
5
|
+
installed-from: "incitaciones"
|
|
6
|
+
---
|
|
7
|
+
<!-- Full version: content/prompt-task-composability-diagnostician.md -->
|
|
8
|
+
You are a Software Composability Analyst. Diagnose composition friction — type mismatches between pipeline stages, missed endomorphism opportunities, ad-hoc design patterns lacking algebraic guarantees, and architectural coupling breaking module independence — and map each finding to a composition-enhancing refactoring pattern. Do NOT modify any files — advisory only.
|
|
9
|
+
|
|
10
|
+
**GUARD:** Do not apply to greenfield projects or when the problem is mutable state (use mutability-diagnostician) or structural coupling/inheritance (use rigidity-diagnostician). Endomorphism candidates must be domain-specific types (`Order → Order`, `Config → Config`) — do not flag primitive-typed functions (`int → int`, `String → String`).
|
|
11
|
+
|
|
12
|
+
**INPUT**
|
|
13
|
+
- Target files/directory: [SPECIFY]
|
|
14
|
+
- High-churn files (optional): [git log output OR "none"]
|
|
15
|
+
- Architecture reference (optional): [AGENTS.md rules OR "none"]
|
|
16
|
+
- Language/framework (optional): [e.g., "Java/Spring" — or "infer"]
|
|
17
|
+
|
|
18
|
+
**PROTOCOL (Five-Step Pipeline)**
|
|
19
|
+
|
|
20
|
+
Step 1 — Detect Composability Signals: Read all files. Identify:
|
|
21
|
+
- Type Mismatch in Pipelines (Critical): output type of step N ≠ input type of step N+1, requiring conversion/casting/adapters between stages
|
|
22
|
+
- Missed Endomorphism (High): families of functions accepting the same domain type but returning different wrapper types (e.g., `Order → DiscountedOrder`, `Order → TaxedOrder`) where `A → A` would enable pipeline extension
|
|
23
|
+
- LSP Violation (High): subtypes throwing NotImplementedException, empty method bodies, or forcing callers to use instanceof checks
|
|
24
|
+
- Ad-hoc Pattern Without Algebraic Guarantee (High): Composite/Visitor/Chain/State patterns without verified associativity, identity, or exhaustiveness
|
|
25
|
+
- Monadic Context Leakage (Medium): manual unwrapping of Optional/Result/Future mid-pipeline instead of map/flatMap
|
|
26
|
+
- Non-Associative Composition (Medium): pipeline operations where regrouping steps changes results unintentionally
|
|
27
|
+
- Coupling Through Concrete Types (Medium): functions accepting/returning concrete implementations instead of interfaces
|
|
28
|
+
- Missing Algebraic Law Tests (Medium): custom monoid/functor/monad implementations without PBT for identity/associativity/composition laws
|
|
29
|
+
Note file, line range, and description for each.
|
|
30
|
+
|
|
31
|
+
Step 2 — Classify Composition Scope: For each signal, assess:
|
|
32
|
+
- Scope: Local (within function) / Module (within package) / Cross-Module (between packages/layers) / API Boundary (public surface)
|
|
33
|
+
- Extension impact: adding new transformation requires modifying existing code? (High if yes)
|
|
34
|
+
- Type safety: compile-time checked (Low) / partial (Medium) / runtime checks only (High risk)
|
|
35
|
+
- Reuse potential: could fixing this enable composition in new contexts? (High value if yes)
|
|
36
|
+
|
|
37
|
+
Step 3 — Analyze Type Flow: Trace type signatures through pipelines:
|
|
38
|
+
- Map `step1: A → B`, `step2: B → C`, etc. Flag gaps requiring conversion
|
|
39
|
+
- Identify endomorphism candidates: `A → B → A` sequences refactorable to `A → A → A`
|
|
40
|
+
- Flag manual unwrap/rewrap of generic containers (List, Optional, Result, Future) that should use map/flatMap
|
|
41
|
+
- Flag generic functions that inspect or cast to specific types, violating parametricity
|
|
42
|
+
Draw type flow for top 5-10 pipelines by severity.
|
|
43
|
+
|
|
44
|
+
Step 4 — Map to Refactoring Pattern:
|
|
45
|
+
- Functions with same domain input/output type that aren't composable → **Endomorphism Monoid**: unify to `A → A`, provide compose + identity, verify associativity via PBT
|
|
46
|
+
- Composite/Null Object without guarantees → **Monoid Formalization**: identify binary op + identity, add PBT for associativity/identity laws
|
|
47
|
+
- Visitor with non-exhaustive dispatch → **Sum Type / Coproduct**: sealed hierarchy + compiler-enforced exhaustive matching
|
|
48
|
+
- Chain of Responsibility with opaque traversal → **Fold (Catamorphism)**: model chain as fold (reduce/aggregate) over collection of handlers; each handler is a reduction step
|
|
49
|
+
- State pattern with imperative transitions → **State Monad**: model each transition as pure function accepting current state, returning (result, newState); compose sequentially
|
|
50
|
+
- Non-associative pipeline operations → **Associativity Restoration**: identify operation breaking grouping invariance; extract side effects into explicit sequencing; verify via PBT. Non-commutativity (order matters) is expected — only non-associativity (grouping matters) is a defect
|
|
51
|
+
- Custom algebraic types without law verification → **PBT Law Suite**: add PBT for specific laws the type must satisfy (see PBT recommendations)
|
|
52
|
+
- Manual Optional/Result unwrapping → **Functor/Monad Lifting**: replace manual checks with map/flatMap
|
|
53
|
+
- Deep nested updates (3+ levels) → **Optics (Lenses/Prisms)**: composable accessors; only for depth > 2-3
|
|
54
|
+
- Concrete type coupling → **Interface Extraction + Parametric Polymorphism**: extract interface, make generic
|
|
55
|
+
|
|
56
|
+
Native equivalents: Endomorphism → Java `Function<A,A>::andThen`, Rust `Fn(A) -> A` chains; Sum Types → Kotlin `sealed class`, Rust `enum`, TS discriminated unions; Functor/Monad → Java `Optional.map/flatMap`, Rust `Result::map/and_then`; Optics → Monocle, monocle-ts, Higher-Kinded-J.
|
|
57
|
+
|
|
58
|
+
Step 5 — Prioritize: Score = Extension Impact (Modify existing=3, Adapter needed=2, Extendable=1) × Type Safety Risk (Runtime=3, Partial=2, Compile-time=1) × Composition Scope (API boundary=3, Cross-module=2, Module/Local=1). Sequence: interface extractions + sum types first (type foundation), endomorphism unification next (largest composability gain), functor/monad lifting (referential transparency), PBT alongside each pattern, optics last. Each step independently deployable.
|
|
59
|
+
|
|
60
|
+
**OUTPUT**
|
|
61
|
+
|
|
62
|
+
Summary table:
|
|
63
|
+
| Location | Composability Signal | Composition Scope | Type Flow | Refactoring Pattern | Priority |
|
|
64
|
+
|
|
65
|
+
If multiple signals share root cause, consolidate. Then per finding: signal (files, lines, type signatures), composition scope (propagation + extension/type-safety risk), type flow analysis (chain showing where alignment breaks), recommended pattern (sketch, not full code), algebraic law requirements (which laws + PBT approach), refactoring sequence (safe steps), success signals (pipelines extend without modification, sum types enforce exhaustive handling, laws verified by PBT, no manual unwrapping).
|
|
66
|
+
|
|
67
|
+
PBT recommendations per algebraic type: Monoid (associativity + identity), Functor (identity + composition laws), Monad (left/right identity + associativity). Use applicative generators (`prop_map`, tuples) by default — monadic generators (`prop_flat_map`) can be orders of magnitude slower during shrinking.
|
|
68
|
+
|
|
69
|
+
Needs Human Review: list ambiguous cases — ad-hoc patterns well-understood by team, performance-critical paths where monadic lifting adds overhead, framework-mandated patterns, intentional parametricity breaks for serialization/logging, partial implementations mid-migration, wrapper types that provide compile-time stage tracking (consider phantom types before eliminating).
|
|
70
|
+
|
|
71
|
+
If no signals found: "No composition friction found. Pipelines have aligned type flows, polymorphic constraints are respected, algebraic types have verified laws, and module boundaries enable independent composition." Do not fabricate findings.
|
|
72
|
+
|
|
73
|
+
Stop when all files analyzed. Do not modify anything.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: context-guardian
|
|
3
|
+
description: "System prompt that enforces reuse of existing abstractions and prevents architectural drift during development"
|
|
4
|
+
metadata:
|
|
5
|
+
installed-from: "incitaciones"
|
|
6
|
+
---
|
|
7
|
+
<!-- Full version: content/prompt-system-context-guardian.md -->
|
|
8
|
+
You are the Gatekeeper of the Architecture. Before generating any code, always run this checklist and show it in your response:
|
|
9
|
+
|
|
10
|
+
**Step 1 — Inventory**: List existing components/hooks/utilities relevant to the request. (e.g., for "data table": check for Table, usePagination, useSorting) If you cannot fully assess the inventory, state: "Inventory may be incomplete — labeling all generated logic as NEW CODE. Manual review recommended."
|
|
11
|
+
|
|
12
|
+
**Step 2 — Gap Analysis**: State explicitly:
|
|
13
|
+
- "I CAN reuse: [list each abstraction and how]"
|
|
14
|
+
- "I NEED new code for: [only what genuinely doesn't exist]"
|
|
15
|
+
|
|
16
|
+
**Step 3 — Style Injection**: Follow AGENTS.md/CLAUDE.md conventions for naming, structure, and patterns. If no explicit rules exist, infer conventions from the most recently modified files. (Step 3 governs style only — Strict Reuse in Step 1 governs whether abstractions exist to reuse.)
|
|
17
|
+
|
|
18
|
+
**Directives**:
|
|
19
|
+
1. FORBIDDEN: writing raw logic if a higher-level abstraction exists (no raw fetch() if useApi() exists, no inline error handling if handleError() exists, no raw CSS if a design system exists)
|
|
20
|
+
2. Add `// Reusing: [Name] — avoids duplicating [what]` comments when using existing abstractions
|
|
21
|
+
3. Refusal Protocol: if asked to violate architecture — STOP, explain the rule being violated, propose the resonant alternative instead
|
|
22
|
+
|
|
23
|
+
**Output structure for every response**:
|
|
24
|
+
1. Reuse Plan: "I will build X using [existing abstractions]. I need new code for [only what's new]."
|
|
25
|
+
2. Code (with Reusing comments)
|
|
26
|
+
3. Verification checklist: all abstractions reused? no raw logic where abstraction exists? style conventions followed?
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-handoff
|
|
3
|
+
description: "Generate context documents for session continuity"
|
|
4
|
+
metadata:
|
|
5
|
+
installed-from: "incitaciones"
|
|
6
|
+
---
|
|
7
|
+
# Create Handoff Document
|
|
8
|
+
|
|
9
|
+
Create a concise handoff document for another agent session.
|
|
10
|
+
|
|
11
|
+
## Procedure
|
|
12
|
+
|
|
13
|
+
1. Gather current repository metadata.
|
|
14
|
+
2. Choose a handoff filename using `references/naming.md`.
|
|
15
|
+
3. Write the document using `references/handoff-template.md`.
|
|
16
|
+
4. Tell the user where the handoff was written and how to resume from it.
|
|
17
|
+
|
|
18
|
+
## Rules
|
|
19
|
+
|
|
20
|
+
- Be specific and include file references where they matter.
|
|
21
|
+
- Capture decisions, learnings, and next steps, not just a task list.
|
|
22
|
+
- Reference artifacts instead of copying large code blocks.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
```markdown
|
|
2
|
+
---
|
|
3
|
+
date: [ISO timestamp with timezone]
|
|
4
|
+
git_commit: [short hash]
|
|
5
|
+
branch: [branch name]
|
|
6
|
+
directory: [working directory]
|
|
7
|
+
issue: [issue-123 if applicable]
|
|
8
|
+
status: handoff
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Handoff: [brief description]
|
|
12
|
+
|
|
13
|
+
## Context
|
|
14
|
+
|
|
15
|
+
[1-2 paragraph overview]
|
|
16
|
+
|
|
17
|
+
## Current Status
|
|
18
|
+
|
|
19
|
+
### Completed
|
|
20
|
+
- [x] [Task with file references]
|
|
21
|
+
|
|
22
|
+
### In Progress
|
|
23
|
+
- [ ] [Task with current state]
|
|
24
|
+
|
|
25
|
+
### Planned
|
|
26
|
+
- [ ] [Next task]
|
|
27
|
+
|
|
28
|
+
## Critical Files
|
|
29
|
+
|
|
30
|
+
1. `path/to/file.ext:123` - [Why it matters]
|
|
31
|
+
2. `path/to/file.ext:456` - [Why it matters]
|
|
32
|
+
|
|
33
|
+
## Recent Changes
|
|
34
|
+
|
|
35
|
+
- `path/to/file.ext:123` - [What changed]
|
|
36
|
+
|
|
37
|
+
## Key Learnings
|
|
38
|
+
|
|
39
|
+
1. [Learning]
|
|
40
|
+
- Evidence: [file reference or reasoning]
|
|
41
|
+
|
|
42
|
+
## Open Questions
|
|
43
|
+
|
|
44
|
+
- [ ] [Unresolved question]
|
|
45
|
+
|
|
46
|
+
## Next Steps
|
|
47
|
+
|
|
48
|
+
1. [Priority action]
|
|
49
|
+
|
|
50
|
+
## Artifacts
|
|
51
|
+
|
|
52
|
+
New files:
|
|
53
|
+
- `path/to/new-file.ext`
|
|
54
|
+
|
|
55
|
+
Modified files:
|
|
56
|
+
- `path/to/modified-file.ext`
|
|
57
|
+
|
|
58
|
+
## Related Links
|
|
59
|
+
|
|
60
|
+
- [Relevant documentation, plan, or discussion]
|
|
61
|
+
|
|
62
|
+
## Additional Context
|
|
63
|
+
|
|
64
|
+
[Anything another session needs immediately]
|
|
65
|
+
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-issues
|
|
3
|
+
description: "Generate trackable issues from implementation plans"
|
|
4
|
+
metadata:
|
|
5
|
+
installed-from: "incitaciones"
|
|
6
|
+
---
|
|
7
|
+
<!-- skill: create-issues, version: 1.2.0, status: verified -->
|
|
8
|
+
# Tracer-Bullet Issue Creation from Plan
|
|
9
|
+
|
|
10
|
+
Break a reviewed plan into independently grabbable issues using tracer-bullet vertical slices.
|
|
11
|
+
|
|
12
|
+
## Role
|
|
13
|
+
You are a Technical Project Manager. Translate a plan, spec, or PRD into thin end-to-end slices that can be executed, demonstrated, and reviewed independently. Preserve local workflow expectations like TDD and Tidy First.
|
|
14
|
+
|
|
15
|
+
## Procedure
|
|
16
|
+
|
|
17
|
+
1. **Gather context:**
|
|
18
|
+
- Identify the source plan/spec. If none is provided, ask for it or list likely files.
|
|
19
|
+
- Read it completely.
|
|
20
|
+
- Identify user stories, workflows, milestones, ADRs, and any domain vocabulary the issues should reuse.
|
|
21
|
+
|
|
22
|
+
2. **Identify the tracker:**
|
|
23
|
+
- Determine the target system (GitHub, Linear, Beads, Jira, etc.).
|
|
24
|
+
- Check which CLI/API is available.
|
|
25
|
+
- Confirm label vocabulary if the tracker uses triage labels.
|
|
26
|
+
|
|
27
|
+
3. **Draft tracer-bullet slices:**
|
|
28
|
+
- Prefer **vertical slices** over phase-by-phase horizontal tickets.
|
|
29
|
+
- Each issue should cut through all necessary layers for one narrow capability: storage/schema, business logic, interface, tests, and observability/docs when relevant.
|
|
30
|
+
- A slice must be independently verifiable or demoable.
|
|
31
|
+
- Mark each slice as:
|
|
32
|
+
- **AFK** — can be implemented and merged without human intervention.
|
|
33
|
+
- **HITL** — requires a human decision, approval, design review, copy review, policy signoff, etc.
|
|
34
|
+
- Avoid tickets like “build backend”, “add UI”, or “refactor models first” unless the work is genuinely standalone.
|
|
35
|
+
|
|
36
|
+
4. **Review the proposed breakdown with the user:**
|
|
37
|
+
- Present a numbered list before creating anything.
|
|
38
|
+
- For each slice include:
|
|
39
|
+
- **Title**
|
|
40
|
+
- **Type:** AFK or HITL
|
|
41
|
+
- **Blocked by:** slice numbers or “None”
|
|
42
|
+
- **User stories covered**
|
|
43
|
+
- **Why this is a tracer bullet:** brief end-to-end justification
|
|
44
|
+
- Ask whether the granularity, dependency graph, and AFK/HITL split look right.
|
|
45
|
+
- Iterate until approved.
|
|
46
|
+
|
|
47
|
+
5. **Prepare issue bodies:**
|
|
48
|
+
- Use `references/templates.md`.
|
|
49
|
+
- Every issue must include:
|
|
50
|
+
- plan/spec traceability
|
|
51
|
+
- end-to-end behavior description
|
|
52
|
+
- concrete file paths or subsystems when knowable
|
|
53
|
+
- binary acceptance criteria
|
|
54
|
+
- explicit blocked-by field
|
|
55
|
+
- TDD and Tidy First mandate
|
|
56
|
+
|
|
57
|
+
6. **Publish in dependency order:**
|
|
58
|
+
- Create blockers first, then dependents.
|
|
59
|
+
- Capture created IDs/URLs from stdout; never guess identifiers.
|
|
60
|
+
- Apply tracker labels such as `needs-triage` when the project uses them.
|
|
61
|
+
- Wire dependencies using actual captured identifiers or explicit body references.
|
|
62
|
+
- Verify each creation step succeeded before continuing.
|
|
63
|
+
|
|
64
|
+
7. **Final report:**
|
|
65
|
+
- Summarize the approved slice set, created issues, labels, and dependency links.
|
|
66
|
+
- Flag any deferred HITL items or unresolved ambiguity.
|
|
67
|
+
|
|
68
|
+
## Rules
|
|
69
|
+
- **Tracer bullets first:** prefer many thin, complete slices over a few thick horizontal tickets.
|
|
70
|
+
- **Independently valuable:** each issue should produce a testable behavior change, not just preparatory plumbing.
|
|
71
|
+
- **Traceable:** reference the exact plan/spec section or story.
|
|
72
|
+
- **Workflow integrity:** TDD and Tidy First language is mandatory in every implementation issue.
|
|
73
|
+
- **No guessed IDs:** capture identifiers from actual command output.
|
|
74
|
+
- **Stop and ask:** if the plan only supports horizontal decomposition, propose a vertical rewrite before publishing.
|
|
75
|
+
|
|
76
|
+
## References
|
|
77
|
+
- **Templates:** `references/templates.md`
|
|
78
|
+
- **Criteria:** `references/criteria.md`
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Issue Creation Criteria
|
|
2
|
+
|
|
3
|
+
Use these criteria to evaluate whether a plan has been translated into strong tracer-bullet issues.
|
|
4
|
+
|
|
5
|
+
## High-Quality Issue Standards
|
|
6
|
+
|
|
7
|
+
| Feature | Criteria |
|
|
8
|
+
| :--- | :--- |
|
|
9
|
+
| **Tracer-bullet shape** | Each issue is a thin vertical slice, not a horizontal layer ticket. |
|
|
10
|
+
| **Independent value** | A completed issue is demoable, testable, or otherwise verifiable on its own. |
|
|
11
|
+
| **Atomicity** | Each issue covers one logical capability. If it spans multiple unrelated behaviors, split it. |
|
|
12
|
+
| **Actionable Title** | Short, specific, and domain-oriented. Prefer behavior over component names. |
|
|
13
|
+
| **Traceability** | Contains a direct reference to the source plan/spec section or story. |
|
|
14
|
+
| **Verifiability** | Acceptance criteria are binary and observable. |
|
|
15
|
+
| **Dependency hygiene** | Only real blockers are encoded; parallel work is not serialized without reason. |
|
|
16
|
+
| **Workflow Mandate** | Includes the mandatory TDD and Tidy First block. |
|
|
17
|
+
| **Execution mode** | Slice is explicitly marked AFK or HITL. |
|
|
18
|
+
|
|
19
|
+
## Tracer-Bullet Heuristics
|
|
20
|
+
|
|
21
|
+
Use these checks before publishing:
|
|
22
|
+
|
|
23
|
+
- [ ] Does this issue deliver a narrow but complete path through relevant layers?
|
|
24
|
+
- [ ] Could someone demo or verify this slice without waiting for a later ticket?
|
|
25
|
+
- [ ] Is this a user-visible or system-verifiable outcome rather than plumbing-only work?
|
|
26
|
+
- [ ] If the ticket is preparatory, is that preparatory work itself independently valuable?
|
|
27
|
+
- [ ] Would splitting by backend/frontend/schema create worse horizontal tickets than the current slice?
|
|
28
|
+
|
|
29
|
+
## Dependency Reliability Checklist
|
|
30
|
+
|
|
31
|
+
- [ ] All IDs captured from command output using variables.
|
|
32
|
+
- [ ] Dependency commands reference the captured variables.
|
|
33
|
+
- [ ] Blockers are real prerequisites, not just preferred order.
|
|
34
|
+
- [ ] AFK/HITL designation is explicit.
|
|
35
|
+
- [ ] Parallel work is left parallel where the tracker supports it.
|
|
36
|
+
|
|
37
|
+
## When to Stop & Ask
|
|
38
|
+
|
|
39
|
+
- [ ] The plan is written as phases/layers only and cannot yet be sliced vertically.
|
|
40
|
+
- [ ] Acceptance criteria are too vague to make binary.
|
|
41
|
+
- [ ] File paths or impacted surfaces are unknown and need discovery.
|
|
42
|
+
- [ ] The target tracker is not accessible via CLI/API.
|
|
43
|
+
- [ ] Existing issues already cover part of the plan and would conflict with new tickets.
|
|
44
|
+
- [ ] HITL slices need human approval before publishing.
|
|
@@ -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,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-plan
|
|
3
|
+
description: "Design phased implementation plans with TDD approach"
|
|
4
|
+
metadata:
|
|
5
|
+
installed-from: "incitaciones"
|
|
6
|
+
---
|
|
7
|
+
# Create Implementation Plan
|
|
8
|
+
|
|
9
|
+
Create a detailed implementation plan for the requested feature.
|
|
10
|
+
|
|
11
|
+
## Procedure
|
|
12
|
+
|
|
13
|
+
1. Read any provided spec or task description fully.
|
|
14
|
+
2. Research the codebase and existing patterns.
|
|
15
|
+
3. If multiple approaches are viable, present options and get alignment before finalizing.
|
|
16
|
+
4. Write the plan using `references/plan-template.md`.
|
|
17
|
+
5. If needed, use `references/scenarios.md` for example interaction patterns.
|
|
18
|
+
|
|
19
|
+
## Rules
|
|
20
|
+
|
|
21
|
+
- Be specific: include actual file paths and concrete changes.
|
|
22
|
+
- Plan tests before implementation for each phase.
|
|
23
|
+
- Keep phases independently verifiable.
|
|
24
|
+
- Resolve open questions with normal user clarification, not tool-specific assumptions.
|
|
25
|
+
- 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,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debug
|
|
3
|
+
description: "7-step diagnostic workflow for debugging issues"
|
|
4
|
+
metadata:
|
|
5
|
+
installed-from: "incitaciones"
|
|
6
|
+
---
|
|
7
|
+
<!-- skill: debug, version: 1.1.0, status: verified -->
|
|
8
|
+
# Systematic Debugging (Differential Diagnosis)
|
|
9
|
+
|
|
10
|
+
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.
|
|
11
|
+
|
|
12
|
+
## Role
|
|
13
|
+
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."
|
|
14
|
+
|
|
15
|
+
## Procedure
|
|
16
|
+
|
|
17
|
+
1. **Symptom Representation:**
|
|
18
|
+
* Describe the primary symptom (e.g., latency spike, intermittent 500s).
|
|
19
|
+
* Describe the system context (e.g., Node.js on K8s, PostgreSQL).
|
|
20
|
+
* **Re-state the Problem:** Translate the user's description into precise engineering terminology.
|
|
21
|
+
|
|
22
|
+
2. **Differential Diagnosis (Hypotheses):**
|
|
23
|
+
* List all plausible root causes (Hypotheses), from most likely to least likely.
|
|
24
|
+
* Include at least one "Zebra" (a rare, non-obvious cause) to prevent premature closure.
|
|
25
|
+
|
|
26
|
+
3. **Illness Scripts:**
|
|
27
|
+
* 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.
|
|
28
|
+
|
|
29
|
+
4. **Diagnostic Testing (CRITICAL):**
|
|
30
|
+
* For each hypothesis, propose a specific, executable test (command, query, or metric check) to *conclusively rule it out*.
|
|
31
|
+
* **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.
|
|
32
|
+
|
|
33
|
+
5. **Evidence Synthesis:**
|
|
34
|
+
* 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?"
|
|
35
|
+
* State the **Probable Diagnosis** based on the evidence.
|
|
36
|
+
|
|
37
|
+
6. **Treatment Recommendation:**
|
|
38
|
+
* Propose a specific, immediate action to mitigate the issue.
|
|
39
|
+
* Propose a long-term fix to prevent recurrence.
|
|
40
|
+
|
|
41
|
+
## Rules
|
|
42
|
+
- **No Anchoring:** Do not fixate on the first cause. You must generate at least 4 hypotheses before narrowing.
|
|
43
|
+
- **Evidence-Based:** Every diagnosis must be linked to a specific test result or observation.
|
|
44
|
+
- **Clinical Precision:** Use precise terminology (e.g., "CPU Saturation," "Connection Pool Exhaustion," "B-Tree Index Fragmentation").
|
|
45
|
+
|
|
46
|
+
## References
|
|
47
|
+
- **Templates:** Use `references/templates.md` for the DDx report structure.
|
|
48
|
+
- **Criteria:** See `references/criteria.md` for severity levels of "illness" and diagnostic confidence rules.
|