claude-autopm 2.8.1 → 2.8.3
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/README.md +399 -529
- package/bin/autopm.js +2 -0
- package/bin/commands/plugin.js +395 -0
- package/bin/commands/team.js +184 -10
- package/install/install.js +223 -4
- package/lib/plugins/PluginManager.js +1328 -0
- package/lib/plugins/PluginManager.old.js +400 -0
- package/package.json +5 -1
- package/packages/plugin-ai/LICENSE +21 -0
- package/packages/plugin-ai/README.md +316 -0
- package/packages/plugin-ai/agents/anthropic-claude-expert.md +579 -0
- package/packages/plugin-ai/agents/azure-openai-expert.md +1411 -0
- package/packages/plugin-ai/agents/google-a2a-expert.md +1445 -0
- package/packages/plugin-ai/agents/huggingface-expert.md +2131 -0
- package/packages/plugin-ai/agents/langchain-expert.md +1427 -0
- package/packages/plugin-ai/commands/a2a-setup.md +886 -0
- package/packages/plugin-ai/commands/ai-model-deployment.md +481 -0
- package/packages/plugin-ai/commands/anthropic-optimize.md +793 -0
- package/packages/plugin-ai/commands/huggingface-deploy.md +789 -0
- package/packages/plugin-ai/commands/langchain-optimize.md +807 -0
- package/packages/plugin-ai/commands/llm-optimize.md +348 -0
- package/packages/plugin-ai/commands/openai-optimize.md +863 -0
- package/packages/plugin-ai/commands/rag-optimize.md +841 -0
- package/packages/plugin-ai/commands/rag-setup-scaffold.md +382 -0
- package/packages/plugin-ai/package.json +66 -0
- package/packages/plugin-ai/plugin.json +519 -0
- package/packages/plugin-ai/rules/ai-model-standards.md +449 -0
- package/packages/plugin-ai/rules/prompt-engineering-standards.md +509 -0
- package/packages/plugin-ai/scripts/examples/huggingface-inference-example.py +145 -0
- package/packages/plugin-ai/scripts/examples/langchain-rag-example.py +366 -0
- package/packages/plugin-ai/scripts/examples/mlflow-tracking-example.py +224 -0
- package/packages/plugin-ai/scripts/examples/openai-chat-example.py +425 -0
- package/packages/plugin-cloud/README.md +268 -0
- package/packages/plugin-cloud/agents/gemini-api-expert.md +880 -0
- package/packages/plugin-cloud/agents/openai-python-expert.md +1087 -0
- package/packages/plugin-cloud/commands/cloud-cost-optimize.md +243 -0
- package/packages/plugin-cloud/commands/cloud-validate.md +196 -0
- package/packages/plugin-cloud/hooks/pre-cloud-deploy.js +456 -0
- package/packages/plugin-cloud/package.json +64 -0
- package/packages/plugin-cloud/plugin.json +338 -0
- package/packages/plugin-cloud/rules/cloud-security-compliance.md +313 -0
- package/packages/plugin-cloud/scripts/examples/aws-validate.sh +30 -0
- package/packages/plugin-cloud/scripts/examples/azure-setup.sh +33 -0
- package/packages/plugin-cloud/scripts/examples/gcp-setup.sh +39 -0
- package/packages/plugin-cloud/scripts/examples/k8s-validate.sh +40 -0
- package/packages/plugin-cloud/scripts/examples/terraform-init.sh +26 -0
- package/packages/plugin-core/README.md +274 -0
- package/packages/plugin-core/commands/code-rabbit.md +128 -0
- package/packages/plugin-core/commands/prompt.md +9 -0
- package/packages/plugin-core/commands/re-init.md +9 -0
- package/packages/plugin-core/hooks/context7-reminder.md +29 -0
- package/packages/plugin-core/hooks/enforce-agents.js +125 -0
- package/packages/plugin-core/hooks/enforce-agents.sh +35 -0
- package/packages/plugin-core/hooks/pre-agent-context7.js +224 -0
- package/packages/plugin-core/hooks/pre-command-context7.js +229 -0
- package/packages/plugin-core/hooks/strict-enforce-agents.sh +39 -0
- package/packages/plugin-core/hooks/test-hook.sh +21 -0
- package/packages/plugin-core/hooks/unified-context7-enforcement.sh +38 -0
- package/packages/plugin-core/package.json +45 -0
- package/packages/plugin-core/plugin.json +387 -0
- package/packages/plugin-core/rules/agent-coordination.md +549 -0
- package/packages/plugin-core/rules/agent-mandatory.md +170 -0
- package/packages/plugin-core/rules/command-pipelines.md +208 -0
- package/packages/plugin-core/rules/context-optimization.md +176 -0
- package/packages/plugin-core/rules/context7-enforcement.md +327 -0
- package/packages/plugin-core/rules/datetime.md +122 -0
- package/packages/plugin-core/rules/definition-of-done.md +272 -0
- package/packages/plugin-core/rules/development-environments.md +19 -0
- package/packages/plugin-core/rules/development-workflow.md +198 -0
- package/packages/plugin-core/rules/framework-path-rules.md +180 -0
- package/packages/plugin-core/rules/frontmatter-operations.md +64 -0
- package/packages/plugin-core/rules/git-strategy.md +237 -0
- package/packages/plugin-core/rules/golden-rules.md +181 -0
- package/packages/plugin-core/rules/naming-conventions.md +111 -0
- package/packages/plugin-core/rules/no-pr-workflow.md +183 -0
- package/packages/plugin-core/rules/pipeline-mandatory.md +109 -0
- package/packages/plugin-core/rules/security-checklist.md +318 -0
- package/packages/plugin-core/rules/standard-patterns.md +197 -0
- package/packages/plugin-core/rules/strip-frontmatter.md +85 -0
- package/packages/plugin-core/rules/tdd.enforcement.md +103 -0
- package/packages/plugin-core/rules/use-ast-grep.md +113 -0
- package/packages/plugin-core/scripts/lib/datetime-utils.sh +254 -0
- package/packages/plugin-core/scripts/lib/frontmatter-utils.sh +294 -0
- package/packages/plugin-core/scripts/lib/github-utils.sh +221 -0
- package/packages/plugin-core/scripts/lib/logging-utils.sh +199 -0
- package/packages/plugin-core/scripts/lib/validation-utils.sh +339 -0
- package/packages/plugin-core/scripts/mcp/add.sh +7 -0
- package/packages/plugin-core/scripts/mcp/disable.sh +12 -0
- package/packages/plugin-core/scripts/mcp/enable.sh +12 -0
- package/packages/plugin-core/scripts/mcp/list.sh +7 -0
- package/packages/plugin-core/scripts/mcp/sync.sh +8 -0
- package/packages/plugin-data/README.md +315 -0
- package/packages/plugin-data/agents/airflow-orchestration-expert.md +158 -0
- package/packages/plugin-data/agents/kedro-pipeline-expert.md +304 -0
- package/packages/plugin-data/agents/langgraph-workflow-expert.md +530 -0
- package/packages/plugin-data/commands/airflow-dag-scaffold.md +413 -0
- package/packages/plugin-data/commands/kafka-pipeline-scaffold.md +503 -0
- package/packages/plugin-data/package.json +66 -0
- package/packages/plugin-data/plugin.json +294 -0
- package/packages/plugin-data/rules/data-quality-standards.md +373 -0
- package/packages/plugin-data/rules/etl-pipeline-standards.md +255 -0
- package/packages/plugin-data/scripts/examples/airflow-dag-example.py +245 -0
- package/packages/plugin-data/scripts/examples/dbt-transform-example.sql +238 -0
- package/packages/plugin-data/scripts/examples/kafka-streaming-example.py +257 -0
- package/packages/plugin-data/scripts/examples/pandas-etl-example.py +332 -0
- package/packages/plugin-databases/README.md +330 -0
- package/{autopm/.claude/agents/databases → packages/plugin-databases/agents}/bigquery-expert.md +24 -15
- package/{autopm/.claude/agents/databases → packages/plugin-databases/agents}/cosmosdb-expert.md +22 -15
- package/{autopm/.claude/agents/databases → packages/plugin-databases/agents}/mongodb-expert.md +24 -15
- package/{autopm/.claude/agents/databases → packages/plugin-databases/agents}/postgresql-expert.md +23 -15
- package/{autopm/.claude/agents/databases → packages/plugin-databases/agents}/redis-expert.md +29 -7
- package/packages/plugin-databases/commands/db-optimize.md +612 -0
- package/packages/plugin-databases/package.json +60 -0
- package/packages/plugin-databases/plugin.json +237 -0
- package/packages/plugin-databases/rules/database-management-strategy.md +146 -0
- package/packages/plugin-databases/rules/database-pipeline.md +316 -0
- package/packages/plugin-databases/scripts/examples/bigquery-cost-analyze.sh +160 -0
- package/packages/plugin-databases/scripts/examples/cosmosdb-ru-optimize.sh +163 -0
- package/packages/plugin-databases/scripts/examples/mongodb-shard-check.sh +120 -0
- package/packages/plugin-databases/scripts/examples/postgres-index-analyze.sh +95 -0
- package/packages/plugin-databases/scripts/examples/redis-cache-stats.sh +121 -0
- package/packages/plugin-devops/README.md +367 -0
- package/{autopm/.claude/agents/devops → packages/plugin-devops/agents}/github-operations-specialist.md +1 -1
- package/packages/plugin-devops/commands/ci-pipeline-create.md +581 -0
- package/packages/plugin-devops/commands/docker-optimize.md +493 -0
- package/packages/plugin-devops/hooks/pre-docker-build.js +472 -0
- package/packages/plugin-devops/package.json +61 -0
- package/packages/plugin-devops/plugin.json +302 -0
- package/packages/plugin-devops/rules/github-operations.md +92 -0
- package/packages/plugin-devops/scripts/examples/docker-build-multistage.sh +43 -0
- package/packages/plugin-devops/scripts/examples/docker-compose-validate.sh +74 -0
- package/packages/plugin-devops/scripts/examples/github-workflow-validate.sh +48 -0
- package/packages/plugin-devops/scripts/examples/prometheus-health-check.sh +58 -0
- package/packages/plugin-devops/scripts/examples/ssh-key-setup.sh +74 -0
- package/packages/plugin-frameworks/README.md +309 -0
- package/{autopm/.claude/agents/frameworks → packages/plugin-frameworks/agents}/e2e-test-engineer.md +219 -0
- package/{autopm/.claude/agents/frameworks → packages/plugin-frameworks/agents}/react-frontend-engineer.md +176 -0
- package/{autopm/.claude/agents/frameworks → packages/plugin-frameworks/agents}/tailwindcss-expert.md +251 -0
- package/packages/plugin-frameworks/commands/nextjs-optimize.md +692 -0
- package/packages/plugin-frameworks/commands/react-optimize.md +583 -0
- package/packages/plugin-frameworks/package.json +59 -0
- package/packages/plugin-frameworks/plugin.json +224 -0
- package/packages/plugin-frameworks/rules/performance-guidelines.md +403 -0
- package/packages/plugin-frameworks/scripts/examples/react-component-perf.sh +34 -0
- package/packages/plugin-frameworks/scripts/examples/tailwind-optimize.sh +44 -0
- package/packages/plugin-frameworks/scripts/examples/vue-composition-check.sh +41 -0
- package/packages/plugin-languages/README.md +333 -0
- package/packages/plugin-languages/commands/javascript-optimize.md +636 -0
- package/packages/plugin-languages/commands/nodejs-api-scaffold.md +341 -0
- package/packages/plugin-languages/commands/nodejs-optimize.md +689 -0
- package/packages/plugin-languages/commands/python-api-scaffold.md +261 -0
- package/packages/plugin-languages/commands/python-optimize.md +593 -0
- package/packages/plugin-languages/package.json +65 -0
- package/packages/plugin-languages/plugin.json +265 -0
- package/packages/plugin-languages/rules/code-quality-standards.md +496 -0
- package/packages/plugin-languages/rules/testing-standards.md +768 -0
- package/packages/plugin-languages/scripts/examples/bash-production-script.sh +520 -0
- package/packages/plugin-languages/scripts/examples/javascript-es6-patterns.js +291 -0
- package/packages/plugin-languages/scripts/examples/nodejs-async-iteration.js +360 -0
- package/packages/plugin-languages/scripts/examples/python-async-patterns.py +289 -0
- package/packages/plugin-languages/scripts/examples/typescript-patterns.ts +432 -0
- package/packages/plugin-ml/README.md +430 -0
- package/packages/plugin-ml/agents/automl-expert.md +326 -0
- package/packages/plugin-ml/agents/computer-vision-expert.md +550 -0
- package/packages/plugin-ml/agents/gradient-boosting-expert.md +455 -0
- package/packages/plugin-ml/agents/neural-network-architect.md +1228 -0
- package/packages/plugin-ml/agents/nlp-transformer-expert.md +584 -0
- package/packages/plugin-ml/agents/pytorch-expert.md +412 -0
- package/packages/plugin-ml/agents/reinforcement-learning-expert.md +2088 -0
- package/packages/plugin-ml/agents/scikit-learn-expert.md +228 -0
- package/packages/plugin-ml/agents/tensorflow-keras-expert.md +509 -0
- package/packages/plugin-ml/agents/time-series-expert.md +303 -0
- package/packages/plugin-ml/commands/ml-automl.md +572 -0
- package/packages/plugin-ml/commands/ml-train-optimize.md +657 -0
- package/packages/plugin-ml/package.json +52 -0
- package/packages/plugin-ml/plugin.json +338 -0
- package/packages/plugin-pm/README.md +368 -0
- package/packages/plugin-pm/claudeautopm-plugin-pm-2.0.0.tgz +0 -0
- package/packages/plugin-pm/commands/github/workflow-create.md +42 -0
- package/packages/plugin-pm/package.json +57 -0
- package/packages/plugin-pm/plugin.json +503 -0
- package/packages/plugin-testing/README.md +401 -0
- package/{autopm/.claude/agents/testing → packages/plugin-testing/agents}/frontend-testing-engineer.md +373 -0
- package/packages/plugin-testing/commands/jest-optimize.md +800 -0
- package/packages/plugin-testing/commands/playwright-optimize.md +887 -0
- package/packages/plugin-testing/commands/test-coverage.md +512 -0
- package/packages/plugin-testing/commands/test-performance.md +1041 -0
- package/packages/plugin-testing/commands/test-setup.md +414 -0
- package/packages/plugin-testing/package.json +40 -0
- package/packages/plugin-testing/plugin.json +197 -0
- package/packages/plugin-testing/rules/test-coverage-requirements.md +581 -0
- package/packages/plugin-testing/rules/testing-standards.md +529 -0
- package/packages/plugin-testing/scripts/examples/react-testing-example.test.jsx +460 -0
- package/packages/plugin-testing/scripts/examples/vitest-config-example.js +352 -0
- package/packages/plugin-testing/scripts/examples/vue-testing-example.test.js +586 -0
- package/scripts/publish-plugins.sh +166 -0
- package/autopm/.claude/agents/data/airflow-orchestration-expert.md +0 -52
- package/autopm/.claude/agents/data/kedro-pipeline-expert.md +0 -50
- package/autopm/.claude/agents/integration/message-queue-engineer.md +0 -794
- package/autopm/.claude/commands/ai/langgraph-workflow.md +0 -65
- package/autopm/.claude/commands/ai/openai-chat.md +0 -65
- package/autopm/.claude/commands/playwright/test-scaffold.md +0 -38
- package/autopm/.claude/commands/python/api-scaffold.md +0 -50
- package/autopm/.claude/commands/python/docs-query.md +0 -48
- package/autopm/.claude/commands/testing/prime.md +0 -314
- package/autopm/.claude/commands/testing/run.md +0 -125
- package/autopm/.claude/commands/ui/bootstrap-scaffold.md +0 -65
- package/autopm/.claude/rules/database-management-strategy.md +0 -17
- package/autopm/.claude/rules/database-pipeline.md +0 -94
- package/autopm/.claude/rules/ux-design-rules.md +0 -209
- package/autopm/.claude/rules/visual-testing.md +0 -223
- package/autopm/.claude/scripts/azure/README.md +0 -192
- package/autopm/.claude/scripts/azure/active-work.js +0 -524
- package/autopm/.claude/scripts/azure/active-work.sh +0 -20
- package/autopm/.claude/scripts/azure/blocked.js +0 -520
- package/autopm/.claude/scripts/azure/blocked.sh +0 -20
- package/autopm/.claude/scripts/azure/daily.js +0 -533
- package/autopm/.claude/scripts/azure/daily.sh +0 -20
- package/autopm/.claude/scripts/azure/dashboard.js +0 -970
- package/autopm/.claude/scripts/azure/dashboard.sh +0 -20
- package/autopm/.claude/scripts/azure/feature-list.js +0 -254
- package/autopm/.claude/scripts/azure/feature-list.sh +0 -20
- package/autopm/.claude/scripts/azure/feature-show.js +0 -7
- package/autopm/.claude/scripts/azure/feature-show.sh +0 -20
- package/autopm/.claude/scripts/azure/feature-status.js +0 -604
- package/autopm/.claude/scripts/azure/feature-status.sh +0 -20
- package/autopm/.claude/scripts/azure/help.js +0 -342
- package/autopm/.claude/scripts/azure/help.sh +0 -20
- package/autopm/.claude/scripts/azure/next-task.js +0 -508
- package/autopm/.claude/scripts/azure/next-task.sh +0 -20
- package/autopm/.claude/scripts/azure/search.js +0 -469
- package/autopm/.claude/scripts/azure/search.sh +0 -20
- package/autopm/.claude/scripts/azure/setup.js +0 -745
- package/autopm/.claude/scripts/azure/setup.sh +0 -20
- package/autopm/.claude/scripts/azure/sprint-report.js +0 -1012
- package/autopm/.claude/scripts/azure/sprint-report.sh +0 -20
- package/autopm/.claude/scripts/azure/sync.js +0 -563
- package/autopm/.claude/scripts/azure/sync.sh +0 -20
- package/autopm/.claude/scripts/azure/us-list.js +0 -210
- package/autopm/.claude/scripts/azure/us-list.sh +0 -20
- package/autopm/.claude/scripts/azure/us-status.js +0 -238
- package/autopm/.claude/scripts/azure/us-status.sh +0 -20
- package/autopm/.claude/scripts/azure/validate.js +0 -626
- package/autopm/.claude/scripts/azure/validate.sh +0 -20
- package/autopm/.claude/scripts/azure/wrapper-template.sh +0 -20
- package/autopm/.claude/scripts/github/dependency-tracker.js +0 -554
- package/autopm/.claude/scripts/github/dependency-validator.js +0 -545
- package/autopm/.claude/scripts/github/dependency-visualizer.js +0 -477
- package/bin/node/azure-feature-show.js +0 -7
- /package/{autopm/.claude/agents/cloud → packages/plugin-ai/agents}/gemini-api-expert.md +0 -0
- /package/{autopm/.claude/agents/data → packages/plugin-ai/agents}/langgraph-workflow-expert.md +0 -0
- /package/{autopm/.claude/agents/cloud → packages/plugin-ai/agents}/openai-python-expert.md +0 -0
- /package/{autopm/.claude/agents/cloud → packages/plugin-cloud/agents}/README.md +0 -0
- /package/{autopm/.claude/agents/cloud → packages/plugin-cloud/agents}/aws-cloud-architect.md +0 -0
- /package/{autopm/.claude/agents/cloud → packages/plugin-cloud/agents}/azure-cloud-architect.md +0 -0
- /package/{autopm/.claude/agents/cloud → packages/plugin-cloud/agents}/gcp-cloud-architect.md +0 -0
- /package/{autopm/.claude/agents/cloud → packages/plugin-cloud/agents}/gcp-cloud-functions-engineer.md +0 -0
- /package/{autopm/.claude/agents/cloud → packages/plugin-cloud/agents}/kubernetes-orchestrator.md +0 -0
- /package/{autopm/.claude/agents/cloud → packages/plugin-cloud/agents}/terraform-infrastructure-expert.md +0 -0
- /package/{autopm/.claude/commands/cloud → packages/plugin-cloud/commands}/infra-deploy.md +0 -0
- /package/{autopm/.claude/commands/kubernetes/deploy.md → packages/plugin-cloud/commands/k8s-deploy.md} +0 -0
- /package/{autopm/.claude/commands/infrastructure → packages/plugin-cloud/commands}/ssh-security.md +0 -0
- /package/{autopm/.claude/commands/infrastructure → packages/plugin-cloud/commands}/traefik-setup.md +0 -0
- /package/{autopm/.claude → packages/plugin-cloud}/rules/infrastructure-pipeline.md +0 -0
- /package/{autopm/.claude → packages/plugin-core}/agents/core/agent-manager.md +0 -0
- /package/{autopm/.claude → packages/plugin-core}/agents/core/code-analyzer.md +0 -0
- /package/{autopm/.claude → packages/plugin-core}/agents/core/file-analyzer.md +0 -0
- /package/{autopm/.claude → packages/plugin-core}/agents/core/test-runner.md +0 -0
- /package/{autopm/.claude → packages/plugin-core}/rules/ai-integration-patterns.md +0 -0
- /package/{autopm/.claude → packages/plugin-core}/rules/performance-guidelines.md +0 -0
- /package/{autopm/.claude/agents/databases → packages/plugin-databases/agents}/README.md +0 -0
- /package/{autopm/.claude/agents/devops → packages/plugin-devops/agents}/README.md +0 -0
- /package/{autopm/.claude/agents/devops → packages/plugin-devops/agents}/azure-devops-specialist.md +0 -0
- /package/{autopm/.claude/agents/devops → packages/plugin-devops/agents}/docker-containerization-expert.md +0 -0
- /package/{autopm/.claude/agents/devops → packages/plugin-devops/agents}/mcp-context-manager.md +0 -0
- /package/{autopm/.claude/agents/devops → packages/plugin-devops/agents}/observability-engineer.md +0 -0
- /package/{autopm/.claude/agents/devops → packages/plugin-devops/agents}/ssh-operations-expert.md +0 -0
- /package/{autopm/.claude/agents/devops → packages/plugin-devops/agents}/traefik-proxy-expert.md +0 -0
- /package/{autopm/.claude/commands/github → packages/plugin-devops/commands}/workflow-create.md +0 -0
- /package/{autopm/.claude → packages/plugin-devops}/rules/ci-cd-kubernetes-strategy.md +0 -0
- /package/{autopm/.claude → packages/plugin-devops}/rules/devops-troubleshooting-playbook.md +0 -0
- /package/{autopm/.claude → packages/plugin-devops}/rules/docker-first-development.md +0 -0
- /package/{autopm/.claude/agents/frameworks → packages/plugin-frameworks/agents}/README.md +0 -0
- /package/{autopm/.claude/agents/frameworks → packages/plugin-frameworks/agents}/nats-messaging-expert.md +0 -0
- /package/{autopm/.claude/agents/frameworks → packages/plugin-frameworks/agents}/react-ui-expert.md +0 -0
- /package/{autopm/.claude/agents/frameworks → packages/plugin-frameworks/agents}/ux-design-expert.md +0 -0
- /package/{autopm/.claude/commands/react → packages/plugin-frameworks/commands}/app-scaffold.md +0 -0
- /package/{autopm/.claude/commands/ui → packages/plugin-frameworks/commands}/tailwind-system.md +0 -0
- /package/{autopm/.claude → packages/plugin-frameworks}/rules/ui-development-standards.md +0 -0
- /package/{autopm/.claude → packages/plugin-frameworks}/rules/ui-framework-rules.md +0 -0
- /package/{autopm/.claude/agents/languages → packages/plugin-languages/agents}/README.md +0 -0
- /package/{autopm/.claude/agents/languages → packages/plugin-languages/agents}/bash-scripting-expert.md +0 -0
- /package/{autopm/.claude/agents/languages → packages/plugin-languages/agents}/javascript-frontend-engineer.md +0 -0
- /package/{autopm/.claude/agents/languages → packages/plugin-languages/agents}/nodejs-backend-engineer.md +0 -0
- /package/{autopm/.claude/agents/languages → packages/plugin-languages/agents}/python-backend-engineer.md +0 -0
- /package/{autopm/.claude/agents/languages → packages/plugin-languages/agents}/python-backend-expert.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/COMMANDS.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/COMMAND_MAPPING.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/INTEGRATION_FIX.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/README.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/active-work.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/aliases.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/blocked-items.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/clean.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/docs-query.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/feature-decompose.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/feature-list.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/feature-new.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/feature-show.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/feature-start.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/fix-integration-example.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/help.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/import-us.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/init.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/next-task.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/search.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/sprint-status.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/standup.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/sync-all.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-analyze.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-close.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-edit.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-list.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-new.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-reopen.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-show.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-start.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-status.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/task-sync.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/us-edit.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/us-list.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/us-new.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/us-parse.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/us-show.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/us-status.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/validate.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/commands/azure/work-item-sync.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/blocked.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/clean.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/context-create.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/context-prime.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/context-update.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/context.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-close.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-decompose.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-edit.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-list.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-merge.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-oneshot.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-refresh.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-show.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-split.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-start.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-status.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-sync-modular.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-sync-original.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/epic-sync.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/help.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/import.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/in-progress.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/init.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/issue-analyze.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/issue-close.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/issue-edit.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/issue-reopen.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/issue-show.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/issue-start.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/issue-status.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/issue-sync.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/next.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/prd-edit.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/prd-list.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/prd-new.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/prd-parse.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/prd-status.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/search.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/standup.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/status.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/sync.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/test-reference-update.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/validate.md +0 -0
- /package/{autopm/.claude/commands/pm → packages/plugin-pm/commands}/what-next.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/analytics.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/blocked.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/blocked.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/clean.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/context-create.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/context-prime.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/context-update.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/context.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-close.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-edit.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-list.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-list.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-show.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-show.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-split.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-start/epic-start.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-start/epic-start.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-status.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-status.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-sync/README.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-sync/create-epic-issue.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-sync/create-task-issues.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-sync/update-epic-file.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-sync/update-references.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/epic-sync.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/help.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/help.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/in-progress.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/in-progress.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/init.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/init.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/issue-close.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/issue-edit.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/issue-show.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/issue-start.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/issue-sync/format-comment.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/issue-sync/gather-updates.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/issue-sync/post-comment.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/issue-sync/preflight-validation.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/issue-sync/update-frontmatter.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/lib/README.md +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/lib/epic-discovery.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/lib/logger.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/next.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/next.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/optimize.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/pr-create.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/pr-list.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/prd-list.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/prd-list.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/prd-new.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/prd-parse.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/prd-status.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/prd-status.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/release.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/search.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/search.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/standup.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/standup.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/status.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/status.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/sync-batch.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/sync.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/template-list.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/template-new.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/validate.js +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/validate.sh +0 -0
- /package/{autopm/.claude → packages/plugin-pm}/scripts/pm/what-next.js +0 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# cloud:cost-optimize
|
|
2
|
+
|
|
3
|
+
Analyze and optimize cloud infrastructure costs across AWS, Azure, and GCP.
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
Performs comprehensive cost analysis and provides optimization recommendations:
|
|
8
|
+
- Identify unused and underutilized resources
|
|
9
|
+
- Right-sizing recommendations for compute instances
|
|
10
|
+
- Storage class optimization opportunities
|
|
11
|
+
- Reserved instance and savings plan analysis
|
|
12
|
+
- Network data transfer optimization
|
|
13
|
+
- Serverless vs. traditional compute comparisons
|
|
14
|
+
|
|
15
|
+
## Required Documentation Access
|
|
16
|
+
|
|
17
|
+
**MANDATORY:** Before executing cost optimization, query Context7 for best practices:
|
|
18
|
+
|
|
19
|
+
**Documentation Queries:**
|
|
20
|
+
- `mcp://context7/aws/cost-optimization` - AWS Cost Optimization strategies
|
|
21
|
+
- `mcp://context7/azure/cost-management` - Azure Cost Management best practices
|
|
22
|
+
- `mcp://context7/gcp/pricing-optimization` - GCP pricing and cost optimization
|
|
23
|
+
- `mcp://context7/terraform/cost-estimation` - Terraform cost estimation patterns
|
|
24
|
+
- `mcp://context7/finops/cost-optimization` - FinOps cost optimization frameworks
|
|
25
|
+
|
|
26
|
+
**Why This is Required:**
|
|
27
|
+
- Ensures recommendations follow cloud provider pricing models
|
|
28
|
+
- Applies latest cost optimization techniques
|
|
29
|
+
- Validates against FinOps best practices
|
|
30
|
+
- Prevents over-optimization that impacts performance
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
/cloud:cost-optimize [options]
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Options
|
|
39
|
+
|
|
40
|
+
- `--provider <aws|azure|gcp|all>` - Cloud provider to analyze (default: all)
|
|
41
|
+
- `--category <compute|storage|network|database|all>` - Resource category (default: all)
|
|
42
|
+
- `--threshold <amount>` - Minimum monthly savings to report (default: $10)
|
|
43
|
+
- `--apply` - Automatically apply low-risk optimizations
|
|
44
|
+
- `--report <path>` - Generate detailed cost report
|
|
45
|
+
- `--period <7d|30d|90d>` - Analysis period (default: 30d)
|
|
46
|
+
|
|
47
|
+
## Examples
|
|
48
|
+
|
|
49
|
+
### Full Cost Analysis
|
|
50
|
+
```bash
|
|
51
|
+
/cloud:cost-optimize
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### AWS Compute Optimization
|
|
55
|
+
```bash
|
|
56
|
+
/cloud:cost-optimize --provider aws --category compute
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Auto-Apply Safe Optimizations
|
|
60
|
+
```bash
|
|
61
|
+
/cloud:cost-optimize --apply --threshold 50
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Generate 90-Day Cost Report
|
|
65
|
+
```bash
|
|
66
|
+
/cloud:cost-optimize --period 90d --report ./cost-optimization.md
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Optimization Categories
|
|
70
|
+
|
|
71
|
+
### Compute Optimization
|
|
72
|
+
- Right-sizing over-provisioned instances
|
|
73
|
+
- Spot/preemptible instance opportunities
|
|
74
|
+
- Auto-scaling configuration improvements
|
|
75
|
+
- Serverless migration candidates
|
|
76
|
+
- Reserved instance/savings plan recommendations
|
|
77
|
+
|
|
78
|
+
### Storage Optimization
|
|
79
|
+
- Lifecycle policy for infrequent access data
|
|
80
|
+
- Cold storage migration opportunities
|
|
81
|
+
- Unused volume detection and deletion
|
|
82
|
+
- Snapshot retention optimization
|
|
83
|
+
- Block storage to object storage migration
|
|
84
|
+
|
|
85
|
+
### Network Optimization
|
|
86
|
+
- Data transfer cost reduction strategies
|
|
87
|
+
- CDN usage optimization
|
|
88
|
+
- NAT gateway cost reduction
|
|
89
|
+
- Cross-region traffic minimization
|
|
90
|
+
- VPN vs. Direct Connect analysis
|
|
91
|
+
|
|
92
|
+
### Database Optimization
|
|
93
|
+
- Right-sizing database instances
|
|
94
|
+
- Read replica optimization
|
|
95
|
+
- Backup retention policy optimization
|
|
96
|
+
- Serverless database opportunities
|
|
97
|
+
- Connection pooling improvements
|
|
98
|
+
|
|
99
|
+
## Implementation
|
|
100
|
+
|
|
101
|
+
This command uses specialized cloud agents:
|
|
102
|
+
|
|
103
|
+
1. **@aws-cloud-architect** - AWS cost analysis
|
|
104
|
+
2. **@azure-cloud-architect** - Azure cost analysis
|
|
105
|
+
3. **@gcp-cloud-architect** - GCP cost analysis
|
|
106
|
+
4. **@terraform-infrastructure-expert** - IaC cost estimation
|
|
107
|
+
|
|
108
|
+
The command:
|
|
109
|
+
1. Queries Context7 for cost optimization patterns
|
|
110
|
+
2. Analyzes current resource utilization
|
|
111
|
+
3. Compares against pricing models and alternatives
|
|
112
|
+
4. Generates prioritized recommendations
|
|
113
|
+
5. Optionally applies automated optimizations
|
|
114
|
+
6. Projects cost savings with implementation timeline
|
|
115
|
+
|
|
116
|
+
## Risk Levels
|
|
117
|
+
|
|
118
|
+
### Low Risk (Auto-Apply Safe)
|
|
119
|
+
- Delete unused volumes and snapshots
|
|
120
|
+
- Apply storage lifecycle policies
|
|
121
|
+
- Enable auto-scaling where configured
|
|
122
|
+
- Update security group descriptions
|
|
123
|
+
|
|
124
|
+
### Medium Risk (Review Required)
|
|
125
|
+
- Right-size instances (25%+ reduction)
|
|
126
|
+
- Migrate to spot instances
|
|
127
|
+
- Change storage classes
|
|
128
|
+
- Consolidate resources
|
|
129
|
+
|
|
130
|
+
### High Risk (Manual Approval)
|
|
131
|
+
- Terminate running instances
|
|
132
|
+
- Major architecture changes
|
|
133
|
+
- Cross-region migrations
|
|
134
|
+
- Database sizing changes
|
|
135
|
+
|
|
136
|
+
## Output Format
|
|
137
|
+
|
|
138
|
+
### Console Output
|
|
139
|
+
```
|
|
140
|
+
💰 Cloud Cost Optimization Analysis
|
|
141
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
142
|
+
|
|
143
|
+
Current Monthly Cost: $4,250
|
|
144
|
+
Potential Savings: $1,180 (27.8%)
|
|
145
|
+
|
|
146
|
+
AWS Optimization Opportunities
|
|
147
|
+
Compute
|
|
148
|
+
💰 $420/mo - Right-size 8 over-provisioned EC2 instances
|
|
149
|
+
💰 $180/mo - Convert 3 instances to spot
|
|
150
|
+
💰 $90/mo - Enable auto-scaling for development environments
|
|
151
|
+
|
|
152
|
+
Storage
|
|
153
|
+
💰 $120/mo - Move 500GB to Glacier Deep Archive
|
|
154
|
+
💰 $60/mo - Delete 15 unused EBS volumes
|
|
155
|
+
|
|
156
|
+
Network
|
|
157
|
+
💰 $80/mo - Optimize CloudFront distribution
|
|
158
|
+
|
|
159
|
+
Azure Optimization Opportunities
|
|
160
|
+
Compute
|
|
161
|
+
💰 $150/mo - Right-size 4 VMs
|
|
162
|
+
💰 $80/mo - Reserved instance for production VMs
|
|
163
|
+
|
|
164
|
+
Summary by Risk Level
|
|
165
|
+
🟢 Low Risk: $240/mo (auto-apply with --apply)
|
|
166
|
+
🟡 Medium Risk: $680/mo (review recommended)
|
|
167
|
+
🔴 High Risk: $260/mo (manual approval required)
|
|
168
|
+
|
|
169
|
+
Recommended Actions
|
|
170
|
+
1. Apply low-risk optimizations immediately
|
|
171
|
+
2. Review medium-risk recommendations with team
|
|
172
|
+
3. Plan high-risk changes for next maintenance window
|
|
173
|
+
|
|
174
|
+
Projected Timeline
|
|
175
|
+
Immediate: $240/mo savings
|
|
176
|
+
Week 1: $920/mo cumulative savings
|
|
177
|
+
Month 1: $1,180/mo total savings
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Report Output
|
|
181
|
+
Generates detailed markdown report with:
|
|
182
|
+
- Executive summary with ROI analysis
|
|
183
|
+
- Detailed findings by provider and category
|
|
184
|
+
- Cost trend analysis
|
|
185
|
+
- Prioritized recommendation list with implementation steps
|
|
186
|
+
- Risk assessment matrix
|
|
187
|
+
- Projected savings timeline
|
|
188
|
+
|
|
189
|
+
## Related Commands
|
|
190
|
+
|
|
191
|
+
- `/cloud:validate` - Validate infrastructure before optimization
|
|
192
|
+
- `/cloud:deploy` - Deploy optimized infrastructure
|
|
193
|
+
- `/cloud:monitor` - Monitor cost trends over time
|
|
194
|
+
|
|
195
|
+
## Best Practices
|
|
196
|
+
|
|
197
|
+
1. **Regular Analysis**: Run monthly cost optimization reviews
|
|
198
|
+
2. **Start Small**: Apply low-risk optimizations first
|
|
199
|
+
3. **Monitor Impact**: Track actual vs. projected savings
|
|
200
|
+
4. **Document Decisions**: Record why certain optimizations weren't applied
|
|
201
|
+
5. **Automate**: Schedule automated optimization for non-production environments
|
|
202
|
+
|
|
203
|
+
## Auto-Apply Rules
|
|
204
|
+
|
|
205
|
+
When using `--apply`, only these optimizations are automatically applied:
|
|
206
|
+
|
|
207
|
+
✅ **Safe Optimizations**
|
|
208
|
+
- Delete unattached EBS volumes (>30 days old)
|
|
209
|
+
- Delete old snapshots beyond retention policy
|
|
210
|
+
- Apply storage lifecycle policies
|
|
211
|
+
- Tag untagged resources
|
|
212
|
+
- Enable cost allocation tags
|
|
213
|
+
|
|
214
|
+
❌ **Blocked from Auto-Apply**
|
|
215
|
+
- Instance type changes
|
|
216
|
+
- Instance termination
|
|
217
|
+
- Database modifications
|
|
218
|
+
- Network topology changes
|
|
219
|
+
- Any production resource changes
|
|
220
|
+
|
|
221
|
+
## Troubleshooting
|
|
222
|
+
|
|
223
|
+
### Missing Cost Data
|
|
224
|
+
- Ensure Cost Explorer is enabled (AWS)
|
|
225
|
+
- Enable billing export (Azure, GCP)
|
|
226
|
+
- Wait 24-48 hours for data population
|
|
227
|
+
|
|
228
|
+
### Incomplete Recommendations
|
|
229
|
+
- Check IAM/RBAC permissions for cost APIs
|
|
230
|
+
- Verify CloudWatch/Monitoring metrics are enabled
|
|
231
|
+
- Ensure resource tagging is consistent
|
|
232
|
+
|
|
233
|
+
### Optimization Failures
|
|
234
|
+
- Review resource dependencies before applying
|
|
235
|
+
- Check for attached resources (volumes, IPs)
|
|
236
|
+
- Verify no active workloads on target resources
|
|
237
|
+
|
|
238
|
+
## Version History
|
|
239
|
+
|
|
240
|
+
- v2.0.0 - Initial Schema v2.0 release with Context7 integration
|
|
241
|
+
- Automated low-risk optimizations
|
|
242
|
+
- Multi-cloud support
|
|
243
|
+
- FinOps best practices integration
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# cloud:validate
|
|
2
|
+
|
|
3
|
+
Validate cloud infrastructure configuration and credentials across AWS, Azure, and GCP.
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
Performs comprehensive validation of cloud infrastructure setup including:
|
|
8
|
+
- Cloud provider credentials and authentication
|
|
9
|
+
- IAC configuration files (Terraform, CloudFormation, ARM templates)
|
|
10
|
+
- Resource naming conventions and tagging compliance
|
|
11
|
+
- Security best practices and compliance checks
|
|
12
|
+
- Cost optimization opportunities
|
|
13
|
+
|
|
14
|
+
## Required Documentation Access
|
|
15
|
+
|
|
16
|
+
**MANDATORY:** Before executing validation, query Context7 for best practices:
|
|
17
|
+
|
|
18
|
+
**Documentation Queries:**
|
|
19
|
+
- `mcp://context7/aws/best-practices` - AWS Well-Architected Framework
|
|
20
|
+
- `mcp://context7/azure/best-practices` - Azure Cloud Adoption Framework
|
|
21
|
+
- `mcp://context7/gcp/best-practices` - Google Cloud Architecture Framework
|
|
22
|
+
- `mcp://context7/terraform/validation` - Terraform validation and testing patterns
|
|
23
|
+
- `mcp://context7/security/cloud-security` - Cloud security hardening guidelines
|
|
24
|
+
|
|
25
|
+
**Why This is Required:**
|
|
26
|
+
- Ensures validation follows cloud provider best practices
|
|
27
|
+
- Applies latest security recommendations
|
|
28
|
+
- Validates against current compliance standards
|
|
29
|
+
- Prevents misconfigurations and vulnerabilities
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
/cloud:validate [options]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Options
|
|
38
|
+
|
|
39
|
+
- `--provider <aws|azure|gcp|all>` - Cloud provider to validate (default: all)
|
|
40
|
+
- `--scope <credentials|config|security|cost|all>` - Validation scope (default: all)
|
|
41
|
+
- `--fix` - Attempt to fix issues automatically
|
|
42
|
+
- `--report <path>` - Generate validation report at specified path
|
|
43
|
+
- `--strict` - Fail on warnings (default: fail on errors only)
|
|
44
|
+
|
|
45
|
+
## Examples
|
|
46
|
+
|
|
47
|
+
### Validate All Cloud Providers
|
|
48
|
+
```bash
|
|
49
|
+
/cloud:validate
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Validate AWS Configuration Only
|
|
53
|
+
```bash
|
|
54
|
+
/cloud:validate --provider aws --scope config
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Validate with Auto-Fix
|
|
58
|
+
```bash
|
|
59
|
+
/cloud:validate --provider azure --fix
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Generate Security Validation Report
|
|
63
|
+
```bash
|
|
64
|
+
/cloud:validate --scope security --report ./security-audit.md
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Validation Checks
|
|
68
|
+
|
|
69
|
+
### Credentials
|
|
70
|
+
- ✅ AWS credentials in ~/.aws/credentials or environment
|
|
71
|
+
- ✅ Azure CLI authentication status
|
|
72
|
+
- ✅ GCP service account or user credentials
|
|
73
|
+
- ✅ Permission scope and access levels
|
|
74
|
+
- ✅ Credential rotation compliance
|
|
75
|
+
|
|
76
|
+
### Configuration
|
|
77
|
+
- ✅ Terraform/IaC syntax validation
|
|
78
|
+
- ✅ Provider version compatibility
|
|
79
|
+
- ✅ Backend configuration (state management)
|
|
80
|
+
- ✅ Variable definitions and defaults
|
|
81
|
+
- ✅ Module source verification
|
|
82
|
+
|
|
83
|
+
### Security
|
|
84
|
+
- ✅ Public exposure risks (S3 buckets, security groups)
|
|
85
|
+
- ✅ Encryption at rest and in transit
|
|
86
|
+
- ✅ IAM/RBAC policy compliance
|
|
87
|
+
- ✅ Network security (VPC, NSG, firewall rules)
|
|
88
|
+
- ✅ Secret management practices
|
|
89
|
+
|
|
90
|
+
### Cost Optimization
|
|
91
|
+
- ✅ Resource sizing recommendations
|
|
92
|
+
- ✅ Unused or underutilized resources
|
|
93
|
+
- ✅ Reserved instance opportunities
|
|
94
|
+
- ✅ Storage class optimization
|
|
95
|
+
- ✅ Network data transfer costs
|
|
96
|
+
|
|
97
|
+
## Implementation
|
|
98
|
+
|
|
99
|
+
This command uses specialized cloud agents to perform validation:
|
|
100
|
+
|
|
101
|
+
1. **@aws-cloud-architect** - AWS validation
|
|
102
|
+
2. **@azure-cloud-architect** - Azure validation
|
|
103
|
+
3. **@gcp-cloud-architect** - GCP validation
|
|
104
|
+
4. **@terraform-infrastructure-expert** - IaC validation
|
|
105
|
+
|
|
106
|
+
The command:
|
|
107
|
+
1. Queries Context7 for provider-specific best practices
|
|
108
|
+
2. Executes validation scripts for each provider
|
|
109
|
+
3. Aggregates results and generates reports
|
|
110
|
+
4. Optionally applies fixes for common issues
|
|
111
|
+
5. Provides actionable recommendations
|
|
112
|
+
|
|
113
|
+
## Exit Codes
|
|
114
|
+
|
|
115
|
+
- `0` - All validations passed
|
|
116
|
+
- `1` - Validation warnings found (fail with --strict)
|
|
117
|
+
- `2` - Validation errors found
|
|
118
|
+
- `3` - Critical security issues found
|
|
119
|
+
- `4` - Configuration errors prevent validation
|
|
120
|
+
|
|
121
|
+
## Output Format
|
|
122
|
+
|
|
123
|
+
### Console Output
|
|
124
|
+
```
|
|
125
|
+
☁️ Cloud Infrastructure Validation
|
|
126
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
127
|
+
|
|
128
|
+
AWS Validation
|
|
129
|
+
✅ Credentials: Valid (us-east-1)
|
|
130
|
+
✅ Configuration: 12 resources validated
|
|
131
|
+
⚠️ Security: 2 warnings (S3 bucket encryption)
|
|
132
|
+
✅ Cost: No optimization opportunities
|
|
133
|
+
|
|
134
|
+
Azure Validation
|
|
135
|
+
✅ Credentials: Valid (subscription: prod-001)
|
|
136
|
+
✅ Configuration: 8 resources validated
|
|
137
|
+
✅ Security: All checks passed
|
|
138
|
+
💰 Cost: 3 optimization opportunities found
|
|
139
|
+
|
|
140
|
+
GCP Validation
|
|
141
|
+
✅ Credentials: Valid (project: my-project)
|
|
142
|
+
✅ Configuration: 15 resources validated
|
|
143
|
+
✅ Security: All checks passed
|
|
144
|
+
✅ Cost: No optimization opportunities
|
|
145
|
+
|
|
146
|
+
Summary
|
|
147
|
+
Total Resources: 35
|
|
148
|
+
✅ Passed: 33
|
|
149
|
+
⚠️ Warnings: 2
|
|
150
|
+
❌ Errors: 0
|
|
151
|
+
💰 Cost Savings: ~$120/month
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Report Output (Markdown)
|
|
155
|
+
Generates comprehensive markdown report with:
|
|
156
|
+
- Executive summary
|
|
157
|
+
- Detailed findings by provider
|
|
158
|
+
- Security compliance matrix
|
|
159
|
+
- Cost optimization recommendations
|
|
160
|
+
- Remediation steps with code examples
|
|
161
|
+
|
|
162
|
+
## Related Commands
|
|
163
|
+
|
|
164
|
+
- `/cloud:deploy` - Deploy validated infrastructure
|
|
165
|
+
- `/cloud:cost-analysis` - Detailed cost analysis
|
|
166
|
+
- `/cloud:security-scan` - Deep security scanning
|
|
167
|
+
- `/infra-deploy` - Infrastructure deployment
|
|
168
|
+
|
|
169
|
+
## Best Practices
|
|
170
|
+
|
|
171
|
+
1. **Run Before Deployment**: Always validate before deploying changes
|
|
172
|
+
2. **CI/CD Integration**: Include in pipeline for automated checks
|
|
173
|
+
3. **Regular Audits**: Schedule weekly validation runs
|
|
174
|
+
4. **Fix Warnings**: Address warnings before they become errors
|
|
175
|
+
5. **Document Exceptions**: Track validation exceptions with justification
|
|
176
|
+
|
|
177
|
+
## Troubleshooting
|
|
178
|
+
|
|
179
|
+
### Authentication Failures
|
|
180
|
+
- Verify cloud CLI installation (aws-cli, azure-cli, gcloud)
|
|
181
|
+
- Check credential files and environment variables
|
|
182
|
+
- Ensure proper permissions and access scopes
|
|
183
|
+
|
|
184
|
+
### Configuration Errors
|
|
185
|
+
- Run `terraform fmt` and `terraform validate`
|
|
186
|
+
- Check provider version compatibility
|
|
187
|
+
- Verify module sources and versions
|
|
188
|
+
|
|
189
|
+
### Performance Issues
|
|
190
|
+
- Use `--provider` flag to limit scope
|
|
191
|
+
- Run validations in parallel for large infrastructures
|
|
192
|
+
- Cache provider API responses when possible
|
|
193
|
+
|
|
194
|
+
## Version History
|
|
195
|
+
|
|
196
|
+
- v2.0.0 - Initial Schema v2.0 release with Context7 integration
|