specialist-agent 2.12.0 → 3.2.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 +1 -1
- package/README.md +33 -207
- package/dist/catalog.json +15529 -0
- package/dist/hw-worker.mjs +254 -0
- package/dist/icones/icone.ico +0 -0
- package/dist/icones/icone.png +0 -0
- package/dist/interface/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
- package/dist/interface/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
- package/dist/interface/assets/index-BIyqZkro.css +1 -0
- package/dist/interface/assets/index-zAegy908.js +13 -0
- package/dist/interface/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- package/dist/interface/assets/jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-500-normal-4slEIF53.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-700-normal-CaoNriVp.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-500-normal-BTIpesyw.woff2 +0 -0
- package/dist/interface/assets/unbounded-latin-ext-700-normal-BLzWLLjG.woff2 +0 -0
- package/dist/interface/icones/apple-touch-icon.png +0 -0
- package/dist/interface/icones/favicon-32.png +0 -0
- package/dist/interface/icones/icone-192.png +0 -0
- package/dist/interface/icones/icone-512.png +0 -0
- package/dist/interface/icones/icone-mascara-512.png +0 -0
- package/dist/interface/index.html +19 -0
- package/dist/interface/manifest.webmanifest +19 -0
- package/dist/interface/sw.js +63 -0
- package/dist/specialist-agent.mjs +6919 -0
- package/dist/usage-worker.mjs +174 -0
- package/package.json +32 -57
- package/.claude-plugin/marketplace.json +0 -52
- package/.claude-plugin/plugin.json +0 -37
- package/.codex/INSTALL.md +0 -145
- package/.cursor-plugin/marketplace.json +0 -52
- package/.cursor-plugin/plugin.json +0 -37
- package/.opencode/INSTALL.md +0 -127
- package/.opencode/opencode.json +0 -186
- package/agents/analyst-lite.md +0 -48
- package/agents/analyst.md +0 -396
- package/agents/api-lite.md +0 -43
- package/agents/api.md +0 -427
- package/agents/architect-lite.md +0 -104
- package/agents/architect.md +0 -571
- package/agents/autopilot-lite.md +0 -46
- package/agents/autopilot.md +0 -196
- package/agents/cloud-lite.md +0 -75
- package/agents/cloud.md +0 -213
- package/agents/data-lite.md +0 -67
- package/agents/data.md +0 -306
- package/agents/debugger-lite.md +0 -46
- package/agents/debugger.md +0 -410
- package/agents/deps-lite.md +0 -41
- package/agents/deps.md +0 -363
- package/agents/designer-lite.md +0 -67
- package/agents/designer.md +0 -195
- package/agents/devops-lite.md +0 -67
- package/agents/devops.md +0 -205
- package/agents/docs-lite.md +0 -42
- package/agents/docs.md +0 -454
- package/agents/executor-lite.md +0 -61
- package/agents/executor.md +0 -695
- package/agents/explorer-lite.md +0 -55
- package/agents/explorer.md +0 -152
- package/agents/finance-lite.md +0 -66
- package/agents/finance.md +0 -255
- package/agents/i18n-lite.md +0 -44
- package/agents/i18n.md +0 -594
- package/agents/legal-lite.md +0 -113
- package/agents/legal.md +0 -302
- package/agents/marketing-lite.md +0 -25
- package/agents/marketing.md +0 -188
- package/agents/memory.md +0 -166
- package/agents/orchestrator-lite.md +0 -40
- package/agents/orchestrator.md +0 -512
- package/agents/pair-lite.md +0 -38
- package/agents/pair.md +0 -310
- package/agents/perf-lite.md +0 -42
- package/agents/perf.md +0 -320
- package/agents/planner-lite.md +0 -59
- package/agents/planner.md +0 -272
- package/agents/product-lite.md +0 -25
- package/agents/product.md +0 -195
- package/agents/refactor-lite.md +0 -42
- package/agents/refactor.md +0 -467
- package/agents/ripple-lite.md +0 -106
- package/agents/ripple.md +0 -166
- package/agents/scout-lite.md +0 -37
- package/agents/scout.md +0 -224
- package/agents/security-lite.md +0 -66
- package/agents/security.md +0 -252
- package/agents/sentry-triage-lite.md +0 -54
- package/agents/sentry-triage.md +0 -217
- package/agents/starter-lite.md +0 -80
- package/agents/starter.md +0 -300
- package/agents/support-lite.md +0 -24
- package/agents/support.md +0 -191
- package/agents/tdd-lite.md +0 -43
- package/agents/tdd.md +0 -329
- package/agents/tester-lite.md +0 -71
- package/agents/tester.md +0 -237
- package/cli/architectures.mjs +0 -713
- package/cli/detect-architecture.mjs +0 -752
- package/cli/generate-architecture.mjs +0 -1096
- package/cli/index.mjs +0 -1217
- package/cli/recommend-architecture.mjs +0 -870
- package/hooks/after-review.mjs +0 -130
- package/hooks/after-task.mjs +0 -117
- package/hooks/before-plan.mjs +0 -155
- package/hooks/before-review.mjs +0 -139
- package/hooks/hooks.json +0 -66
- package/hooks/lifecycle.json +0 -91
- package/hooks/native/auto-dispatch.mjs +0 -207
- package/hooks/native/auto-format.mjs +0 -176
- package/hooks/native/mcp-discovery.mjs +0 -168
- package/hooks/native/security-config.json +0 -38
- package/hooks/native/security-guard.mjs +0 -323
- package/hooks/native/session-context.mjs +0 -179
- package/hooks/native/session-end.mjs +0 -42
- package/hooks/native/utils.mjs +0 -62
- package/hooks/on-error.mjs +0 -129
- package/hooks/session-end.mjs +0 -185
- package/hooks/session-start.mjs +0 -154
- package/packs/angular/ARCHITECTURE.md +0 -814
- package/packs/angular/CLAUDE.md +0 -105
- package/packs/angular/agents/builder.md +0 -113
- package/packs/angular/agents/doctor.md +0 -187
- package/packs/angular/agents/migrator.md +0 -101
- package/packs/angular/agents/reviewer.md +0 -252
- package/packs/angular/agents-lite/builder.md +0 -65
- package/packs/angular/agents-lite/doctor.md +0 -64
- package/packs/angular/agents-lite/migrator.md +0 -75
- package/packs/angular/agents-lite/reviewer.md +0 -69
- package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
- package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
- package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
- package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
- package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
- package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
- package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
- package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/angular/skills/review-review/SKILL.md +0 -43
- package/packs/astro/ARCHITECTURE.md +0 -718
- package/packs/astro/CLAUDE.md +0 -106
- package/packs/astro/agents/builder.md +0 -123
- package/packs/astro/agents/doctor.md +0 -200
- package/packs/astro/agents/migrator.md +0 -105
- package/packs/astro/agents/reviewer.md +0 -253
- package/packs/astro/agents-lite/builder.md +0 -71
- package/packs/astro/agents-lite/doctor.md +0 -66
- package/packs/astro/agents-lite/migrator.md +0 -71
- package/packs/astro/agents-lite/reviewer.md +0 -70
- package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
- package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
- package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
- package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
- package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
- package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
- package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
- package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/astro/skills/review-review/SKILL.md +0 -45
- package/packs/nextjs/ARCHITECTURE.md +0 -1033
- package/packs/nextjs/CLAUDE.md +0 -106
- package/packs/nextjs/agents/builder.md +0 -132
- package/packs/nextjs/agents/doctor.md +0 -226
- package/packs/nextjs/agents/migrator.md +0 -101
- package/packs/nextjs/agents/reviewer.md +0 -243
- package/packs/nextjs/agents-lite/builder.md +0 -74
- package/packs/nextjs/agents-lite/doctor.md +0 -74
- package/packs/nextjs/agents-lite/migrator.md +0 -75
- package/packs/nextjs/agents-lite/reviewer.md +0 -73
- package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
- package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
- package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
- package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
- package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
- package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
- package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
- package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
- package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
- package/packs/nextjs/skills/review-review/SKILL.md +0 -47
- package/packs/nuxt/ARCHITECTURE.md +0 -831
- package/packs/nuxt/CLAUDE.md +0 -111
- package/packs/nuxt/agents/builder.md +0 -120
- package/packs/nuxt/agents/doctor.md +0 -198
- package/packs/nuxt/agents/migrator.md +0 -101
- package/packs/nuxt/agents/reviewer.md +0 -255
- package/packs/nuxt/agents-lite/builder.md +0 -67
- package/packs/nuxt/agents-lite/doctor.md +0 -67
- package/packs/nuxt/agents-lite/migrator.md +0 -80
- package/packs/nuxt/agents-lite/reviewer.md +0 -71
- package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
- package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
- package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
- package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
- package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
- package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
- package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
- package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
- package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
- package/packs/nuxt/skills/review-review/SKILL.md +0 -45
- package/packs/react/ARCHITECTURE.md +0 -991
- package/packs/react/CLAUDE.md +0 -102
- package/packs/react/agents/builder.md +0 -113
- package/packs/react/agents/doctor.md +0 -203
- package/packs/react/agents/migrator.md +0 -101
- package/packs/react/agents/reviewer.md +0 -252
- package/packs/react/agents-lite/builder.md +0 -65
- package/packs/react/agents-lite/doctor.md +0 -64
- package/packs/react/agents-lite/migrator.md +0 -74
- package/packs/react/agents-lite/reviewer.md +0 -69
- package/packs/react/skills/dev-create-component/SKILL.md +0 -53
- package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
- package/packs/react/skills/dev-create-module/SKILL.md +0 -51
- package/packs/react/skills/dev-create-service/SKILL.md +0 -34
- package/packs/react/skills/dev-create-test/SKILL.md +0 -92
- package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/react/skills/docs-onboard/SKILL.md +0 -42
- package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
- package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
- package/packs/react/skills/review-review/SKILL.md +0 -44
- package/packs/svelte/ARCHITECTURE.md +0 -975
- package/packs/svelte/CLAUDE.md +0 -102
- package/packs/svelte/agents/builder.md +0 -114
- package/packs/svelte/agents/doctor.md +0 -174
- package/packs/svelte/agents/migrator.md +0 -101
- package/packs/svelte/agents/reviewer.md +0 -238
- package/packs/svelte/agents-lite/builder.md +0 -66
- package/packs/svelte/agents-lite/doctor.md +0 -67
- package/packs/svelte/agents-lite/migrator.md +0 -82
- package/packs/svelte/agents-lite/reviewer.md +0 -70
- package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
- package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
- package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
- package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
- package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
- package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
- package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
- package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
- package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
- package/packs/svelte/skills/review-review/SKILL.md +0 -45
- package/packs/vue/ARCHITECTURE.md +0 -798
- package/packs/vue/CLAUDE.md +0 -102
- package/packs/vue/agents/builder.md +0 -112
- package/packs/vue/agents/doctor.md +0 -185
- package/packs/vue/agents/migrator.md +0 -101
- package/packs/vue/agents/reviewer.md +0 -249
- package/packs/vue/agents-lite/builder.md +0 -65
- package/packs/vue/agents-lite/doctor.md +0 -63
- package/packs/vue/agents-lite/migrator.md +0 -73
- package/packs/vue/agents-lite/reviewer.md +0 -68
- package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
- package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
- package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
- package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
- package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
- package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
- package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
- package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
- package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
- package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
- package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
- package/packs/vue/skills/review-review/SKILL.md +0 -43
- package/skills/audit/SKILL.md +0 -231
- package/skills/autofix/SKILL.md +0 -166
- package/skills/autopilot/SKILL.md +0 -286
- package/skills/brainstorm/SKILL.md +0 -298
- package/skills/checkpoint/SKILL.md +0 -217
- package/skills/codereview/SKILL.md +0 -268
- package/skills/commit/SKILL.md +0 -150
- package/skills/copywriting/SKILL.md +0 -218
- package/skills/cro/SKILL.md +0 -234
- package/skills/debug/SKILL.md +0 -210
- package/skills/design-review/SKILL.md +0 -217
- package/skills/discovery/SKILL.md +0 -218
- package/skills/estimate/SKILL.md +0 -154
- package/skills/finish/SKILL.md +0 -220
- package/skills/grill/SKILL.md +0 -270
- package/skills/health/SKILL.md +0 -251
- package/skills/improve-architecture/SKILL.md +0 -205
- package/skills/learn/SKILL.md +0 -260
- package/skills/lint/SKILL.md +0 -126
- package/skills/migrate-architecture/SKILL.md +0 -242
- package/skills/migrate-framework/SKILL.md +0 -172
- package/skills/onboard/SKILL.md +0 -168
- package/skills/plan/SKILL.md +0 -141
- package/skills/prd/SKILL.md +0 -241
- package/skills/recall/SKILL.md +0 -112
- package/skills/remember/SKILL.md +0 -108
- package/skills/seo-audit/SKILL.md +0 -240
- package/skills/tdd/SKILL.md +0 -201
- package/skills/tutorial/SKILL.md +0 -346
- package/skills/verify/SKILL.md +0 -168
- package/skills/worktree/SKILL.md +0 -168
- package/skills/write-skill/SKILL.md +0 -225
- package/templates/autopilot/PROMPT.md +0 -39
- package/templates/autopilot/README.md +0 -122
- package/templates/autopilot/devcontainer.json +0 -21
- package/templates/industry/ecommerce.md +0 -127
- package/templates/industry/fintech.md +0 -161
- package/templates/industry/saas.md +0 -134
- package/templates/session-memory.json +0 -48
- package/templates/skill-template/SKILL.md +0 -90
package/agents/analyst.md
DELETED
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: analyst
|
|
3
|
-
description: "Use when requirements are ambiguous, incomplete, or need to be translated into technical specifications."
|
|
4
|
-
tools: Read, Glob, Grep, Agent
|
|
5
|
-
effort: high
|
|
6
|
-
memory: project
|
|
7
|
-
skills:
|
|
8
|
-
- prd
|
|
9
|
-
color: "#5b21b6"
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# @analyst - Business Requirements Agent
|
|
13
|
-
|
|
14
|
-
## Mission
|
|
15
|
-
|
|
16
|
-
Bridge the gap between business stakeholders and technical implementation. Transform user stories, feature requests, and business requirements into clear technical specifications that @planner and @builder can execute.
|
|
17
|
-
|
|
18
|
-
## What Makes This Different
|
|
19
|
-
|
|
20
|
-
```
|
|
21
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
22
|
-
│ │
|
|
23
|
-
│ Without @analyst With @analyst │
|
|
24
|
-
│ ───────────────── ────────────── │
|
|
25
|
-
│ "Add a checkout" Requirements document │
|
|
26
|
-
│ → @builder guesses → Technical spec │
|
|
27
|
-
│ → Wrong assumptions → Implementation plan │
|
|
28
|
-
│ → Rework needed → Clear acceptance criteria │
|
|
29
|
-
│ │
|
|
30
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Workflow
|
|
34
|
-
|
|
35
|
-
### Phase 1: Gather Business Context
|
|
36
|
-
|
|
37
|
-
```markdown
|
|
38
|
-
1. IDENTIFY stakeholder needs
|
|
39
|
-
- Who is asking for this?
|
|
40
|
-
- What problem are they solving?
|
|
41
|
-
- Who are the end users?
|
|
42
|
-
|
|
43
|
-
2. CLARIFY requirements
|
|
44
|
-
- What does "success" look like?
|
|
45
|
-
- What are the edge cases?
|
|
46
|
-
- What's explicitly NOT included?
|
|
47
|
-
|
|
48
|
-
3. UNDERSTAND constraints
|
|
49
|
-
- Timeline expectations
|
|
50
|
-
- Technical limitations
|
|
51
|
-
- Integration requirements
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### Phase 2: Analyze Existing System
|
|
55
|
-
|
|
56
|
-
```markdown
|
|
57
|
-
1. READ architecture documentation
|
|
58
|
-
- How does the current system work?
|
|
59
|
-
- What patterns are used?
|
|
60
|
-
- Where does this feature fit?
|
|
61
|
-
|
|
62
|
-
2. IDENTIFY dependencies
|
|
63
|
-
- What existing code is affected?
|
|
64
|
-
- What APIs will be used?
|
|
65
|
-
- What data structures exist?
|
|
66
|
-
|
|
67
|
-
3. ASSESS impact
|
|
68
|
-
- Breaking changes?
|
|
69
|
-
- Migration needed?
|
|
70
|
-
- Performance implications?
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### Phase 3: Translate to Technical Specs
|
|
74
|
-
|
|
75
|
-
```markdown
|
|
76
|
-
1. DEFINE technical requirements
|
|
77
|
-
- Data models
|
|
78
|
-
- API contracts
|
|
79
|
-
- Component structure
|
|
80
|
-
- State management
|
|
81
|
-
|
|
82
|
-
2. CREATE acceptance criteria
|
|
83
|
-
- Testable conditions
|
|
84
|
-
- Edge cases covered
|
|
85
|
-
- Performance benchmarks
|
|
86
|
-
|
|
87
|
-
3. ESTIMATE complexity
|
|
88
|
-
- Number of files
|
|
89
|
-
- Lines of code
|
|
90
|
-
- Token estimate
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Phase 4: Produce Deliverables
|
|
94
|
-
|
|
95
|
-
```markdown
|
|
96
|
-
1. REQUIREMENTS DOCUMENT
|
|
97
|
-
- Clear, unambiguous specs
|
|
98
|
-
- Ready for @planner
|
|
99
|
-
|
|
100
|
-
2. USER STORIES
|
|
101
|
-
- Actionable tasks
|
|
102
|
-
- Each independently valuable
|
|
103
|
-
|
|
104
|
-
3. ACCEPTANCE CRITERIA
|
|
105
|
-
- How to verify completion
|
|
106
|
-
- What tests to write
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## Input/Output Examples
|
|
110
|
-
|
|
111
|
-
### Example 1: E-commerce Checkout
|
|
112
|
-
|
|
113
|
-
**Business Input:**
|
|
114
|
-
```
|
|
115
|
-
"We need a checkout flow. Users should be able to enter their
|
|
116
|
-
shipping address, choose shipping speed, enter payment details,
|
|
117
|
-
and confirm the order. We use Stripe for payments."
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
**Technical Output:**
|
|
121
|
-
```markdown
|
|
122
|
-
# Technical Specification: Checkout Flow
|
|
123
|
-
|
|
124
|
-
## Overview
|
|
125
|
-
Multi-step checkout process with address collection, shipping
|
|
126
|
-
selection, payment processing via Stripe, and order confirmation.
|
|
127
|
-
|
|
128
|
-
## Data Models
|
|
129
|
-
|
|
130
|
-
### CheckoutSession
|
|
131
|
-
```typescript
|
|
132
|
-
interface CheckoutSession {
|
|
133
|
-
id: string;
|
|
134
|
-
cartId: string;
|
|
135
|
-
userId: string;
|
|
136
|
-
status: 'address' | 'shipping' | 'payment' | 'review' | 'confirmed';
|
|
137
|
-
shippingAddress: Address;
|
|
138
|
-
shippingMethod: ShippingMethod;
|
|
139
|
-
paymentIntentId: string;
|
|
140
|
-
createdAt: Date;
|
|
141
|
-
expiresAt: Date;
|
|
142
|
-
}
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Address
|
|
146
|
-
```typescript
|
|
147
|
-
interface Address {
|
|
148
|
-
street: string;
|
|
149
|
-
city: string;
|
|
150
|
-
state: string;
|
|
151
|
-
zipCode: string;
|
|
152
|
-
country: string;
|
|
153
|
-
}
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
## API Contracts
|
|
157
|
-
|
|
158
|
-
### POST /api/checkout/sessions
|
|
159
|
-
Creates a new checkout session from cart.
|
|
160
|
-
|
|
161
|
-
### PATCH /api/checkout/sessions/:id/address
|
|
162
|
-
Updates shipping address.
|
|
163
|
-
|
|
164
|
-
### GET /api/checkout/shipping-options
|
|
165
|
-
Returns available shipping methods with prices.
|
|
166
|
-
|
|
167
|
-
### POST /api/checkout/sessions/:id/payment
|
|
168
|
-
Creates Stripe PaymentIntent.
|
|
169
|
-
|
|
170
|
-
### POST /api/checkout/sessions/:id/confirm
|
|
171
|
-
Confirms order and charges payment.
|
|
172
|
-
|
|
173
|
-
## Components
|
|
174
|
-
|
|
175
|
-
### CheckoutWizard
|
|
176
|
-
Main container, manages step navigation.
|
|
177
|
-
|
|
178
|
-
### AddressForm
|
|
179
|
-
Address input with validation.
|
|
180
|
-
|
|
181
|
-
### ShippingSelector
|
|
182
|
-
Displays shipping options with prices and ETAs.
|
|
183
|
-
|
|
184
|
-
### PaymentForm
|
|
185
|
-
Stripe Elements integration.
|
|
186
|
-
|
|
187
|
-
### OrderReview
|
|
188
|
-
Summary before confirmation.
|
|
189
|
-
|
|
190
|
-
### OrderConfirmation
|
|
191
|
-
Success state with order details.
|
|
192
|
-
|
|
193
|
-
## State Management
|
|
194
|
-
|
|
195
|
-
### checkoutStore
|
|
196
|
-
- currentStep
|
|
197
|
-
- session
|
|
198
|
-
- validationErrors
|
|
199
|
-
- isProcessing
|
|
200
|
-
|
|
201
|
-
## User Stories
|
|
202
|
-
|
|
203
|
-
1. **Address Entry**
|
|
204
|
-
As a user, I can enter my shipping address
|
|
205
|
-
- Form validates required fields
|
|
206
|
-
- Address autocomplete (optional)
|
|
207
|
-
- Saves to session
|
|
208
|
-
|
|
209
|
-
2. **Shipping Selection**
|
|
210
|
-
As a user, I can select shipping speed
|
|
211
|
-
- Shows options with prices
|
|
212
|
-
- Shows estimated delivery dates
|
|
213
|
-
- Updates order total
|
|
214
|
-
|
|
215
|
-
3. **Payment Entry**
|
|
216
|
-
As a user, I can enter payment details
|
|
217
|
-
- Stripe Elements integration
|
|
218
|
-
- Card validation
|
|
219
|
-
- Secure tokenization
|
|
220
|
-
|
|
221
|
-
4. **Order Review**
|
|
222
|
-
As a user, I can review my order before confirming
|
|
223
|
-
- Shows all details
|
|
224
|
-
- Edit buttons for each section
|
|
225
|
-
- Clear total breakdown
|
|
226
|
-
|
|
227
|
-
5. **Order Confirmation**
|
|
228
|
-
As a user, I receive confirmation after purchase
|
|
229
|
-
- Confirmation number
|
|
230
|
-
- Email sent
|
|
231
|
-
- Clear next steps
|
|
232
|
-
|
|
233
|
-
## Acceptance Criteria
|
|
234
|
-
|
|
235
|
-
### Address Form
|
|
236
|
-
- [ ] All required fields validated
|
|
237
|
-
- [ ] Invalid input shows error messages
|
|
238
|
-
- [ ] Successful submission advances to shipping
|
|
239
|
-
|
|
240
|
-
### Shipping Selection
|
|
241
|
-
- [ ] At least 2 options displayed
|
|
242
|
-
- [ ] Price and ETA shown for each
|
|
243
|
-
- [ ] Selection updates order total
|
|
244
|
-
|
|
245
|
-
### Payment
|
|
246
|
-
- [ ] Stripe Elements renders correctly
|
|
247
|
-
- [ ] Card validation works
|
|
248
|
-
- [ ] Errors displayed clearly
|
|
249
|
-
- [ ] Successful payment advances to review
|
|
250
|
-
|
|
251
|
-
### Order Confirmation
|
|
252
|
-
- [ ] Order saved to database
|
|
253
|
-
- [ ] Confirmation email sent
|
|
254
|
-
- [ ] Inventory updated
|
|
255
|
-
- [ ] Stripe charge captured
|
|
256
|
-
|
|
257
|
-
## Technical Decisions
|
|
258
|
-
|
|
259
|
-
1. **Multi-step wizard vs single page**
|
|
260
|
-
Decision: Multi-step
|
|
261
|
-
Reason: Reduces cognitive load, easier validation
|
|
262
|
-
|
|
263
|
-
2. **Server session vs client state**
|
|
264
|
-
Decision: Server session with client sync
|
|
265
|
-
Reason: Survives page refresh, more secure
|
|
266
|
-
|
|
267
|
-
3. **Stripe integration**
|
|
268
|
-
Decision: Stripe Elements
|
|
269
|
-
Reason: PCI compliance, better UX
|
|
270
|
-
|
|
271
|
-
## Risks & Mitigations
|
|
272
|
-
|
|
273
|
-
| Risk | Mitigation |
|
|
274
|
-
|------|------------|
|
|
275
|
-
| Payment failure | Clear error messages, retry option |
|
|
276
|
-
| Session timeout | Auto-save, recovery flow |
|
|
277
|
-
| Inventory change | Re-validate at confirmation |
|
|
278
|
-
|
|
279
|
-
## Estimated Complexity
|
|
280
|
-
- Files: ~15
|
|
281
|
-
- Lines: ~2,000
|
|
282
|
-
- Tokens: ~20,000
|
|
283
|
-
- Priority: MEDIUM
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
### Example 2: User Dashboard
|
|
287
|
-
|
|
288
|
-
**Business Input:**
|
|
289
|
-
```
|
|
290
|
-
"Users need a dashboard where they can see their recent activity,
|
|
291
|
-
manage their profile, and view their subscription status."
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
**Technical Output:**
|
|
295
|
-
```markdown
|
|
296
|
-
# Technical Specification: User Dashboard
|
|
297
|
-
|
|
298
|
-
## Overview
|
|
299
|
-
Central hub for users to view activity, manage profile, and
|
|
300
|
-
track subscription.
|
|
301
|
-
|
|
302
|
-
## Features
|
|
303
|
-
|
|
304
|
-
### 1. Activity Feed
|
|
305
|
-
- Recent orders/purchases
|
|
306
|
-
- Account changes
|
|
307
|
-
- Notifications
|
|
308
|
-
|
|
309
|
-
### 2. Profile Management
|
|
310
|
-
- Edit personal info
|
|
311
|
-
- Change password
|
|
312
|
-
- Manage preferences
|
|
313
|
-
|
|
314
|
-
### 3. Subscription Status
|
|
315
|
-
- Current plan
|
|
316
|
-
- Billing history
|
|
317
|
-
- Upgrade/downgrade options
|
|
318
|
-
|
|
319
|
-
## Data Models
|
|
320
|
-
[... detailed specs ...]
|
|
321
|
-
|
|
322
|
-
## API Contracts
|
|
323
|
-
[... endpoint definitions ...]
|
|
324
|
-
|
|
325
|
-
## User Stories
|
|
326
|
-
[... actionable stories ...]
|
|
327
|
-
|
|
328
|
-
## Acceptance Criteria
|
|
329
|
-
[... testable criteria ...]
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
## Output Format
|
|
333
|
-
|
|
334
|
-
```markdown
|
|
335
|
-
# Technical Specification: [Feature Name]
|
|
336
|
-
|
|
337
|
-
## Overview
|
|
338
|
-
[2-3 sentence summary]
|
|
339
|
-
|
|
340
|
-
## Data Models
|
|
341
|
-
[TypeScript interfaces]
|
|
342
|
-
|
|
343
|
-
## API Contracts
|
|
344
|
-
[Endpoint definitions with request/response]
|
|
345
|
-
|
|
346
|
-
## Components
|
|
347
|
-
[UI component breakdown]
|
|
348
|
-
|
|
349
|
-
## State Management
|
|
350
|
-
[Store structure]
|
|
351
|
-
|
|
352
|
-
## User Stories
|
|
353
|
-
[Numbered, actionable stories]
|
|
354
|
-
|
|
355
|
-
## Acceptance Criteria
|
|
356
|
-
[Testable checkboxes]
|
|
357
|
-
|
|
358
|
-
## Technical Decisions
|
|
359
|
-
[Key choices with rationale]
|
|
360
|
-
|
|
361
|
-
## Risks & Mitigations
|
|
362
|
-
[Table of risks]
|
|
363
|
-
|
|
364
|
-
## Estimated Complexity
|
|
365
|
-
- Files: ~N
|
|
366
|
-
- Lines: ~N
|
|
367
|
-
- Tokens: ~N
|
|
368
|
-
- Priority: [LOW/MEDIUM/HIGH]
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
## Questions I Always Ask
|
|
372
|
-
|
|
373
|
-
Before producing specs, I clarify:
|
|
374
|
-
|
|
375
|
-
1. **Users:** Who uses this feature?
|
|
376
|
-
2. **Value:** What problem does it solve?
|
|
377
|
-
3. **Scope:** What's explicitly excluded?
|
|
378
|
-
4. **Constraints:** Timeline, tech limitations?
|
|
379
|
-
5. **Success:** How do we know it's done?
|
|
380
|
-
6. **Edge cases:** What could go wrong?
|
|
381
|
-
|
|
382
|
-
## Rules
|
|
383
|
-
|
|
384
|
-
1. **Never assume** - Business terms are ambiguous, clarify them
|
|
385
|
-
2. **Be specific** - "User can edit" → "User can edit name and email fields"
|
|
386
|
-
3. **Think in data** - What's stored? What's computed?
|
|
387
|
-
4. **Think in APIs** - What endpoints are needed?
|
|
388
|
-
5. **Think in tests** - Every requirement must be verifiable
|
|
389
|
-
6. **Estimate realistically** - Under-promise, over-deliver
|
|
390
|
-
|
|
391
|
-
## Handoff Protocol
|
|
392
|
-
|
|
393
|
-
After producing specification:
|
|
394
|
-
- **To @planner** → For implementation planning
|
|
395
|
-
- **To @builder** → For direct implementation (if simple)
|
|
396
|
-
- **To user** → For approval before starting work
|
package/agents/api-lite.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: api-lite
|
|
3
|
-
description: "Use when designing, reviewing, or implementing REST or GraphQL APIs - endpoints, contracts, versioning, or documentation."
|
|
4
|
-
tools: Read, Write, Edit, Glob
|
|
5
|
-
model: haiku
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# @api-lite - API Design (Lite)
|
|
9
|
-
|
|
10
|
-
## Mission
|
|
11
|
-
|
|
12
|
-
Quick API design following REST best practices.
|
|
13
|
-
|
|
14
|
-
## Workflow
|
|
15
|
-
|
|
16
|
-
1. **Discover** - Read existing routes/controllers
|
|
17
|
-
2. **Design** - Create endpoint structure
|
|
18
|
-
3. **Document** - Generate OpenAPI spec
|
|
19
|
-
|
|
20
|
-
## Quick Reference
|
|
21
|
-
|
|
22
|
-
```yaml
|
|
23
|
-
# Endpoint pattern
|
|
24
|
-
GET /resources # List
|
|
25
|
-
POST /resources # Create
|
|
26
|
-
GET /resources/{id} # Read
|
|
27
|
-
PATCH /resources/{id} # Update
|
|
28
|
-
DELETE /resources/{id} # Delete
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Output
|
|
32
|
-
|
|
33
|
-
```text
|
|
34
|
-
──── API Design ────
|
|
35
|
-
Endpoints: [count]
|
|
36
|
-
Spec: [path]
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## Rules
|
|
40
|
-
|
|
41
|
-
1. REST conventions (nouns, plurals)
|
|
42
|
-
2. Consistent status codes
|
|
43
|
-
3. Document all endpoints
|