@oyolincc/create 0.5.0 → 0.5.1
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/package.json +1 -1
- package/templates/{monorepo/.agents/skills/grilling → hono-fullstack/.agents/skills/ask-grilling}/SKILL.md +1 -1
- package/templates/hono-fullstack/.agents/skills/build-api-and-interface-design/SKILL.md +369 -0
- package/templates/hono-fullstack/.agents/skills/build-context-engineering/SKILL.md +353 -0
- package/templates/hono-fullstack/.agents/skills/build-incremental-implementation/SKILL.md +249 -0
- package/templates/hono-fullstack/.agents/skills/build-observability-and-instrumentation/SKILL.md +239 -0
- package/templates/hono-fullstack/.agents/skills/plan-planning-and-task-breakdown/SKILL.md +257 -0
- package/templates/{monorepo/.agents/skills/prototype → hono-fullstack/.agents/skills/plan-prototype}/LOGIC.md +1 -1
- package/templates/{monorepo/.agents/skills/prototype → hono-fullstack/.agents/skills/plan-prototype}/SKILL.md +2 -2
- package/templates/hono-fullstack/.agents/skills/{prototype → plan-prototype}/UI.md +2 -2
- package/templates/{monorepo/.agents/skills/research → hono-fullstack/.agents/skills/plan-research}/SKILL.md +2 -2
- package/templates/hono-fullstack/.agents/skills/plan-using-agent-skills/SKILL.md +185 -0
- package/templates/{monorepo/.agents/skills/wayfinder → hono-fullstack/.agents/skills/plan-wayfinder}/SKILL.md +43 -29
- package/templates/hono-fullstack/.agents/skills/review-code-review-and-quality/SKILL.md +400 -0
- package/templates/hono-fullstack/.agents/skills/review-doubt-driven-development/SKILL.md +244 -0
- package/templates/hono-fullstack/.agents/skills/review-security-and-hardening/SKILL.md +216 -0
- package/templates/hono-fullstack/.agents/skills/review-security-and-hardening/references/hardening-patterns.md +331 -0
- package/templates/hono-fullstack/.agents/skills/ship-ci-cd-and-automation/SKILL.md +393 -0
- package/templates/hono-fullstack/.agents/skills/ship-deprecation-and-migration/SKILL.md +252 -0
- package/templates/hono-fullstack/.agents/skills/ship-documentation-and-adrs/SKILL.md +298 -0
- package/templates/hono-fullstack/.agents/skills/ship-git-workflow-and-versioning/SKILL.md +355 -0
- package/templates/hono-fullstack/.agents/skills/ship-shipping-and-launch/SKILL.md +336 -0
- package/templates/hono-fullstack/.agents/skills/simplify-code-simplification/SKILL.md +332 -0
- package/templates/hono-fullstack/.agents/skills/simplify-performance-optimization/SKILL.md +268 -0
- package/templates/hono-fullstack/.agents/skills/simplify-performance-optimization/references/optimization-patterns.md +250 -0
- package/templates/hono-fullstack/.agents/skills/spec-constraint-driven-development/SKILL.md +318 -0
- package/templates/hono-fullstack/.agents/skills/spec-constraint-driven-development/references/floor-guard.md +182 -0
- package/templates/hono-fullstack/.agents/skills/spec-constraint-driven-development/scripts/quality-gate.mjs +45 -0
- package/templates/hono-fullstack/.agents/skills/spec-driven-development/SKILL.md +261 -0
- package/templates/hono-fullstack/.agents/skills/test-browser-testing-with-devtools/SKILL.md +319 -0
- package/templates/hono-fullstack/.agents/skills/test-debugging-and-error-recovery/SKILL.md +300 -0
- package/templates/hono-fullstack/.agents/skills/test-driven-development/SKILL.md +400 -0
- package/templates/hono-fullstack/AGENTS.md +9 -20
- package/templates/hono-server/.agents/skills/{grilling → ask-grilling}/SKILL.md +1 -1
- package/templates/hono-server/.agents/skills/build-api-and-interface-design/SKILL.md +369 -0
- package/templates/hono-server/.agents/skills/build-context-engineering/SKILL.md +353 -0
- package/templates/hono-server/.agents/skills/build-incremental-implementation/SKILL.md +249 -0
- package/templates/hono-server/.agents/skills/build-observability-and-instrumentation/SKILL.md +239 -0
- package/templates/hono-server/.agents/skills/plan-planning-and-task-breakdown/SKILL.md +257 -0
- package/templates/hono-server/.agents/skills/{prototype → plan-prototype}/LOGIC.md +1 -1
- package/templates/hono-server/.agents/skills/{prototype → plan-prototype}/SKILL.md +2 -2
- package/templates/{monorepo/.agents/skills/prototype → hono-server/.agents/skills/plan-prototype}/UI.md +2 -2
- package/templates/{hono-fullstack/.agents/skills/research → hono-server/.agents/skills/plan-research}/SKILL.md +2 -2
- package/templates/hono-server/.agents/skills/plan-using-agent-skills/SKILL.md +185 -0
- package/templates/{hono-fullstack/.agents/skills/wayfinder → hono-server/.agents/skills/plan-wayfinder}/SKILL.md +43 -29
- package/templates/hono-server/.agents/skills/review-code-review-and-quality/SKILL.md +400 -0
- package/templates/hono-server/.agents/skills/review-doubt-driven-development/SKILL.md +244 -0
- package/templates/hono-server/.agents/skills/review-security-and-hardening/SKILL.md +216 -0
- package/templates/hono-server/.agents/skills/review-security-and-hardening/references/hardening-patterns.md +331 -0
- package/templates/hono-server/.agents/skills/ship-ci-cd-and-automation/SKILL.md +393 -0
- package/templates/hono-server/.agents/skills/ship-deprecation-and-migration/SKILL.md +252 -0
- package/templates/hono-server/.agents/skills/ship-documentation-and-adrs/SKILL.md +298 -0
- package/templates/hono-server/.agents/skills/ship-git-workflow-and-versioning/SKILL.md +355 -0
- package/templates/hono-server/.agents/skills/ship-shipping-and-launch/SKILL.md +336 -0
- package/templates/hono-server/.agents/skills/simplify-code-simplification/SKILL.md +332 -0
- package/templates/hono-server/.agents/skills/simplify-performance-optimization/SKILL.md +268 -0
- package/templates/hono-server/.agents/skills/simplify-performance-optimization/references/optimization-patterns.md +250 -0
- package/templates/hono-server/.agents/skills/spec-constraint-driven-development/SKILL.md +318 -0
- package/templates/hono-server/.agents/skills/spec-constraint-driven-development/references/floor-guard.md +182 -0
- package/templates/hono-server/.agents/skills/spec-constraint-driven-development/scripts/quality-gate.mjs +45 -0
- package/templates/hono-server/.agents/skills/spec-driven-development/SKILL.md +261 -0
- package/templates/hono-server/.agents/skills/test-browser-testing-with-devtools/SKILL.md +319 -0
- package/templates/hono-server/.agents/skills/test-debugging-and-error-recovery/SKILL.md +300 -0
- package/templates/hono-server/.agents/skills/test-driven-development/SKILL.md +400 -0
- package/templates/hono-server/AGENTS.md +9 -20
- package/templates/{hono-fullstack/.agents/skills/grilling → monorepo/.agents/skills/ask-grilling}/SKILL.md +1 -1
- package/templates/monorepo/.agents/skills/build-api-and-interface-design/SKILL.md +369 -0
- package/templates/monorepo/.agents/skills/build-context-engineering/SKILL.md +353 -0
- package/templates/monorepo/.agents/skills/build-incremental-implementation/SKILL.md +249 -0
- package/templates/monorepo/.agents/skills/build-observability-and-instrumentation/SKILL.md +239 -0
- package/templates/monorepo/.agents/skills/plan-planning-and-task-breakdown/SKILL.md +257 -0
- package/templates/{hono-fullstack/.agents/skills/prototype → monorepo/.agents/skills/plan-prototype}/LOGIC.md +1 -1
- package/templates/{hono-fullstack/.agents/skills/prototype → monorepo/.agents/skills/plan-prototype}/SKILL.md +2 -2
- package/templates/{hono-server/.agents/skills/prototype → monorepo/.agents/skills/plan-prototype}/UI.md +2 -2
- package/templates/{hono-server/.agents/skills/research → monorepo/.agents/skills/plan-research}/SKILL.md +2 -2
- package/templates/monorepo/.agents/skills/plan-using-agent-skills/SKILL.md +185 -0
- package/templates/{hono-server/.agents/skills/wayfinder → monorepo/.agents/skills/plan-wayfinder}/SKILL.md +43 -29
- package/templates/monorepo/.agents/skills/review-code-review-and-quality/SKILL.md +400 -0
- package/templates/monorepo/.agents/skills/review-doubt-driven-development/SKILL.md +244 -0
- package/templates/monorepo/.agents/skills/review-security-and-hardening/SKILL.md +216 -0
- package/templates/monorepo/.agents/skills/review-security-and-hardening/references/hardening-patterns.md +331 -0
- package/templates/monorepo/.agents/skills/ship-ci-cd-and-automation/SKILL.md +393 -0
- package/templates/monorepo/.agents/skills/ship-deprecation-and-migration/SKILL.md +252 -0
- package/templates/monorepo/.agents/skills/ship-documentation-and-adrs/SKILL.md +298 -0
- package/templates/monorepo/.agents/skills/ship-git-workflow-and-versioning/SKILL.md +355 -0
- package/templates/monorepo/.agents/skills/ship-shipping-and-launch/SKILL.md +336 -0
- package/templates/monorepo/.agents/skills/simplify-code-simplification/SKILL.md +332 -0
- package/templates/monorepo/.agents/skills/simplify-performance-optimization/SKILL.md +268 -0
- package/templates/monorepo/.agents/skills/simplify-performance-optimization/references/optimization-patterns.md +250 -0
- package/templates/monorepo/.agents/skills/spec-constraint-driven-development/SKILL.md +318 -0
- package/templates/monorepo/.agents/skills/spec-constraint-driven-development/references/floor-guard.md +182 -0
- package/templates/monorepo/.agents/skills/spec-constraint-driven-development/scripts/quality-gate.mjs +45 -0
- package/templates/monorepo/.agents/skills/spec-driven-development/SKILL.md +261 -0
- package/templates/monorepo/.agents/skills/test-browser-testing-with-devtools/SKILL.md +319 -0
- package/templates/monorepo/.agents/skills/test-debugging-and-error-recovery/SKILL.md +300 -0
- package/templates/monorepo/.agents/skills/test-driven-development/SKILL.md +400 -0
- package/templates/monorepo/AGENTS.md +9 -20
- package/templates/hono-fullstack/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
- package/templates/hono-fullstack/.agents/skills/ask-matt/SKILL.md +0 -90
- package/templates/hono-fullstack/.agents/skills/ask-matt/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/code-review/SKILL.md +0 -87
- package/templates/hono-fullstack/.agents/skills/code-review/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/codebase-design/DEEPENING.md +0 -37
- package/templates/hono-fullstack/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/templates/hono-fullstack/.agents/skills/codebase-design/SKILL.md +0 -114
- package/templates/hono-fullstack/.agents/skills/codebase-design/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/confirm-requirements/SKILL.md +0 -25
- package/templates/hono-fullstack/.agents/skills/diagnosing-bugs/SKILL.md +0 -140
- package/templates/hono-fullstack/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
- package/templates/hono-fullstack/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/templates/hono-fullstack/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/templates/hono-fullstack/.agents/skills/domain-modeling/SKILL.md +0 -74
- package/templates/hono-fullstack/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/grill-me/SKILL.md +0 -7
- package/templates/hono-fullstack/.agents/skills/grill-me/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/implement/SKILL.md +0 -15
- package/templates/hono-fullstack/.agents/skills/implement/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/templates/hono-fullstack/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
- package/templates/hono-fullstack/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
- package/templates/hono-fullstack/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/scoped-code-review/SKILL.md +0 -113
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
- package/templates/hono-fullstack/.agents/skills/tdd/SKILL.md +0 -38
- package/templates/hono-fullstack/.agents/skills/tdd/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/tdd/mocking.md +0 -59
- package/templates/hono-fullstack/.agents/skills/tdd/tests.md +0 -77
- package/templates/hono-fullstack/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
- package/templates/hono-fullstack/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
- package/templates/hono-fullstack/.agents/skills/teach/MISSION-FORMAT.md +0 -31
- package/templates/hono-fullstack/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
- package/templates/hono-fullstack/.agents/skills/teach/SKILL.md +0 -140
- package/templates/hono-fullstack/.agents/skills/teach/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/to-questionnaire/SKILL.md +0 -53
- package/templates/hono-fullstack/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/triage/AGENT-BRIEF.md +0 -207
- package/templates/hono-fullstack/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
- package/templates/hono-fullstack/.agents/skills/triage/SKILL.md +0 -112
- package/templates/hono-fullstack/.agents/skills/triage/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/wait-what/SKILL.md +0 -7
- package/templates/hono-fullstack/.agents/skills/wait-what/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/wizard/SKILL.md +0 -44
- package/templates/hono-fullstack/.agents/skills/wizard/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/wizard/template.sh +0 -204
- package/templates/hono-fullstack/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/templates/hono-fullstack/.agents/skills/writing-for-agents/SKILL.md +0 -81
- package/templates/hono-fullstack/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/docs/agents/domain.md +0 -41
- package/templates/hono-fullstack/docs/agents/issue-tracker.md +0 -30
- package/templates/hono-fullstack/docs/agents/triage-labels.md +0 -15
- package/templates/hono-server/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
- package/templates/hono-server/.agents/skills/ask-matt/SKILL.md +0 -90
- package/templates/hono-server/.agents/skills/ask-matt/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/code-review/SKILL.md +0 -87
- package/templates/hono-server/.agents/skills/code-review/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/codebase-design/DEEPENING.md +0 -37
- package/templates/hono-server/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/templates/hono-server/.agents/skills/codebase-design/SKILL.md +0 -114
- package/templates/hono-server/.agents/skills/codebase-design/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/confirm-requirements/SKILL.md +0 -25
- package/templates/hono-server/.agents/skills/diagnosing-bugs/SKILL.md +0 -140
- package/templates/hono-server/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
- package/templates/hono-server/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/templates/hono-server/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/templates/hono-server/.agents/skills/domain-modeling/SKILL.md +0 -74
- package/templates/hono-server/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/grill-me/SKILL.md +0 -7
- package/templates/hono-server/.agents/skills/grill-me/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/implement/SKILL.md +0 -15
- package/templates/hono-server/.agents/skills/implement/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/templates/hono-server/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
- package/templates/hono-server/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
- package/templates/hono-server/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/scoped-code-review/SKILL.md +0 -113
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
- package/templates/hono-server/.agents/skills/tdd/SKILL.md +0 -38
- package/templates/hono-server/.agents/skills/tdd/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/tdd/mocking.md +0 -59
- package/templates/hono-server/.agents/skills/tdd/tests.md +0 -77
- package/templates/hono-server/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
- package/templates/hono-server/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
- package/templates/hono-server/.agents/skills/teach/MISSION-FORMAT.md +0 -31
- package/templates/hono-server/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
- package/templates/hono-server/.agents/skills/teach/SKILL.md +0 -140
- package/templates/hono-server/.agents/skills/teach/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/to-questionnaire/SKILL.md +0 -53
- package/templates/hono-server/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/triage/AGENT-BRIEF.md +0 -207
- package/templates/hono-server/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
- package/templates/hono-server/.agents/skills/triage/SKILL.md +0 -112
- package/templates/hono-server/.agents/skills/triage/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/wait-what/SKILL.md +0 -7
- package/templates/hono-server/.agents/skills/wait-what/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/wizard/SKILL.md +0 -44
- package/templates/hono-server/.agents/skills/wizard/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/wizard/template.sh +0 -204
- package/templates/hono-server/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/templates/hono-server/.agents/skills/writing-for-agents/SKILL.md +0 -81
- package/templates/hono-server/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
- package/templates/hono-server/docs/agents/domain.md +0 -41
- package/templates/hono-server/docs/agents/issue-tracker.md +0 -30
- package/templates/hono-server/docs/agents/triage-labels.md +0 -15
- package/templates/monorepo/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
- package/templates/monorepo/.agents/skills/ask-matt/SKILL.md +0 -90
- package/templates/monorepo/.agents/skills/ask-matt/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/code-review/SKILL.md +0 -87
- package/templates/monorepo/.agents/skills/code-review/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/codebase-design/DEEPENING.md +0 -37
- package/templates/monorepo/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/templates/monorepo/.agents/skills/codebase-design/SKILL.md +0 -114
- package/templates/monorepo/.agents/skills/codebase-design/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/confirm-requirements/SKILL.md +0 -25
- package/templates/monorepo/.agents/skills/diagnosing-bugs/SKILL.md +0 -140
- package/templates/monorepo/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
- package/templates/monorepo/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/templates/monorepo/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/templates/monorepo/.agents/skills/domain-modeling/SKILL.md +0 -74
- package/templates/monorepo/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/grill-me/SKILL.md +0 -7
- package/templates/monorepo/.agents/skills/grill-me/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/implement/SKILL.md +0 -15
- package/templates/monorepo/.agents/skills/implement/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/templates/monorepo/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
- package/templates/monorepo/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
- package/templates/monorepo/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/scoped-code-review/SKILL.md +0 -113
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
- package/templates/monorepo/.agents/skills/tdd/SKILL.md +0 -38
- package/templates/monorepo/.agents/skills/tdd/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/tdd/mocking.md +0 -59
- package/templates/monorepo/.agents/skills/tdd/tests.md +0 -77
- package/templates/monorepo/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
- package/templates/monorepo/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
- package/templates/monorepo/.agents/skills/teach/MISSION-FORMAT.md +0 -31
- package/templates/monorepo/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
- package/templates/monorepo/.agents/skills/teach/SKILL.md +0 -140
- package/templates/monorepo/.agents/skills/teach/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/to-questionnaire/SKILL.md +0 -53
- package/templates/monorepo/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/triage/AGENT-BRIEF.md +0 -207
- package/templates/monorepo/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
- package/templates/monorepo/.agents/skills/triage/SKILL.md +0 -112
- package/templates/monorepo/.agents/skills/triage/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/wait-what/SKILL.md +0 -7
- package/templates/monorepo/.agents/skills/wait-what/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/wizard/SKILL.md +0 -44
- package/templates/monorepo/.agents/skills/wizard/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/wizard/template.sh +0 -204
- package/templates/monorepo/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/templates/monorepo/.agents/skills/writing-for-agents/SKILL.md +0 -81
- package/templates/monorepo/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
- package/templates/monorepo/docs/agents/domain.md +0 -41
- package/templates/monorepo/docs/agents/issue-tracker.md +0 -30
- package/templates/monorepo/docs/agents/triage-labels.md +0 -15
- /package/templates/hono-fullstack/.agents/skills/{grilling → ask-grilling}/agents/openai.yaml +0 -0
- /package/templates/hono-fullstack/.agents/skills/{prototype → plan-prototype}/agents/openai.yaml +0 -0
- /package/templates/hono-fullstack/.agents/skills/{research → plan-research}/agents/openai.yaml +0 -0
- /package/templates/hono-fullstack/.agents/skills/{wayfinder → plan-wayfinder}/agents/openai.yaml +0 -0
- /package/templates/hono-server/.agents/skills/{grilling → ask-grilling}/agents/openai.yaml +0 -0
- /package/templates/hono-server/.agents/skills/{prototype → plan-prototype}/agents/openai.yaml +0 -0
- /package/templates/hono-server/.agents/skills/{research → plan-research}/agents/openai.yaml +0 -0
- /package/templates/hono-server/.agents/skills/{wayfinder → plan-wayfinder}/agents/openai.yaml +0 -0
- /package/templates/monorepo/.agents/skills/{grilling → ask-grilling}/agents/openai.yaml +0 -0
- /package/templates/monorepo/.agents/skills/{prototype → plan-prototype}/agents/openai.yaml +0 -0
- /package/templates/monorepo/.agents/skills/{research → plan-research}/agents/openai.yaml +0 -0
- /package/templates/monorepo/.agents/skills/{wayfinder → plan-wayfinder}/agents/openai.yaml +0 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: build-observability-and-instrumentation
|
|
3
|
+
description: Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Observability and Instrumentation
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Code you can't observe is code you can't operate. Observability is the ability to answer "what is the system doing and why?" from the outside, using the telemetry the code emits. Instrumentation is not a post-launch add-on — it's written alongside the feature, the same way tests are. If a feature ships without telemetry, the first user-reported bug becomes archaeology instead of a query.
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
- Building any feature that will run in production
|
|
16
|
+
- Adding a new service, endpoint, background job, or external integration
|
|
17
|
+
- A production incident took too long to diagnose ("we couldn't tell what happened")
|
|
18
|
+
- Setting up or reviewing alerting rules
|
|
19
|
+
- Reviewing a PR that adds I/O, retries, queues, or cross-service calls
|
|
20
|
+
|
|
21
|
+
**NOT for:**
|
|
22
|
+
- Diagnosing a failure happening right now — use the `test-debugging-and-error-recovery` skill (observability is what makes that skill fast next time)
|
|
23
|
+
- Profiling and optimizing measured slowness — use the `simplify-performance-optimization` skill
|
|
24
|
+
- Launch-day monitoring checklists and rollback triggers — see the `ship-shipping-and-launch` skill; this skill covers the instrumentation that feeds them
|
|
25
|
+
|
|
26
|
+
## Process
|
|
27
|
+
|
|
28
|
+
### 1. Define "working" before instrumenting
|
|
29
|
+
|
|
30
|
+
Telemetry without a question is noise. Before adding any instrumentation, write down 2–4 questions an on-call engineer will ask about this feature:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
FEATURE: checkout payment retry
|
|
34
|
+
QUESTIONS ON-CALL WILL ASK:
|
|
35
|
+
1. What fraction of payments succeed on first attempt vs after retry?
|
|
36
|
+
2. When a payment fails permanently, why? (provider error? timeout? validation?)
|
|
37
|
+
3. Is the payment provider slower than usual?
|
|
38
|
+
→ Every signal below must help answer one of these.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
If you can't name the questions, you're not ready to instrument — you'll log everything and learn nothing.
|
|
42
|
+
|
|
43
|
+
### 2. Pick the right signal for each question
|
|
44
|
+
|
|
45
|
+
| Signal | Answers | Cost profile | Example |
|
|
46
|
+
|---|---|---|---|
|
|
47
|
+
| **Structured log** | "What happened in this specific case?" | Per-event; grows with traffic | `payment_failed` with provider error code |
|
|
48
|
+
| **Metric** | "How often / how fast, in aggregate?" | Fixed per series; cheap to query | p99 latency of provider calls |
|
|
49
|
+
| **Trace** | "Where did time go across services?" | Per-request; usually sampled | One slow checkout, broken down by hop |
|
|
50
|
+
|
|
51
|
+
Rule of thumb: metrics tell you **that** something is wrong, traces tell you **where**, logs tell you **why**.
|
|
52
|
+
|
|
53
|
+
### 3. Structured logging
|
|
54
|
+
|
|
55
|
+
Log events, not prose. Every log line is a JSON object with a stable event name and machine-readable fields:
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
// BAD: string interpolation — unqueryable, inconsistent
|
|
59
|
+
logger.info(`Payment ${id} failed for user ${userId} after ${n} retries`);
|
|
60
|
+
|
|
61
|
+
// GOOD: stable event name + structured fields
|
|
62
|
+
logger.warn({
|
|
63
|
+
event: 'payment_failed',
|
|
64
|
+
paymentId: id,
|
|
65
|
+
provider: 'stripe',
|
|
66
|
+
errorCode: err.code,
|
|
67
|
+
attempt: n,
|
|
68
|
+
}, 'payment failed');
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Log levels — use them consistently:**
|
|
72
|
+
|
|
73
|
+
| Level | Meaning | On-call action |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| `error` | Invariant broken; someone may need to act | Investigate |
|
|
76
|
+
| `warn` | Degraded but handled (retry succeeded, fallback used) | Watch for trends |
|
|
77
|
+
| `info` | Significant business event (order placed, job finished) | None |
|
|
78
|
+
| `debug` | Diagnostic detail | Off in production by default |
|
|
79
|
+
|
|
80
|
+
**Correlation IDs are mandatory.** Generate (or accept) a request ID at the system boundary and attach it to every log line, span, and outbound call. Without it, you cannot reconstruct a single request from interleaved logs:
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
// Express: child logger per request, ID propagated downstream
|
|
84
|
+
app.use((req, res, next) => {
|
|
85
|
+
req.id = req.headers['x-request-id'] ?? crypto.randomUUID();
|
|
86
|
+
req.log = logger.child({ requestId: req.id });
|
|
87
|
+
res.setHeader('x-request-id', req.id);
|
|
88
|
+
next();
|
|
89
|
+
});
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**When several entry points write to one log, name the entry point.** A correlation ID identifies a run; it does not say which code path started it. The same job reached by a scheduler, by a replay endpoint, and by a manual CLI run produces interchangeable lines in one sink, so attributing a line falls back to elimination — cross-reading the scheduler's history, the process table, a deploy log — and that argument holds only as long as those external records happen to still exist. Stamp the entry point where the run starts, next to the correlation ID, and propagate both the same way:
|
|
93
|
+
|
|
94
|
+
```typescript
|
|
95
|
+
// One helper for every entry point: the run's own logger carries both fields.
|
|
96
|
+
// `entryPoint`, not `source` — ECS reserves `source.*` for network fields.
|
|
97
|
+
export const runLog = (entryPoint: 'scheduler' | 'replay_endpoint' | 'cli', runId: string) =>
|
|
98
|
+
logger.child({ entryPoint, requestId: runId });
|
|
99
|
+
|
|
100
|
+
// scheduler tick -> runLog('scheduler', crypto.randomUUID())
|
|
101
|
+
// POST /jobs/:id/replay -> runLog('replay_endpoint', req.id)
|
|
102
|
+
// CLI invocation -> runLog('cli', process.env.RUN_ID ?? crypto.randomUUID())
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Both fields have to cross the same boundaries as the correlation ID — queue metadata, HTTP headers — or a worker re-derives the entry point and guesses. A field that merely correlates with an entry point is a hint, not an attribution: anything that can invoke the job can reproduce it.
|
|
106
|
+
|
|
107
|
+
**Never log secrets, tokens, passwords, or full PII.** This is a hard rule from the `review-security-and-hardening` skill — telemetry pipelines are a classic data-leak path. Allowlist fields; don't log whole request bodies.
|
|
108
|
+
|
|
109
|
+
### 4. Metrics
|
|
110
|
+
|
|
111
|
+
For request-driven services, instrument **RED** on every endpoint and every external dependency: **R**ate (requests/sec), **E**rrors (failure rate), **D**uration (latency histogram, not average). For resources (queues, pools, hosts), use **USE**: **U**tilization, **S**aturation, **E**rrors.
|
|
112
|
+
|
|
113
|
+
As with tracing, the vendor-neutral path is the OpenTelemetry metrics API (same SDK and context as step 5). The example below uses Prometheus' `prom-client` — one common backend choice, not the only one; the RED/USE and cardinality rules are identical either way.
|
|
114
|
+
|
|
115
|
+
```typescript
|
|
116
|
+
import { Histogram } from 'prom-client';
|
|
117
|
+
|
|
118
|
+
const httpDuration = new Histogram({
|
|
119
|
+
name: 'http_request_duration_seconds',
|
|
120
|
+
help: 'HTTP request duration',
|
|
121
|
+
labelNames: ['method', 'route', 'status_class'], // '2xx', not '200'
|
|
122
|
+
buckets: [0.05, 0.1, 0.25, 0.5, 1, 2.5, 5],
|
|
123
|
+
});
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Cardinality is the failure mode.** Every unique label combination is a separate time series. Labels must come from small, fixed sets (route template, status class, provider name). Never use user IDs, raw URLs, error messages, or other unbounded values as labels — that belongs in logs and traces.
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
OK as label: route="/api/tasks/:id" status_class="5xx" provider="stripe"
|
|
130
|
+
NEVER a label: user_id, email, request_id, full URL, error message text
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Track averages never, percentiles always: an average hides the 1% of users having a terrible time. Use histograms and read p50/p95/p99.
|
|
134
|
+
|
|
135
|
+
### 5. Distributed tracing
|
|
136
|
+
|
|
137
|
+
Use OpenTelemetry — it's the vendor-neutral standard, and auto-instrumentation covers HTTP, gRPC, and common DB clients with near-zero code:
|
|
138
|
+
|
|
139
|
+
```typescript
|
|
140
|
+
// tracing.ts — must be imported before anything else
|
|
141
|
+
import { NodeSDK } from '@opentelemetry/sdk-node';
|
|
142
|
+
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
|
|
143
|
+
|
|
144
|
+
const sdk = new NodeSDK({
|
|
145
|
+
serviceName: 'checkout-service',
|
|
146
|
+
instrumentations: [getNodeAutoInstrumentations()],
|
|
147
|
+
});
|
|
148
|
+
sdk.start();
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Add manual spans only around meaningful internal units of work (e.g., `applyDiscounts`, `chargeProvider`) and attach the attributes on-call will filter by. Propagate context across every async boundary — HTTP headers, queue message metadata — or the trace dies at the gap. Sample head-based at a low rate by default; keep 100% of errors if your backend supports tail sampling.
|
|
152
|
+
|
|
153
|
+
### 6. Alerting
|
|
154
|
+
|
|
155
|
+
Alert on **symptoms users feel**, not on causes:
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
SYMPTOM (page-worthy): CAUSE (dashboard, not a page):
|
|
159
|
+
error rate > 1% for 5 min CPU at 85%
|
|
160
|
+
p99 latency > 2s one pod restarted
|
|
161
|
+
queue age > 10 min disk at 70%
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Cause-based alerts fire when nothing is wrong and miss failures you didn't predict. Symptom-based alerts fire exactly when users are hurt, regardless of the cause.
|
|
165
|
+
|
|
166
|
+
Rules for every alert you create:
|
|
167
|
+
|
|
168
|
+
1. **It must be actionable.** If the response is "ignore it, it self-heals", delete the alert.
|
|
169
|
+
2. **It links to a runbook** — even three lines: what it means, first query to run, escalation path.
|
|
170
|
+
3. **It has a threshold and duration** justified by the SLO or by historical data, not by a guess.
|
|
171
|
+
4. Use two severities only: **page** (user-facing, act now) and **ticket** (degradation, act this week). A third tier becomes noise that trains people to ignore everything.
|
|
172
|
+
|
|
173
|
+
#### Writing Runbooks
|
|
174
|
+
|
|
175
|
+
Rule 2 above requires every alert to link to a runbook. A runbook's job is to answer three questions without requiring the reader to think: what is happening, what to check first, and who to call if that doesn't resolve it. Store in `docs/runbooks/` named after the alert.
|
|
176
|
+
|
|
177
|
+
**Minimum viable runbook (three lines):**
|
|
178
|
+
|
|
179
|
+
```markdown
|
|
180
|
+
# Runbook: High Error Rate on /api/tasks
|
|
181
|
+
**Means:** DB connection pool likely exhausted, or a bad deploy.
|
|
182
|
+
**First check:** `SELECT count(*) FROM pg_stat_activity WHERE backend_type = 'client backend';`
|
|
183
|
+
— if count > pool limit, see Step 2. (Swap in the equivalent for your database.)
|
|
184
|
+
**Escalate to:** #db-oncall or engineering on-call rotation.
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**When to expand beyond three lines:** add steps only when the first check alone isn't enough to decide. A five-step runbook that covers the three most common causes is better than a twenty-step document that covers every edge case and gets skimmed.
|
|
188
|
+
|
|
189
|
+
**Keep runbooks current.** Update the runbook as part of closing every incident it was used in — a stale runbook builds false confidence. If a step was wrong or missing, fix it before marking the incident resolved.
|
|
190
|
+
|
|
191
|
+
### 7. Verify the telemetry itself
|
|
192
|
+
|
|
193
|
+
Instrumentation is code; it can be wrong. Before calling the work done, trigger the paths and look at the actual output:
|
|
194
|
+
|
|
195
|
+
- Force an error in staging → find it in the logs by `requestId`, confirm fields are structured (not `[object Object]`)
|
|
196
|
+
- Send test traffic → confirm metric series appear with the expected labels and sane values
|
|
197
|
+
- Follow one request across services in the tracing UI → no broken spans
|
|
198
|
+
- Fire each new alert once (lower the threshold temporarily) → confirm it reaches the right channel and the runbook link works
|
|
199
|
+
|
|
200
|
+
## Common Rationalizations
|
|
201
|
+
|
|
202
|
+
| Rationalization | Reality |
|
|
203
|
+
|---|---|
|
|
204
|
+
| "I'll add logging after it works" | "After" becomes "after the first incident", which is the most expensive moment to discover you're blind. Instrument as you build. |
|
|
205
|
+
| "More logs = more observability" | Unstructured noise makes incidents slower, not faster. Three queryable events beat three hundred prose lines. |
|
|
206
|
+
| "console.log is fine for now" | Unstructured output can't be filtered, correlated, or alerted on. The structured logger costs five extra minutes once. |
|
|
207
|
+
| "We can just look at the dashboards when something breaks" | Dashboards built without defined questions show you everything except the answer. Start from on-call questions. |
|
|
208
|
+
| "Alert on everything important, we'll tune later" | A noisy pager trains people to ignore it. The tuning never happens; the missed real page does. |
|
|
209
|
+
| "User ID as a metric label makes debugging easier" | It also makes your metrics backend fall over. High-cardinality lookups belong in logs and traces. |
|
|
210
|
+
| "Tracing is overkill for our two services" | Two services already means cross-service latency questions logs can't answer. Auto-instrumentation makes the cost trivial. |
|
|
211
|
+
|
|
212
|
+
## Red Flags
|
|
213
|
+
|
|
214
|
+
- A feature PR with retries, queues, or external calls and zero new telemetry
|
|
215
|
+
- Log lines built by string interpolation instead of structured fields
|
|
216
|
+
- No correlation/request ID — each log line is an orphan
|
|
217
|
+
- One log stream fed by a scheduler, a webhook, and manual runs, with no field naming which one produced the line
|
|
218
|
+
- Metrics labeled with user IDs, raw URLs, or error message text (cardinality bomb)
|
|
219
|
+
- Latency tracked as an average with no percentiles
|
|
220
|
+
- Alerts that fire daily and get acknowledged without action
|
|
221
|
+
- Alerts on causes (CPU, memory) paging humans while user-facing error rate is unmonitored
|
|
222
|
+
- Secrets, tokens, or full request bodies appearing in logs
|
|
223
|
+
- "It works on my machine" as the only evidence a production feature is healthy
|
|
224
|
+
|
|
225
|
+
## Verification
|
|
226
|
+
|
|
227
|
+
After instrumenting a feature, confirm:
|
|
228
|
+
|
|
229
|
+
- [ ] The on-call questions for this feature are written down, and each signal maps to one
|
|
230
|
+
- [ ] All log output is structured (JSON), with stable event names and a correlation ID on every line
|
|
231
|
+
- [ ] Every log sink written by more than one entry point carries an entry-point field, set where the run starts and propagated with the correlation ID rather than inferred downstream
|
|
232
|
+
- [ ] No secrets, tokens, or unredacted PII in any log line (spot-check actual output)
|
|
233
|
+
- [ ] RED metrics exist for every new endpoint and every external dependency, with bounded label sets
|
|
234
|
+
- [ ] Latency is a histogram; p95/p99 are queryable
|
|
235
|
+
- [ ] A single request can be followed end-to-end in the tracing UI without broken spans
|
|
236
|
+
- [ ] Every new alert is symptom-based, has a runbook link, and was test-fired once
|
|
237
|
+
- [ ] An induced failure in staging was located via telemetry alone, without reading the source
|
|
238
|
+
|
|
239
|
+
For the at-a-glance version of this list, including the pre-launch instrumentation gate, see `../../references/observability-checklist.md`.
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-planning-and-task-breakdown
|
|
3
|
+
description: Breaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Planning and Task Breakdown
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
Decompose work into small, verifiable tasks with explicit acceptance criteria. Good task breakdown is the difference between an agent that completes work reliably and one that produces a tangled mess. Every task should be small enough to implement, test, and verify in a single focused session.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- You have a spec and need to break it into implementable units
|
|
15
|
+
- A task feels too large or vague to start
|
|
16
|
+
- Work needs to be parallelized across multiple agents or sessions
|
|
17
|
+
- You need to communicate scope to a human
|
|
18
|
+
- The implementation order isn't obvious
|
|
19
|
+
|
|
20
|
+
**When NOT to use:** Single-file changes with obvious scope, or when the spec already contains well-defined tasks.
|
|
21
|
+
|
|
22
|
+
## The Planning Process
|
|
23
|
+
|
|
24
|
+
### Step 1: Enter Plan Mode
|
|
25
|
+
|
|
26
|
+
Before writing any code, operate in read-only mode:
|
|
27
|
+
|
|
28
|
+
- Read the spec and relevant codebase sections
|
|
29
|
+
- Identify existing patterns and conventions
|
|
30
|
+
- Map dependencies between components
|
|
31
|
+
- Note risks and unknowns
|
|
32
|
+
|
|
33
|
+
**Do NOT write code during planning.** The output is a plan document saved to `docs/efforts/<effort>/plan.md` and a task list recorded in the task list target (see Output Files; default `docs/efforts/<effort>/todo.md`), not implementation.
|
|
34
|
+
|
|
35
|
+
### Step 2: Identify the Dependency Graph
|
|
36
|
+
|
|
37
|
+
Map what depends on what:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
Database schema
|
|
41
|
+
│
|
|
42
|
+
├── API models/types
|
|
43
|
+
│ │
|
|
44
|
+
│ ├── API endpoints
|
|
45
|
+
│ │ │
|
|
46
|
+
│ │ └── Frontend API client
|
|
47
|
+
│ │ │
|
|
48
|
+
│ │ └── UI components
|
|
49
|
+
│ │
|
|
50
|
+
│ └── Validation logic
|
|
51
|
+
│
|
|
52
|
+
└── Seed data / migrations
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Implementation order follows the dependency graph bottom-up: build foundations first.
|
|
56
|
+
|
|
57
|
+
### Step 3: Slice Vertically
|
|
58
|
+
|
|
59
|
+
Instead of building all the database, then all the API, then all the UI — build one complete feature path at a time:
|
|
60
|
+
|
|
61
|
+
**Bad (horizontal slicing):**
|
|
62
|
+
```
|
|
63
|
+
Task 1: Build entire database schema
|
|
64
|
+
Task 2: Build all API endpoints
|
|
65
|
+
Task 3: Build all UI components
|
|
66
|
+
Task 4: Connect everything
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Good (vertical slicing):**
|
|
70
|
+
```
|
|
71
|
+
Task 1: User can create an account (schema + API + UI for registration)
|
|
72
|
+
Task 2: User can log in (auth schema + API + UI for login)
|
|
73
|
+
Task 3: User can create a task (task schema + API + UI for creation)
|
|
74
|
+
Task 4: User can view task list (query + API + UI for list view)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Each vertical slice delivers working, testable functionality.
|
|
78
|
+
|
|
79
|
+
### Step 4: Write Tasks
|
|
80
|
+
|
|
81
|
+
Each task follows this structure, whether it lands in the markdown task list or as an item in an external tracker (see Output Files):
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
## Task [N]: [Short descriptive title]
|
|
85
|
+
|
|
86
|
+
**Description:** One paragraph explaining what this task accomplishes.
|
|
87
|
+
|
|
88
|
+
**Acceptance criteria:**
|
|
89
|
+
- [ ] [Specific, testable condition]
|
|
90
|
+
- [ ] [Specific, testable condition]
|
|
91
|
+
|
|
92
|
+
**Verification:**
|
|
93
|
+
- [ ] Tests pass: [the repository's focused-test command]
|
|
94
|
+
- [ ] Build succeeds: [the repository's build command]
|
|
95
|
+
- [ ] Manual check: [description of what to verify]
|
|
96
|
+
|
|
97
|
+
**Dependencies:** [Task numbers this depends on, or "None"]
|
|
98
|
+
|
|
99
|
+
**Files likely touched:**
|
|
100
|
+
- `src/path/to/file.ts`
|
|
101
|
+
- `tests/path/to/test.ts`
|
|
102
|
+
|
|
103
|
+
**Estimated scope:** [Small: 1-2 files | Medium: 3-5 files | Large: 5+ files]
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Step 5: Order and Checkpoint
|
|
107
|
+
|
|
108
|
+
Arrange tasks so that:
|
|
109
|
+
|
|
110
|
+
1. Dependencies are satisfied (build foundation first)
|
|
111
|
+
2. Each task leaves the system in a working state
|
|
112
|
+
3. Verification checkpoints occur after every 2-3 tasks
|
|
113
|
+
4. High-risk tasks are early (fail fast)
|
|
114
|
+
|
|
115
|
+
Add explicit checkpoints to the task list target:
|
|
116
|
+
|
|
117
|
+
```markdown
|
|
118
|
+
## Checkpoint: After Tasks 1-3
|
|
119
|
+
- [ ] All tests pass
|
|
120
|
+
- [ ] Application builds without errors
|
|
121
|
+
- [ ] Core user flow works end-to-end
|
|
122
|
+
- [ ] Review with human before proceeding
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Task Sizing Guidelines
|
|
126
|
+
|
|
127
|
+
| Size | Files | Scope | Example |
|
|
128
|
+
|------|-------|-------|---------|
|
|
129
|
+
| **XS** | 1 | Single function or config change | Add a validation rule |
|
|
130
|
+
| **S** | 1-2 | One component or endpoint | Add a new API endpoint |
|
|
131
|
+
| **M** | 3-5 | One feature slice | User registration flow |
|
|
132
|
+
| **L** | 5-8 | Multi-component feature | Search with filtering and pagination |
|
|
133
|
+
| **XL** | 8+ | **Too large — break it down further** | — |
|
|
134
|
+
|
|
135
|
+
If a task is L or larger, it should be broken into smaller tasks. An agent performs best on S and M tasks.
|
|
136
|
+
|
|
137
|
+
**When to break a task down further:**
|
|
138
|
+
- It would take more than one focused session (roughly 2+ hours of agent work)
|
|
139
|
+
- You cannot describe the acceptance criteria in 3 or fewer bullet points
|
|
140
|
+
- It touches two or more independent subsystems (e.g., auth and billing)
|
|
141
|
+
- You find yourself writing "and" in the task title (a sign it is two tasks)
|
|
142
|
+
|
|
143
|
+
## Output Files
|
|
144
|
+
|
|
145
|
+
- **Plan document:** Save the implementation plan to `docs/efforts/<effort>/plan.md`. This is always a markdown file — design decisions, risks, and open questions don't map cleanly onto individual tracker issues.
|
|
146
|
+
- **Task list:** Record each task in the **task list target** (defined below).
|
|
147
|
+
|
|
148
|
+
Create the `docs/efforts/<effort>/` directory if it does not exist.
|
|
149
|
+
|
|
150
|
+
**Never overwrite an incomplete plan.** Before writing `docs/efforts/<effort>/plan.md` or `docs/efforts/<effort>/todo.md`, check whether they already exist and still contain unchecked tasks:
|
|
151
|
+
|
|
152
|
+
- Same work being replanned (the user asked to revise or extend this plan) → update the existing files in place.
|
|
153
|
+
- Different work → **stop and ask.** The unchecked tasks may be mid-build in another session. Do not delete, overwrite, or rename the existing files on your own; present the conflict and let the user decide (finish the old plan first, explicitly discard it, or tell you where the new plan should go).
|
|
154
|
+
|
|
155
|
+
The same rule applies to an external task list target: never bulk-close or delete another plan's open tracker items to make room for new ones.
|
|
156
|
+
|
|
157
|
+
### Task List Target
|
|
158
|
+
|
|
159
|
+
The task list target is where tasks and checkpoints are recorded. It is defined once, here; every other reference in this skill defers to it.
|
|
160
|
+
|
|
161
|
+
- **Default: a checklist-style markdown file at `docs/efforts/<effort>/todo.md`.** This is the convention the `/build` command and other downstream tooling expect. Use it unless the project says otherwise.
|
|
162
|
+
- **External tracker:** if the project's agent rules (`CLAUDE.md`, `AGENTS.md`, etc.) or the user designate an issue tracker (e.g. GitHub Issues, Jira, Linear, `bd`/beads), create one tracker item per task instead of writing `docs/efforts/<effort>/todo.md`. Map the Step 4 structure onto the tracker's fields: acceptance criteria and verification steps in the item body, dependencies via the tracker's linking mechanism (`bd dep add`, "blocked by", etc.). Record Step 5 checkpoints as tracker items too, or as a checklist in the plan document if the tracker has no natural equivalent.
|
|
163
|
+
|
|
164
|
+
When using an external tracker, note it in `docs/efforts/<effort>/plan.md` (e.g. "Tasks tracked in Linear project FOO") so downstream steps and future sessions know where to look, and keep the plan document's Task List section as an ordered index of tracker item IDs or links rather than a duplicate checklist.
|
|
165
|
+
|
|
166
|
+
## Plan Document Template
|
|
167
|
+
|
|
168
|
+
```markdown
|
|
169
|
+
# Implementation Plan: [Feature/Project Name]
|
|
170
|
+
|
|
171
|
+
## Overview
|
|
172
|
+
[One paragraph summary of what we're building]
|
|
173
|
+
|
|
174
|
+
## Architecture Decisions
|
|
175
|
+
- [Key decision 1 and rationale]
|
|
176
|
+
- [Key decision 2 and rationale]
|
|
177
|
+
|
|
178
|
+
## Task List
|
|
179
|
+
|
|
180
|
+
### Phase 1: Foundation
|
|
181
|
+
- [ ] Task 1: ...
|
|
182
|
+
- [ ] Task 2: ...
|
|
183
|
+
|
|
184
|
+
### Checkpoint: Foundation
|
|
185
|
+
- [ ] Tests pass, builds clean
|
|
186
|
+
|
|
187
|
+
### Phase 2: Core Features
|
|
188
|
+
- [ ] Task 3: ...
|
|
189
|
+
- [ ] Task 4: ...
|
|
190
|
+
|
|
191
|
+
### Checkpoint: Core Features
|
|
192
|
+
- [ ] End-to-end flow works
|
|
193
|
+
|
|
194
|
+
### Phase 3: Polish
|
|
195
|
+
- [ ] Task 5: ...
|
|
196
|
+
- [ ] Task 6: ...
|
|
197
|
+
|
|
198
|
+
### Checkpoint: Complete
|
|
199
|
+
- [ ] All acceptance criteria met
|
|
200
|
+
- [ ] Ready for review
|
|
201
|
+
|
|
202
|
+
## Risks and Mitigations
|
|
203
|
+
| Risk | Impact | Mitigation |
|
|
204
|
+
|------|--------|------------|
|
|
205
|
+
| [Risk] | [High/Med/Low] | [Strategy] |
|
|
206
|
+
|
|
207
|
+
## Open Questions
|
|
208
|
+
- [Question needing human input]
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
When tasks live in an external tracker, keep the Task List section above as an ordered index of tracker item IDs or links instead of a duplicate checklist.
|
|
212
|
+
|
|
213
|
+
## Parallelization Opportunities
|
|
214
|
+
|
|
215
|
+
When multiple agents or sessions are available:
|
|
216
|
+
|
|
217
|
+
- **Safe to parallelize:** Independent feature slices, tests for already-implemented features, documentation
|
|
218
|
+
- **Must be sequential:** Database migrations, shared state changes, dependency chains
|
|
219
|
+
- **Needs coordination:** Features that share an API contract (define the contract first, then parallelize)
|
|
220
|
+
|
|
221
|
+
## Common Rationalizations
|
|
222
|
+
|
|
223
|
+
| Rationalization | Reality |
|
|
224
|
+
|---|---|
|
|
225
|
+
| "I'll figure it out as I go" | That's how you end up with a tangled mess and rework. 10 minutes of planning saves hours. |
|
|
226
|
+
| "The tasks are obvious" | Write them down anyway. Explicit tasks surface hidden dependencies and forgotten edge cases. |
|
|
227
|
+
| "Planning is overhead" | Planning is the task. Implementation without a plan is just typing. |
|
|
228
|
+
| "I can hold it all in my head" | Context windows are finite. Written plans survive session boundaries and compaction. |
|
|
229
|
+
| "The old `docs/efforts/<effort>/plan.md` is stale, I'll just replace it" | Unchecked tasks may be mid-build in another session. Overwriting them destroys work state that exists nowhere else. Stop and ask. |
|
|
230
|
+
|
|
231
|
+
## Red Flags
|
|
232
|
+
|
|
233
|
+
- Starting implementation without a written task list
|
|
234
|
+
- Overwriting a `docs/efforts/<effort>/plan.md` or `docs/efforts/<effort>/todo.md` that still has unchecked tasks for different work, without asking
|
|
235
|
+
- Writing `docs/efforts/<effort>/todo.md` when the project has designated an external tracker (or scattering tasks across both)
|
|
236
|
+
- Tasks that say "implement the feature" without acceptance criteria
|
|
237
|
+
- No verification steps in the plan
|
|
238
|
+
- All tasks are XL-sized
|
|
239
|
+
- No checkpoints between tasks
|
|
240
|
+
- Dependency order isn't considered
|
|
241
|
+
|
|
242
|
+
## Verification
|
|
243
|
+
|
|
244
|
+
Before starting implementation, confirm:
|
|
245
|
+
|
|
246
|
+
- [ ] Every task has acceptance criteria
|
|
247
|
+
- [ ] Every task has a verification step
|
|
248
|
+
- [ ] Task dependencies are identified and ordered correctly
|
|
249
|
+
- [ ] Tasks are recorded in the task list target (default `docs/efforts/<effort>/todo.md`)
|
|
250
|
+
- [ ] No pre-existing incomplete plan was overwritten without explicit user confirmation
|
|
251
|
+
- [ ] No task touches more than ~5 files
|
|
252
|
+
- [ ] Checkpoints exist between major phases
|
|
253
|
+
- [ ] The human has reviewed and approved the plan
|
|
254
|
+
|
|
255
|
+
## See Also
|
|
256
|
+
|
|
257
|
+
Acceptance criteria are per-task and answer "did we build the right thing?". They sit on top of the project-wide Definition of Done, the standing bar every task clears before it counts as done. See `../../references/definition-of-done.md`.
|
|
@@ -55,7 +55,7 @@ Send them the file, or open it for them. They'll click through the walkthroughs
|
|
|
55
55
|
|
|
56
56
|
### 5. Capture the answer and the prototype
|
|
57
57
|
|
|
58
|
-
Once the prototype has answered its question, capture the answer, then capture the prototype the way the [SKILL](SKILL.md) describes.
|
|
58
|
+
Once the prototype has answered its question, capture the answer, then capture the prototype the way the [SKILL](SKILL.md) describes. Keep the self-contained HTML file as a reproducible asset linked from the decision record. When implementation is authorized, integrate the validated reducer / machine / function set into the real module.
|
|
59
59
|
|
|
60
60
|
## Anti-patterns
|
|
61
61
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: prototype
|
|
2
|
+
name: plan-prototype
|
|
3
3
|
description: Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -23,4 +23,4 @@ The two branches produce very different artifacts — getting this wrong wastes
|
|
|
23
23
|
3. **No persistence by default.** State lives in memory. Persistence is the thing the prototype is _checking_, not something it should depend on. If the question explicitly involves a database, hit a scratch DB or a local file with a clear "PROTOTYPE — wipe me" name.
|
|
24
24
|
4. **Skip the polish.** No tests, no error handling beyond what makes the prototype _runnable_, no abstractions. The point is to learn something fast.
|
|
25
25
|
5. **Surface the state.** After every action (logic) or on every variant switch (UI), print or render the full relevant state so the user can see what changed.
|
|
26
|
-
6. **Capture it when done.**
|
|
26
|
+
6. **Capture it when done.** Save the verdict, the question it settled, and links to the prototype and its sources in the current wayfinder ticket's answer. For a standalone session, save a sibling Markdown note. Keep standalone artifacts under the effort's `docs/efforts/<effort>/assets/` directory; for UI variants near production code, save a reproducible snapshot there before cleaning up. Apply validated changes to production only when implementation is authorized; otherwise hand off the decision and artifact. Stage, commit, or create archival branches only when explicitly requested.
|
|
@@ -97,12 +97,12 @@ Surface the URL (and the `?variant=` keys). The user will flip through whenever
|
|
|
97
97
|
|
|
98
98
|
### 6. Capture the answer and clean up
|
|
99
99
|
|
|
100
|
-
Once a variant has won, capture the answer — which variant and why — then capture the prototype the way the [SKILL](SKILL.md) describes.
|
|
100
|
+
Once a variant has won, capture the answer — which variant and why — then capture the prototype the way the [SKILL](SKILL.md) describes. Preserve a reproducible snapshot and verdict as the skill describes. When implementation is authorized:
|
|
101
101
|
|
|
102
102
|
- **Sub-shape A** — fold the winner into the existing page; drop the losing variants and the switcher from main.
|
|
103
103
|
- **Sub-shape B** — promote the winning variant to a real route; drop the throwaway route and the switcher from main.
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
Keep the full set of variants as a reproducible asset linked from the decision record. After authorized implementation, remove temporary variants and the switcher from production code.
|
|
106
106
|
|
|
107
107
|
## Anti-patterns
|
|
108
108
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: research
|
|
2
|
+
name: plan-research
|
|
3
3
|
description: Investigate a question against high-trust primary sources and capture the findings as a Markdown file in the repo. Use when the user wants a topic researched, docs or API facts gathered, or reading legwork delegated to a background agent.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -9,4 +9,4 @@ Its job:
|
|
|
9
9
|
|
|
10
10
|
1. Investigate the question against **primary sources** — official docs, source code, specs, first-party APIs — not a secondary write-up of them. Follow every claim back to the source that owns it.
|
|
11
11
|
2. Write the findings to a single Markdown file, citing each claim's source.
|
|
12
|
-
3. Save it
|
|
12
|
+
3. Save it under `docs/efforts/<effort>/assets/` by default; follow an explicitly designated location when provided, and say where.
|