specweave 0.23.18 → 0.24.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/.claude-plugin/marketplace.json +144 -45
- package/CLAUDE.md +137 -4
- package/dist/src/cli/helpers/ado-area-path-mapper.d.ts +89 -0
- package/dist/src/cli/helpers/ado-area-path-mapper.d.ts.map +1 -0
- package/dist/src/cli/helpers/ado-area-path-mapper.js +213 -0
- package/dist/src/cli/helpers/ado-area-path-mapper.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.d.ts +29 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.js +109 -0
- package/dist/src/cli/helpers/issue-tracker/ado-auto-discover.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/ado.js +2 -0
- package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -1
- package/dist/src/cli/helpers/smart-filter.d.ts +83 -0
- package/dist/src/cli/helpers/smart-filter.d.ts.map +1 -0
- package/dist/src/cli/helpers/smart-filter.js +265 -0
- package/dist/src/cli/helpers/smart-filter.js.map +1 -0
- package/dist/src/core/qa/quality-gate-decider.d.ts +1 -1
- package/dist/src/core/qa/quality-gate-decider.js +2 -2
- package/dist/src/core/qa/quality-gate-decider.js.map +1 -1
- package/dist/src/core/qa/risk-calculator.d.ts +2 -2
- package/dist/src/core/qa/risk-calculator.js +2 -2
- package/dist/src/core/repo-structure/repo-structure-manager.d.ts.map +1 -1
- package/dist/src/core/repo-structure/repo-structure-manager.js +76 -43
- package/dist/src/core/repo-structure/repo-structure-manager.js.map +1 -1
- package/dist/src/core/validators/ac-presence-validator.d.ts +56 -0
- package/dist/src/core/validators/ac-presence-validator.d.ts.map +1 -0
- package/dist/src/core/validators/ac-presence-validator.js +149 -0
- package/dist/src/core/validators/ac-presence-validator.js.map +1 -0
- package/dist/src/integrations/ado/area-path-mapper.d.ts +137 -0
- package/dist/src/integrations/ado/area-path-mapper.d.ts.map +1 -0
- package/dist/src/integrations/ado/area-path-mapper.js +267 -0
- package/dist/src/integrations/ado/area-path-mapper.js.map +1 -0
- package/dist/src/integrations/jira/filter-processor.d.ts +126 -0
- package/dist/src/integrations/jira/filter-processor.d.ts.map +1 -0
- package/dist/src/integrations/jira/filter-processor.js +207 -0
- package/dist/src/integrations/jira/filter-processor.js.map +1 -0
- package/dist/src/integrations/jira/jira-client.d.ts +13 -0
- package/dist/src/integrations/jira/jira-client.d.ts.map +1 -1
- package/dist/src/integrations/jira/jira-client.js +33 -0
- package/dist/src/integrations/jira/jira-client.js.map +1 -1
- package/dist/src/utils/ac-embedder.d.ts +63 -0
- package/dist/src/utils/ac-embedder.d.ts.map +1 -0
- package/dist/src/utils/ac-embedder.js +217 -0
- package/dist/src/utils/ac-embedder.js.map +1 -0
- package/dist/src/utils/env-manager.d.ts +86 -0
- package/dist/src/utils/env-manager.d.ts.map +1 -0
- package/dist/src/utils/env-manager.js +188 -0
- package/dist/src/utils/env-manager.js.map +1 -0
- package/package.json +1 -1
- package/plugins/specweave/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave/agents/AGENTS-INDEX.md +1 -1
- package/plugins/specweave/agents/increment-quality-judge-v2/AGENT.md +9 -9
- package/plugins/specweave/commands/specweave-do.md +37 -0
- package/plugins/specweave/commands/specweave-done.md +159 -0
- package/plugins/specweave/commands/specweave-embed-acs.md +446 -0
- package/plugins/specweave/commands/specweave-next.md +148 -3
- package/plugins/specweave/commands/specweave-qa.md +2 -2
- package/plugins/specweave/hooks/pre-increment-start.sh +168 -0
- package/plugins/specweave/skills/SKILLS-INDEX.md +1 -1
- package/plugins/specweave-ado/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-ado/commands/specweave-ado-import-projects.md +331 -0
- package/plugins/specweave-alternatives/.claude-plugin/plugin.json +10 -0
- package/plugins/specweave-alternatives/commands/alternatives-analyze.md +336 -0
- package/plugins/specweave-alternatives/skills/architecture-alternatives/SKILL.md +651 -0
- package/plugins/specweave-alternatives/skills/bmad-method/SKILL.md +420 -0
- package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +487 -0
- package/plugins/specweave-backend/commands/api-scaffold.md +80 -0
- package/plugins/specweave-backend/commands/crud-generate.md +109 -0
- package/plugins/specweave-backend/commands/migration-generate.md +139 -0
- package/plugins/specweave-confluent/commands/connector-deploy.md +154 -0
- package/plugins/specweave-confluent/commands/ksqldb-query.md +179 -0
- package/plugins/specweave-confluent/commands/schema-register.md +123 -0
- package/plugins/specweave-core/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-core/commands/architecture-review.md +288 -0
- package/plugins/specweave-core/commands/code-review.md +213 -0
- package/plugins/specweave-core/commands/refactor-plan.md +249 -0
- package/plugins/specweave-core/skills/code-quality/SKILL.md +157 -0
- package/plugins/specweave-core/skills/design-patterns/SKILL.md +244 -0
- package/plugins/specweave-core/skills/software-architecture/SKILL.md +83 -0
- package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +22 -0
- package/plugins/specweave-cost-optimizer/commands/cost-analyze.md +360 -0
- package/plugins/specweave-cost-optimizer/commands/cost-optimize.md +480 -0
- package/plugins/specweave-cost-optimizer/skills/aws-cost-expert/SKILL.md +416 -0
- package/plugins/specweave-cost-optimizer/skills/cloud-pricing/SKILL.md +325 -0
- package/plugins/specweave-cost-optimizer/skills/cost-optimization/SKILL.md +337 -0
- package/plugins/specweave-diagrams/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-diagrams/commands/diagrams-generate.md +168 -0
- package/plugins/specweave-docs/.claude-plugin/plugin.json +10 -0
- package/plugins/specweave-docs/commands/docs-generate.md +441 -0
- package/plugins/specweave-docs/commands/docs-init.md +334 -0
- package/plugins/specweave-docs/skills/docusaurus/SKILL.md +581 -0
- package/plugins/specweave-docs/skills/spec-driven-brainstorming/SKILL.md +689 -0
- package/plugins/specweave-docs/skills/technical-writing/SKILL.md +1039 -0
- package/plugins/specweave-docs-preview/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-figma/.claude-plugin/plugin.json +23 -0
- package/plugins/specweave-figma/commands/figma-import.md +690 -0
- package/plugins/specweave-figma/commands/figma-to-react.md +834 -0
- package/plugins/specweave-figma/commands/figma-tokens.md +815 -0
- package/plugins/specweave-frontend/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-frontend/agents/frontend-architect/AGENT.md +408 -0
- package/plugins/specweave-frontend/agents/frontend-architect/README.md +385 -0
- package/plugins/specweave-frontend/agents/frontend-architect/examples.md +590 -0
- package/plugins/specweave-frontend/agents/frontend-architect/templates/component-template.tsx +152 -0
- package/plugins/specweave-frontend/agents/frontend-architect/templates/hook-template.ts +311 -0
- package/plugins/specweave-frontend/agents/frontend-architect/templates/page-template.tsx +228 -0
- package/plugins/specweave-frontend/commands/component-generate.md +510 -0
- package/plugins/specweave-frontend/commands/design-system-init.md +494 -0
- package/plugins/specweave-frontend/commands/frontend-scaffold.md +207 -0
- package/plugins/specweave-frontend/commands/nextjs-setup.md +396 -0
- package/plugins/specweave-frontend/skills/design-system-architect/SKILL.md +278 -0
- package/plugins/specweave-frontend/skills/frontend/SKILL.md +420 -0
- package/plugins/specweave-frontend/skills/nextjs/SKILL.md +546 -0
- package/plugins/specweave-github/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +212 -0
- package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-jira/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-jira/commands/import-projects.js +183 -0
- package/plugins/specweave-jira/commands/import-projects.md +97 -0
- package/plugins/specweave-jira/commands/import-projects.ts +288 -0
- package/plugins/specweave-jira/commands/specweave-jira-import-projects.md +298 -0
- package/plugins/specweave-kafka/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-kafka-streams/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-kubernetes/commands/cluster-setup.md +262 -0
- package/plugins/specweave-kubernetes/commands/deployment-generate.md +242 -0
- package/plugins/specweave-kubernetes/commands/helm-scaffold.md +333 -0
- package/plugins/specweave-ml/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-mobile/commands/app-scaffold.md +233 -0
- package/plugins/specweave-mobile/commands/build-config.md +256 -0
- package/plugins/specweave-mobile/commands/screen-generate.md +289 -0
- package/plugins/specweave-n8n/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-payments/commands/stripe-setup.md +931 -0
- package/plugins/specweave-payments/commands/subscription-flow.md +1193 -0
- package/plugins/specweave-payments/commands/subscription-manage.md +386 -0
- package/plugins/specweave-payments/commands/webhook-setup.md +295 -0
- package/plugins/specweave-plugin-dev/.claude-plugin/plugin.json +13 -12
- package/plugins/specweave-plugin-dev/commands/plugin-create.md +333 -0
- package/plugins/specweave-plugin-dev/commands/plugin-publish.md +339 -0
- package/plugins/specweave-plugin-dev/commands/plugin-test.md +293 -0
- package/plugins/specweave-plugin-dev/skills/claude-sdk/SKILL.md +162 -0
- package/plugins/specweave-plugin-dev/skills/marketplace-publishing/SKILL.md +263 -0
- package/plugins/specweave-plugin-dev/skills/plugin-development/SKILL.md +316 -0
- package/plugins/specweave-release/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-release/commands/specweave-release-npm.md +110 -0
- package/plugins/specweave-release/hooks/.specweave/logs/dora-tracking.log +168 -0
- package/plugins/specweave-testing/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-testing/agents/qa-engineer/AGENT.md +818 -0
- package/plugins/specweave-testing/agents/qa-engineer/README.md +443 -0
- package/plugins/specweave-testing/agents/qa-engineer/templates/playwright-e2e-test.ts +470 -0
- package/plugins/specweave-testing/agents/qa-engineer/templates/test-data-factory.ts +507 -0
- package/plugins/specweave-testing/agents/qa-engineer/templates/vitest-unit-test.ts +400 -0
- package/plugins/specweave-testing/agents/qa-engineer/test-strategies.md +726 -0
- package/plugins/specweave-testing/commands/e2e-setup.md +1081 -0
- package/plugins/specweave-testing/commands/test-coverage.md +979 -0
- package/plugins/specweave-testing/commands/test-generate.md +1156 -0
- package/plugins/specweave-testing/commands/test-init.md +409 -0
- package/plugins/specweave-testing/skills/e2e-playwright/SKILL.md +769 -0
- package/plugins/specweave-testing/skills/tdd-expert/SKILL.md +934 -0
- package/plugins/specweave-testing/skills/unit-testing-expert/SKILL.md +1011 -0
- package/plugins/specweave-tooling/.claude-plugin/plugin.json +22 -0
- package/plugins/specweave-tooling/commands/specweave-tooling-skill-create.md +691 -0
- package/plugins/specweave-tooling/commands/specweave-tooling-skill-package.md +751 -0
- package/plugins/specweave-tooling/commands/specweave-tooling-skill-validate.md +858 -0
- package/plugins/specweave-ui/.claude-plugin/plugin.json +10 -0
- package/plugins/specweave-ui/commands/ui-automate.md +199 -0
- package/plugins/specweave-ui/commands/ui-inspect.md +70 -0
- package/plugins/specweave-ui/skills/browser-automation/SKILL.md +314 -0
- package/plugins/specweave-ui/skills/ui-testing/SKILL.md +716 -0
- package/plugins/specweave-ui/skills/visual-regression/SKILL.md +728 -0
- package/plugins/specweave/commands/check-hooks.md +0 -257
- package/plugins/specweave/commands/specweave-archive-increments.md +0 -82
- package/plugins/specweave-plugin-dev/skills/plugin-expert/SKILL.md +0 -1231
- /package/plugins/specweave/{agents/code-reviewer.md → skills/code-reviewer/SKILL.md} +0 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
# Alternatives Analyze - Technology Stack Decision Analysis
|
|
2
|
+
|
|
3
|
+
Analyze technology stack alternatives using the **BMAD** (Best, Most Appropriate, Design) framework. Make informed decisions about databases, frameworks, cloud providers, languages, and architectural patterns by evaluating tradeoffs, costs, and long-term implications.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
/specweave-alternatives:alternatives-analyze <category> [context] [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## What I Do
|
|
12
|
+
|
|
13
|
+
1. **Identify Alternatives**: List all viable options for the technology category
|
|
14
|
+
2. **BMAD Analysis**: Evaluate using Best/Most Appropriate/Design criteria
|
|
15
|
+
3. **Tradeoff Matrix**: Compare pros/cons, costs, learning curve, ecosystem
|
|
16
|
+
4. **Context Scoring**: Weight factors based on your specific requirements
|
|
17
|
+
5. **Recommendation**: Provide data-driven recommendation with rationale
|
|
18
|
+
|
|
19
|
+
## Technology Categories
|
|
20
|
+
|
|
21
|
+
### 1. Databases
|
|
22
|
+
```bash
|
|
23
|
+
/specweave-alternatives:alternatives-analyze database \
|
|
24
|
+
--requirements "high-throughput,strong-consistency,cloud-native" \
|
|
25
|
+
--scale "startup"
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Analyzes**: PostgreSQL, MySQL, MongoDB, DynamoDB, Firestore, CockroachDB, Cassandra
|
|
29
|
+
|
|
30
|
+
### 2. Backend Frameworks
|
|
31
|
+
```bash
|
|
32
|
+
/specweave-alternatives:alternatives-analyze backend-framework \
|
|
33
|
+
--language typescript \
|
|
34
|
+
--requirements "fast-development,type-safe,good-orms"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Analyzes**: Express, Fastify, NestJS, Hono, Elysia, tRPC
|
|
38
|
+
|
|
39
|
+
### 3. Frontend Frameworks
|
|
40
|
+
```bash
|
|
41
|
+
/specweave-alternatives:alternatives-analyze frontend-framework \
|
|
42
|
+
--requirements "SEO,performance,large-team" \
|
|
43
|
+
--existing-stack "React"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Analyzes**: Next.js, Remix, Astro, SvelteKit, Nuxt, Gatsby
|
|
47
|
+
|
|
48
|
+
### 4. Cloud Providers
|
|
49
|
+
```bash
|
|
50
|
+
/specweave-alternatives:alternatives-analyze cloud-provider \
|
|
51
|
+
--workload "containerized-microservices" \
|
|
52
|
+
--scale "enterprise" \
|
|
53
|
+
--constraints "EU-data-residency"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Analyzes**: AWS, GCP, Azure, Hetzner, DigitalOcean, Fly.io
|
|
57
|
+
|
|
58
|
+
### 5. Message Queues
|
|
59
|
+
```bash
|
|
60
|
+
/specweave-alternatives:alternatives-analyze message-queue \
|
|
61
|
+
--requirements "exactly-once,high-throughput,stream-processing" \
|
|
62
|
+
--scale "100k-msgs-sec"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Analyzes**: Kafka, RabbitMQ, Redis Streams, AWS SQS, Google Pub/Sub, NATS
|
|
66
|
+
|
|
67
|
+
### 6. Authentication
|
|
68
|
+
```bash
|
|
69
|
+
/specweave-alternatives:alternatives-analyze auth \
|
|
70
|
+
--requirements "social-login,SSO,MFA,compliance" \
|
|
71
|
+
--constraints "GDPR,SOC2"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Analyzes**: Auth0, Clerk, Supabase Auth, Firebase Auth, AWS Cognito, custom JWT
|
|
75
|
+
|
|
76
|
+
## BMAD Framework
|
|
77
|
+
|
|
78
|
+
### **B**est - Industry Gold Standard
|
|
79
|
+
What is considered the **best practice** in the industry?
|
|
80
|
+
|
|
81
|
+
- **Criteria**: Battle-tested, widely adopted, comprehensive features
|
|
82
|
+
- **Examples**:
|
|
83
|
+
- Database: PostgreSQL (ACID compliance, robustness)
|
|
84
|
+
- Queue: Kafka (high throughput, durability)
|
|
85
|
+
- Cloud: AWS (feature breadth, enterprise tooling)
|
|
86
|
+
|
|
87
|
+
### **M**ost Appropriate - Context Fit
|
|
88
|
+
What is **most appropriate** for YOUR specific context?
|
|
89
|
+
|
|
90
|
+
- **Criteria**: Team expertise, budget, timeline, scale
|
|
91
|
+
- **Factors**:
|
|
92
|
+
- **Team Size**: Startup (2-5) vs Scale-up (20-50) vs Enterprise (100+)
|
|
93
|
+
- **Budget**: Free tier vs $100/mo vs $10k/mo vs unlimited
|
|
94
|
+
- **Timeline**: POC (1 week) vs MVP (3 months) vs Production (1 year)
|
|
95
|
+
- **Scale**: 100 users vs 10k users vs 1M users
|
|
96
|
+
|
|
97
|
+
### **D**esign - Architectural Alignment
|
|
98
|
+
How does this fit your **overall design** and long-term vision?
|
|
99
|
+
|
|
100
|
+
- **Criteria**: System coherence, vendor lock-in, migration path
|
|
101
|
+
- **Considerations**:
|
|
102
|
+
- **Vendor Lock-in**: Open-source vs proprietary
|
|
103
|
+
- **Migration Path**: Can you switch later? At what cost?
|
|
104
|
+
- **Ecosystem**: Libraries, tools, community support
|
|
105
|
+
- **Future-proofing**: Technology trajectory, maintenance
|
|
106
|
+
|
|
107
|
+
## Analysis Output
|
|
108
|
+
|
|
109
|
+
### Tradeoff Matrix
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
## Database Alternatives Analysis
|
|
113
|
+
|
|
114
|
+
### Context
|
|
115
|
+
- **Team Size**: 5 engineers (3 backend, 2 fullstack)
|
|
116
|
+
- **Current Stage**: Seed-funded startup
|
|
117
|
+
- **Scale**: 1,000 active users → 50,000 in 12 months
|
|
118
|
+
- **Budget**: $500/mo infrastructure
|
|
119
|
+
- **Constraints**: GDPR compliance required
|
|
120
|
+
|
|
121
|
+
### Options Evaluated
|
|
122
|
+
|
|
123
|
+
| Option | Type | Cost/mo | Learn Curve | Maturity | Score |
|
|
124
|
+
|---------------|------------|---------|-------------|----------|-------|
|
|
125
|
+
| PostgreSQL | Relational | $25 | Medium | ⭐⭐⭐⭐⭐ | 92 |
|
|
126
|
+
| MongoDB | Document | $57 | Low | ⭐⭐⭐⭐ | 78 |
|
|
127
|
+
| DynamoDB | NoSQL | $50 | High | ⭐⭐⭐⭐ | 71 |
|
|
128
|
+
| Firestore | Document | $30 | Low | ⭐⭐⭐ | 68 |
|
|
129
|
+
| MySQL | Relational | $25 | Medium | ⭐⭐⭐⭐⭐ | 85 |
|
|
130
|
+
|
|
131
|
+
### BMAD Analysis
|
|
132
|
+
|
|
133
|
+
#### Best: PostgreSQL
|
|
134
|
+
- ✅ **Strengths**: ACID compliance, JSON support, full-text search, PostGIS
|
|
135
|
+
- ✅ **Ecosystem**: Rich ORM support (Prisma, Drizzle, TypeORM)
|
|
136
|
+
- ✅ **Flexibility**: Relational + document (JSON columns)
|
|
137
|
+
- ⚠️ **Considerations**: Requires schema management
|
|
138
|
+
|
|
139
|
+
#### Most Appropriate: PostgreSQL (Supabase)
|
|
140
|
+
- ✅ **Team Fit**: SQL skills on team, Prisma ORM familiarity
|
|
141
|
+
- ✅ **Budget Fit**: $25/mo for 100GB database (within budget)
|
|
142
|
+
- ✅ **Timeline Fit**: Fast setup with Supabase (2 hours vs 2 days self-hosted)
|
|
143
|
+
- ✅ **Scale Fit**: Handles 50k users with vertical scaling
|
|
144
|
+
- ✅ **Compliance**: EU region available, GDPR-ready
|
|
145
|
+
|
|
146
|
+
#### Design: PostgreSQL with Migration Plan
|
|
147
|
+
- ✅ **No Lock-in**: Standard PostgreSQL (can migrate to RDS, self-hosted)
|
|
148
|
+
- ✅ **Ecosystem**: TypeScript-first with Prisma
|
|
149
|
+
- ✅ **Future Path**: Scale with read replicas, connection pooling (PgBouncer)
|
|
150
|
+
- ⚠️ **Migration Risk**: Low - standard SQL export/import
|
|
151
|
+
|
|
152
|
+
### Recommendation
|
|
153
|
+
|
|
154
|
+
**Choose: PostgreSQL (hosted on Supabase)**
|
|
155
|
+
|
|
156
|
+
**Rationale:**
|
|
157
|
+
1. ✅ Aligns with team's SQL expertise
|
|
158
|
+
2. ✅ Fits budget ($25/mo vs $500 budget)
|
|
159
|
+
3. ✅ Supports rapid development (Prisma ORM)
|
|
160
|
+
4. ✅ No vendor lock-in (standard PostgreSQL)
|
|
161
|
+
5. ✅ Clear scaling path (read replicas, PgBouncer)
|
|
162
|
+
6. ✅ GDPR compliance out-of-the-box
|
|
163
|
+
|
|
164
|
+
**Alternative if requirements change:**
|
|
165
|
+
- **If need extreme scale**: Consider CockroachDB (distributed SQL)
|
|
166
|
+
- **If need real-time**: Consider Firestore + PostgreSQL hybrid
|
|
167
|
+
- **If team prefers NoSQL**: MongoDB Atlas (better maturity than DynamoDB for startups)
|
|
168
|
+
|
|
169
|
+
### Implementation Path
|
|
170
|
+
|
|
171
|
+
1. **Week 1**: Set up Supabase project, configure EU region
|
|
172
|
+
2. **Week 2**: Design schema with Prisma, enable Row Level Security (RLS)
|
|
173
|
+
3. **Week 3**: Implement connection pooling, set up backups
|
|
174
|
+
4. **Week 4**: Load testing, optimize queries, add indexes
|
|
175
|
+
|
|
176
|
+
### Long-term Monitoring
|
|
177
|
+
|
|
178
|
+
- **Metric**: Connection pool utilization
|
|
179
|
+
- **Alert**: >80% CPU on database
|
|
180
|
+
- **Review**: Quarterly review of costs vs scale
|
|
181
|
+
- **Trigger**: If cost >$200/mo OR latency >100ms p95, re-evaluate
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## Options
|
|
185
|
+
|
|
186
|
+
### Context Options
|
|
187
|
+
- `--scale <level>` - Startup, scale-up, enterprise (default: startup)
|
|
188
|
+
- `--team-size <number>` - Number of engineers
|
|
189
|
+
- `--budget <amount>` - Monthly budget for this component
|
|
190
|
+
- `--timeline <duration>` - Time to production (1 week, 1 month, 3 months, etc.)
|
|
191
|
+
|
|
192
|
+
### Requirement Options
|
|
193
|
+
- `--requirements <list>` - Comma-separated requirements (e.g., "ACID,scalability,cost-effective")
|
|
194
|
+
- `--constraints <list>` - Hard constraints (e.g., "GDPR,open-source,EU-region")
|
|
195
|
+
- `--existing-stack <tech>` - Technologies already in use
|
|
196
|
+
- `--language <lang>` - Preferred programming language
|
|
197
|
+
|
|
198
|
+
### Analysis Options
|
|
199
|
+
- `--format <format>` - Output format: markdown, json, html (default: markdown)
|
|
200
|
+
- `--depth <level>` - Analysis depth: quick, standard, deep (default: standard)
|
|
201
|
+
- `--include-costs` - Include detailed cost breakdown (default: true)
|
|
202
|
+
- `--include-migration` - Include migration complexity analysis (default: true)
|
|
203
|
+
|
|
204
|
+
## Use Cases
|
|
205
|
+
|
|
206
|
+
### 1. Green field Project Planning
|
|
207
|
+
Choose the right stack before writing any code.
|
|
208
|
+
|
|
209
|
+
### 2. Technology Replacement
|
|
210
|
+
Evaluate alternatives when migrating away from legacy systems.
|
|
211
|
+
|
|
212
|
+
### 3. Cost Optimization
|
|
213
|
+
Find cheaper alternatives that meet the same requirements.
|
|
214
|
+
|
|
215
|
+
### 4. Scale Planning
|
|
216
|
+
Identify when current technology won't scale and what to migrate to.
|
|
217
|
+
|
|
218
|
+
### 5. Team Skill Alignment
|
|
219
|
+
Choose technologies that match team expertise or learning goals.
|
|
220
|
+
|
|
221
|
+
## Advanced Features
|
|
222
|
+
|
|
223
|
+
### Multi-Criteria Decision Analysis (MCDA)
|
|
224
|
+
|
|
225
|
+
```markdown
|
|
226
|
+
### Weighted Criteria
|
|
227
|
+
|
|
228
|
+
| Criteria | Weight | PostgreSQL | MongoDB | DynamoDB |
|
|
229
|
+
|------------------|--------|------------|---------|----------|
|
|
230
|
+
| Cost | 25% | 9/10 | 6/10 | 7/10 |
|
|
231
|
+
| Performance | 20% | 8/10 | 8/10 | 9/10 |
|
|
232
|
+
| Developer UX | 20% | 9/10 | 8/10 | 6/10 |
|
|
233
|
+
| Scalability | 15% | 7/10 | 8/10 | 10/10 |
|
|
234
|
+
| Ecosystem | 10% | 10/10 | 8/10 | 7/10 |
|
|
235
|
+
| Learning Curve | 10% | 7/10 | 9/10 | 5/10 |
|
|
236
|
+
| **Total Score** | | **8.4** | **7.7** | **7.3** |
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Total Cost of Ownership (TCO)
|
|
240
|
+
|
|
241
|
+
```markdown
|
|
242
|
+
### 3-Year TCO Comparison
|
|
243
|
+
|
|
244
|
+
| Cost Component | PostgreSQL | MongoDB | DynamoDB |
|
|
245
|
+
|------------------------|------------|---------|----------|
|
|
246
|
+
| **Infrastructure** | | | |
|
|
247
|
+
| - Database hosting | $900 | $2,050 | $1,800 |
|
|
248
|
+
| - Backup storage | $120 | $240 | $360 |
|
|
249
|
+
| - Monitoring | $240 | $480 | $0 |
|
|
250
|
+
| **Engineering** | | | |
|
|
251
|
+
| - Initial setup | $4,000 | $3,000 | $6,000 |
|
|
252
|
+
| - Ongoing maintenance | $6,000 | $4,000 | $2,000 |
|
|
253
|
+
| - Migration risk | $0 | $8,000 | $15,000 |
|
|
254
|
+
| **Total 3-Year Cost** | **$11,260**| **$17,770** | **$25,160** |
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Risk Analysis
|
|
258
|
+
|
|
259
|
+
```markdown
|
|
260
|
+
### Risk Matrix
|
|
261
|
+
|
|
262
|
+
| Risk | Probability | Impact | Mitigation |
|
|
263
|
+
|-----------------------|-------------|--------|---------------------------------|
|
|
264
|
+
| Vendor shutdown | Low (5%) | High | Use open-source alternative |
|
|
265
|
+
| Cost explosion | Medium (30%)| High | Set up billing alerts, reserves |
|
|
266
|
+
| Performance issues | Low (10%) | Medium | Load testing, query optimization|
|
|
267
|
+
| Team knowledge gap | Medium (20%)| Medium | Training, pair programming |
|
|
268
|
+
| Lock-in constraints | High (60%) | Medium | Standard interfaces, abstraction|
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
## Examples
|
|
272
|
+
|
|
273
|
+
### Analyze Database Options
|
|
274
|
+
```bash
|
|
275
|
+
/specweave-alternatives:alternatives-analyze database \
|
|
276
|
+
--scale startup \
|
|
277
|
+
--budget 200 \
|
|
278
|
+
--requirements "ACID,JSON-support,full-text-search" \
|
|
279
|
+
--constraints "open-source,EU-hosting"
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### Compare Cloud Providers
|
|
283
|
+
```bash
|
|
284
|
+
/specweave-alternatives:alternatives-analyze cloud-provider \
|
|
285
|
+
--workload "containerized-apps" \
|
|
286
|
+
--scale "scale-up" \
|
|
287
|
+
--budget 5000 \
|
|
288
|
+
--constraints "multi-region,SOC2"
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Frontend Framework Decision
|
|
292
|
+
```bash
|
|
293
|
+
/specweave-alternatives:alternatives-analyze frontend-framework \
|
|
294
|
+
--existing-stack React \
|
|
295
|
+
--requirements "SEO,SSR,static-generation" \
|
|
296
|
+
--team-size 8
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Message Queue Selection
|
|
300
|
+
```bash
|
|
301
|
+
/specweave-alternatives:alternatives-analyze message-queue \
|
|
302
|
+
--scale enterprise \
|
|
303
|
+
--requirements "exactly-once,replay,stream-processing" \
|
|
304
|
+
--throughput "500k-msgs-sec"
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
## Related Commands
|
|
308
|
+
|
|
309
|
+
- `/specweave-alternatives:cost-compare` - Detailed cost comparison only
|
|
310
|
+
- `/specweave-alternatives:migration-plan` - Generate migration plan from A to B
|
|
311
|
+
- `/specweave-cost-optimizer:analyze` - Optimize costs for chosen stack
|
|
312
|
+
|
|
313
|
+
## Best Practices
|
|
314
|
+
|
|
315
|
+
1. **Start with Requirements**: Define hard requirements vs nice-to-haves
|
|
316
|
+
2. **Include Team Context**: Consider team skills, not just technology merits
|
|
317
|
+
3. **Plan for Change**: Evaluate migration difficulty even if not planning to migrate
|
|
318
|
+
4. **Use Real Numbers**: Actual budget, actual scale, actual timeline
|
|
319
|
+
5. **Re-evaluate Periodically**: Technology landscape changes, reassess every 12-18 months
|
|
320
|
+
|
|
321
|
+
## Limitations
|
|
322
|
+
|
|
323
|
+
- **Analysis is point-in-time**: Technology landscape evolves rapidly
|
|
324
|
+
- **Costs are estimates**: Actual costs depend on usage patterns
|
|
325
|
+
- **Assumes typical use cases**: Edge cases may favor different technologies
|
|
326
|
+
- **Human judgment required**: Framework provides data, but final decision is yours
|
|
327
|
+
|
|
328
|
+
## Activation Keywords
|
|
329
|
+
|
|
330
|
+
- "Which database should I use?"
|
|
331
|
+
- "Compare PostgreSQL vs MongoDB vs DynamoDB"
|
|
332
|
+
- "Best cloud provider for startups"
|
|
333
|
+
- "Should I use Next.js or Remix?"
|
|
334
|
+
- "Kafka vs RabbitMQ decision"
|
|
335
|
+
- "Technology stack recommendations"
|
|
336
|
+
- "BMAD method analysis"
|