mumucc 0.4.4 → 0.4.10
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/defaults/plugin-seed/known_marketplaces.json +11 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/.claude-plugin/marketplace.json +1016 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/agents/ui-visual-validator.md +192 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/commands/accessibility-audit.md +510 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/skills/screen-reader-testing/SKILL.md +538 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/accessibility-compliance/skills/wcag-audit-patterns/SKILL.md +548 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-orchestration/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-orchestration/agents/context-manager.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-orchestration/commands/improve-agent.md +319 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-orchestration/commands/multi-agent-optimize.md +209 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/README.md +153 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/agents/team-debugger.md +83 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/agents/team-implementer.md +85 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/agents/team-lead.md +91 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/agents/team-reviewer.md +102 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-debug.md +91 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-delegate.md +94 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-feature.md +114 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-review.md +78 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-shutdown.md +50 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-spawn.md +105 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/commands/team-status.md +60 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/multi-reviewer-patterns/SKILL.md +127 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/multi-reviewer-patterns/references/review-dimensions.md +127 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-debugging/SKILL.md +133 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-debugging/references/hypothesis-testing.md +120 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-feature-development/SKILL.md +174 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-feature-development/references/file-ownership.md +80 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/parallel-feature-development/references/merge-strategies.md +75 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/task-coordination-strategies/SKILL.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/task-coordination-strategies/references/dependency-graphs.md +97 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/task-coordination-strategies/references/task-decomposition.md +98 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-communication-protocols/SKILL.md +177 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-communication-protocols/references/messaging-patterns.md +112 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-composition-patterns/SKILL.md +141 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-composition-patterns/references/agent-type-selection.md +84 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/agent-teams/skills/team-composition-patterns/references/preset-teams.md +265 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/agents/django-pro.md +159 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/agents/fastapi-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/agents/graphql-architect.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-scaffolding/skills/fastapi-templates/SKILL.md +540 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-testing-observability/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-testing-observability/agents/api-documenter.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/api-testing-observability/commands/api-mock.md +1335 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/agents/frontend-developer.md +164 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/agents/observability-engineer.md +230 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/agents/performance-engineer.md +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/application-performance/commands/performance-optimization.md +681 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/arm-cortex-microcontrollers/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/arm-cortex-microcontrollers/agents/arm-cortex-expert.md +288 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-api-security/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-api-security/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-api-security/agents/backend-security-coder.md +153 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/event-sourcing-architect.md +46 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/graphql-architect.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/performance-engineer.md +44 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/security-auditor.md +41 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/tdd-orchestrator.md +183 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/temporal-python-pro.md +349 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/agents/test-automator.md +41 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/commands/feature-development.md +481 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/SKILL.md +518 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/architecture-patterns/SKILL.md +494 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/architecture-patterns/references/advanced-patterns.md +391 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/cqrs-implementation/SKILL.md +549 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/event-store-design/SKILL.md +431 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/microservices-patterns/SKILL.md +564 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/projection-patterns/SKILL.md +485 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/saga-orchestration/SKILL.md +361 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/saga-orchestration/references/advanced-patterns.md +453 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/SKILL.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/resources/integration-testing.md +455 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/resources/local-setup.md +553 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/resources/replay-testing.md +462 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/temporal-python-testing/resources/unit-testing.md +328 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/backend-development/skills/workflow-orchestration-patterns/SKILL.md +316 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/block-no-verify/.claude-plugin/plugin.json +9 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/block-no-verify/commands/block-no-verify.md +90 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/block-no-verify/skills/block-no-verify-hook/SKILL.md +193 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/agents/blockchain-developer.md +187 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/skills/defi-protocol-templates/SKILL.md +424 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/skills/nft-standards/SKILL.md +355 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/skills/solidity-security/SKILL.md +496 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/blockchain-web3/skills/web3-testing/SKILL.md +390 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/business-analytics/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/business-analytics/agents/business-analyst.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/business-analytics/skills/data-storytelling/SKILL.md +447 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/business-analytics/skills/kpi-dashboard-design/SKILL.md +493 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/agents/c4-code.md +320 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/agents/c4-component.md +227 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/agents/c4-container.md +248 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/agents/c4-context.md +235 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/c4-architecture/commands/c4-architecture.md +367 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/cloud-architect.md +128 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/deployment-engineer.md +157 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/devops-troubleshooter.md +155 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/kubernetes-architect.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/agents/terraform-specialist.md +154 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/commands/workflow-automate.md +1364 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/deployment-pipeline-design/SKILL.md +500 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/deployment-pipeline-design/references/advanced-strategies.md +629 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/github-actions-templates/SKILL.md +328 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/gitlab-ci-patterns/SKILL.md +267 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cicd-automation/skills/secrets-management/SKILL.md +347 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/cloud-architect.md +128 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/deployment-engineer.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/hybrid-cloud-architect.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/kubernetes-architect.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/network-engineer.md +165 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/service-mesh-expert.md +42 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/agents/terraform-specialist.md +154 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/cost-optimization/SKILL.md +313 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/cost-optimization/references/tagging-standards.md +23 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/hybrid-cloud-networking/SKILL.md +256 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/hybrid-cloud-networking/references/direct-connect.md +17 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/istio-traffic-management/SKILL.md +321 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/linkerd-patterns/SKILL.md +305 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/mtls-configuration/SKILL.md +342 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/multi-cloud-architecture/SKILL.md +179 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/multi-cloud-architecture/references/multi-cloud-patterns.md +26 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/multi-cloud-architecture/references/service-comparison.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/service-mesh-observability/SKILL.md +378 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/terraform-module-library/SKILL.md +251 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/terraform-module-library/references/aws-modules.md +70 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/cloud-infrastructure/skills/terraform-module-library/references/oci-modules.md +52 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/agents/docs-architect.md +78 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/agents/tutorial-engineer.md +125 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/commands/code-explain.md +845 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-documentation/commands/doc-generate.md +677 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/agents/legacy-modernizer.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/commands/context-restore.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/commands/refactor-clean.md +925 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/code-refactoring/commands/tech-debt.md +398 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/agents/test-automator.md +220 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/commands/deps-audit.md +791 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/commands/refactor-clean.md +925 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/codebase-cleanup/commands/tech-debt.md +398 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/agents/architect-review.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/agents/security-auditor.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/commands/full-review.md +597 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/comprehensive-review/commands/pr-enhance.md +709 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/README.md +125 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/agents/conductor-validator.md +245 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/implement.md +369 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/manage.md +1126 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/new-track.md +414 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/revert.md +353 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/setup.md +406 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/commands/status.md +319 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/skills/context-driven-development/SKILL.md +393 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/skills/context-driven-development/references/artifact-templates.md +154 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/skills/track-management/SKILL.md +593 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/skills/workflow-patterns/SKILL.md +623 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/csharp.md +600 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/dart.md +668 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/general.md +235 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/go.md +562 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/html-css.md +618 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/javascript.md +569 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/python.md +566 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/code_styleguides/typescript.md +451 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/index.md +90 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/product-guidelines.md +196 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/product.md +102 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/tech-stack.md +204 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/track-metadata.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/track-plan.md +198 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/track-spec.md +169 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/tracks.md +62 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/conductor/templates/workflow.md +192 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/content-marketing/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/content-marketing/agents/content-marketer.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/content-marketing/agents/search-specialist.md +59 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/context-management/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/context-management/agents/context-manager.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/context-management/commands/context-restore.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/context-management/commands/context-save.md +177 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/customer-sales-automation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/customer-sales-automation/agents/customer-support.md +163 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/customer-sales-automation/agents/sales-automator.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/agents/data-engineer.md +227 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/commands/data-driven-feature.md +784 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/commands/data-pipeline.md +209 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/skills/airflow-dag-patterns/SKILL.md +519 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/skills/data-quality-frameworks/SKILL.md +583 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/skills/dbt-transformation-patterns/SKILL.md +556 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-engineering/skills/spark-optimization/SKILL.md +411 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-validation-suite/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/data-validation-suite/agents/backend-security-coder.md +153 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/agents/cloud-architect.md +128 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/agents/database-architect.md +263 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/agents/database-optimizer.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-cloud-optimization/commands/cost-optimize.md +1459 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-design/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-design/agents/database-architect.md +263 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-design/agents/sql-pro.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-design/skills/postgresql/SKILL.md +202 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/agents/database-admin.md +160 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/agents/database-optimizer.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/commands/migration-observability.md +413 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/database-migrations/commands/sql-migrations.md +505 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/debugging-toolkit/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/debugging-toolkit/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/debugging-toolkit/agents/dx-optimizer.md +63 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/debugging-toolkit/commands/smart-debug.md +197 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dependency-management/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dependency-management/agents/legacy-modernizer.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dependency-management/commands/deps-audit.md +791 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-strategies/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-strategies/agents/deployment-engineer.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-strategies/agents/terraform-specialist.md +154 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-validation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-validation/agents/cloud-architect.md +128 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/deployment-validation/commands/config-validate.md +491 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/agents/monorepo-architect.md +45 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/auth-implementation-patterns/SKILL.md +638 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/bazel-build-optimization/SKILL.md +381 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/code-review-excellence/SKILL.md +529 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/debugging-strategies/SKILL.md +527 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/e2e-testing-patterns/SKILL.md +535 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/error-handling-patterns/SKILL.md +632 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/git-advanced-workflows/SKILL.md +396 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/monorepo-management/SKILL.md +614 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/nx-workspace-patterns/SKILL.md +451 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/sql-optimization-patterns/SKILL.md +499 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/developer-essentials/skills/turborepo-caching/SKILL.md +370 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/distributed-debugging/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/distributed-debugging/agents/devops-troubleshooter.md +155 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/distributed-debugging/agents/error-detective.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/distributed-debugging/commands/debug-trace.md +1380 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/api-documenter.md +161 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/docs-architect.md +78 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/mermaid-expert.md +43 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/reference-builder.md +181 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/agents/tutorial-engineer.md +125 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/commands/doc-generate.md +677 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/skills/architecture-decision-records/SKILL.md +441 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/skills/changelog-automation/SKILL.md +572 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/skills/openapi-spec-generation/SKILL.md +536 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-generation/skills/openapi-spec-generation/references/code-first-and-tooling.md +491 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-standards/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/documentation-standards/skills/hads/SKILL.md +189 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/README.md +135 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/agents/dotnet-architect.md +183 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/SKILL.md +810 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/assets/repository-template.cs +523 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/assets/service-template.cs +336 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/references/dapper-patterns.md +546 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/dotnet-contribution/skills/dotnet-backend-patterns/references/ef-core-best-practices.md +355 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/agents/error-detective.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/commands/error-analysis.md +1196 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/commands/error-trace.md +1388 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-debugging/commands/multi-agent-review.md +208 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/agents/error-detective.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/commands/error-analysis.md +1196 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/commands/error-trace.md +1388 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/error-diagnostics/commands/smart-debug.md +197 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/agents/architect-review.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/agents/legacy-modernizer.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/commands/code-migrate.md +1059 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/commands/deps-upgrade.md +762 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/commands/legacy-modernize.md +659 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/skills/angular-migration/SKILL.md +386 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/skills/database-migration/SKILL.md +403 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/skills/dependency-upgrade/SKILL.md +368 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/framework-migration/skills/react-modernization/SKILL.md +497 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/agents/frontend-developer.md +164 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/agents/mobile-developer.md +202 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/commands/component-scaffold.md +409 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/nextjs-app-router-patterns/SKILL.md +537 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/react-native-architecture/SKILL.md +666 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/react-state-management/SKILL.md +430 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/tailwind-design-system/SKILL.md +565 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-development/skills/tailwind-design-system/references/advanced-patterns.md +319 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/agents/frontend-developer.md +164 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/agents/frontend-security-coder.md +166 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/agents/mobile-security-coder.md +181 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/frontend-mobile-security/commands/xss-scan.md +328 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/agents/deployment-engineer.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/agents/performance-engineer.md +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/agents/security-auditor.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/agents/test-automator.md +220 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/full-stack-orchestration/commands/full-stack-feature.md +593 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/functional-programming/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/functional-programming/agents/elixir-pro.md +38 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/functional-programming/agents/haskell-pro.md +39 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/agents/minecraft-bukkit-pro.md +115 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/agents/unity-developer.md +228 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/skills/godot-gdscript-patterns/SKILL.md +564 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/skills/godot-gdscript-patterns/references/advanced-patterns.md +247 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/game-development/skills/unity-ecs-patterns/SKILL.md +622 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/commands/git-workflow.md +598 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/commands/onboard.md +414 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/git-pr-workflows/commands/pr-enhance.md +709 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/agents/hr-pro.md +121 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/agents/legal-advisor.md +53 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/skills/employment-contract-templates/SKILL.md +520 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/hr-legal-compliance/skills/gdpr-data-handling/SKILL.md +624 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/code-reviewer.md +32 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/devops-troubleshooter.md +155 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/error-detective.md +31 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/incident-responder.md +216 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/agents/test-automator.md +32 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/commands/incident-response.md +601 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/commands/smart-fix.md +539 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/skills/incident-runbook-templates/SKILL.md +472 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/skills/on-call-handoff-patterns/SKILL.md +331 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/incident-response/skills/postmortem-writing/SKILL.md +390 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/agents/javascript-pro.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/agents/typescript-pro.md +36 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/commands/typescript-scaffold.md +353 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/javascript-testing-patterns/SKILL.md +537 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/javascript-testing-patterns/references/advanced-testing-patterns.md +513 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/modern-javascript-patterns/SKILL.md +495 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/modern-javascript-patterns/references/advanced-patterns.md +487 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/nodejs-backend-patterns/SKILL.md +639 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/nodejs-backend-patterns/references/advanced-patterns.md +430 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/javascript-typescript/skills/typescript-advanced-types/SKILL.md +717 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/julia-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/julia-development/agents/julia-pro.md +204 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/jvm-languages/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/jvm-languages/agents/csharp-pro.md +38 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/jvm-languages/agents/java-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/jvm-languages/agents/scala-pro.md +66 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/agents/kubernetes-architect.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/gitops-workflow/SKILL.md +289 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/gitops-workflow/references/argocd-setup.md +144 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/gitops-workflow/references/sync-policies.md +139 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/SKILL.md +560 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/assets/Chart.yaml.template +42 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/assets/values.yaml.template +185 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/references/chart-structure.md +509 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/SKILL.md +534 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/assets/configmap-template.yaml +296 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/assets/deployment-template.yaml +203 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/assets/service-template.yaml +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/references/deployment-spec.md +780 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-manifest-generator/references/service-spec.md +748 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-security-policies/SKILL.md +347 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-security-policies/assets/network-policy-template.yaml +177 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/kubernetes-operations/skills/k8s-security-policies/references/rbac-patterns.md +199 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/README.md +88 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/agents/ai-engineer.md +158 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/agents/prompt-engineer.md +276 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/agents/vector-database-engineer.md +117 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/commands/ai-assistant.md +1249 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/commands/langchain-agent.md +238 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/commands/prompt-optimize.md +629 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/embedding-strategies/SKILL.md +600 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/hybrid-search-implementation/SKILL.md +564 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/langchain-architecture/SKILL.md +634 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/llm-evaluation/SKILL.md +666 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/SKILL.md +473 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/assets/few-shot-examples.json +106 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/assets/prompt-template-library.md +264 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/chain-of-thought.md +412 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/few-shot-learning.md +386 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/prompt-optimization.md +428 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/prompt-templates.md +484 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/references/system-prompts.md +195 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/rag-implementation/SKILL.md +542 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/similarity-search-patterns/SKILL.md +553 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/llm-application-dev/skills/vector-index-tuning/SKILL.md +517 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/agents/data-scientist.md +195 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/agents/ml-engineer.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/agents/mlops-engineer.md +229 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/commands/ml-pipeline.md +301 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/machine-learning-ops/skills/ml-pipeline-workflow/SKILL.md +248 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/README.md +112 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/agents/gallery-researcher.md +43 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/agents/image-generator.md +55 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/agents/prompt-crafter.md +55 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/commands/find.md +23 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/meigen-ai-design/commands/gen.md +27 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/backend-architect.md +309 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/flutter-expert.md +195 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/frontend-developer.md +164 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/ios-developer.md +217 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/mobile-developer.md +202 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/agents/ui-ux-designer.md +206 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/multi-platform-apps/commands/multi-platform.md +557 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/agents/database-optimizer.md +162 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/agents/network-engineer.md +165 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/agents/observability-engineer.md +230 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/agents/performance-engineer.md +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/commands/monitor-setup.md +520 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/commands/slo-implement.md +1068 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/skills/distributed-tracing/SKILL.md +449 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/skills/grafana-dashboards/SKILL.md +382 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/skills/prometheus-configuration/SKILL.md +394 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/observability-monitoring/skills/slo-implementation/SKILL.md +333 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/agents/payment-integration.md +63 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/skills/billing-automation/SKILL.md +537 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/skills/paypal-integration/SKILL.md +450 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/skills/pci-compliance/SKILL.md +448 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/payment-processing/skills/stripe-integration/SKILL.md +492 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/agents/performance-engineer.md +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/agents/test-automator.md +220 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/commands/ai-review.md +457 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/performance-testing-review/commands/multi-agent-review.md +208 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/.claude-plugin/plugin.json +3 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/README.md +38 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/agents/eval-judge.md +69 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/agents/eval-orchestrator.md +66 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/commands/certify.md +15 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/commands/compare.md +13 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/commands/eval.md +70 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/pyproject.toml +56 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/skills/evaluation-methodology/SKILL.md +550 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/skills/evaluation-methodology/references/rubrics.md +511 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/__init__.py +3 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/cli.py +165 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/corpus.py +123 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/elo.py +50 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/engine.py +349 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/layers/__init__.py +0 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/layers/judge.py +296 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/layers/monte_carlo.py +348 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/layers/static.py +443 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/models.py +167 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/parser.py +198 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/py.typed +0 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/reporter.py +184 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/src/plugin_eval/stats.py +183 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/__init__.py +0 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/conftest.py +79 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_cli.py +31 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_corpus.py +25 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_e2e.py +47 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_elo.py +48 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_engine.py +42 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_judge.py +58 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_models.py +102 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_monte_carlo.py +45 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_parser.py +47 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_reporter.py +32 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_static.py +45 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/tests/test_stats.py +100 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/plugin-eval/uv.lock +1065 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/agents/django-pro.md +159 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/agents/fastapi-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/agents/python-pro.md +149 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/commands/python-scaffold.md +324 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/async-python-patterns/SKILL.md +735 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-anti-patterns/SKILL.md +349 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-background-jobs/SKILL.md +364 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-code-style/SKILL.md +360 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-configuration/SKILL.md +368 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-design-patterns/SKILL.md +433 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-error-handling/SKILL.md +359 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-observability/SKILL.md +400 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-packaging/SKILL.md +510 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-packaging/references/advanced-patterns.md +357 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-performance-optimization/SKILL.md +437 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-performance-optimization/references/advanced-patterns.md +419 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-project-structure/SKILL.md +252 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-resilience/SKILL.md +376 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-resource-management/SKILL.md +421 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-testing-patterns/SKILL.md +622 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-testing-patterns/references/advanced-patterns.md +411 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/python-type-safety/SKILL.md +432 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/uv-package-manager/SKILL.md +345 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/python-development/skills/uv-package-manager/references/advanced-patterns.md +473 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/agents/quant-analyst.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/agents/risk-manager.md +41 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/skills/backtesting-frameworks/SKILL.md +657 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/quantitative-trading/skills/risk-metrics-calculation/SKILL.md +551 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/agents/firmware-analyst.md +358 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/agents/malware-analyst.md +296 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/agents/reverse-engineer.md +219 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/anti-reversing-techniques/SKILL.md +497 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/anti-reversing-techniques/references/advanced-techniques.md +350 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/binary-analysis-patterns/SKILL.md +438 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/memory-forensics/SKILL.md +483 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/reverse-engineering/skills/protocol-reverse-engineering/SKILL.md +520 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-compliance/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-compliance/agents/security-auditor.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-compliance/commands/compliance-check.md +954 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/agents/security-auditor.md +156 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/agents/threat-modeling-expert.md +45 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/commands/security-dependencies.md +524 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/commands/security-hardening.md +653 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/commands/security-sast.md +528 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/attack-tree-construction/SKILL.md +681 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/sast-configuration/SKILL.md +204 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/security-requirement-extraction/SKILL.md +673 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/stride-analysis-patterns/SKILL.md +658 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/security-scanning/skills/threat-mitigation-mapping/SKILL.md +741 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-analysis-monitoring/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-analysis-monitoring/agents/seo-authority-builder.md +126 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-analysis-monitoring/agents/seo-cannibalization-detector.md +111 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-analysis-monitoring/agents/seo-content-refresher.md +106 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-content-creation/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-content-creation/agents/seo-content-auditor.md +64 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-content-creation/agents/seo-content-planner.md +93 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-content-creation/agents/seo-content-writer.md +82 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/agents/seo-keyword-strategist.md +80 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/agents/seo-meta-optimizer.md +78 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/agents/seo-snippet-hunter.md +102 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/seo-technical-optimization/agents/seo-structure-architect.md +94 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/agents/bash-pro.md +292 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/agents/posix-shell-pro.md +290 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/skills/bash-defensive-patterns/SKILL.md +533 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/skills/bats-testing-patterns/SKILL.md +624 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/shell-scripting/skills/shellcheck-configuration/SKILL.md +450 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/README.md +221 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/agents/startup-analyst.md +340 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/commands/business-case.md +528 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/commands/financial-projections.md +374 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/commands/market-opportunity.md +248 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/competitive-landscape/SKILL.md +514 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/market-sizing-analysis/SKILL.md +430 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/market-sizing-analysis/examples/saas-market-sizing.md +377 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/market-sizing-analysis/references/data-sources.md +421 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/startup-financial-modeling/SKILL.md +475 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/startup-metrics-framework/SKILL.md +549 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/startup-business-analyst/skills/team-composition-analysis/SKILL.md +424 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/agents/c-pro.md +35 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/agents/cpp-pro.md +38 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/agents/golang-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/agents/rust-pro.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/commands/rust-project.md +438 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/skills/go-concurrency-patterns/SKILL.md +651 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/skills/memory-safety-patterns/SKILL.md +600 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/systems-programming/skills/rust-async-patterns/SKILL.md +513 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/agents/code-reviewer.md +171 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/agents/tdd-orchestrator.md +183 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/commands/tdd-cycle.md +660 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/commands/tdd-green.md +104 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/commands/tdd-red.md +97 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/tdd-workflows/commands/tdd-refactor.md +187 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/team-collaboration/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/team-collaboration/agents/dx-optimizer.md +63 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/team-collaboration/commands/issue.md +671 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/team-collaboration/commands/standup-notes.md +834 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/README.md +126 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/agents/accessibility-expert.md +147 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/agents/design-system-architect.md +149 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/agents/ui-designer.md +125 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/commands/accessibility-audit.md +496 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/commands/create-component.md +474 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/commands/design-review.md +375 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/commands/design-system-setup.md +645 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/accessibility-compliance/SKILL.md +412 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/accessibility-compliance/references/aria-patterns.md +567 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/accessibility-compliance/references/mobile-accessibility.md +538 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/accessibility-compliance/references/wcag-guidelines.md +645 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/design-system-patterns/SKILL.md +329 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/design-system-patterns/references/component-architecture.md +617 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/design-system-patterns/references/design-tokens.md +420 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/design-system-patterns/references/theming-architecture.md +521 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/interaction-design/SKILL.md +320 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/interaction-design/references/animation-libraries.md +498 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/interaction-design/references/microinteraction-patterns.md +536 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/interaction-design/references/scroll-animations.md +416 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-android-design/SKILL.md +433 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-android-design/references/android-navigation.md +698 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-android-design/references/compose-components.md +796 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-android-design/references/material3-theming.md +604 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-ios-design/SKILL.md +259 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-ios-design/references/hig-patterns.md +529 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-ios-design/references/ios-navigation.md +556 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/mobile-ios-design/references/swiftui-components.md +575 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/react-native-design/SKILL.md +432 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/react-native-design/references/navigation-patterns.md +832 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/react-native-design/references/reanimated-patterns.md +775 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/react-native-design/references/styling-patterns.md +871 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/responsive-design/SKILL.md +516 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/responsive-design/references/breakpoint-strategies.md +591 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/responsive-design/references/container-queries.md +564 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/responsive-design/references/fluid-layouts.md +538 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/visual-design-foundations/SKILL.md +318 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/visual-design-foundations/references/color-systems.md +417 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/visual-design-foundations/references/spacing-iconography.md +425 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/visual-design-foundations/references/typography-systems.md +432 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/web-component-design/SKILL.md +271 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/web-component-design/references/accessibility-patterns.md +642 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/web-component-design/references/component-patterns.md +437 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/ui-design/skills/web-component-design/references/css-styling-approaches.md +590 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/unit-testing/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/unit-testing/agents/debugger.md +33 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/unit-testing/agents/test-automator.md +220 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/unit-testing/commands/test-generate.md +307 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/web-scripting/.claude-plugin/plugin.json +10 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/web-scripting/agents/php-pro.md +43 -0
- package/defaults/plugin-seed/marketplaces/claude-code-workflows/plugins/web-scripting/agents/ruby-pro.md +35 -0
- package/defaults/settings.json +79 -2
- package/package.json +1 -1
- package/shims/globals.ts +1 -1
- package/src/cli/handlers/plugins.ts +13 -0
- package/src/commands/login/CodexLogin.tsx +121 -13
- package/src/commands/login/login.tsx +122 -175
- package/src/components/AutoUpdaterWrapper.tsx +2 -15
- package/src/components/LogoV2/CondensedLogo.tsx +2 -2
- package/src/components/LogoV2/LogoV2.tsx +1 -1
- package/src/components/PromptInput/Notifications.tsx +3 -3
- package/src/components/agents/new-agent-creation/CreateAgentWizard.tsx +3 -2
- package/src/components/agents/new-agent-creation/wizard-steps/ConfirmStepWrapper.tsx +2 -2
- package/src/components/agents/new-agent-creation/wizard-steps/GenerateStep.tsx +6 -5
- package/src/components/agents/new-agent-creation/wizard-steps/GenerationModelStep.tsx +42 -0
- package/src/components/agents/new-agent-creation/wizard-steps/MethodStep.tsx +3 -3
- package/src/components/agents/new-agent-creation/wizard-steps/ModelStep.tsx +2 -2
- package/src/components/messages/AssistantToolUseMessage.tsx +75 -64
- package/src/hooks/notifs/useNpmDeprecationNotification.tsx +2 -2
- package/src/main.tsx +4 -0
- package/src/query.ts +78 -48
- package/src/services/api/errors.ts +24 -1
- package/src/services/api/officialClaudeBridge.ts +480 -0
- package/src/services/api/openaiShim.ts +11 -1
- package/src/state/AppStateStore.ts +12 -0
- package/src/tools/AgentTool/AgentTool.tsx +26 -0
- package/src/tools/AgentTool/officialClaudeBridge.ts +5 -0
- package/src/tools/AgentTool/runAgent.ts +33 -1
- package/src/utils/auth.ts +20 -3
- package/src/utils/effort.ts +17 -3
- package/src/utils/logoV2Utils.ts +23 -8
- package/src/utils/model/modelOptions.ts +14 -119
- package/src/utils/model/platformProfiles.ts +3 -1
- package/src/utils/model/thirdPartyProviders.ts +1 -0
- package/src/utils/plugins/pluginDirectories.ts +15 -3
- package/mumucc-0.4.3.tgz +0 -0
|
@@ -0,0 +1,1459 @@
|
|
|
1
|
+
# Cloud Cost Optimization
|
|
2
|
+
|
|
3
|
+
You are a cloud cost optimization expert specializing in reducing infrastructure expenses while maintaining performance and reliability. Analyze cloud spending, identify savings opportunities, and implement cost-effective architectures across AWS, Azure, GCP, and OCI. Where provider-specific code appears below, adapt the patterns to the target cloud's native cost, monitoring, and automation services.
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
The user needs to optimize cloud infrastructure costs without compromising performance or reliability. Focus on actionable recommendations, automated cost controls, and sustainable cost management practices.
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
$ARGUMENTS
|
|
12
|
+
|
|
13
|
+
## Instructions
|
|
14
|
+
|
|
15
|
+
### 1. Cost Analysis and Visibility
|
|
16
|
+
|
|
17
|
+
Implement comprehensive cost analysis:
|
|
18
|
+
|
|
19
|
+
**Cost Analysis Framework**
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
import boto3
|
|
23
|
+
import pandas as pd
|
|
24
|
+
from datetime import datetime, timedelta
|
|
25
|
+
from typing import Dict, List, Any
|
|
26
|
+
import json
|
|
27
|
+
|
|
28
|
+
class CloudCostAnalyzer:
|
|
29
|
+
def __init__(self, cloud_provider: str):
|
|
30
|
+
self.provider = cloud_provider
|
|
31
|
+
self.client = self._initialize_client()
|
|
32
|
+
self.cost_data = None
|
|
33
|
+
|
|
34
|
+
def analyze_costs(self, time_period: int = 30):
|
|
35
|
+
"""Comprehensive cost analysis"""
|
|
36
|
+
analysis = {
|
|
37
|
+
'total_cost': self._get_total_cost(time_period),
|
|
38
|
+
'cost_by_service': self._analyze_by_service(time_period),
|
|
39
|
+
'cost_by_resource': self._analyze_by_resource(time_period),
|
|
40
|
+
'cost_trends': self._analyze_trends(time_period),
|
|
41
|
+
'anomalies': self._detect_anomalies(time_period),
|
|
42
|
+
'waste_analysis': self._identify_waste(),
|
|
43
|
+
'optimization_opportunities': self._find_opportunities()
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return self._generate_report(analysis)
|
|
47
|
+
|
|
48
|
+
def _analyze_by_service(self, days: int):
|
|
49
|
+
"""Analyze costs by service"""
|
|
50
|
+
if self.provider == 'aws':
|
|
51
|
+
ce = boto3.client('ce')
|
|
52
|
+
|
|
53
|
+
response = ce.get_cost_and_usage(
|
|
54
|
+
TimePeriod={
|
|
55
|
+
'Start': (datetime.now() - timedelta(days=days)).strftime('%Y-%m-%d'),
|
|
56
|
+
'End': datetime.now().strftime('%Y-%m-%d')
|
|
57
|
+
},
|
|
58
|
+
Granularity='DAILY',
|
|
59
|
+
Metrics=['UnblendedCost'],
|
|
60
|
+
GroupBy=[
|
|
61
|
+
{'Type': 'DIMENSION', 'Key': 'SERVICE'}
|
|
62
|
+
]
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
# Process response
|
|
66
|
+
service_costs = {}
|
|
67
|
+
for result in response['ResultsByTime']:
|
|
68
|
+
for group in result['Groups']:
|
|
69
|
+
service = group['Keys'][0]
|
|
70
|
+
cost = float(group['Metrics']['UnblendedCost']['Amount'])
|
|
71
|
+
|
|
72
|
+
if service not in service_costs:
|
|
73
|
+
service_costs[service] = []
|
|
74
|
+
service_costs[service].append(cost)
|
|
75
|
+
|
|
76
|
+
# Calculate totals and trends
|
|
77
|
+
analysis = {}
|
|
78
|
+
for service, costs in service_costs.items():
|
|
79
|
+
analysis[service] = {
|
|
80
|
+
'total': sum(costs),
|
|
81
|
+
'average_daily': sum(costs) / len(costs),
|
|
82
|
+
'trend': self._calculate_trend(costs),
|
|
83
|
+
'percentage': (sum(costs) / self._get_total_cost(days)) * 100
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return analysis
|
|
87
|
+
|
|
88
|
+
def _identify_waste(self):
|
|
89
|
+
"""Identify wasted resources"""
|
|
90
|
+
waste_analysis = {
|
|
91
|
+
'unused_resources': self._find_unused_resources(),
|
|
92
|
+
'oversized_resources': self._find_oversized_resources(),
|
|
93
|
+
'unattached_storage': self._find_unattached_storage(),
|
|
94
|
+
'idle_load_balancers': self._find_idle_load_balancers(),
|
|
95
|
+
'old_snapshots': self._find_old_snapshots(),
|
|
96
|
+
'untagged_resources': self._find_untagged_resources()
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
total_waste = sum(item['estimated_savings']
|
|
100
|
+
for category in waste_analysis.values()
|
|
101
|
+
for item in category)
|
|
102
|
+
|
|
103
|
+
waste_analysis['total_potential_savings'] = total_waste
|
|
104
|
+
|
|
105
|
+
return waste_analysis
|
|
106
|
+
|
|
107
|
+
def _find_unused_resources(self):
|
|
108
|
+
"""Find resources with no usage"""
|
|
109
|
+
unused = []
|
|
110
|
+
|
|
111
|
+
if self.provider == 'aws':
|
|
112
|
+
# Check EC2 instances
|
|
113
|
+
ec2 = boto3.client('ec2')
|
|
114
|
+
cloudwatch = boto3.client('cloudwatch')
|
|
115
|
+
|
|
116
|
+
instances = ec2.describe_instances(
|
|
117
|
+
Filters=[{'Name': 'instance-state-name', 'Values': ['running']}]
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
for reservation in instances['Reservations']:
|
|
121
|
+
for instance in reservation['Instances']:
|
|
122
|
+
# Check CPU utilization
|
|
123
|
+
metrics = cloudwatch.get_metric_statistics(
|
|
124
|
+
Namespace='AWS/EC2',
|
|
125
|
+
MetricName='CPUUtilization',
|
|
126
|
+
Dimensions=[
|
|
127
|
+
{'Name': 'InstanceId', 'Value': instance['InstanceId']}
|
|
128
|
+
],
|
|
129
|
+
StartTime=datetime.now() - timedelta(days=7),
|
|
130
|
+
EndTime=datetime.now(),
|
|
131
|
+
Period=3600,
|
|
132
|
+
Statistics=['Average']
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
if metrics['Datapoints']:
|
|
136
|
+
avg_cpu = sum(d['Average'] for d in metrics['Datapoints']) / len(metrics['Datapoints'])
|
|
137
|
+
|
|
138
|
+
if avg_cpu < 5: # Less than 5% CPU usage
|
|
139
|
+
unused.append({
|
|
140
|
+
'resource_type': 'EC2 Instance',
|
|
141
|
+
'resource_id': instance['InstanceId'],
|
|
142
|
+
'reason': f'Average CPU: {avg_cpu:.2f}%',
|
|
143
|
+
'estimated_savings': self._calculate_instance_cost(instance)
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
return unused
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### 2. Resource Rightsizing
|
|
150
|
+
|
|
151
|
+
Implement intelligent rightsizing:
|
|
152
|
+
|
|
153
|
+
**Rightsizing Engine**
|
|
154
|
+
|
|
155
|
+
```python
|
|
156
|
+
class ResourceRightsizer:
|
|
157
|
+
def __init__(self):
|
|
158
|
+
self.utilization_thresholds = {
|
|
159
|
+
'cpu_low': 20,
|
|
160
|
+
'cpu_high': 80,
|
|
161
|
+
'memory_low': 30,
|
|
162
|
+
'memory_high': 85,
|
|
163
|
+
'network_low': 10,
|
|
164
|
+
'network_high': 70
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
def analyze_rightsizing_opportunities(self):
|
|
168
|
+
"""Find rightsizing opportunities"""
|
|
169
|
+
opportunities = {
|
|
170
|
+
'ec2_instances': self._rightsize_ec2(),
|
|
171
|
+
'rds_instances': self._rightsize_rds(),
|
|
172
|
+
'containers': self._rightsize_containers(),
|
|
173
|
+
'lambda_functions': self._rightsize_lambda(),
|
|
174
|
+
'storage_volumes': self._rightsize_storage()
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return self._prioritize_opportunities(opportunities)
|
|
178
|
+
|
|
179
|
+
def _rightsize_ec2(self):
|
|
180
|
+
"""Rightsize EC2 instances"""
|
|
181
|
+
recommendations = []
|
|
182
|
+
|
|
183
|
+
instances = self._get_running_instances()
|
|
184
|
+
|
|
185
|
+
for instance in instances:
|
|
186
|
+
# Get utilization metrics
|
|
187
|
+
utilization = self._get_instance_utilization(instance['InstanceId'])
|
|
188
|
+
|
|
189
|
+
# Determine if oversized or undersized
|
|
190
|
+
current_type = instance['InstanceType']
|
|
191
|
+
recommended_type = self._recommend_instance_type(
|
|
192
|
+
current_type,
|
|
193
|
+
utilization
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
if recommended_type != current_type:
|
|
197
|
+
current_cost = self._get_instance_cost(current_type)
|
|
198
|
+
new_cost = self._get_instance_cost(recommended_type)
|
|
199
|
+
|
|
200
|
+
recommendations.append({
|
|
201
|
+
'resource_id': instance['InstanceId'],
|
|
202
|
+
'current_type': current_type,
|
|
203
|
+
'recommended_type': recommended_type,
|
|
204
|
+
'reason': self._generate_reason(utilization),
|
|
205
|
+
'current_cost': current_cost,
|
|
206
|
+
'new_cost': new_cost,
|
|
207
|
+
'monthly_savings': (current_cost - new_cost) * 730,
|
|
208
|
+
'effort': 'medium',
|
|
209
|
+
'risk': 'low' if 'downsize' in self._generate_reason(utilization) else 'medium'
|
|
210
|
+
})
|
|
211
|
+
|
|
212
|
+
return recommendations
|
|
213
|
+
|
|
214
|
+
def _recommend_instance_type(self, current_type: str, utilization: Dict):
|
|
215
|
+
"""Recommend optimal instance type"""
|
|
216
|
+
# Parse current instance family and size
|
|
217
|
+
family, size = self._parse_instance_type(current_type)
|
|
218
|
+
|
|
219
|
+
# Calculate required resources
|
|
220
|
+
required_cpu = self._calculate_required_cpu(utilization['cpu'])
|
|
221
|
+
required_memory = self._calculate_required_memory(utilization['memory'])
|
|
222
|
+
|
|
223
|
+
# Find best matching instance
|
|
224
|
+
instance_catalog = self._get_instance_catalog()
|
|
225
|
+
|
|
226
|
+
candidates = []
|
|
227
|
+
for instance_type, specs in instance_catalog.items():
|
|
228
|
+
if (specs['vcpu'] >= required_cpu and
|
|
229
|
+
specs['memory'] >= required_memory):
|
|
230
|
+
candidates.append({
|
|
231
|
+
'type': instance_type,
|
|
232
|
+
'cost': specs['cost'],
|
|
233
|
+
'vcpu': specs['vcpu'],
|
|
234
|
+
'memory': specs['memory'],
|
|
235
|
+
'efficiency_score': self._calculate_efficiency_score(
|
|
236
|
+
specs, required_cpu, required_memory
|
|
237
|
+
)
|
|
238
|
+
})
|
|
239
|
+
|
|
240
|
+
# Select best candidate
|
|
241
|
+
if candidates:
|
|
242
|
+
best = sorted(candidates,
|
|
243
|
+
key=lambda x: (x['efficiency_score'], x['cost']))[0]
|
|
244
|
+
return best['type']
|
|
245
|
+
|
|
246
|
+
return current_type
|
|
247
|
+
|
|
248
|
+
def create_rightsizing_automation(self):
|
|
249
|
+
"""Automated rightsizing implementation"""
|
|
250
|
+
return '''
|
|
251
|
+
import boto3
|
|
252
|
+
from datetime import datetime
|
|
253
|
+
import logging
|
|
254
|
+
|
|
255
|
+
class AutomatedRightsizer:
|
|
256
|
+
def __init__(self):
|
|
257
|
+
self.ec2 = boto3.client('ec2')
|
|
258
|
+
self.cloudwatch = boto3.client('cloudwatch')
|
|
259
|
+
self.logger = logging.getLogger(__name__)
|
|
260
|
+
|
|
261
|
+
def execute_rightsizing(self, recommendations: List[Dict], dry_run: bool = True):
|
|
262
|
+
"""Execute rightsizing recommendations"""
|
|
263
|
+
results = []
|
|
264
|
+
|
|
265
|
+
for recommendation in recommendations:
|
|
266
|
+
try:
|
|
267
|
+
if recommendation['risk'] == 'low' or self._get_approval(recommendation):
|
|
268
|
+
result = self._resize_instance(
|
|
269
|
+
recommendation['resource_id'],
|
|
270
|
+
recommendation['recommended_type'],
|
|
271
|
+
dry_run=dry_run
|
|
272
|
+
)
|
|
273
|
+
results.append(result)
|
|
274
|
+
except Exception as e:
|
|
275
|
+
self.logger.error(f"Failed to resize {recommendation['resource_id']}: {e}")
|
|
276
|
+
|
|
277
|
+
return results
|
|
278
|
+
|
|
279
|
+
def _resize_instance(self, instance_id: str, new_type: str, dry_run: bool):
|
|
280
|
+
"""Resize an EC2 instance"""
|
|
281
|
+
# Create snapshot for rollback
|
|
282
|
+
snapshot_id = self._create_snapshot(instance_id)
|
|
283
|
+
|
|
284
|
+
try:
|
|
285
|
+
# Stop instance
|
|
286
|
+
if not dry_run:
|
|
287
|
+
self.ec2.stop_instances(InstanceIds=[instance_id])
|
|
288
|
+
self._wait_for_state(instance_id, 'stopped')
|
|
289
|
+
|
|
290
|
+
# Change instance type
|
|
291
|
+
self.ec2.modify_instance_attribute(
|
|
292
|
+
InstanceId=instance_id,
|
|
293
|
+
InstanceType={'Value': new_type},
|
|
294
|
+
DryRun=dry_run
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
# Start instance
|
|
298
|
+
if not dry_run:
|
|
299
|
+
self.ec2.start_instances(InstanceIds=[instance_id])
|
|
300
|
+
self._wait_for_state(instance_id, 'running')
|
|
301
|
+
|
|
302
|
+
return {
|
|
303
|
+
'instance_id': instance_id,
|
|
304
|
+
'status': 'success',
|
|
305
|
+
'new_type': new_type,
|
|
306
|
+
'snapshot_id': snapshot_id
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
except Exception as e:
|
|
310
|
+
# Rollback on failure
|
|
311
|
+
if not dry_run:
|
|
312
|
+
self._rollback_instance(instance_id, snapshot_id)
|
|
313
|
+
raise
|
|
314
|
+
'''
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### 3. Reserved Instances and Savings Plans
|
|
318
|
+
|
|
319
|
+
Optimize commitment-based discounts:
|
|
320
|
+
|
|
321
|
+
**Reservation Optimizer**
|
|
322
|
+
|
|
323
|
+
```python
|
|
324
|
+
class ReservationOptimizer:
|
|
325
|
+
def __init__(self):
|
|
326
|
+
self.usage_history = None
|
|
327
|
+
self.existing_reservations = None
|
|
328
|
+
|
|
329
|
+
def analyze_reservation_opportunities(self):
|
|
330
|
+
"""Analyze opportunities for reservations"""
|
|
331
|
+
analysis = {
|
|
332
|
+
'current_coverage': self._analyze_current_coverage(),
|
|
333
|
+
'usage_patterns': self._analyze_usage_patterns(),
|
|
334
|
+
'recommendations': self._generate_recommendations(),
|
|
335
|
+
'roi_analysis': self._calculate_roi(),
|
|
336
|
+
'risk_assessment': self._assess_commitment_risk()
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
return analysis
|
|
340
|
+
|
|
341
|
+
def _analyze_usage_patterns(self):
|
|
342
|
+
"""Analyze historical usage patterns"""
|
|
343
|
+
# Get 12 months of usage data
|
|
344
|
+
usage_data = self._get_historical_usage(months=12)
|
|
345
|
+
|
|
346
|
+
patterns = {
|
|
347
|
+
'stable_workloads': [],
|
|
348
|
+
'variable_workloads': [],
|
|
349
|
+
'seasonal_patterns': [],
|
|
350
|
+
'growth_trends': []
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
# Analyze each instance family
|
|
354
|
+
for family in self._get_instance_families(usage_data):
|
|
355
|
+
family_usage = self._filter_by_family(usage_data, family)
|
|
356
|
+
|
|
357
|
+
# Calculate stability metrics
|
|
358
|
+
stability = self._calculate_stability(family_usage)
|
|
359
|
+
|
|
360
|
+
if stability['coefficient_of_variation'] < 0.1:
|
|
361
|
+
patterns['stable_workloads'].append({
|
|
362
|
+
'family': family,
|
|
363
|
+
'average_usage': stability['mean'],
|
|
364
|
+
'min_usage': stability['min'],
|
|
365
|
+
'recommendation': 'reserved_instance',
|
|
366
|
+
'term': '3_year',
|
|
367
|
+
'payment': 'all_upfront'
|
|
368
|
+
})
|
|
369
|
+
elif stability['coefficient_of_variation'] < 0.3:
|
|
370
|
+
patterns['variable_workloads'].append({
|
|
371
|
+
'family': family,
|
|
372
|
+
'average_usage': stability['mean'],
|
|
373
|
+
'baseline': stability['percentile_25'],
|
|
374
|
+
'recommendation': 'savings_plan',
|
|
375
|
+
'commitment': stability['percentile_25']
|
|
376
|
+
})
|
|
377
|
+
|
|
378
|
+
# Check for seasonal patterns
|
|
379
|
+
if self._has_seasonal_pattern(family_usage):
|
|
380
|
+
patterns['seasonal_patterns'].append({
|
|
381
|
+
'family': family,
|
|
382
|
+
'pattern': self._identify_seasonal_pattern(family_usage),
|
|
383
|
+
'recommendation': 'spot_with_savings_plan_baseline'
|
|
384
|
+
})
|
|
385
|
+
|
|
386
|
+
return patterns
|
|
387
|
+
|
|
388
|
+
def _generate_recommendations(self):
|
|
389
|
+
"""Generate reservation recommendations"""
|
|
390
|
+
recommendations = []
|
|
391
|
+
|
|
392
|
+
patterns = self._analyze_usage_patterns()
|
|
393
|
+
current_costs = self._calculate_current_costs()
|
|
394
|
+
|
|
395
|
+
# Reserved Instance recommendations
|
|
396
|
+
for workload in patterns['stable_workloads']:
|
|
397
|
+
ri_options = self._calculate_ri_options(workload)
|
|
398
|
+
|
|
399
|
+
for option in ri_options:
|
|
400
|
+
savings = current_costs[workload['family']] - option['total_cost']
|
|
401
|
+
|
|
402
|
+
if savings > 0:
|
|
403
|
+
recommendations.append({
|
|
404
|
+
'type': 'reserved_instance',
|
|
405
|
+
'family': workload['family'],
|
|
406
|
+
'quantity': option['quantity'],
|
|
407
|
+
'term': option['term'],
|
|
408
|
+
'payment': option['payment_option'],
|
|
409
|
+
'upfront_cost': option['upfront_cost'],
|
|
410
|
+
'monthly_cost': option['monthly_cost'],
|
|
411
|
+
'total_savings': savings,
|
|
412
|
+
'break_even_months': option['upfront_cost'] / (savings / 36),
|
|
413
|
+
'confidence': 'high'
|
|
414
|
+
})
|
|
415
|
+
|
|
416
|
+
# Savings Plan recommendations
|
|
417
|
+
for workload in patterns['variable_workloads']:
|
|
418
|
+
sp_options = self._calculate_savings_plan_options(workload)
|
|
419
|
+
|
|
420
|
+
for option in sp_options:
|
|
421
|
+
recommendations.append({
|
|
422
|
+
'type': 'savings_plan',
|
|
423
|
+
'commitment_type': option['type'],
|
|
424
|
+
'hourly_commitment': option['commitment'],
|
|
425
|
+
'term': option['term'],
|
|
426
|
+
'estimated_savings': option['savings'],
|
|
427
|
+
'flexibility': option['flexibility_score'],
|
|
428
|
+
'confidence': 'medium'
|
|
429
|
+
})
|
|
430
|
+
|
|
431
|
+
return sorted(recommendations, key=lambda x: x.get('total_savings', 0), reverse=True)
|
|
432
|
+
|
|
433
|
+
def create_reservation_dashboard(self):
|
|
434
|
+
"""Create reservation tracking dashboard"""
|
|
435
|
+
return '''
|
|
436
|
+
<!DOCTYPE html>
|
|
437
|
+
<html>
|
|
438
|
+
<head>
|
|
439
|
+
<title>Reservation & Savings Dashboard</title>
|
|
440
|
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
441
|
+
</head>
|
|
442
|
+
<body>
|
|
443
|
+
<div class="dashboard">
|
|
444
|
+
<div class="summary-cards">
|
|
445
|
+
<div class="card">
|
|
446
|
+
<h3>Current Coverage</h3>
|
|
447
|
+
<div class="metric">{coverage_percentage}%</div>
|
|
448
|
+
<div class="sub-metric">On-Demand: ${on_demand_cost}</div>
|
|
449
|
+
<div class="sub-metric">Reserved: ${reserved_cost}</div>
|
|
450
|
+
</div>
|
|
451
|
+
|
|
452
|
+
<div class="card">
|
|
453
|
+
<h3>Potential Savings</h3>
|
|
454
|
+
<div class="metric">${potential_savings}/month</div>
|
|
455
|
+
<div class="sub-metric">{recommendations_count} opportunities</div>
|
|
456
|
+
</div>
|
|
457
|
+
|
|
458
|
+
<div class="card">
|
|
459
|
+
<h3>Expiring Soon</h3>
|
|
460
|
+
<div class="metric">{expiring_count} RIs</div>
|
|
461
|
+
<div class="sub-metric">Next 30 days</div>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
464
|
+
|
|
465
|
+
<div class="charts">
|
|
466
|
+
<canvas id="coverageChart"></canvas>
|
|
467
|
+
<canvas id="savingsChart"></canvas>
|
|
468
|
+
</div>
|
|
469
|
+
|
|
470
|
+
<div class="recommendations-table">
|
|
471
|
+
<h3>Top Recommendations</h3>
|
|
472
|
+
<table>
|
|
473
|
+
<tr>
|
|
474
|
+
<th>Type</th>
|
|
475
|
+
<th>Resource</th>
|
|
476
|
+
<th>Term</th>
|
|
477
|
+
<th>Upfront</th>
|
|
478
|
+
<th>Monthly Savings</th>
|
|
479
|
+
<th>ROI</th>
|
|
480
|
+
<th>Action</th>
|
|
481
|
+
</tr>
|
|
482
|
+
{recommendation_rows}
|
|
483
|
+
</table>
|
|
484
|
+
</div>
|
|
485
|
+
</div>
|
|
486
|
+
</body>
|
|
487
|
+
</html>
|
|
488
|
+
'''
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
### 4. Spot Instance Optimization
|
|
492
|
+
|
|
493
|
+
Leverage spot instances effectively:
|
|
494
|
+
|
|
495
|
+
**Spot Instance Manager**
|
|
496
|
+
|
|
497
|
+
```python
|
|
498
|
+
class SpotInstanceOptimizer:
|
|
499
|
+
def __init__(self):
|
|
500
|
+
self.spot_advisor = self._init_spot_advisor()
|
|
501
|
+
self.interruption_handler = None
|
|
502
|
+
|
|
503
|
+
def identify_spot_opportunities(self):
|
|
504
|
+
"""Identify workloads suitable for spot"""
|
|
505
|
+
workloads = self._analyze_workloads()
|
|
506
|
+
|
|
507
|
+
spot_candidates = {
|
|
508
|
+
'batch_processing': [],
|
|
509
|
+
'dev_test': [],
|
|
510
|
+
'stateless_apps': [],
|
|
511
|
+
'ci_cd': [],
|
|
512
|
+
'data_processing': []
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
for workload in workloads:
|
|
516
|
+
suitability = self._assess_spot_suitability(workload)
|
|
517
|
+
|
|
518
|
+
if suitability['score'] > 0.7:
|
|
519
|
+
spot_candidates[workload['type']].append({
|
|
520
|
+
'workload': workload['name'],
|
|
521
|
+
'current_cost': workload['cost'],
|
|
522
|
+
'spot_savings': workload['cost'] * 0.7, # ~70% savings
|
|
523
|
+
'interruption_tolerance': suitability['interruption_tolerance'],
|
|
524
|
+
'recommended_strategy': self._recommend_spot_strategy(workload)
|
|
525
|
+
})
|
|
526
|
+
|
|
527
|
+
return spot_candidates
|
|
528
|
+
|
|
529
|
+
def _recommend_spot_strategy(self, workload):
|
|
530
|
+
"""Recommend spot instance strategy"""
|
|
531
|
+
if workload['interruption_tolerance'] == 'high':
|
|
532
|
+
return {
|
|
533
|
+
'strategy': 'spot_fleet_diverse',
|
|
534
|
+
'instance_pools': 10,
|
|
535
|
+
'allocation_strategy': 'capacity-optimized',
|
|
536
|
+
'on_demand_base': 0,
|
|
537
|
+
'spot_percentage': 100
|
|
538
|
+
}
|
|
539
|
+
elif workload['interruption_tolerance'] == 'medium':
|
|
540
|
+
return {
|
|
541
|
+
'strategy': 'mixed_instances',
|
|
542
|
+
'on_demand_base': 25,
|
|
543
|
+
'spot_percentage': 75,
|
|
544
|
+
'spot_allocation': 'lowest-price'
|
|
545
|
+
}
|
|
546
|
+
else:
|
|
547
|
+
return {
|
|
548
|
+
'strategy': 'spot_with_fallback',
|
|
549
|
+
'primary': 'spot',
|
|
550
|
+
'fallback': 'on-demand',
|
|
551
|
+
'checkpointing': True
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
def create_spot_configuration(self):
|
|
555
|
+
"""Create spot instance configuration"""
|
|
556
|
+
return '''
|
|
557
|
+
# Terraform configuration for Spot instances
|
|
558
|
+
resource "aws_spot_fleet_request" "processing_fleet" {
|
|
559
|
+
iam_fleet_role = aws_iam_role.spot_fleet.arn
|
|
560
|
+
|
|
561
|
+
allocation_strategy = "diversified"
|
|
562
|
+
target_capacity = 100
|
|
563
|
+
valid_until = timeadd(timestamp(), "168h")
|
|
564
|
+
|
|
565
|
+
# Define multiple launch specifications for diversity
|
|
566
|
+
dynamic "launch_specification" {
|
|
567
|
+
for_each = var.spot_instance_types
|
|
568
|
+
|
|
569
|
+
content {
|
|
570
|
+
instance_type = launch_specification.value
|
|
571
|
+
ami = var.ami_id
|
|
572
|
+
key_name = var.key_name
|
|
573
|
+
subnet_id = var.subnet_ids[launch_specification.key % length(var.subnet_ids)]
|
|
574
|
+
|
|
575
|
+
weighted_capacity = var.instance_weights[launch_specification.value]
|
|
576
|
+
spot_price = var.max_spot_prices[launch_specification.value]
|
|
577
|
+
|
|
578
|
+
user_data = base64encode(templatefile("${path.module}/spot-init.sh", {
|
|
579
|
+
interruption_handler = true
|
|
580
|
+
checkpoint_s3_bucket = var.checkpoint_bucket
|
|
581
|
+
}))
|
|
582
|
+
|
|
583
|
+
tags = {
|
|
584
|
+
Name = "spot-processing-${launch_specification.key}"
|
|
585
|
+
Type = "spot"
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
# Interruption handling
|
|
591
|
+
lifecycle {
|
|
592
|
+
create_before_destroy = true
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
# Spot interruption handler
|
|
597
|
+
resource "aws_lambda_function" "spot_interruption_handler" {
|
|
598
|
+
filename = "spot-handler.zip"
|
|
599
|
+
function_name = "spot-interruption-handler"
|
|
600
|
+
role = aws_iam_role.lambda_role.arn
|
|
601
|
+
handler = "handler.main"
|
|
602
|
+
runtime = "python3.9"
|
|
603
|
+
|
|
604
|
+
environment {
|
|
605
|
+
variables = {
|
|
606
|
+
CHECKPOINT_BUCKET = var.checkpoint_bucket
|
|
607
|
+
SNS_TOPIC_ARN = aws_sns_topic.spot_interruptions.arn
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
'''
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
### 5. Storage Optimization
|
|
615
|
+
|
|
616
|
+
Optimize storage costs:
|
|
617
|
+
|
|
618
|
+
**Storage Optimizer**
|
|
619
|
+
|
|
620
|
+
```python
|
|
621
|
+
class StorageOptimizer:
|
|
622
|
+
def analyze_storage_costs(self):
|
|
623
|
+
"""Comprehensive storage analysis"""
|
|
624
|
+
analysis = {
|
|
625
|
+
'ebs_volumes': self._analyze_ebs_volumes(),
|
|
626
|
+
's3_buckets': self._analyze_s3_buckets(),
|
|
627
|
+
'snapshots': self._analyze_snapshots(),
|
|
628
|
+
'lifecycle_opportunities': self._find_lifecycle_opportunities(),
|
|
629
|
+
'compression_opportunities': self._find_compression_opportunities()
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
return analysis
|
|
633
|
+
|
|
634
|
+
def _analyze_s3_buckets(self):
|
|
635
|
+
"""Analyze S3 bucket costs and optimization"""
|
|
636
|
+
s3 = boto3.client('s3')
|
|
637
|
+
cloudwatch = boto3.client('cloudwatch')
|
|
638
|
+
|
|
639
|
+
buckets = s3.list_buckets()['Buckets']
|
|
640
|
+
bucket_analysis = []
|
|
641
|
+
|
|
642
|
+
for bucket in buckets:
|
|
643
|
+
bucket_name = bucket['Name']
|
|
644
|
+
|
|
645
|
+
# Get storage metrics
|
|
646
|
+
metrics = self._get_s3_metrics(bucket_name)
|
|
647
|
+
|
|
648
|
+
# Analyze storage classes
|
|
649
|
+
storage_class_distribution = self._get_storage_class_distribution(bucket_name)
|
|
650
|
+
|
|
651
|
+
# Calculate optimization potential
|
|
652
|
+
optimization = self._calculate_s3_optimization(
|
|
653
|
+
bucket_name,
|
|
654
|
+
metrics,
|
|
655
|
+
storage_class_distribution
|
|
656
|
+
)
|
|
657
|
+
|
|
658
|
+
bucket_analysis.append({
|
|
659
|
+
'bucket_name': bucket_name,
|
|
660
|
+
'total_size_gb': metrics['size_gb'],
|
|
661
|
+
'total_objects': metrics['object_count'],
|
|
662
|
+
'current_cost': metrics['monthly_cost'],
|
|
663
|
+
'storage_classes': storage_class_distribution,
|
|
664
|
+
'optimization_recommendations': optimization['recommendations'],
|
|
665
|
+
'potential_savings': optimization['savings']
|
|
666
|
+
})
|
|
667
|
+
|
|
668
|
+
return bucket_analysis
|
|
669
|
+
|
|
670
|
+
def create_lifecycle_policies(self):
|
|
671
|
+
"""Create S3 lifecycle policies"""
|
|
672
|
+
return '''
|
|
673
|
+
import boto3
|
|
674
|
+
from datetime import datetime
|
|
675
|
+
|
|
676
|
+
class S3LifecycleManager:
|
|
677
|
+
def __init__(self):
|
|
678
|
+
self.s3 = boto3.client('s3')
|
|
679
|
+
|
|
680
|
+
def create_intelligent_lifecycle(self, bucket_name: str, access_patterns: Dict):
|
|
681
|
+
"""Create lifecycle policy based on access patterns"""
|
|
682
|
+
|
|
683
|
+
rules = []
|
|
684
|
+
|
|
685
|
+
# Intelligent tiering for unknown access patterns
|
|
686
|
+
if access_patterns.get('unpredictable'):
|
|
687
|
+
rules.append({
|
|
688
|
+
'ID': 'intelligent-tiering',
|
|
689
|
+
'Status': 'Enabled',
|
|
690
|
+
'Transitions': [{
|
|
691
|
+
'Days': 1,
|
|
692
|
+
'StorageClass': 'INTELLIGENT_TIERING'
|
|
693
|
+
}]
|
|
694
|
+
})
|
|
695
|
+
|
|
696
|
+
# Standard lifecycle for predictable patterns
|
|
697
|
+
if access_patterns.get('predictable'):
|
|
698
|
+
rules.append({
|
|
699
|
+
'ID': 'standard-lifecycle',
|
|
700
|
+
'Status': 'Enabled',
|
|
701
|
+
'Transitions': [
|
|
702
|
+
{
|
|
703
|
+
'Days': 30,
|
|
704
|
+
'StorageClass': 'STANDARD_IA'
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
'Days': 90,
|
|
708
|
+
'StorageClass': 'GLACIER'
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
'Days': 180,
|
|
712
|
+
'StorageClass': 'DEEP_ARCHIVE'
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
})
|
|
716
|
+
|
|
717
|
+
# Delete old versions
|
|
718
|
+
rules.append({
|
|
719
|
+
'ID': 'delete-old-versions',
|
|
720
|
+
'Status': 'Enabled',
|
|
721
|
+
'NoncurrentVersionTransitions': [
|
|
722
|
+
{
|
|
723
|
+
'NoncurrentDays': 30,
|
|
724
|
+
'StorageClass': 'GLACIER'
|
|
725
|
+
}
|
|
726
|
+
],
|
|
727
|
+
'NoncurrentVersionExpiration': {
|
|
728
|
+
'NoncurrentDays': 90
|
|
729
|
+
}
|
|
730
|
+
})
|
|
731
|
+
|
|
732
|
+
# Apply lifecycle configuration
|
|
733
|
+
self.s3.put_bucket_lifecycle_configuration(
|
|
734
|
+
Bucket=bucket_name,
|
|
735
|
+
LifecycleConfiguration={'Rules': rules}
|
|
736
|
+
)
|
|
737
|
+
|
|
738
|
+
return rules
|
|
739
|
+
|
|
740
|
+
def optimize_ebs_volumes(self):
|
|
741
|
+
"""Optimize EBS volume types and sizes"""
|
|
742
|
+
ec2 = boto3.client('ec2')
|
|
743
|
+
|
|
744
|
+
volumes = ec2.describe_volumes()['Volumes']
|
|
745
|
+
optimizations = []
|
|
746
|
+
|
|
747
|
+
for volume in volumes:
|
|
748
|
+
# Analyze volume metrics
|
|
749
|
+
iops_usage = self._get_volume_iops_usage(volume['VolumeId'])
|
|
750
|
+
throughput_usage = self._get_volume_throughput_usage(volume['VolumeId'])
|
|
751
|
+
|
|
752
|
+
current_type = volume['VolumeType']
|
|
753
|
+
recommended_type = self._recommend_volume_type(
|
|
754
|
+
iops_usage,
|
|
755
|
+
throughput_usage,
|
|
756
|
+
volume['Size']
|
|
757
|
+
)
|
|
758
|
+
|
|
759
|
+
if recommended_type != current_type:
|
|
760
|
+
optimizations.append({
|
|
761
|
+
'volume_id': volume['VolumeId'],
|
|
762
|
+
'current_type': current_type,
|
|
763
|
+
'recommended_type': recommended_type,
|
|
764
|
+
'reason': self._get_optimization_reason(
|
|
765
|
+
current_type,
|
|
766
|
+
recommended_type,
|
|
767
|
+
iops_usage,
|
|
768
|
+
throughput_usage
|
|
769
|
+
),
|
|
770
|
+
'monthly_savings': self._calculate_volume_savings(
|
|
771
|
+
volume,
|
|
772
|
+
recommended_type
|
|
773
|
+
)
|
|
774
|
+
})
|
|
775
|
+
|
|
776
|
+
return optimizations
|
|
777
|
+
'''
|
|
778
|
+
```
|
|
779
|
+
|
|
780
|
+
### 6. Network Cost Optimization
|
|
781
|
+
|
|
782
|
+
Reduce network transfer costs:
|
|
783
|
+
|
|
784
|
+
**Network Cost Optimizer**
|
|
785
|
+
|
|
786
|
+
```python
|
|
787
|
+
class NetworkCostOptimizer:
|
|
788
|
+
def analyze_network_costs(self):
|
|
789
|
+
"""Analyze network transfer costs"""
|
|
790
|
+
analysis = {
|
|
791
|
+
'data_transfer_costs': self._analyze_data_transfer(),
|
|
792
|
+
'nat_gateway_costs': self._analyze_nat_gateways(),
|
|
793
|
+
'load_balancer_costs': self._analyze_load_balancers(),
|
|
794
|
+
'vpc_endpoint_opportunities': self._find_vpc_endpoint_opportunities(),
|
|
795
|
+
'cdn_optimization': self._analyze_cdn_usage()
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
return analysis
|
|
799
|
+
|
|
800
|
+
def _analyze_data_transfer(self):
|
|
801
|
+
"""Analyze data transfer patterns and costs"""
|
|
802
|
+
transfers = {
|
|
803
|
+
'inter_region': self._get_inter_region_transfers(),
|
|
804
|
+
'internet_egress': self._get_internet_egress(),
|
|
805
|
+
'inter_az': self._get_inter_az_transfers(),
|
|
806
|
+
'vpc_peering': self._get_vpc_peering_transfers()
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
recommendations = []
|
|
810
|
+
|
|
811
|
+
# Analyze inter-region transfers
|
|
812
|
+
if transfers['inter_region']['monthly_gb'] > 1000:
|
|
813
|
+
recommendations.append({
|
|
814
|
+
'type': 'region_consolidation',
|
|
815
|
+
'description': 'Consider consolidating resources in fewer regions',
|
|
816
|
+
'current_cost': transfers['inter_region']['monthly_cost'],
|
|
817
|
+
'potential_savings': transfers['inter_region']['monthly_cost'] * 0.8
|
|
818
|
+
})
|
|
819
|
+
|
|
820
|
+
# Analyze internet egress
|
|
821
|
+
if transfers['internet_egress']['monthly_gb'] > 10000:
|
|
822
|
+
recommendations.append({
|
|
823
|
+
'type': 'cdn_implementation',
|
|
824
|
+
'description': 'Implement CDN to reduce origin egress',
|
|
825
|
+
'current_cost': transfers['internet_egress']['monthly_cost'],
|
|
826
|
+
'potential_savings': transfers['internet_egress']['monthly_cost'] * 0.6
|
|
827
|
+
})
|
|
828
|
+
|
|
829
|
+
return {
|
|
830
|
+
'current_costs': transfers,
|
|
831
|
+
'recommendations': recommendations
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
def create_network_optimization_script(self):
|
|
835
|
+
"""Script to implement network optimizations"""
|
|
836
|
+
return '''
|
|
837
|
+
#!/usr/bin/env python3
|
|
838
|
+
import boto3
|
|
839
|
+
from collections import defaultdict
|
|
840
|
+
|
|
841
|
+
class NetworkOptimizer:
|
|
842
|
+
def __init__(self):
|
|
843
|
+
self.ec2 = boto3.client('ec2')
|
|
844
|
+
self.cloudwatch = boto3.client('cloudwatch')
|
|
845
|
+
|
|
846
|
+
def optimize_nat_gateways(self):
|
|
847
|
+
"""Consolidate and optimize NAT gateways"""
|
|
848
|
+
# Get all NAT gateways
|
|
849
|
+
nat_gateways = self.ec2.describe_nat_gateways()['NatGateways']
|
|
850
|
+
|
|
851
|
+
# Group by VPC
|
|
852
|
+
vpc_nat_gateways = defaultdict(list)
|
|
853
|
+
for nat in nat_gateways:
|
|
854
|
+
if nat['State'] == 'available':
|
|
855
|
+
vpc_nat_gateways[nat['VpcId']].append(nat)
|
|
856
|
+
|
|
857
|
+
optimizations = []
|
|
858
|
+
|
|
859
|
+
for vpc_id, nats in vpc_nat_gateways.items():
|
|
860
|
+
if len(nats) > 1:
|
|
861
|
+
# Check if consolidation is possible
|
|
862
|
+
traffic_analysis = self._analyze_nat_traffic(nats)
|
|
863
|
+
|
|
864
|
+
if traffic_analysis['can_consolidate']:
|
|
865
|
+
optimizations.append({
|
|
866
|
+
'vpc_id': vpc_id,
|
|
867
|
+
'action': 'consolidate_nat',
|
|
868
|
+
'current_count': len(nats),
|
|
869
|
+
'recommended_count': traffic_analysis['recommended_count'],
|
|
870
|
+
'monthly_savings': (len(nats) - traffic_analysis['recommended_count']) * 45
|
|
871
|
+
})
|
|
872
|
+
|
|
873
|
+
return optimizations
|
|
874
|
+
|
|
875
|
+
def implement_vpc_endpoints(self):
|
|
876
|
+
"""Implement VPC endpoints for AWS services"""
|
|
877
|
+
services_to_check = ['s3', 'dynamodb', 'ec2', 'sns', 'sqs']
|
|
878
|
+
vpc_list = self.ec2.describe_vpcs()['Vpcs']
|
|
879
|
+
|
|
880
|
+
implementations = []
|
|
881
|
+
|
|
882
|
+
for vpc in vpc_list:
|
|
883
|
+
vpc_id = vpc['VpcId']
|
|
884
|
+
|
|
885
|
+
# Check existing endpoints
|
|
886
|
+
existing = self._get_existing_endpoints(vpc_id)
|
|
887
|
+
|
|
888
|
+
for service in services_to_check:
|
|
889
|
+
if service not in existing:
|
|
890
|
+
# Check if service is being used
|
|
891
|
+
if self._is_service_used(vpc_id, service):
|
|
892
|
+
# Create VPC endpoint
|
|
893
|
+
endpoint = self._create_vpc_endpoint(vpc_id, service)
|
|
894
|
+
|
|
895
|
+
implementations.append({
|
|
896
|
+
'vpc_id': vpc_id,
|
|
897
|
+
'service': service,
|
|
898
|
+
'endpoint_id': endpoint['VpcEndpointId'],
|
|
899
|
+
'estimated_savings': self._estimate_endpoint_savings(vpc_id, service)
|
|
900
|
+
})
|
|
901
|
+
|
|
902
|
+
return implementations
|
|
903
|
+
|
|
904
|
+
def optimize_cloudfront_distribution(self):
|
|
905
|
+
"""Optimize CloudFront for cost reduction"""
|
|
906
|
+
cloudfront = boto3.client('cloudfront')
|
|
907
|
+
|
|
908
|
+
distributions = cloudfront.list_distributions()
|
|
909
|
+
optimizations = []
|
|
910
|
+
|
|
911
|
+
for dist in distributions.get('DistributionList', {}).get('Items', []):
|
|
912
|
+
# Analyze distribution patterns
|
|
913
|
+
analysis = self._analyze_distribution(dist['Id'])
|
|
914
|
+
|
|
915
|
+
if analysis['optimization_potential']:
|
|
916
|
+
optimizations.append({
|
|
917
|
+
'distribution_id': dist['Id'],
|
|
918
|
+
'recommendations': [
|
|
919
|
+
{
|
|
920
|
+
'action': 'adjust_price_class',
|
|
921
|
+
'current': dist['PriceClass'],
|
|
922
|
+
'recommended': analysis['recommended_price_class'],
|
|
923
|
+
'savings': analysis['price_class_savings']
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
'action': 'optimize_cache_behaviors',
|
|
927
|
+
'cache_improvements': analysis['cache_improvements'],
|
|
928
|
+
'savings': analysis['cache_savings']
|
|
929
|
+
}
|
|
930
|
+
]
|
|
931
|
+
})
|
|
932
|
+
|
|
933
|
+
return optimizations
|
|
934
|
+
'''
|
|
935
|
+
```
|
|
936
|
+
|
|
937
|
+
### 7. Container Cost Optimization
|
|
938
|
+
|
|
939
|
+
Optimize container workloads:
|
|
940
|
+
|
|
941
|
+
**Container Cost Optimizer**
|
|
942
|
+
|
|
943
|
+
```python
|
|
944
|
+
class ContainerCostOptimizer:
|
|
945
|
+
def optimize_ecs_costs(self):
|
|
946
|
+
"""Optimize ECS/Fargate costs"""
|
|
947
|
+
return {
|
|
948
|
+
'cluster_optimization': self._optimize_clusters(),
|
|
949
|
+
'task_rightsizing': self._rightsize_tasks(),
|
|
950
|
+
'scheduling_optimization': self._optimize_scheduling(),
|
|
951
|
+
'fargate_spot': self._implement_fargate_spot()
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
def _rightsize_tasks(self):
|
|
955
|
+
"""Rightsize ECS tasks"""
|
|
956
|
+
ecs = boto3.client('ecs')
|
|
957
|
+
cloudwatch = boto3.client('cloudwatch')
|
|
958
|
+
|
|
959
|
+
clusters = ecs.list_clusters()['clusterArns']
|
|
960
|
+
recommendations = []
|
|
961
|
+
|
|
962
|
+
for cluster in clusters:
|
|
963
|
+
# Get services
|
|
964
|
+
services = ecs.list_services(cluster=cluster)['serviceArns']
|
|
965
|
+
|
|
966
|
+
for service in services:
|
|
967
|
+
# Get task definition
|
|
968
|
+
service_detail = ecs.describe_services(
|
|
969
|
+
cluster=cluster,
|
|
970
|
+
services=[service]
|
|
971
|
+
)['services'][0]
|
|
972
|
+
|
|
973
|
+
task_def = service_detail['taskDefinition']
|
|
974
|
+
|
|
975
|
+
# Analyze resource utilization
|
|
976
|
+
utilization = self._analyze_task_utilization(cluster, service)
|
|
977
|
+
|
|
978
|
+
# Generate recommendations
|
|
979
|
+
if utilization['cpu']['average'] < 30 or utilization['memory']['average'] < 40:
|
|
980
|
+
recommendations.append({
|
|
981
|
+
'cluster': cluster,
|
|
982
|
+
'service': service,
|
|
983
|
+
'current_cpu': service_detail['cpu'],
|
|
984
|
+
'current_memory': service_detail['memory'],
|
|
985
|
+
'recommended_cpu': int(service_detail['cpu'] * 0.7),
|
|
986
|
+
'recommended_memory': int(service_detail['memory'] * 0.8),
|
|
987
|
+
'monthly_savings': self._calculate_task_savings(
|
|
988
|
+
service_detail,
|
|
989
|
+
utilization
|
|
990
|
+
)
|
|
991
|
+
})
|
|
992
|
+
|
|
993
|
+
return recommendations
|
|
994
|
+
|
|
995
|
+
def create_k8s_cost_optimization(self):
|
|
996
|
+
"""Kubernetes cost optimization"""
|
|
997
|
+
return '''
|
|
998
|
+
apiVersion: v1
|
|
999
|
+
kind: ConfigMap
|
|
1000
|
+
metadata:
|
|
1001
|
+
name: cost-optimization-config
|
|
1002
|
+
data:
|
|
1003
|
+
vertical-pod-autoscaler.yaml: |
|
|
1004
|
+
apiVersion: autoscaling.k8s.io/v1
|
|
1005
|
+
kind: VerticalPodAutoscaler
|
|
1006
|
+
metadata:
|
|
1007
|
+
name: app-vpa
|
|
1008
|
+
spec:
|
|
1009
|
+
targetRef:
|
|
1010
|
+
apiVersion: apps/v1
|
|
1011
|
+
kind: Deployment
|
|
1012
|
+
name: app-deployment
|
|
1013
|
+
updatePolicy:
|
|
1014
|
+
updateMode: "Auto"
|
|
1015
|
+
resourcePolicy:
|
|
1016
|
+
containerPolicies:
|
|
1017
|
+
- containerName: app
|
|
1018
|
+
minAllowed:
|
|
1019
|
+
cpu: 100m
|
|
1020
|
+
memory: 128Mi
|
|
1021
|
+
maxAllowed:
|
|
1022
|
+
cpu: 2
|
|
1023
|
+
memory: 2Gi
|
|
1024
|
+
|
|
1025
|
+
cluster-autoscaler-config.yaml: |
|
|
1026
|
+
apiVersion: apps/v1
|
|
1027
|
+
kind: Deployment
|
|
1028
|
+
metadata:
|
|
1029
|
+
name: cluster-autoscaler
|
|
1030
|
+
spec:
|
|
1031
|
+
template:
|
|
1032
|
+
spec:
|
|
1033
|
+
containers:
|
|
1034
|
+
- image: k8s.gcr.io/autoscaling/cluster-autoscaler:v1.21.0
|
|
1035
|
+
name: cluster-autoscaler
|
|
1036
|
+
command:
|
|
1037
|
+
- ./cluster-autoscaler
|
|
1038
|
+
- --v=4
|
|
1039
|
+
- --stderrthreshold=info
|
|
1040
|
+
- --cloud-provider=aws
|
|
1041
|
+
- --skip-nodes-with-local-storage=false
|
|
1042
|
+
- --expander=priority
|
|
1043
|
+
- --node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/cluster-name
|
|
1044
|
+
- --scale-down-enabled=true
|
|
1045
|
+
- --scale-down-unneeded-time=10m
|
|
1046
|
+
- --scale-down-utilization-threshold=0.5
|
|
1047
|
+
|
|
1048
|
+
spot-instance-handler.yaml: |
|
|
1049
|
+
apiVersion: apps/v1
|
|
1050
|
+
kind: DaemonSet
|
|
1051
|
+
metadata:
|
|
1052
|
+
name: aws-node-termination-handler
|
|
1053
|
+
spec:
|
|
1054
|
+
selector:
|
|
1055
|
+
matchLabels:
|
|
1056
|
+
app: aws-node-termination-handler
|
|
1057
|
+
template:
|
|
1058
|
+
spec:
|
|
1059
|
+
containers:
|
|
1060
|
+
- name: aws-node-termination-handler
|
|
1061
|
+
image: amazon/aws-node-termination-handler:v1.13.0
|
|
1062
|
+
env:
|
|
1063
|
+
- name: NODE_NAME
|
|
1064
|
+
valueFrom:
|
|
1065
|
+
fieldRef:
|
|
1066
|
+
fieldPath: spec.nodeName
|
|
1067
|
+
- name: ENABLE_SPOT_INTERRUPTION_DRAINING
|
|
1068
|
+
value: "true"
|
|
1069
|
+
- name: ENABLE_SCHEDULED_EVENT_DRAINING
|
|
1070
|
+
value: "true"
|
|
1071
|
+
'''
|
|
1072
|
+
```
|
|
1073
|
+
|
|
1074
|
+
### 8. Serverless Cost Optimization
|
|
1075
|
+
|
|
1076
|
+
Optimize serverless workloads:
|
|
1077
|
+
|
|
1078
|
+
**Serverless Optimizer**
|
|
1079
|
+
|
|
1080
|
+
```python
|
|
1081
|
+
class ServerlessOptimizer:
|
|
1082
|
+
def optimize_lambda_costs(self):
|
|
1083
|
+
"""Optimize Lambda function costs"""
|
|
1084
|
+
lambda_client = boto3.client('lambda')
|
|
1085
|
+
cloudwatch = boto3.client('cloudwatch')
|
|
1086
|
+
|
|
1087
|
+
functions = lambda_client.list_functions()['Functions']
|
|
1088
|
+
optimizations = []
|
|
1089
|
+
|
|
1090
|
+
for function in functions:
|
|
1091
|
+
# Analyze function performance
|
|
1092
|
+
analysis = self._analyze_lambda_function(function)
|
|
1093
|
+
|
|
1094
|
+
# Memory optimization
|
|
1095
|
+
if analysis['memory_optimization_possible']:
|
|
1096
|
+
optimizations.append({
|
|
1097
|
+
'function_name': function['FunctionName'],
|
|
1098
|
+
'type': 'memory_optimization',
|
|
1099
|
+
'current_memory': function['MemorySize'],
|
|
1100
|
+
'recommended_memory': analysis['optimal_memory'],
|
|
1101
|
+
'estimated_savings': analysis['memory_savings']
|
|
1102
|
+
})
|
|
1103
|
+
|
|
1104
|
+
# Timeout optimization
|
|
1105
|
+
if analysis['timeout_optimization_possible']:
|
|
1106
|
+
optimizations.append({
|
|
1107
|
+
'function_name': function['FunctionName'],
|
|
1108
|
+
'type': 'timeout_optimization',
|
|
1109
|
+
'current_timeout': function['Timeout'],
|
|
1110
|
+
'recommended_timeout': analysis['optimal_timeout'],
|
|
1111
|
+
'risk_reduction': 'prevents unnecessary charges from hanging functions'
|
|
1112
|
+
})
|
|
1113
|
+
|
|
1114
|
+
return optimizations
|
|
1115
|
+
|
|
1116
|
+
def implement_lambda_cost_controls(self):
|
|
1117
|
+
"""Implement Lambda cost controls"""
|
|
1118
|
+
return '''
|
|
1119
|
+
import json
|
|
1120
|
+
import boto3
|
|
1121
|
+
from datetime import datetime
|
|
1122
|
+
|
|
1123
|
+
def lambda_cost_controller(event, context):
|
|
1124
|
+
"""Lambda function to monitor and control Lambda costs"""
|
|
1125
|
+
|
|
1126
|
+
cloudwatch = boto3.client('cloudwatch')
|
|
1127
|
+
lambda_client = boto3.client('lambda')
|
|
1128
|
+
|
|
1129
|
+
# Get current month costs
|
|
1130
|
+
costs = get_current_month_lambda_costs()
|
|
1131
|
+
|
|
1132
|
+
# Check against budget
|
|
1133
|
+
budget_limit = float(os.environ.get('MONTHLY_BUDGET', '1000'))
|
|
1134
|
+
|
|
1135
|
+
if costs > budget_limit * 0.8: # 80% of budget
|
|
1136
|
+
# Implement cost controls
|
|
1137
|
+
high_cost_functions = identify_high_cost_functions()
|
|
1138
|
+
|
|
1139
|
+
for func in high_cost_functions:
|
|
1140
|
+
# Reduce concurrency
|
|
1141
|
+
lambda_client.put_function_concurrency(
|
|
1142
|
+
FunctionName=func['FunctionName'],
|
|
1143
|
+
ReservedConcurrentExecutions=max(
|
|
1144
|
+
1,
|
|
1145
|
+
int(func['CurrentConcurrency'] * 0.5)
|
|
1146
|
+
)
|
|
1147
|
+
)
|
|
1148
|
+
|
|
1149
|
+
# Alert
|
|
1150
|
+
send_cost_alert(func, costs, budget_limit)
|
|
1151
|
+
|
|
1152
|
+
# Implement provisioned concurrency optimization
|
|
1153
|
+
optimize_provisioned_concurrency()
|
|
1154
|
+
|
|
1155
|
+
return {
|
|
1156
|
+
'statusCode': 200,
|
|
1157
|
+
'body': json.dumps({
|
|
1158
|
+
'current_costs': costs,
|
|
1159
|
+
'budget_limit': budget_limit,
|
|
1160
|
+
'actions_taken': len(high_cost_functions)
|
|
1161
|
+
})
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
def optimize_provisioned_concurrency():
|
|
1165
|
+
"""Optimize provisioned concurrency based on usage patterns"""
|
|
1166
|
+
functions = get_functions_with_provisioned_concurrency()
|
|
1167
|
+
|
|
1168
|
+
for func in functions:
|
|
1169
|
+
# Analyze invocation patterns
|
|
1170
|
+
patterns = analyze_invocation_patterns(func['FunctionName'])
|
|
1171
|
+
|
|
1172
|
+
if patterns['predictable']:
|
|
1173
|
+
# Schedule provisioned concurrency
|
|
1174
|
+
create_scheduled_scaling(
|
|
1175
|
+
func['FunctionName'],
|
|
1176
|
+
patterns['peak_hours'],
|
|
1177
|
+
patterns['peak_concurrency']
|
|
1178
|
+
)
|
|
1179
|
+
else:
|
|
1180
|
+
# Consider removing provisioned concurrency
|
|
1181
|
+
if patterns['avg_cold_starts'] < 10: # per minute
|
|
1182
|
+
remove_provisioned_concurrency(func['FunctionName'])
|
|
1183
|
+
'''
|
|
1184
|
+
```
|
|
1185
|
+
|
|
1186
|
+
### 9. Cost Allocation and Tagging
|
|
1187
|
+
|
|
1188
|
+
Implement cost allocation strategies:
|
|
1189
|
+
|
|
1190
|
+
**Cost Allocation Manager**
|
|
1191
|
+
|
|
1192
|
+
```python
|
|
1193
|
+
class CostAllocationManager:
|
|
1194
|
+
def implement_tagging_strategy(self):
|
|
1195
|
+
"""Implement comprehensive tagging strategy"""
|
|
1196
|
+
return {
|
|
1197
|
+
'required_tags': [
|
|
1198
|
+
{'key': 'Environment', 'values': ['prod', 'staging', 'dev', 'test']},
|
|
1199
|
+
{'key': 'CostCenter', 'values': 'dynamic'},
|
|
1200
|
+
{'key': 'Project', 'values': 'dynamic'},
|
|
1201
|
+
{'key': 'Owner', 'values': 'dynamic'},
|
|
1202
|
+
{'key': 'Department', 'values': 'dynamic'}
|
|
1203
|
+
],
|
|
1204
|
+
'automation': self._create_tagging_automation(),
|
|
1205
|
+
'enforcement': self._create_tag_enforcement(),
|
|
1206
|
+
'reporting': self._create_cost_allocation_reports()
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
def _create_tagging_automation(self):
|
|
1210
|
+
"""Automate resource tagging"""
|
|
1211
|
+
return '''
|
|
1212
|
+
import boto3
|
|
1213
|
+
from datetime import datetime
|
|
1214
|
+
|
|
1215
|
+
class AutoTagger:
|
|
1216
|
+
def __init__(self):
|
|
1217
|
+
self.tag_policies = self.load_tag_policies()
|
|
1218
|
+
|
|
1219
|
+
def auto_tag_resources(self, event, context):
|
|
1220
|
+
"""Auto-tag resources on creation"""
|
|
1221
|
+
|
|
1222
|
+
# Parse CloudTrail event
|
|
1223
|
+
detail = event['detail']
|
|
1224
|
+
event_name = detail['eventName']
|
|
1225
|
+
|
|
1226
|
+
# Map events to resource types
|
|
1227
|
+
if event_name.startswith('Create'):
|
|
1228
|
+
resource_arn = self.extract_resource_arn(detail)
|
|
1229
|
+
|
|
1230
|
+
if resource_arn:
|
|
1231
|
+
# Determine tags
|
|
1232
|
+
tags = self.determine_tags(detail)
|
|
1233
|
+
|
|
1234
|
+
# Apply tags
|
|
1235
|
+
self.apply_tags(resource_arn, tags)
|
|
1236
|
+
|
|
1237
|
+
# Log tagging action
|
|
1238
|
+
self.log_tagging(resource_arn, tags)
|
|
1239
|
+
|
|
1240
|
+
def determine_tags(self, event_detail):
|
|
1241
|
+
"""Determine tags based on context"""
|
|
1242
|
+
tags = []
|
|
1243
|
+
|
|
1244
|
+
# User-based tags
|
|
1245
|
+
user_identity = event_detail.get('userIdentity', {})
|
|
1246
|
+
if 'userName' in user_identity:
|
|
1247
|
+
tags.append({
|
|
1248
|
+
'Key': 'Creator',
|
|
1249
|
+
'Value': user_identity['userName']
|
|
1250
|
+
})
|
|
1251
|
+
|
|
1252
|
+
# Time-based tags
|
|
1253
|
+
tags.append({
|
|
1254
|
+
'Key': 'CreatedDate',
|
|
1255
|
+
'Value': datetime.now().strftime('%Y-%m-%d')
|
|
1256
|
+
})
|
|
1257
|
+
|
|
1258
|
+
# Environment inference
|
|
1259
|
+
if 'prod' in event_detail.get('sourceIPAddress', ''):
|
|
1260
|
+
env = 'prod'
|
|
1261
|
+
elif 'dev' in event_detail.get('sourceIPAddress', ''):
|
|
1262
|
+
env = 'dev'
|
|
1263
|
+
else:
|
|
1264
|
+
env = 'unknown'
|
|
1265
|
+
|
|
1266
|
+
tags.append({
|
|
1267
|
+
'Key': 'Environment',
|
|
1268
|
+
'Value': env
|
|
1269
|
+
})
|
|
1270
|
+
|
|
1271
|
+
return tags
|
|
1272
|
+
|
|
1273
|
+
def create_cost_allocation_dashboard(self):
|
|
1274
|
+
"""Create cost allocation dashboard"""
|
|
1275
|
+
return """
|
|
1276
|
+
SELECT
|
|
1277
|
+
tags.environment,
|
|
1278
|
+
tags.department,
|
|
1279
|
+
tags.project,
|
|
1280
|
+
SUM(costs.amount) as total_cost,
|
|
1281
|
+
SUM(costs.amount) / SUM(SUM(costs.amount)) OVER () * 100 as percentage
|
|
1282
|
+
FROM
|
|
1283
|
+
aws_costs costs
|
|
1284
|
+
JOIN
|
|
1285
|
+
resource_tags tags ON costs.resource_id = tags.resource_id
|
|
1286
|
+
WHERE
|
|
1287
|
+
costs.date >= DATE_TRUNC('month', CURRENT_DATE)
|
|
1288
|
+
GROUP BY
|
|
1289
|
+
tags.environment,
|
|
1290
|
+
tags.department,
|
|
1291
|
+
tags.project
|
|
1292
|
+
ORDER BY
|
|
1293
|
+
total_cost DESC
|
|
1294
|
+
"""
|
|
1295
|
+
'''
|
|
1296
|
+
```
|
|
1297
|
+
|
|
1298
|
+
### 10. Cost Monitoring and Alerts
|
|
1299
|
+
|
|
1300
|
+
Implement proactive cost monitoring:
|
|
1301
|
+
|
|
1302
|
+
**Cost Monitoring System**
|
|
1303
|
+
|
|
1304
|
+
```python
|
|
1305
|
+
class CostMonitoringSystem:
|
|
1306
|
+
def setup_cost_alerts(self):
|
|
1307
|
+
"""Setup comprehensive cost alerting"""
|
|
1308
|
+
alerts = []
|
|
1309
|
+
|
|
1310
|
+
# Budget alerts
|
|
1311
|
+
alerts.extend(self._create_budget_alerts())
|
|
1312
|
+
|
|
1313
|
+
# Anomaly detection
|
|
1314
|
+
alerts.extend(self._create_anomaly_alerts())
|
|
1315
|
+
|
|
1316
|
+
# Threshold alerts
|
|
1317
|
+
alerts.extend(self._create_threshold_alerts())
|
|
1318
|
+
|
|
1319
|
+
# Forecast alerts
|
|
1320
|
+
alerts.extend(self._create_forecast_alerts())
|
|
1321
|
+
|
|
1322
|
+
return alerts
|
|
1323
|
+
|
|
1324
|
+
def _create_anomaly_alerts(self):
|
|
1325
|
+
"""Create anomaly detection alerts"""
|
|
1326
|
+
ce = boto3.client('ce')
|
|
1327
|
+
|
|
1328
|
+
# Create anomaly monitor
|
|
1329
|
+
monitor = ce.create_anomaly_monitor(
|
|
1330
|
+
AnomalyMonitor={
|
|
1331
|
+
'MonitorName': 'ServiceCostMonitor',
|
|
1332
|
+
'MonitorType': 'DIMENSIONAL',
|
|
1333
|
+
'MonitorDimension': 'SERVICE'
|
|
1334
|
+
}
|
|
1335
|
+
)
|
|
1336
|
+
|
|
1337
|
+
# Create anomaly subscription
|
|
1338
|
+
subscription = ce.create_anomaly_subscription(
|
|
1339
|
+
AnomalySubscription={
|
|
1340
|
+
'SubscriptionName': 'CostAnomalyAlerts',
|
|
1341
|
+
'Threshold': 100.0, # Alert on anomalies > $100
|
|
1342
|
+
'Frequency': 'DAILY',
|
|
1343
|
+
'MonitorArnList': [monitor['MonitorArn']],
|
|
1344
|
+
'Subscribers': [
|
|
1345
|
+
{
|
|
1346
|
+
'Type': 'EMAIL',
|
|
1347
|
+
'Address': 'team@company.com'
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
'Type': 'SNS',
|
|
1351
|
+
'Address': 'arn:aws:sns:us-east-1:123456789012:cost-alerts'
|
|
1352
|
+
}
|
|
1353
|
+
]
|
|
1354
|
+
}
|
|
1355
|
+
)
|
|
1356
|
+
|
|
1357
|
+
return [monitor, subscription]
|
|
1358
|
+
|
|
1359
|
+
def create_cost_dashboard(self):
|
|
1360
|
+
"""Create executive cost dashboard"""
|
|
1361
|
+
return '''
|
|
1362
|
+
<!DOCTYPE html>
|
|
1363
|
+
<html>
|
|
1364
|
+
<head>
|
|
1365
|
+
<title>Cloud Cost Dashboard</title>
|
|
1366
|
+
<script src="https://d3js.org/d3.v7.min.js"></script>
|
|
1367
|
+
<style>
|
|
1368
|
+
.metric-card {
|
|
1369
|
+
background: #f5f5f5;
|
|
1370
|
+
padding: 20px;
|
|
1371
|
+
margin: 10px;
|
|
1372
|
+
border-radius: 8px;
|
|
1373
|
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
1374
|
+
}
|
|
1375
|
+
.alert { color: #d32f2f; }
|
|
1376
|
+
.warning { color: #f57c00; }
|
|
1377
|
+
.success { color: #388e3c; }
|
|
1378
|
+
</style>
|
|
1379
|
+
</head>
|
|
1380
|
+
<body>
|
|
1381
|
+
<div id="dashboard">
|
|
1382
|
+
<h1>Cloud Cost Optimization Dashboard</h1>
|
|
1383
|
+
|
|
1384
|
+
<div class="summary-row">
|
|
1385
|
+
<div class="metric-card">
|
|
1386
|
+
<h3>Current Month Spend</h3>
|
|
1387
|
+
<div class="metric">${current_spend}</div>
|
|
1388
|
+
<div class="trend ${spend_trend_class}">${spend_trend}% vs last month</div>
|
|
1389
|
+
</div>
|
|
1390
|
+
|
|
1391
|
+
<div class="metric-card">
|
|
1392
|
+
<h3>Projected Month End</h3>
|
|
1393
|
+
<div class="metric">${projected_spend}</div>
|
|
1394
|
+
<div class="budget-status">Budget: ${budget}</div>
|
|
1395
|
+
</div>
|
|
1396
|
+
|
|
1397
|
+
<div class="metric-card">
|
|
1398
|
+
<h3>Optimization Opportunities</h3>
|
|
1399
|
+
<div class="metric">${total_savings_identified}</div>
|
|
1400
|
+
<div class="count">{opportunity_count} recommendations</div>
|
|
1401
|
+
</div>
|
|
1402
|
+
|
|
1403
|
+
<div class="metric-card">
|
|
1404
|
+
<h3>Realized Savings</h3>
|
|
1405
|
+
<div class="metric">${realized_savings_mtd}</div>
|
|
1406
|
+
<div class="count">YTD: ${realized_savings_ytd}</div>
|
|
1407
|
+
</div>
|
|
1408
|
+
</div>
|
|
1409
|
+
|
|
1410
|
+
<div class="charts-row">
|
|
1411
|
+
<div id="spend-trend-chart"></div>
|
|
1412
|
+
<div id="service-breakdown-chart"></div>
|
|
1413
|
+
<div id="optimization-progress-chart"></div>
|
|
1414
|
+
</div>
|
|
1415
|
+
|
|
1416
|
+
<div class="recommendations-section">
|
|
1417
|
+
<h2>Top Optimization Recommendations</h2>
|
|
1418
|
+
<table id="recommendations-table">
|
|
1419
|
+
<thead>
|
|
1420
|
+
<tr>
|
|
1421
|
+
<th>Priority</th>
|
|
1422
|
+
<th>Service</th>
|
|
1423
|
+
<th>Recommendation</th>
|
|
1424
|
+
<th>Monthly Savings</th>
|
|
1425
|
+
<th>Effort</th>
|
|
1426
|
+
<th>Action</th>
|
|
1427
|
+
</tr>
|
|
1428
|
+
</thead>
|
|
1429
|
+
<tbody>
|
|
1430
|
+
${recommendation_rows}
|
|
1431
|
+
</tbody>
|
|
1432
|
+
</table>
|
|
1433
|
+
</div>
|
|
1434
|
+
</div>
|
|
1435
|
+
|
|
1436
|
+
<script>
|
|
1437
|
+
// Real-time updates
|
|
1438
|
+
setInterval(updateDashboard, 60000);
|
|
1439
|
+
|
|
1440
|
+
// Initialize charts
|
|
1441
|
+
initializeCharts();
|
|
1442
|
+
</script>
|
|
1443
|
+
</body>
|
|
1444
|
+
</html>
|
|
1445
|
+
'''
|
|
1446
|
+
```
|
|
1447
|
+
|
|
1448
|
+
## Output Format
|
|
1449
|
+
|
|
1450
|
+
1. **Cost Analysis Report**: Comprehensive breakdown of current cloud costs
|
|
1451
|
+
2. **Optimization Recommendations**: Prioritized list of cost-saving opportunities
|
|
1452
|
+
3. **Implementation Scripts**: Automated scripts for implementing optimizations
|
|
1453
|
+
4. **Monitoring Dashboards**: Real-time cost tracking and alerting
|
|
1454
|
+
5. **ROI Calculations**: Detailed savings projections and payback periods
|
|
1455
|
+
6. **Risk Assessment**: Analysis of risks associated with each optimization
|
|
1456
|
+
7. **Implementation Roadmap**: Phased approach to cost optimization
|
|
1457
|
+
8. **Best Practices Guide**: Long-term cost management strategies
|
|
1458
|
+
|
|
1459
|
+
Focus on delivering immediate cost savings while establishing sustainable cost optimization practices that maintain performance and reliability standards.
|