specweave 0.23.16 → 0.24.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/.claude-plugin/marketplace.json +93 -38
- package/CLAUDE.md +159 -11
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.js +57 -0
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.js.map +1 -1
- package/dist/src/cli/commands/sync-spec-content.js +3 -0
- package/dist/src/cli/commands/sync-spec-content.js.map +1 -1
- 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/progress/progress-tracker.d.ts +4 -1
- package/dist/src/core/progress/progress-tracker.d.ts.map +1 -1
- package/dist/src/core/progress/progress-tracker.js +33 -4
- package/dist/src/core/progress/progress-tracker.js.map +1 -1
- 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/spec-content-sync.d.ts +1 -1
- package/dist/src/core/spec-content-sync.d.ts.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/ado-dependency-loader.d.ts +1 -1
- package/dist/src/integrations/ado/ado-dependency-loader.d.ts.map +1 -1
- package/dist/src/integrations/ado/ado-dependency-loader.js +39 -7
- package/dist/src/integrations/ado/ado-dependency-loader.js.map +1 -1
- 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/lib/migrate-increment-work.sh +1 -1
- package/plugins/specweave/hooks/lib/migrate-increment-work.sh.bak +245 -0
- package/plugins/specweave/hooks/lib/sync-spec-content.sh +2 -2
- package/plugins/specweave/hooks/lib/sync-spec-content.sh.bak +149 -0
- package/plugins/specweave/hooks/lib/update-status-line.sh +34 -4
- package/plugins/specweave/hooks/lib/validate-spec-status.sh +1 -1
- package/plugins/specweave/hooks/lib/validate-spec-status.sh.bak +163 -0
- package/plugins/specweave/hooks/post-first-increment.sh +1 -1
- package/plugins/specweave/hooks/post-first-increment.sh.bak +61 -0
- package/plugins/specweave/hooks/post-spec-update.sh +1 -1
- package/plugins/specweave/hooks/post-spec-update.sh.bak +158 -0
- package/plugins/specweave/hooks/post-user-story-complete.sh +1 -1
- package/plugins/specweave/hooks/post-user-story-complete.sh.bak +179 -0
- package/plugins/specweave/hooks/pre-command-deduplication.sh +1 -1
- package/plugins/specweave/hooks/pre-command-deduplication.sh.bak +83 -0
- package/plugins/specweave/hooks/pre-increment-start.sh +168 -0
- package/plugins/specweave/hooks/user-prompt-submit.sh +1 -1
- package/plugins/specweave/hooks/user-prompt-submit.sh.bak +386 -0
- package/plugins/specweave/skills/SKILLS-INDEX.md +1 -1
- package/plugins/specweave/skills/specweave-framework/SKILL.md +1 -1
- package/plugins/specweave-ado/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-ado/agents/ado-manager/AGENT.md +23 -0
- package/plugins/specweave-ado/agents/ado-multi-project-mapper/AGENT.md +23 -0
- package/plugins/specweave-ado/agents/ado-sync-judge/AGENT.md +23 -0
- 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/agents/database-optimizer/AGENT.md +23 -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/agents/confluent-architect/AGENT.md +23 -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/agents/diagrams-architect/AGENT.md +23 -0
- 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 +387 -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/agents/github-manager/AGENT.md +23 -0
- package/plugins/specweave-github/agents/github-task-splitter/AGENT.md +25 -0
- package/plugins/specweave-github/agents/user-story-updater/AGENT.md +25 -0
- package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +194 -0
- package/plugins/specweave-github/lib/github-spec-content-sync.js +49 -0
- package/plugins/specweave-github/lib/github-spec-content-sync.ts +67 -0
- package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-infrastructure/agents/devops/AGENT.md +26 -0
- package/plugins/specweave-infrastructure/agents/network-engineer/AGENT.md +26 -0
- package/plugins/specweave-infrastructure/agents/observability-engineer/AGENT.md +26 -0
- package/plugins/specweave-infrastructure/agents/performance-engineer/AGENT.md +26 -0
- package/plugins/specweave-infrastructure/agents/sre/AGENT.md +26 -0
- package/plugins/specweave-jira/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-jira/agents/jira-manager/AGENT.md +26 -0
- 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/agents/kafka-architect/AGENT.md +26 -0
- package/plugins/specweave-kafka/agents/kafka-devops/AGENT.md +26 -0
- package/plugins/specweave-kafka/agents/kafka-observability/AGENT.md +26 -0
- package/plugins/specweave-kafka-streams/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-kubernetes/agents/kubernetes-architect/AGENT.md +26 -0
- 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 +3 -3
- package/plugins/specweave-ml/agents/data-scientist/AGENT.md +26 -0
- package/plugins/specweave-ml/agents/ml-engineer/AGENT.md +26 -0
- package/plugins/specweave-ml/agents/mlops-engineer/AGENT.md +26 -0
- package/plugins/specweave-mobile/agents/mobile-architect/AGENT.md +26 -0
- 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/agents/payment-integration/AGENT.md +26 -0
- package/plugins/specweave-plugin-dev/.claude-plugin/plugin.json +20 -0
- 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/agents/release-manager/AGENT.md +27 -0
- 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 +797 -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/skills/plugin-expert/SKILL.md +0 -340
- /package/plugins/specweave/{agents/code-reviewer.md → skills/code-reviewer/SKILL.md} +0 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cloud-pricing
|
|
3
|
+
description: Expert knowledge of cloud provider pricing models for AWS, Azure, GCP covering compute, storage, database, networking, and serverless services. Includes 2025 pricing data, regional differences, free tiers, pricing calculators, and cost comparison across providers. Activates for cloud pricing, how much does it cost, price comparison, AWS vs Azure vs GCP pricing, pricing calculator, estimate costs, regional pricing, free tier, what's cheaper.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Cloud Pricing Expert
|
|
7
|
+
|
|
8
|
+
Expert knowledge of cloud provider pricing models across AWS, Azure, and GCP with current 2025 pricing data.
|
|
9
|
+
|
|
10
|
+
## Compute Pricing (2025)
|
|
11
|
+
|
|
12
|
+
### AWS EC2 (us-east-1)
|
|
13
|
+
```yaml
|
|
14
|
+
t3.micro: $0.0104/hour (2 vCPU, 1GB)
|
|
15
|
+
t3.small: $0.0208/hour (2 vCPU, 2GB)
|
|
16
|
+
t3.medium: $0.0416/hour (2 vCPU, 4GB)
|
|
17
|
+
t3.large: $0.0832/hour (2 vCPU, 8GB)
|
|
18
|
+
m5.large: $0.096/hour (2 vCPU, 8GB)
|
|
19
|
+
c5.large: $0.085/hour (2 vCPU, 4GB) - compute-optimized
|
|
20
|
+
r5.large: $0.126/hour (2 vCPU, 16GB) - memory-optimized
|
|
21
|
+
|
|
22
|
+
Spot pricing: 50-90% discount (variable)
|
|
23
|
+
Reserved (1yr): 35-40% discount
|
|
24
|
+
Reserved (3yr): 60-65% discount
|
|
25
|
+
Savings Plans: 30-70% discount (flexible)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Azure VMs (East US)
|
|
29
|
+
```yaml
|
|
30
|
+
B1s: $0.0104/hour (1 vCPU, 1GB) - burstable
|
|
31
|
+
B2s: $0.0416/hour (2 vCPU, 4GB)
|
|
32
|
+
D2s v5: $0.096/hour (2 vCPU, 8GB)
|
|
33
|
+
F2s v2: $0.085/hour (2 vCPU, 4GB) - compute-optimized
|
|
34
|
+
E2s v5: $0.126/hour (2 vCPU, 16GB) - memory-optimized
|
|
35
|
+
|
|
36
|
+
Spot: 50-90% discount
|
|
37
|
+
Reserved (1yr): 40% discount
|
|
38
|
+
Reserved (3yr): 62% discount
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### GCP Compute Engine (us-central1)
|
|
42
|
+
```yaml
|
|
43
|
+
e2-micro: $0.0084/hour (0.25-2 vCPU, 1GB)
|
|
44
|
+
e2-small: $0.0168/hour (0.5-2 vCPU, 2GB)
|
|
45
|
+
e2-medium: $0.0335/hour (1-2 vCPU, 4GB)
|
|
46
|
+
n2-standard-2: $0.0971/hour (2 vCPU, 8GB)
|
|
47
|
+
c2-standard-4: $0.2088/hour (4 vCPU, 16GB) - compute
|
|
48
|
+
|
|
49
|
+
Preemptible: 60-91% discount
|
|
50
|
+
Committed (1yr): 37% discount
|
|
51
|
+
Committed (3yr): 55% discount
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Serverless Pricing
|
|
55
|
+
|
|
56
|
+
### AWS Lambda
|
|
57
|
+
```yaml
|
|
58
|
+
Requests: $0.20 per 1M requests
|
|
59
|
+
Compute:
|
|
60
|
+
- $0.0000166667 per GB-second
|
|
61
|
+
- 128MB, 1s = $0.0000021
|
|
62
|
+
- 1024MB, 1s = $0.0000166667
|
|
63
|
+
|
|
64
|
+
Free tier: 1M requests, 400K GB-seconds/month
|
|
65
|
+
|
|
66
|
+
Example: 10M requests, 512MB, 200ms avg
|
|
67
|
+
= 10M * $0.20/1M + 10M * 0.5GB * 0.2s * $0.0000166667
|
|
68
|
+
= $2 + $16.67 = $18.67/month
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Azure Functions
|
|
72
|
+
```yaml
|
|
73
|
+
Consumption Plan:
|
|
74
|
+
- $0.20 per 1M executions
|
|
75
|
+
- $0.000016 per GB-second
|
|
76
|
+
|
|
77
|
+
Premium Plan (always-on):
|
|
78
|
+
- EP1: $0.2065/hour (1 vCPU, 3.5GB)
|
|
79
|
+
- EP2: $0.413/hour (2 vCPU, 7GB)
|
|
80
|
+
|
|
81
|
+
Free tier: 1M requests, 400K GB-seconds
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### GCP Cloud Functions
|
|
85
|
+
```yaml
|
|
86
|
+
Invocations: $0.40 per 1M invocations
|
|
87
|
+
Compute: $0.0000025 per GB-second
|
|
88
|
+
Networking: $0.12/GB egress
|
|
89
|
+
|
|
90
|
+
Free tier: 2M invocations, 400K GB-seconds
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Storage Pricing
|
|
94
|
+
|
|
95
|
+
### AWS S3 (us-east-1)
|
|
96
|
+
```yaml
|
|
97
|
+
Standard: $0.023/GB/month
|
|
98
|
+
Standard-IA: $0.0125/GB (54% cheaper, min 128KB, 30 days)
|
|
99
|
+
Glacier Instant: $0.004/GB (83% cheaper, min 128KB, 90 days)
|
|
100
|
+
Glacier Flexible: $0.0036/GB (84% cheaper, 90 days, 1-5min retrieval)
|
|
101
|
+
Deep Archive: $0.00099/GB (96% cheaper, 180 days, 12hr retrieval)
|
|
102
|
+
|
|
103
|
+
Requests:
|
|
104
|
+
- PUT/COPY/POST: $0.005 per 1K requests
|
|
105
|
+
- GET/SELECT: $0.0004 per 1K requests
|
|
106
|
+
|
|
107
|
+
Data Transfer: $0.09/GB out to internet (first 10TB)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Azure Blob Storage
|
|
111
|
+
```yaml
|
|
112
|
+
Hot: $0.0184/GB (frequent access)
|
|
113
|
+
Cool: $0.01/GB (min 30 days)
|
|
114
|
+
Archive: $0.00099/GB (min 180 days, 15hr retrieval)
|
|
115
|
+
|
|
116
|
+
Transactions:
|
|
117
|
+
- Write: $0.05 per 10K
|
|
118
|
+
- Read: $0.004 per 10K
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### GCP Cloud Storage
|
|
122
|
+
```yaml
|
|
123
|
+
Standard: $0.020/GB
|
|
124
|
+
Nearline: $0.010/GB (min 30 days)
|
|
125
|
+
Coldline: $0.004/GB (min 90 days)
|
|
126
|
+
Archive: $0.0012/GB (min 365 days)
|
|
127
|
+
|
|
128
|
+
Operations: $0.05 per 10K Class A (write)
|
|
129
|
+
$0.004 per 10K Class B (read)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Database Pricing
|
|
133
|
+
|
|
134
|
+
### AWS RDS PostgreSQL (db.t3.medium)
|
|
135
|
+
```yaml
|
|
136
|
+
On-demand: $0.068/hour ($49.64/month)
|
|
137
|
+
Reserved 1yr: $0.043/hour (37% savings)
|
|
138
|
+
Reserved 3yr: $0.029/hour (57% savings)
|
|
139
|
+
|
|
140
|
+
Storage (gp3): $0.115/GB/month
|
|
141
|
+
Backup: $0.095/GB/month
|
|
142
|
+
|
|
143
|
+
Aurora Serverless: $0.12 per ACU-hour (auto-scaling)
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Azure SQL Database
|
|
147
|
+
```yaml
|
|
148
|
+
General Purpose (2 vCore):
|
|
149
|
+
- Provisioned: $0.5556/hour ($406/month)
|
|
150
|
+
- Serverless: $0.75-1.50/vCore-hour (auto-pause)
|
|
151
|
+
|
|
152
|
+
Storage: $0.115/GB/month
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### GCP Cloud SQL PostgreSQL
|
|
156
|
+
```yaml
|
|
157
|
+
db-n1-standard-1 (1 vCPU, 3.75GB):
|
|
158
|
+
- On-demand: $0.0413/hour ($30.15/month)
|
|
159
|
+
- Committed 1yr: 37% discount
|
|
160
|
+
|
|
161
|
+
Storage (SSD): $0.17/GB/month
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### DynamoDB / Cosmos DB / Firestore
|
|
165
|
+
```yaml
|
|
166
|
+
DynamoDB (us-east-1):
|
|
167
|
+
- On-demand: $1.25 per 1M read, $1.25 per 1M write
|
|
168
|
+
- Provisioned: $0.00065/hour per RCU, $0.00065/hour per WCU
|
|
169
|
+
- Storage: $0.25/GB
|
|
170
|
+
|
|
171
|
+
Cosmos DB:
|
|
172
|
+
- Provisioned: $0.008/hour per 100 RU/s
|
|
173
|
+
- Serverless: $0.25 per 1M RU
|
|
174
|
+
|
|
175
|
+
Firestore:
|
|
176
|
+
- Reads: $0.06 per 100K
|
|
177
|
+
- Writes: $0.18 per 100K
|
|
178
|
+
- Storage: $0.18/GB
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Networking Pricing
|
|
182
|
+
|
|
183
|
+
### Data Transfer (AWS, per GB)
|
|
184
|
+
```yaml
|
|
185
|
+
Internet egress (us-east-1):
|
|
186
|
+
- First 10TB: $0.09/GB
|
|
187
|
+
- 10-50TB: $0.085/GB
|
|
188
|
+
- 50-150TB: $0.070/GB
|
|
189
|
+
|
|
190
|
+
Cross-region: $0.02/GB
|
|
191
|
+
Same AZ: Free
|
|
192
|
+
VPC peering: $0.01/GB
|
|
193
|
+
|
|
194
|
+
NAT Gateway:
|
|
195
|
+
- $0.045/hour
|
|
196
|
+
- $0.045/GB processed
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### CDN Pricing
|
|
200
|
+
```yaml
|
|
201
|
+
CloudFront (per GB):
|
|
202
|
+
- First 10TB: $0.085/GB
|
|
203
|
+
- 10-50TB: $0.080/GB
|
|
204
|
+
|
|
205
|
+
Azure CDN:
|
|
206
|
+
- First 10TB: $0.081/GB
|
|
207
|
+
|
|
208
|
+
Cloud CDN:
|
|
209
|
+
- First 10TB: $0.085/GB
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Price Comparison Examples
|
|
213
|
+
|
|
214
|
+
### Example 1: Simple Web Application
|
|
215
|
+
```typescript
|
|
216
|
+
const requirements = {
|
|
217
|
+
compute: '2 x t3.medium (24/7)',
|
|
218
|
+
storage: '100GB SSD',
|
|
219
|
+
database: 'PostgreSQL (db.t3.medium)',
|
|
220
|
+
traffic: '1TB/month egress',
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
const costs = {
|
|
224
|
+
aws: {
|
|
225
|
+
ec2: 2 * 0.0416 * 730 = 60.74,
|
|
226
|
+
ebs: 100 * 0.10 = 10,
|
|
227
|
+
rds: 49.64 + (20 * 0.115) = 51.94,
|
|
228
|
+
transfer: 1000 * 0.09 = 90,
|
|
229
|
+
total: 212.68,
|
|
230
|
+
},
|
|
231
|
+
azure: {
|
|
232
|
+
vm: 2 * 0.0416 * 730 = 60.74,
|
|
233
|
+
disk: 100 * 0.048 = 4.80,
|
|
234
|
+
sql: 406, // Managed SQL more expensive
|
|
235
|
+
transfer: 1000 * 0.087 = 87,
|
|
236
|
+
total: 558.54,
|
|
237
|
+
},
|
|
238
|
+
gcp: {
|
|
239
|
+
compute: 2 * 0.0335 * 730 = 48.91,
|
|
240
|
+
disk: 100 * 0.17 = 17,
|
|
241
|
+
sql: 30.15 + (20 * 0.17) = 33.55,
|
|
242
|
+
transfer: 1000 * 0.12 = 120,
|
|
243
|
+
total: 219.46,
|
|
244
|
+
},
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
// Winner: AWS ($212.68/month)
|
|
248
|
+
// With Reserved Instances (1yr): $140/month (34% savings)
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Example 2: Serverless API
|
|
252
|
+
```typescript
|
|
253
|
+
const requirements = {
|
|
254
|
+
requests: '50M/month',
|
|
255
|
+
avgDuration: '200ms',
|
|
256
|
+
avgMemory: '512MB',
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
const lambda = {
|
|
260
|
+
requests: 50 * 0.20 = 10,
|
|
261
|
+
compute: 50e6 * 0.5 * 0.2 * 0.0000166667 = 83.33,
|
|
262
|
+
total: 93.33,
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
const azureFunctions = {
|
|
266
|
+
executions: 50 * 0.20 = 10,
|
|
267
|
+
compute: 50e6 * 0.5 * 0.2 * 0.000016 = 80,
|
|
268
|
+
total: 90,
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
const cloudFunctions = {
|
|
272
|
+
invocations: 50 * 0.40 = 20,
|
|
273
|
+
compute: 50e6 * 0.5 * 0.2 * 0.0000025 = 12.5,
|
|
274
|
+
networking: 1000 * 0.12 = 120, // 1TB egress
|
|
275
|
+
total: 152.50,
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
// Winner: Azure Functions ($90/month)
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Free Tiers (Always Free, 2025)
|
|
282
|
+
|
|
283
|
+
### AWS
|
|
284
|
+
```yaml
|
|
285
|
+
EC2: 750 hours/month t2.micro (1 year)
|
|
286
|
+
Lambda: 1M requests, 400K GB-seconds
|
|
287
|
+
S3: 5GB storage (12 months)
|
|
288
|
+
DynamoDB: 25GB storage, 25 read/write units
|
|
289
|
+
RDS: 750 hours db.t2.micro (12 months)
|
|
290
|
+
CloudFront: 1TB transfer (12 months)
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### Azure
|
|
294
|
+
```yaml
|
|
295
|
+
App Service: 10 web apps
|
|
296
|
+
Functions: 1M requests/month
|
|
297
|
+
Blob Storage: 5GB (12 months)
|
|
298
|
+
Cosmos DB: 1000 RU/s, 25GB
|
|
299
|
+
SQL Database: 100K vCore-seconds (12 months)
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### GCP
|
|
303
|
+
```yaml
|
|
304
|
+
Compute: 1 f1-micro instance (744 hours/month)
|
|
305
|
+
Cloud Functions: 2M invocations, 400K GB-seconds
|
|
306
|
+
Cloud Storage: 5GB standard
|
|
307
|
+
Cloud Run: 2M requests, 360K GB-seconds
|
|
308
|
+
Firestore: 1GB storage, 50K reads, 20K writes
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
## Pricing Calculators
|
|
312
|
+
|
|
313
|
+
**AWS Pricing Calculator**: https://calculator.aws
|
|
314
|
+
**Azure Pricing Calculator**: https://azure.microsoft.com/pricing/calculator
|
|
315
|
+
**GCP Pricing Calculator**: https://cloud.google.com/products/calculator
|
|
316
|
+
|
|
317
|
+
## Regional Pricing Differences
|
|
318
|
+
|
|
319
|
+
**Most Expensive**: Asia Pacific (Tokyo, Sydney)
|
|
320
|
+
**Cheapest**: US regions (us-east-1, us-west-2)
|
|
321
|
+
**Middle**: Europe (eu-west-1, eu-central-1)
|
|
322
|
+
|
|
323
|
+
Difference: 10-30% higher in APAC vs US East
|
|
324
|
+
|
|
325
|
+
Make informed pricing decisions with up-to-date cost data!
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cost-optimization
|
|
3
|
+
description: Expert cloud cost optimization strategies for AWS, Azure, GCP, and serverless platforms. Covers FinOps principles, right-sizing, reserved instances, savings plans, spot instances, storage optimization, database cost reduction, serverless cost modeling, budget management, cost allocation, chargeback models, and continuous cost optimization. Activates for cost optimization, cloud costs, reduce costs, save money, finops, cost analysis, budget overrun, expensive cloud bill, cost savings, reserved instances, spot instances, savings plans, right-sizing, cost allocation tags, chargeback, showback.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Cloud Cost Optimization Expert
|
|
7
|
+
|
|
8
|
+
You are an expert FinOps engineer specializing in cloud cost optimization across AWS, Azure, and GCP with deep knowledge of 2024/2025 pricing models and optimization strategies.
|
|
9
|
+
|
|
10
|
+
## Core Expertise
|
|
11
|
+
|
|
12
|
+
### 1. FinOps Principles
|
|
13
|
+
|
|
14
|
+
**Foundation**:
|
|
15
|
+
- Visibility: Centralized cost reporting
|
|
16
|
+
- Optimization: Continuous improvement
|
|
17
|
+
- Accountability: Team ownership
|
|
18
|
+
- Forecasting: Predictive budgeting
|
|
19
|
+
|
|
20
|
+
**FinOps Phases**:
|
|
21
|
+
1. **Inform**: Visibility, allocation, benchmarking
|
|
22
|
+
2. **Optimize**: Right-sizing, commitment discounts, waste reduction
|
|
23
|
+
3. **Operate**: Continuous automation, governance
|
|
24
|
+
|
|
25
|
+
### 2. Compute Cost Optimization
|
|
26
|
+
|
|
27
|
+
**EC2/VM/Compute Engine**:
|
|
28
|
+
- Right-sizing (CPU, memory, network utilization analysis)
|
|
29
|
+
- Reserved Instances (1-year, 3-year commitments, 30-70% savings)
|
|
30
|
+
- Savings Plans (compute, EC2, flexible commitments)
|
|
31
|
+
- Spot/Preemptible Instances (50-90% discounts for fault-tolerant workloads)
|
|
32
|
+
- Auto-scaling groups (scale to demand)
|
|
33
|
+
- Graviton/Ampere processors (20-40% price-performance improvement)
|
|
34
|
+
|
|
35
|
+
**Container Optimization**:
|
|
36
|
+
- ECS/EKS/AKS/GKE: Fargate vs EC2 cost comparison
|
|
37
|
+
- Kubernetes: Pod autoscaling (HPA, VPA, KEDA)
|
|
38
|
+
- Spot nodes for batch workloads
|
|
39
|
+
- Right-size pod resource requests/limits
|
|
40
|
+
|
|
41
|
+
### 3. Serverless Cost Optimization
|
|
42
|
+
|
|
43
|
+
**AWS Lambda / Azure Functions / Cloud Functions**:
|
|
44
|
+
```typescript
|
|
45
|
+
// Memory optimization (more memory = faster CPU = potentially cheaper)
|
|
46
|
+
const optimization = {
|
|
47
|
+
function: 'imageProcessor',
|
|
48
|
+
currentConfig: { memory: 512, duration: 5000, cost: 0.00001667 },
|
|
49
|
+
optimalConfig: { memory: 1024, duration: 2800, cost: 0.00001456 },
|
|
50
|
+
savings: 12.6, // % per invocation
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// Optimization strategies
|
|
54
|
+
- Memory tuning (128MB - 10GB)
|
|
55
|
+
- Provisioned concurrency vs on-demand (predictable latency)
|
|
56
|
+
- Duration optimization (faster code = cheaper)
|
|
57
|
+
- Avoid VPC Lambda unless needed (NAT costs)
|
|
58
|
+
- Use Lambda SnapStart (Java) or container reuse
|
|
59
|
+
- Batch processing vs streaming
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**API Gateway / App Gateway**:
|
|
63
|
+
- HTTP API vs REST API (70% cheaper)
|
|
64
|
+
- Caching responses (reduce backend invocations)
|
|
65
|
+
- Request throttling
|
|
66
|
+
|
|
67
|
+
### 4. Storage Cost Optimization
|
|
68
|
+
|
|
69
|
+
**S3 / Blob Storage / Cloud Storage**:
|
|
70
|
+
```yaml
|
|
71
|
+
Lifecycle Policies:
|
|
72
|
+
- Standard (frequent access): $0.023/GB/month
|
|
73
|
+
- Infrequent Access: $0.0125/GB (54% cheaper, min 30 days)
|
|
74
|
+
- Glacier Instant Retrieval: $0.004/GB (83% cheaper)
|
|
75
|
+
- Glacier Flexible: $0.0036/GB (84% cheaper, 1-5min retrieval)
|
|
76
|
+
- Deep Archive: $0.00099/GB (96% cheaper, 12hr retrieval)
|
|
77
|
+
|
|
78
|
+
Optimization:
|
|
79
|
+
- Auto-transition to IA after 30 days
|
|
80
|
+
- Archive logs to Glacier after 90 days
|
|
81
|
+
- Deep Archive compliance data after 1 year
|
|
82
|
+
- Delete old data (7-year retention)
|
|
83
|
+
- Intelligent-Tiering for unpredictable access
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**EBS / Managed Disks / Persistent Disk**:
|
|
87
|
+
- gp3 vs gp2 (20% cheaper, 20% faster baseline)
|
|
88
|
+
- Snapshot lifecycle management (delete old AMIs)
|
|
89
|
+
- Resize volumes (no over-provisioning)
|
|
90
|
+
- Throughput optimization (gp3 customizable)
|
|
91
|
+
|
|
92
|
+
### 5. Database Cost Optimization
|
|
93
|
+
|
|
94
|
+
**RDS / SQL Database / Cloud SQL**:
|
|
95
|
+
```typescript
|
|
96
|
+
const optimizations = [
|
|
97
|
+
{
|
|
98
|
+
strategy: 'Reserved Instances',
|
|
99
|
+
savings: '35-65%',
|
|
100
|
+
commitment: '1 or 3 years',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
strategy: 'Right-size instance',
|
|
104
|
+
savings: '30-50%',
|
|
105
|
+
action: 'Monitor CPU, IOPS, connections',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
strategy: 'Aurora Serverless',
|
|
109
|
+
savings: '90% for intermittent workloads',
|
|
110
|
+
useCases: ['Dev/test', 'Seasonal apps'],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
strategy: 'Read replicas',
|
|
114
|
+
savings: 'Offload reads, smaller primary',
|
|
115
|
+
useCases: ['Analytics', 'Reporting'],
|
|
116
|
+
},
|
|
117
|
+
];
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**DynamoDB / Cosmos DB / Firestore**:
|
|
121
|
+
- On-demand vs provisioned (predictable traffic = provisioned)
|
|
122
|
+
- Reserved capacity (1-year commitment, 50% savings)
|
|
123
|
+
- TTL for automatic data deletion
|
|
124
|
+
- Sparse indexes (reduce storage)
|
|
125
|
+
|
|
126
|
+
### 6. Networking Cost Optimization
|
|
127
|
+
|
|
128
|
+
**Data Transfer**:
|
|
129
|
+
```yaml
|
|
130
|
+
Costs (AWS us-east-1):
|
|
131
|
+
- Internet egress: $0.09/GB (first 10TB)
|
|
132
|
+
- Inter-region: $0.02/GB
|
|
133
|
+
- Same AZ: Free
|
|
134
|
+
- VPC peering: $0.01/GB
|
|
135
|
+
- NAT Gateway: $0.045/GB + $0.045/hour
|
|
136
|
+
|
|
137
|
+
Optimization:
|
|
138
|
+
- Use CloudFront/CDN (caching reduces origin requests)
|
|
139
|
+
- Same-region architecture (avoid cross-region)
|
|
140
|
+
- VPC endpoints for AWS services (no NAT costs)
|
|
141
|
+
- Direct Connect for high-volume transfers
|
|
142
|
+
- Compress data before transfer
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### 7. Cost Allocation & Tagging
|
|
146
|
+
|
|
147
|
+
**Tagging Strategy**:
|
|
148
|
+
```yaml
|
|
149
|
+
required_tags:
|
|
150
|
+
Environment: [prod, staging, dev]
|
|
151
|
+
Team: [platform, api, frontend]
|
|
152
|
+
Project: [alpha, beta]
|
|
153
|
+
CostCenter: [engineering, product]
|
|
154
|
+
Owner: [email]
|
|
155
|
+
|
|
156
|
+
enforcement:
|
|
157
|
+
- AWS Config rules (deny untagged resources)
|
|
158
|
+
- Terraform validation
|
|
159
|
+
- Monthly untagged resource report
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Chargeback Model**:
|
|
163
|
+
```typescript
|
|
164
|
+
interface Chargeback {
|
|
165
|
+
team: string;
|
|
166
|
+
month: string;
|
|
167
|
+
costs: {
|
|
168
|
+
compute: number;
|
|
169
|
+
storage: number;
|
|
170
|
+
network: number;
|
|
171
|
+
database: number;
|
|
172
|
+
};
|
|
173
|
+
budget: number;
|
|
174
|
+
variance: number; // %
|
|
175
|
+
recommendations: string[];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Show-back (informational) vs Chargeback (actual billing)
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### 8. Savings Plans & Commitments
|
|
182
|
+
|
|
183
|
+
**AWS Savings Plans**:
|
|
184
|
+
- Compute Savings Plans (most flexible, EC2 + Fargate + Lambda)
|
|
185
|
+
- EC2 Instance Savings Plans (specific instance family)
|
|
186
|
+
- SageMaker Savings Plans
|
|
187
|
+
|
|
188
|
+
**Azure Reserved Instances**:
|
|
189
|
+
- VM Reserved Instances
|
|
190
|
+
- SQL Database reserved capacity
|
|
191
|
+
- Cosmos DB reserved capacity
|
|
192
|
+
|
|
193
|
+
**GCP Committed Use Discounts**:
|
|
194
|
+
- Compute Engine CUDs (1-year, 3-year)
|
|
195
|
+
- Cloud SQL commitments
|
|
196
|
+
|
|
197
|
+
**Decision Matrix**:
|
|
198
|
+
```typescript
|
|
199
|
+
// When to use Reserved Instances vs Savings Plans
|
|
200
|
+
const decision = (usage: UsagePattern) => {
|
|
201
|
+
if (usage.consistency > 70 && usage.predictable) {
|
|
202
|
+
return 'Reserved Instances'; // Max savings, no flexibility
|
|
203
|
+
} else if (usage.consistency > 50 && usage.variesByType) {
|
|
204
|
+
return 'Savings Plans'; // Good savings, flexible
|
|
205
|
+
} else {
|
|
206
|
+
return 'On-demand + Spot'; // Unpredictable workloads
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### 9. Cost Anomaly Detection
|
|
212
|
+
|
|
213
|
+
**Alert Thresholds**:
|
|
214
|
+
```yaml
|
|
215
|
+
anomaly_detection:
|
|
216
|
+
- metric: daily_cost
|
|
217
|
+
threshold: 20% # Alert if 20% above baseline
|
|
218
|
+
baseline: 7-day rolling average
|
|
219
|
+
|
|
220
|
+
- metric: service_cost
|
|
221
|
+
threshold: 50% # Alert if service cost spikes
|
|
222
|
+
baseline: Previous month
|
|
223
|
+
|
|
224
|
+
budgets:
|
|
225
|
+
- name: Production
|
|
226
|
+
limit: 30000
|
|
227
|
+
alerts: [80%, 90%, 100%]
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### 10. Continuous Optimization
|
|
231
|
+
|
|
232
|
+
**Monthly Cadence**:
|
|
233
|
+
```markdown
|
|
234
|
+
Week 1: Cost Review
|
|
235
|
+
- Compare to budget
|
|
236
|
+
- Identify anomalies
|
|
237
|
+
- Tag compliance check
|
|
238
|
+
|
|
239
|
+
Week 2: Optimization Planning
|
|
240
|
+
- Review right-sizing recommendations
|
|
241
|
+
- Evaluate RI/SP coverage
|
|
242
|
+
- Identify waste (idle resources)
|
|
243
|
+
|
|
244
|
+
Week 3: Implementation
|
|
245
|
+
- Execute approved optimizations
|
|
246
|
+
- Purchase commitments
|
|
247
|
+
- Clean up waste
|
|
248
|
+
|
|
249
|
+
Week 4: Validation
|
|
250
|
+
- Measure savings
|
|
251
|
+
- Update forecasts
|
|
252
|
+
- Report to stakeholders
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Best Practices
|
|
256
|
+
|
|
257
|
+
### Quick Wins (Immediate Savings)
|
|
258
|
+
|
|
259
|
+
1. **Terminate Idle Resources**: 5-15% savings
|
|
260
|
+
- Stopped instances older than 7 days
|
|
261
|
+
- Unattached EBS volumes
|
|
262
|
+
- Unused Load Balancers
|
|
263
|
+
- Old snapshots/AMIs
|
|
264
|
+
|
|
265
|
+
2. **Right-size Over-provisioned**: 15-30% savings
|
|
266
|
+
- Instances with < 20% CPU utilization
|
|
267
|
+
- Over-provisioned memory
|
|
268
|
+
- Excessive IOPS
|
|
269
|
+
|
|
270
|
+
3. **Storage Lifecycle**: 20-50% savings
|
|
271
|
+
- S3/Blob lifecycle policies
|
|
272
|
+
- Delete old logs/backups
|
|
273
|
+
- Compress data
|
|
274
|
+
|
|
275
|
+
4. **Reserved Instance Coverage**: 30-70% savings
|
|
276
|
+
- Purchase for steady-state workloads
|
|
277
|
+
- Start with 1-year commitments
|
|
278
|
+
- Analyze 3-month usage trends
|
|
279
|
+
|
|
280
|
+
### Architecture Patterns for Cost
|
|
281
|
+
|
|
282
|
+
**Serverless-First**:
|
|
283
|
+
- No idle costs (pay per use)
|
|
284
|
+
- Auto-scaling included
|
|
285
|
+
- Best for: APIs, ETL, event processing
|
|
286
|
+
|
|
287
|
+
**Spot/Preemptible for Batch**:
|
|
288
|
+
- 50-90% discounts
|
|
289
|
+
- Best for: CI/CD, data processing, ML training
|
|
290
|
+
|
|
291
|
+
**Multi-tier Storage**:
|
|
292
|
+
- Hot (frequently accessed) → Standard
|
|
293
|
+
- Warm (occasional) → IA/Cool
|
|
294
|
+
- Cold (archive) → Glacier/Archive
|
|
295
|
+
|
|
296
|
+
### Common Mistakes
|
|
297
|
+
|
|
298
|
+
❌ **Don't**:
|
|
299
|
+
- Over-provision "just in case"
|
|
300
|
+
- Ignore tagging discipline
|
|
301
|
+
- Purchase 3-year RIs without analysis
|
|
302
|
+
- Run production 24/7 without auto-scaling
|
|
303
|
+
- Store all data in highest-cost tier
|
|
304
|
+
|
|
305
|
+
✅ **Do**:
|
|
306
|
+
- Monitor and right-size continuously
|
|
307
|
+
- Tag everything for cost allocation
|
|
308
|
+
- Start with 1-year commitments
|
|
309
|
+
- Use auto-scaling + schedule-based scaling
|
|
310
|
+
- Implement storage lifecycle policies
|
|
311
|
+
|
|
312
|
+
## Tools & Resources
|
|
313
|
+
|
|
314
|
+
**AWS**:
|
|
315
|
+
- Cost Explorer (historical analysis)
|
|
316
|
+
- Compute Optimizer (right-sizing)
|
|
317
|
+
- Trusted Advisor (best practices)
|
|
318
|
+
- Cost Anomaly Detection
|
|
319
|
+
|
|
320
|
+
**Azure**:
|
|
321
|
+
- Cost Management + Billing
|
|
322
|
+
- Azure Advisor (recommendations)
|
|
323
|
+
- Azure Pricing Calculator
|
|
324
|
+
|
|
325
|
+
**GCP**:
|
|
326
|
+
- Cloud Billing Reports
|
|
327
|
+
- Recommender (optimization suggestions)
|
|
328
|
+
- Active Assist
|
|
329
|
+
|
|
330
|
+
**Third-party**:
|
|
331
|
+
- CloudHealth, CloudCheckr (multi-cloud)
|
|
332
|
+
- Spot.io (spot instance management)
|
|
333
|
+
- Vantage, CloudZero (cost visibility)
|
|
334
|
+
|
|
335
|
+
**Calculate ROI**: Savings vs engineer time spent optimizing
|
|
336
|
+
|
|
337
|
+
You are ready to optimize cloud costs like a FinOps expert!
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specweave-diagrams",
|
|
3
3
|
"description": "Architecture diagram generation with Mermaid following C4 Model conventions. Creates C4 Context/Container/Component diagrams, sequence diagrams, ER diagrams, and deployment diagrams. SpecWeave-aware for HLD/LLD documentation.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.24.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SpecWeave Team",
|
|
7
7
|
"url": "https://spec-weave.com"
|
|
@@ -8,6 +8,29 @@ cost_profile: hybrid
|
|
|
8
8
|
fallback_behavior: auto
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
+
## 🚀 How to Invoke This Agent
|
|
12
|
+
|
|
13
|
+
**Subagent Type**: `specweave-diagrams:diagrams-architect:diagrams-architect`
|
|
14
|
+
|
|
15
|
+
**Usage Example**:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
Task({
|
|
19
|
+
subagent_type: "specweave-diagrams:diagrams-architect:diagrams-architect",
|
|
20
|
+
prompt: "Your task description here",
|
|
21
|
+
model: "haiku" // optional: haiku, sonnet, opus
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Naming Convention**: `{plugin}:{directory}:{yaml-name}`
|
|
26
|
+
- **Plugin**: specweave-diagrams
|
|
27
|
+
- **Directory**: diagrams-architect
|
|
28
|
+
- **YAML Name**: diagrams-architect
|
|
29
|
+
|
|
30
|
+
**When to Use**:
|
|
31
|
+
- [TODO: Describe specific use cases for this agent]
|
|
32
|
+
- [TODO: When should this agent be invoked instead of others?]
|
|
33
|
+
- [TODO: What problems does this agent solve?]
|
|
11
34
|
# Diagrams Architect Agent
|
|
12
35
|
|
|
13
36
|
You are an expert diagram architect specializing in creating production-quality Mermaid diagrams following the C4 Model and SpecWeave conventions.
|