@jetrabbits/agentic 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +143 -0
- package/README.md +154 -0
- package/agentic +1615 -0
- package/areas/devops/ci-cd/AGENTS.md +48 -0
- package/areas/devops/ci-cd/PROMPTS.md +7 -0
- package/areas/devops/ci-cd/prompts/onboard-repo.md +97 -0
- package/areas/devops/ci-cd/prompts/pipeline-debug.md +103 -0
- package/areas/devops/ci-cd/prompts/release-pipeline.md +115 -0
- package/areas/devops/ci-cd/rules/pipeline-standards.md +33 -0
- package/areas/devops/ci-cd/rules/quality-gates.md +24 -0
- package/areas/devops/ci-cd/rules/supply-chain-security.md +34 -0
- package/areas/devops/ci-cd/skills/artifact-management/SKILL.md +157 -0
- package/areas/devops/ci-cd/skills/build-optimization/SKILL.md +168 -0
- package/areas/devops/ci-cd/skills/github-actions-patterns/SKILL.md +190 -0
- package/areas/devops/ci-cd/skills/gitlab-ci-patterns/SKILL.md +169 -0
- package/areas/devops/ci-cd/skills/pipeline-security/SKILL.md +161 -0
- package/areas/devops/ci-cd/workflows/onboard-repo.md +73 -0
- package/areas/devops/ci-cd/workflows/pipeline-debug.md +66 -0
- package/areas/devops/ci-cd/workflows/release-pipeline.md +115 -0
- package/areas/devops/database-ops/AGENTS.md +47 -0
- package/areas/devops/database-ops/prompts/backup-verify.md +83 -0
- package/areas/devops/database-ops/prompts/db-incident.md +127 -0
- package/areas/devops/database-ops/rules/access-control.md +20 -0
- package/areas/devops/database-ops/rules/backup-policy.md +33 -0
- package/areas/devops/database-ops/rules/migration-runbook.md +32 -0
- package/areas/devops/database-ops/skills/backup-restore/SKILL.md +226 -0
- package/areas/devops/database-ops/skills/db-performance/SKILL.md +205 -0
- package/areas/devops/database-ops/skills/migration-safety/SKILL.md +155 -0
- package/areas/devops/database-ops/skills/postgres-operations/SKILL.md +156 -0
- package/areas/devops/database-ops/skills/redis-operations/SKILL.md +174 -0
- package/areas/devops/database-ops/workflows/backup-verify.md +107 -0
- package/areas/devops/database-ops/workflows/db-incident.md +86 -0
- package/areas/devops/devsecops/AGENTS.md +47 -0
- package/areas/devops/devsecops/prompts/policy-onboard.md +79 -0
- package/areas/devops/devsecops/prompts/security-scan-pipeline.md +131 -0
- package/areas/devops/devsecops/rules/container-security.md +22 -0
- package/areas/devops/devsecops/rules/policy-as-code.md +37 -0
- package/areas/devops/devsecops/rules/shift-left-policy.md +26 -0
- package/areas/devops/devsecops/skills/container-hardening/SKILL.md +146 -0
- package/areas/devops/devsecops/skills/opa-policies/SKILL.md +188 -0
- package/areas/devops/devsecops/skills/sbom-supply-chain/SKILL.md +165 -0
- package/areas/devops/devsecops/skills/secret-detection/SKILL.md +190 -0
- package/areas/devops/devsecops/skills/sigstore-signing/SKILL.md +184 -0
- package/areas/devops/devsecops/workflows/policy-onboard.md +104 -0
- package/areas/devops/devsecops/workflows/security-scan-pipeline.md +155 -0
- package/areas/devops/infrastructure/AGENTS.md +50 -0
- package/areas/devops/infrastructure/prompts/destroy-environment.md +81 -0
- package/areas/devops/infrastructure/prompts/drift-remediation.md +71 -0
- package/areas/devops/infrastructure/prompts/module-development.md +69 -0
- package/areas/devops/infrastructure/prompts/provision-environment.md +121 -0
- package/areas/devops/infrastructure/rules/iac-standards.md +80 -0
- package/areas/devops/infrastructure/rules/immutability.md +28 -0
- package/areas/devops/infrastructure/rules/secret-hygiene.md +53 -0
- package/areas/devops/infrastructure/rules/state-management.md +47 -0
- package/areas/devops/infrastructure/skills/ansible-playbooks/SKILL.md +174 -0
- package/areas/devops/infrastructure/skills/cost-optimization/SKILL.md +177 -0
- package/areas/devops/infrastructure/skills/drift-detection/SKILL.md +178 -0
- package/areas/devops/infrastructure/skills/state-management/SKILL.md +159 -0
- package/areas/devops/infrastructure/skills/terraform-modules/SKILL.md +169 -0
- package/areas/devops/infrastructure/workflows/destroy-environment.md +96 -0
- package/areas/devops/infrastructure/workflows/drift-remediation.md +66 -0
- package/areas/devops/infrastructure/workflows/module-development.md +101 -0
- package/areas/devops/infrastructure/workflows/provision-environment.md +96 -0
- package/areas/devops/kubernetes/AGENTS.md +57 -0
- package/areas/devops/kubernetes/PROMPTS.md +9 -0
- package/areas/devops/kubernetes/prompts/cluster-bootstrap.md +67 -0
- package/areas/devops/kubernetes/prompts/debug-workload.md +91 -0
- package/areas/devops/kubernetes/prompts/onboard-service.md +101 -0
- package/areas/devops/kubernetes/prompts/upgrade-cluster.md +63 -0
- package/areas/devops/kubernetes/rules/cluster-standards.md +51 -0
- package/areas/devops/kubernetes/rules/resource-governance.md +80 -0
- package/areas/devops/kubernetes/rules/upgrade-policy.md +52 -0
- package/areas/devops/kubernetes/rules/workload-security.md +64 -0
- package/areas/devops/kubernetes/skills/cluster-operations/SKILL.md +136 -0
- package/areas/devops/kubernetes/skills/helm-charts/SKILL.md +152 -0
- package/areas/devops/kubernetes/skills/network-policies/SKILL.md +169 -0
- package/areas/devops/kubernetes/skills/pod-troubleshooting/SKILL.md +129 -0
- package/areas/devops/kubernetes/skills/rbac-design/SKILL.md +148 -0
- package/areas/devops/kubernetes/skills/resource-tuning/SKILL.md +156 -0
- package/areas/devops/kubernetes/workflows/cluster-bootstrap.md +194 -0
- package/areas/devops/kubernetes/workflows/debug-workload.md +108 -0
- package/areas/devops/kubernetes/workflows/onboard-service.md +124 -0
- package/areas/devops/kubernetes/workflows/upgrade-cluster.md +165 -0
- package/areas/devops/networking/AGENTS.md +47 -0
- package/areas/devops/networking/prompts/onboard-ingress.md +119 -0
- package/areas/devops/networking/prompts/service-mesh-onboard.md +77 -0
- package/areas/devops/networking/rules/ingress-standards.md +17 -0
- package/areas/devops/networking/rules/network-segmentation.md +24 -0
- package/areas/devops/networking/rules/tls-policy.md +32 -0
- package/areas/devops/networking/skills/dns-management/SKILL.md +169 -0
- package/areas/devops/networking/skills/ingress-patterns/SKILL.md +165 -0
- package/areas/devops/networking/skills/service-mesh/SKILL.md +206 -0
- package/areas/devops/networking/skills/tls-termination/SKILL.md +198 -0
- package/areas/devops/networking/skills/vpc-design/SKILL.md +132 -0
- package/areas/devops/networking/workflows/onboard-ingress.md +64 -0
- package/areas/devops/networking/workflows/service-mesh-onboard.md +122 -0
- package/areas/devops/observability/AGENTS.md +48 -0
- package/areas/devops/observability/prompts/alert-investigation.md +117 -0
- package/areas/devops/observability/prompts/observability-stack-setup.md +99 -0
- package/areas/devops/observability/prompts/onboard-service-monitoring.md +79 -0
- package/areas/devops/observability/rules/alerting-standards.md +36 -0
- package/areas/devops/observability/rules/data-retention.md +19 -0
- package/areas/devops/observability/rules/golden-signals.md +28 -0
- package/areas/devops/observability/skills/distributed-tracing/SKILL.md +149 -0
- package/areas/devops/observability/skills/grafana-dashboards/SKILL.md +201 -0
- package/areas/devops/observability/skills/log-aggregation/SKILL.md +159 -0
- package/areas/devops/observability/skills/prometheus-alertmanager/SKILL.md +188 -0
- package/areas/devops/observability/skills/slo-implementation/SKILL.md +189 -0
- package/areas/devops/observability/workflows/alert-investigation.md +98 -0
- package/areas/devops/observability/workflows/observability-stack-setup.md +156 -0
- package/areas/devops/observability/workflows/onboard-service-monitoring.md +83 -0
- package/areas/devops/sre/AGENTS.md +48 -0
- package/areas/devops/sre/prompts/incident-response.md +129 -0
- package/areas/devops/sre/prompts/postmortem.md +101 -0
- package/areas/devops/sre/prompts/slo-review.md +125 -0
- package/areas/devops/sre/rules/error-budget-policy.md +25 -0
- package/areas/devops/sre/rules/on-call-standards.md +25 -0
- package/areas/devops/sre/rules/slo-policy.md +31 -0
- package/areas/devops/sre/skills/capacity-planning/SKILL.md +162 -0
- package/areas/devops/sre/skills/chaos-engineering/SKILL.md +186 -0
- package/areas/devops/sre/skills/incident-command/SKILL.md +119 -0
- package/areas/devops/sre/skills/postmortem-analysis/SKILL.md +104 -0
- package/areas/devops/sre/skills/slo-sli-design/SKILL.md +145 -0
- package/areas/devops/sre/workflows/incident-response.md +66 -0
- package/areas/devops/sre/workflows/postmortem.md +90 -0
- package/areas/devops/sre/workflows/slo-review.md +95 -0
- package/areas/software/backend/AGENTS.md +59 -0
- package/areas/software/backend/PROMPTS.md +50 -0
- package/areas/software/backend/README.md +48 -0
- package/areas/software/backend/prompts/add-migration.md +93 -0
- package/areas/software/backend/prompts/create-endpoint.md +97 -0
- package/areas/software/backend/prompts/debug-issue.md +87 -0
- package/areas/software/backend/prompts/develop-epic.md +83 -0
- package/areas/software/backend/prompts/develop-feature.md +91 -0
- package/areas/software/backend/prompts/refactor-module.md +79 -0
- package/areas/software/backend/prompts/test-feature.md +89 -0
- package/areas/software/backend/rules/architecture.md +20 -0
- package/areas/software/backend/rules/data_access.md +20 -0
- package/areas/software/backend/rules/security.md +20 -0
- package/areas/software/backend/rules/testing.md +19 -0
- package/areas/software/backend/skills/api-design/SKILL.md +170 -0
- package/areas/software/backend/skills/async-processing/SKILL.md +152 -0
- package/areas/software/backend/skills/database-modeling/SKILL.md +173 -0
- package/areas/software/backend/skills/observability/SKILL.md +162 -0
- package/areas/software/backend/skills/troubleshooting/SKILL.md +139 -0
- package/areas/software/backend/workflows/add-migration.md +79 -0
- package/areas/software/backend/workflows/create-endpoint.md +89 -0
- package/areas/software/backend/workflows/debug-issue.md +77 -0
- package/areas/software/backend/workflows/develop-epic.md +78 -0
- package/areas/software/backend/workflows/develop-feature.md +98 -0
- package/areas/software/backend/workflows/refactor-module.md +73 -0
- package/areas/software/backend/workflows/test-feature.md +67 -0
- package/areas/software/data-engineering/AGENTS.md +59 -0
- package/areas/software/data-engineering/PROMPTS.md +32 -0
- package/areas/software/data-engineering/prompts/backfill-data.md +107 -0
- package/areas/software/data-engineering/prompts/data-quality-incident.md +109 -0
- package/areas/software/data-engineering/prompts/lineage-trace.md +121 -0
- package/areas/software/data-engineering/prompts/new-model.md +117 -0
- package/areas/software/data-engineering/prompts/schema-migration.md +111 -0
- package/areas/software/data-engineering/rules/data-governance.md +11 -0
- package/areas/software/data-engineering/rules/pii-handling.md +19 -0
- package/areas/software/data-engineering/rules/pipeline-integrity.md +11 -0
- package/areas/software/data-engineering/rules/schema-management.md +21 -0
- package/areas/software/data-engineering/skills/data-modeling/SKILL.md +49 -0
- package/areas/software/data-engineering/skills/dbt-patterns/SKILL.md +43 -0
- package/areas/software/data-engineering/skills/lineage-governance/SKILL.md +38 -0
- package/areas/software/data-engineering/skills/orchestration/SKILL.md +35 -0
- package/areas/software/data-engineering/skills/quality-checks/SKILL.md +50 -0
- package/areas/software/data-engineering/skills/sql-optimization/SKILL.md +47 -0
- package/areas/software/data-engineering/skills/streaming-patterns/SKILL.md +48 -0
- package/areas/software/data-engineering/workflows/backfill-data.md +59 -0
- package/areas/software/data-engineering/workflows/data-quality-incident.md +64 -0
- package/areas/software/data-engineering/workflows/lineage-trace.md +56 -0
- package/areas/software/data-engineering/workflows/new-model.md +71 -0
- package/areas/software/data-engineering/workflows/schema-migration.md +67 -0
- package/areas/software/frontend/AGENTS.md +60 -0
- package/areas/software/frontend/PROMPTS.md +32 -0
- package/areas/software/frontend/prompts/a11y-fix.md +75 -0
- package/areas/software/frontend/prompts/bundle-analyze.md +75 -0
- package/areas/software/frontend/prompts/release-prep.md +83 -0
- package/areas/software/frontend/prompts/scaffold-component.md +69 -0
- package/areas/software/frontend/prompts/visual-regression.md +73 -0
- package/areas/software/frontend/rules/accessibility.md +16 -0
- package/areas/software/frontend/rules/architecture.md +29 -0
- package/areas/software/frontend/rules/performance.md +23 -0
- package/areas/software/frontend/rules/quality.md +12 -0
- package/areas/software/frontend/skills/a11y-audit/SKILL.md +61 -0
- package/areas/software/frontend/skills/api-integration/SKILL.md +58 -0
- package/areas/software/frontend/skills/component-design/SKILL.md +171 -0
- package/areas/software/frontend/skills/css-architecture/SKILL.md +146 -0
- package/areas/software/frontend/skills/error-handling/SKILL.md +55 -0
- package/areas/software/frontend/skills/performance-tuning/SKILL.md +58 -0
- package/areas/software/frontend/skills/state-management/SKILL.md +54 -0
- package/areas/software/frontend/skills/testing-patterns/SKILL.md +69 -0
- package/areas/software/frontend/workflows/a11y-fix.md +63 -0
- package/areas/software/frontend/workflows/bundle-analyze.md +56 -0
- package/areas/software/frontend/workflows/release-prep.md +66 -0
- package/areas/software/frontend/workflows/scaffold-component.md +67 -0
- package/areas/software/frontend/workflows/visual-regression.md +65 -0
- package/areas/software/full-stack/AGENTS.md +72 -0
- package/areas/software/full-stack/PROMPTS.md +66 -0
- package/areas/software/full-stack/prompts/backend-project-full-cycle.md +141 -0
- package/areas/software/full-stack/prompts/debug-issue.md +115 -0
- package/areas/software/full-stack/prompts/develop-feature.md +119 -0
- package/areas/software/full-stack/prompts/feature-implementation-flow.md +137 -0
- package/areas/software/full-stack/prompts/testing-ci-pipeline.md +119 -0
- package/areas/software/full-stack/rules/api-design-guide.md +24 -0
- package/areas/software/full-stack/rules/async-concurrency-guide.md +21 -0
- package/areas/software/full-stack/rules/backend-architecture-rule.md +41 -0
- package/areas/software/full-stack/rules/background-jobs-guide.md +20 -0
- package/areas/software/full-stack/rules/code-quality-guide.md +22 -0
- package/areas/software/full-stack/rules/database-access-guide.md +24 -0
- package/areas/software/full-stack/rules/database-migrations-guide.md +24 -0
- package/areas/software/full-stack/rules/domain-models-guide.md +28 -0
- package/areas/software/full-stack/rules/e2e-test-guide.md +18 -0
- package/areas/software/full-stack/rules/env-settings-guide.md +34 -0
- package/areas/software/full-stack/rules/error-handling-guide.md +20 -0
- package/areas/software/full-stack/rules/logging-observability-guide.md +22 -0
- package/areas/software/full-stack/rules/project-guide.md +34 -0
- package/areas/software/full-stack/rules/python-venv-guide.md +23 -0
- package/areas/software/full-stack/rules/security-guide.md +22 -0
- package/areas/software/full-stack/rules/svt-test-guide.md +17 -0
- package/areas/software/full-stack/rules/testing-ci-guide.md +25 -0
- package/areas/software/full-stack/skills/api-design-principles/SKILL.md +125 -0
- package/areas/software/full-stack/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/areas/software/full-stack/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/areas/software/full-stack/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/areas/software/full-stack/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/areas/software/full-stack/skills/api-design-principles/resources/implementation-playbook.md +513 -0
- package/areas/software/full-stack/skills/api-patterns/SKILL.md +81 -0
- package/areas/software/full-stack/skills/api-patterns/api-style.md +42 -0
- package/areas/software/full-stack/skills/api-patterns/auth.md +24 -0
- package/areas/software/full-stack/skills/api-patterns/documentation.md +26 -0
- package/areas/software/full-stack/skills/api-patterns/graphql.md +41 -0
- package/areas/software/full-stack/skills/api-patterns/rate-limiting.md +31 -0
- package/areas/software/full-stack/skills/api-patterns/response.md +37 -0
- package/areas/software/full-stack/skills/api-patterns/rest.md +40 -0
- package/areas/software/full-stack/skills/api-patterns/scripts/api_validator.py +211 -0
- package/areas/software/full-stack/skills/api-patterns/security-testing.md +122 -0
- package/areas/software/full-stack/skills/api-patterns/trpc.md +41 -0
- package/areas/software/full-stack/skills/api-patterns/versioning.md +22 -0
- package/areas/software/full-stack/skills/app-builder/SKILL.md +135 -0
- package/areas/software/full-stack/skills/app-builder/agent-coordination.md +71 -0
- package/areas/software/full-stack/skills/app-builder/feature-building.md +53 -0
- package/areas/software/full-stack/skills/app-builder/project-detection.md +34 -0
- package/areas/software/full-stack/skills/app-builder/scaffolding.md +118 -0
- package/areas/software/full-stack/skills/app-builder/tech-stack.md +40 -0
- package/areas/software/full-stack/skills/app-builder/templates/SKILL.md +39 -0
- package/areas/software/full-stack/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/areas/software/full-stack/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/areas/software/full-stack/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/areas/software/full-stack/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/areas/software/full-stack/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/areas/software/full-stack/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/areas/software/full-stack/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/areas/software/full-stack/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
- package/areas/software/full-stack/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/areas/software/full-stack/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/areas/software/full-stack/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
- package/areas/software/full-stack/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/areas/software/full-stack/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/areas/software/full-stack/skills/backend-developer/SKILL.md +58 -0
- package/areas/software/full-stack/skills/bash-pro/SKILL.md +310 -0
- package/areas/software/full-stack/skills/blackbox-test/SKILL.md +84 -0
- package/areas/software/full-stack/skills/prompt-project-planner/SKILL.md +130 -0
- package/areas/software/full-stack/skills/prompt-project-planner/output.schema.md +68 -0
- package/areas/software/full-stack/skills/prompt-project-planner/questions.md +80 -0
- package/areas/software/full-stack/skills/python-pro/SKILL.md +158 -0
- package/areas/software/full-stack/skills/skill-creator/LICENSE.txt +202 -0
- package/areas/software/full-stack/skills/skill-creator/SKILL.md +356 -0
- package/areas/software/full-stack/skills/skill-creator/references/output-patterns.md +82 -0
- package/areas/software/full-stack/skills/skill-creator/references/workflows.md +28 -0
- package/areas/software/full-stack/skills/skill-creator/scripts/init_skill.py +303 -0
- package/areas/software/full-stack/skills/skill-creator/scripts/package_skill.py +110 -0
- package/areas/software/full-stack/skills/skill-creator/scripts/quick_validate.py +95 -0
- package/areas/software/full-stack/workflows/backend-project-full-cycle.md +132 -0
- package/areas/software/full-stack/workflows/debug-issue.md +70 -0
- package/areas/software/full-stack/workflows/develop-feature.md +85 -0
- package/areas/software/full-stack/workflows/feature-implementation-flow.md +78 -0
- package/areas/software/full-stack/workflows/testing-ci-pipeline.md +65 -0
- package/areas/software/general/AGENTS.md +68 -0
- package/areas/software/general/prompts/code-review-workflow.md +87 -0
- package/areas/software/general/prompts/development-cycle-workflow.md +83 -0
- package/areas/software/general/prompts/project-setup-workflow.md +93 -0
- package/areas/software/general/rules/code-style-guide.md +31 -0
- package/areas/software/general/rules/docker-compose-guide.md +27 -0
- package/areas/software/general/rules/git-workflow-guide.md +27 -0
- package/areas/software/general/rules/github-workflow-guide.md +27 -0
- package/areas/software/general/rules/gitlab-ci-guide.md +27 -0
- package/areas/software/general/rules/lint-format-guide.md +29 -0
- package/areas/software/general/rules/makefile-guide.md +34 -0
- package/areas/software/general/rules/readme-sync-guide.md +40 -0
- package/areas/software/general/rules/sdlc-methodology-guide.md +27 -0
- package/areas/software/general/rules/sdlc-role-responsibilities.md +108 -0
- package/areas/software/general/skills/general-dev-tools/SKILL.md +324 -0
- package/areas/software/general/workflows/code-review-workflow.md +84 -0
- package/areas/software/general/workflows/development-cycle-workflow.md +85 -0
- package/areas/software/general/workflows/project-setup-workflow.md +94 -0
- package/areas/software/mlops/AGENTS.md +57 -0
- package/areas/software/mlops/PROMPTS.md +32 -0
- package/areas/software/mlops/prompts/champion-challenger.md +87 -0
- package/areas/software/mlops/prompts/deploy-endpoint.md +91 -0
- package/areas/software/mlops/prompts/evaluate-model.md +87 -0
- package/areas/software/mlops/prompts/model-incident.md +87 -0
- package/areas/software/mlops/prompts/train-experiment.md +83 -0
- package/areas/software/mlops/rules/data-integrity.md +9 -0
- package/areas/software/mlops/rules/model-governance.md +9 -0
- package/areas/software/mlops/rules/production-safety.md +9 -0
- package/areas/software/mlops/rules/reproducibility.md +9 -0
- package/areas/software/mlops/skills/experiment-tracking/SKILL.md +29 -0
- package/areas/software/mlops/skills/feature-engineering/SKILL.md +44 -0
- package/areas/software/mlops/skills/inference-serving/SKILL.md +35 -0
- package/areas/software/mlops/skills/model-evaluation/SKILL.md +40 -0
- package/areas/software/mlops/skills/model-monitoring/SKILL.md +32 -0
- package/areas/software/mlops/workflows/champion-challenger.md +65 -0
- package/areas/software/mlops/workflows/deploy-endpoint.md +70 -0
- package/areas/software/mlops/workflows/evaluate-model.md +63 -0
- package/areas/software/mlops/workflows/model-incident.md +64 -0
- package/areas/software/mlops/workflows/train-experiment.md +56 -0
- package/areas/software/mobile/AGENTS.md +58 -0
- package/areas/software/mobile/PROMPTS.md +32 -0
- package/areas/software/mobile/prompts/crash-triage.md +63 -0
- package/areas/software/mobile/prompts/device-testing.md +83 -0
- package/areas/software/mobile/prompts/ota-update.md +75 -0
- package/areas/software/mobile/prompts/release-build.md +67 -0
- package/areas/software/mobile/prompts/store-submission.md +79 -0
- package/areas/software/mobile/rules/offline-first.md +10 -0
- package/areas/software/mobile/rules/performance-budget.md +20 -0
- package/areas/software/mobile/rules/platform-compliance.md +17 -0
- package/areas/software/mobile/rules/security-mobile.md +9 -0
- package/areas/software/mobile/skills/app-store-prep/SKILL.md +27 -0
- package/areas/software/mobile/skills/mobile-testing/SKILL.md +36 -0
- package/areas/software/mobile/skills/native-modules/SKILL.md +38 -0
- package/areas/software/mobile/skills/navigation-patterns/SKILL.md +49 -0
- package/areas/software/mobile/skills/push-notifications/SKILL.md +40 -0
- package/areas/software/mobile/skills/state-sync/SKILL.md +48 -0
- package/areas/software/mobile/workflows/crash-triage.md +63 -0
- package/areas/software/mobile/workflows/device-testing.md +54 -0
- package/areas/software/mobile/workflows/ota-update.md +54 -0
- package/areas/software/mobile/workflows/release-build.md +67 -0
- package/areas/software/mobile/workflows/store-submission.md +63 -0
- package/areas/software/platform/AGENTS.md +67 -0
- package/areas/software/platform/PROMPTS.md +32 -0
- package/areas/software/platform/prompts/cost-audit.md +117 -0
- package/areas/software/platform/prompts/deploy-production.md +109 -0
- package/areas/software/platform/prompts/drift-check.md +107 -0
- package/areas/software/platform/prompts/incident-response.md +121 -0
- package/areas/software/platform/prompts/provision-env.md +113 -0
- package/areas/software/platform/rules/cost-governance.md +11 -0
- package/areas/software/platform/rules/immutability.md +17 -0
- package/areas/software/platform/rules/reliability.md +19 -0
- package/areas/software/platform/rules/security-posture.md +12 -0
- package/areas/software/platform/skills/ci-cd-pipelines/SKILL.md +58 -0
- package/areas/software/platform/skills/incident-response/SKILL.md +41 -0
- package/areas/software/platform/skills/k8s-manifests/SKILL.md +56 -0
- package/areas/software/platform/skills/networking/SKILL.md +44 -0
- package/areas/software/platform/skills/observability-setup/SKILL.md +49 -0
- package/areas/software/platform/skills/secrets-management/SKILL.md +43 -0
- package/areas/software/platform/skills/terraform-patterns/SKILL.md +75 -0
- package/areas/software/platform/workflows/cost-audit.md +61 -0
- package/areas/software/platform/workflows/deploy-production.md +67 -0
- package/areas/software/platform/workflows/drift-check.md +61 -0
- package/areas/software/platform/workflows/incident-response.md +69 -0
- package/areas/software/platform/workflows/provision-env.md +77 -0
- package/areas/software/qa/AGENTS.md +58 -0
- package/areas/software/qa/PROMPTS.md +32 -0
- package/areas/software/qa/prompts/flakiness-investigation.md +61 -0
- package/areas/software/qa/prompts/performance-audit.md +65 -0
- package/areas/software/qa/prompts/regression-suite.md +61 -0
- package/areas/software/qa/prompts/smoke-test.md +65 -0
- package/areas/software/qa/prompts/test-coverage-report.md +61 -0
- package/areas/software/qa/rules/flakiness-policy.md +12 -0
- package/areas/software/qa/rules/quality-gates.md +28 -0
- package/areas/software/qa/rules/test-data.md +9 -0
- package/areas/software/qa/rules/test-strategy.md +11 -0
- package/areas/software/qa/skills/accessibility-testing/SKILL.md +139 -0
- package/areas/software/qa/skills/api-testing/SKILL.md +140 -0
- package/areas/software/qa/skills/e2e-patterns/SKILL.md +152 -0
- package/areas/software/qa/skills/performance-testing/SKILL.md +177 -0
- package/areas/software/qa/skills/test-data-management/SKILL.md +161 -0
- package/areas/software/qa/skills/test-pyramid/SKILL.md +127 -0
- package/areas/software/qa/workflows/flakiness-investigation.md +63 -0
- package/areas/software/qa/workflows/performance-audit.md +59 -0
- package/areas/software/qa/workflows/regression-suite.md +59 -0
- package/areas/software/qa/workflows/smoke-test.md +64 -0
- package/areas/software/qa/workflows/test-coverage-report.md +57 -0
- package/areas/software/security/AGENTS.md +58 -0
- package/areas/software/security/PROMPTS.md +32 -0
- package/areas/software/security/prompts/compliance-report.md +113 -0
- package/areas/software/security/prompts/pen-test-sim.md +113 -0
- package/areas/software/security/prompts/secret-rotation.md +115 -0
- package/areas/software/security/prompts/security-scan.md +91 -0
- package/areas/software/security/prompts/threat-model-review.md +105 -0
- package/areas/software/security/rules/compliance-baseline.md +23 -0
- package/areas/software/security/rules/dependency-policy.md +12 -0
- package/areas/software/security/rules/secrets-policy.md +22 -0
- package/areas/software/security/rules/secure-coding.md +22 -0
- package/areas/software/security/skills/auth-patterns/SKILL.md +42 -0
- package/areas/software/security/skills/crypto-standards/SKILL.md +42 -0
- package/areas/software/security/skills/dependency-audit/SKILL.md +29 -0
- package/areas/software/security/skills/sast-dast-interpretation/SKILL.md +33 -0
- package/areas/software/security/skills/security-headers/SKILL.md +29 -0
- package/areas/software/security/skills/threat-modeling/SKILL.md +36 -0
- package/areas/software/security/workflows/compliance-report.md +57 -0
- package/areas/software/security/workflows/pen-test-sim.md +63 -0
- package/areas/software/security/workflows/secret-rotation.md +67 -0
- package/areas/software/security/workflows/security-scan.md +64 -0
- package/areas/software/security/workflows/threat-model-review.md +62 -0
- package/areas/template/AGENTS-area.tmpl.md +61 -0
- package/areas/template/AGENTS.tmpl.md +67 -0
- package/areas/template/GUIDE.md +102 -0
- package/areas/template/PROMPTS.tmpl.md +29 -0
- package/areas/template/README.md +57 -0
- package/areas/template/README.tmpl.md +51 -0
- package/areas/template/prompt.tmpl.md +101 -0
- package/areas/template/rule.tmpl.md +71 -0
- package/areas/template/skill.tmpl.md +108 -0
- package/areas/template/workflow.tmpl.md +104 -0
- package/bin/agentic.js +24 -0
- package/extensions/antigravity/GEMINI.md +10 -0
- package/extensions/claude/CLAUDE.md +10 -0
- package/extensions/codex/AGENTS.override.md +93 -0
- package/extensions/gemini/GEMINI.md +10 -0
- package/extensions/opencode/agents/designer.md +65 -0
- package/extensions/opencode/agents/developer.md +63 -0
- package/extensions/opencode/agents/devops-engineer.md +69 -0
- package/extensions/opencode/agents/pm.md +61 -0
- package/extensions/opencode/agents/product-owner.md +76 -0
- package/extensions/opencode/agents/qa.md +66 -0
- package/extensions/opencode/agents/team-lead.md +67 -0
- package/extensions/opencode/commands/feature.md +75 -0
- package/extensions/opencode/opencode.json +93 -0
- package/extensions/opencode/plugins/model-checker.json +14 -0
- package/extensions/opencode/plugins/model-checker.ts +279 -0
- package/extensions/opencode/plugins/sound-notification.ts +13 -0
- package/extensions/opencode/plugins/telegram-notification.ts +86 -0
- package/extensions/opencode/skills/code_review_expert/SKILL.md +144 -0
- package/extensions/opencode/skills/design_expert/SKILL.md +42 -0
- package/extensions/opencode/skills/qa_expert/SKILL.md +116 -0
- package/package.json +19 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: cost-audit
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/cost-audit`
|
|
6
|
+
|
|
7
|
+
Use when: auditing cloud spend, finding waste, and producing an optimisation plan with ROI estimates.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Monthly cost review
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/cost-audit
|
|
16
|
+
|
|
17
|
+
Cloud: AWS (all services, eu-west-1 + us-east-1)
|
|
18
|
+
Period: August 2024
|
|
19
|
+
Current monthly spend: $18 400 (budget: $15 000 — 23% over)
|
|
20
|
+
Data source: AWS Cost Explorer export (cost-explorer-aug-2024.csv attached)
|
|
21
|
+
Top cost drivers (from Cost Explorer):
|
|
22
|
+
- EC2/EKS: $9 200 (50%)
|
|
23
|
+
- RDS: $3 100 (17%)
|
|
24
|
+
- Data transfer: $2 800 (15%)
|
|
25
|
+
- ElastiCache: $1 400 (8%)
|
|
26
|
+
- Other: $1 900 (10%)
|
|
27
|
+
Focus areas: EC2 rightsizing, data transfer optimisation, identify idle/orphaned resources
|
|
28
|
+
Output: cost-audit-aug-2024.md — waste findings, savings estimate per fix, effort level (easy/medium/hard)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**RU:**
|
|
32
|
+
```
|
|
33
|
+
/cost-audit
|
|
34
|
+
|
|
35
|
+
Облако: AWS (все сервисы, eu-west-1 + us-east-1)
|
|
36
|
+
Период: август 2024
|
|
37
|
+
Текущие ежемесячные расходы: $18 400 (бюджет: $15 000 — превышение на 23%)
|
|
38
|
+
Источник данных: экспорт AWS Cost Explorer (cost-explorer-aug-2024.csv приложен)
|
|
39
|
+
Главные статьи затрат (из Cost Explorer):
|
|
40
|
+
- EC2/EKS: $9 200 (50%)
|
|
41
|
+
- RDS: $3 100 (17%)
|
|
42
|
+
- Передача данных: $2 800 (15%)
|
|
43
|
+
- ElastiCache: $1 400 (8%)
|
|
44
|
+
- Остальное: $1 900 (10%)
|
|
45
|
+
Области фокуса: rightsizing EC2, оптимизация передачи данных, выявление простаивающих/заброшенных ресурсов
|
|
46
|
+
Результат: cost-audit-aug-2024.md — находки по расточительству, оценка экономии на каждое исправление, уровень усилий (лёгкий/средний/тяжёлый)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Example 2 — Targeted EC2 rightsizing
|
|
52
|
+
|
|
53
|
+
**EN:**
|
|
54
|
+
```
|
|
55
|
+
/cost-audit
|
|
56
|
+
|
|
57
|
+
Scope: EC2 and EKS node groups only
|
|
58
|
+
Environment: production + staging
|
|
59
|
+
Data: AWS Compute Optimizer recommendations (export attached) + CloudWatch CPU/memory metrics (last 30 days)
|
|
60
|
+
Current cluster: 3 × m5.2xlarge (8 vCPU, 32 GB) — avg CPU 18%, avg memory 34%
|
|
61
|
+
Hypothesis: overprovisioned by 50%; could downsize to m5.xlarge (4 vCPU, 16 GB)
|
|
62
|
+
Savings estimate: m5.2xlarge $0.384/hr → m5.xlarge $0.192/hr × 3 nodes × 720hr = $415/mo
|
|
63
|
+
Risk: memory spikes during peak (check p99 memory); CPU burst capacity
|
|
64
|
+
Output: rightsizing recommendation with p99 metrics evidence + migration plan (rolling node replacement)
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**RU:**
|
|
68
|
+
```
|
|
69
|
+
/cost-audit
|
|
70
|
+
|
|
71
|
+
Скоуп: только EC2 и EKS node groups
|
|
72
|
+
Окружение: production + staging
|
|
73
|
+
Данные: рекомендации AWS Compute Optimizer (экспорт приложен) + метрики CPU/memory CloudWatch (последние 30 дней)
|
|
74
|
+
Текущий кластер: 3 × m5.2xlarge (8 vCPU, 32 GB) — средний CPU 18%, средняя память 34%
|
|
75
|
+
Гипотеза: избыточное обеспечение на 50%; можно уменьшить до m5.xlarge (4 vCPU, 16 GB)
|
|
76
|
+
Оценка экономии: m5.2xlarge $0.384/ч → m5.xlarge $0.192/ч × 3 узла × 720ч = $415/мес
|
|
77
|
+
Риск: всплески памяти в часы пик (проверить p99 память); пиковая пропускная способность CPU
|
|
78
|
+
Результат: рекомендация по rightsizing с доказательствами метрик p99 + план миграции (поочерёдная замена узлов)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Example 3 — Orphaned resources cleanup
|
|
84
|
+
|
|
85
|
+
**EN:**
|
|
86
|
+
```
|
|
87
|
+
/cost-audit
|
|
88
|
+
|
|
89
|
+
Scope: find and clean up orphaned/idle resources
|
|
90
|
+
Cloud: AWS eu-west-1
|
|
91
|
+
Check for:
|
|
92
|
+
- Unattached EBS volumes (> 7 days unattached)
|
|
93
|
+
- Unused Elastic IPs (not associated with running instance)
|
|
94
|
+
- Old snapshots (> 90 days, not referenced in Terraform)
|
|
95
|
+
- Stopped EC2 instances (> 14 days stopped, not scheduled)
|
|
96
|
+
- Empty/unused S3 buckets
|
|
97
|
+
Tool: use AWS CLI + boto3 script to enumerate; cross-reference Terraform state
|
|
98
|
+
Output: deletion candidate list with last-used date and monthly cost per resource
|
|
99
|
+
Approval: list for human review before deletion — do not auto-delete
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**RU:**
|
|
103
|
+
```
|
|
104
|
+
/cost-audit
|
|
105
|
+
|
|
106
|
+
Скоуп: найти и очистить заброшенные/простаивающие ресурсы
|
|
107
|
+
Облако: AWS eu-west-1
|
|
108
|
+
Проверить:
|
|
109
|
+
- Не прикреплённые EBS тома (> 7 дней без прикрепления)
|
|
110
|
+
- Неиспользуемые Elastic IP (не связаны с работающим instance)
|
|
111
|
+
- Старые снапшоты (> 90 дней, не используются в Terraform)
|
|
112
|
+
- Остановленные EC2 instances (> 14 дней остановлены, не по расписанию)
|
|
113
|
+
- Пустые/неиспользуемые S3 bucket
|
|
114
|
+
Инструмент: использовать AWS CLI + boto3 скрипт для перечисления; сверить с Terraform state
|
|
115
|
+
Результат: список кандидатов на удаление с датой последнего использования и ежемесячной стоимостью за ресурс
|
|
116
|
+
Одобрение: список для ручного ревью перед удалением — не удалять автоматически
|
|
117
|
+
```
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: deploy-production
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/deploy-production`
|
|
6
|
+
|
|
7
|
+
Use when: executing a production deployment with canary rollout, progressive traffic shifting, and automated rollback gates.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Canary deploy with progressive rollout
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/deploy-production
|
|
16
|
+
|
|
17
|
+
Service: order-service
|
|
18
|
+
Version: v2.5.0 → v2.6.0
|
|
19
|
+
Deployment strategy: canary → progressive (10% → 50% → 100%)
|
|
20
|
+
Infrastructure: Kubernetes (EKS), ArgoCD for GitOps
|
|
21
|
+
Image: ghcr.io/myorg/order-service:2.6.0 (digest: sha256:abc...)
|
|
22
|
+
Pre-flight checks:
|
|
23
|
+
- All integration tests passing on staging
|
|
24
|
+
- DB migration alembic upgrade head — already applied (non-breaking)
|
|
25
|
+
- Dependent services: payment-service v1.9+ (compatible), notification-service (no change)
|
|
26
|
+
Rollback trigger: error rate > 1% OR p99 > 2s sustained for 5 min at any canary stage
|
|
27
|
+
Monitoring: Datadog dashboard "order-service canary" — open during deploy
|
|
28
|
+
On-call engineer: @devops-lead (PagerDuty)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**RU:**
|
|
32
|
+
```
|
|
33
|
+
/deploy-production
|
|
34
|
+
|
|
35
|
+
Сервис: order-service
|
|
36
|
+
Версия: v2.5.0 → v2.6.0
|
|
37
|
+
Стратегия деплоя: canary → progressive (10% → 50% → 100%)
|
|
38
|
+
Инфраструктура: Kubernetes (EKS), ArgoCD для GitOps
|
|
39
|
+
Образ: ghcr.io/myorg/order-service:2.6.0 (digest: sha256:abc...)
|
|
40
|
+
Pre-flight проверки:
|
|
41
|
+
- Все integration тесты проходят на staging
|
|
42
|
+
- Миграция БД alembic upgrade head — уже применена (non-breaking)
|
|
43
|
+
- Зависимые сервисы: payment-service v1.9+ (совместимо), notification-service (без изменений)
|
|
44
|
+
Триггер отката: error rate > 1% ИЛИ p99 > 2s в течение 5 мин на любом этапе canary
|
|
45
|
+
Мониторинг: Datadog dashboard "order-service canary" — открыт во время деплоя
|
|
46
|
+
Дежурный инженер: @devops-lead (PagerDuty)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Example 2 — Hotfix emergency deploy
|
|
52
|
+
|
|
53
|
+
**EN:**
|
|
54
|
+
```
|
|
55
|
+
/deploy-production
|
|
56
|
+
|
|
57
|
+
Service: payment-service
|
|
58
|
+
Version: v3.1.1 (hotfix) — patches critical payment failure bug (INC-2024-142)
|
|
59
|
+
Deployment strategy: full rollout immediately (skip canary — confirmed fix, low risk change)
|
|
60
|
+
Justification: 3-line fix to null check; confirmed root cause; no schema changes
|
|
61
|
+
Approvals obtained: CTO + Lead Engineer (Slack thread attached)
|
|
62
|
+
Pre-deploy: smoke test against staging with fix deployed — PASSED
|
|
63
|
+
Post-deploy validation:
|
|
64
|
+
- Monitor error rate on /api/v1/payments for 15 minutes
|
|
65
|
+
- Confirm incident INC-2024-142 resolved (check Sentry error count drops to 0)
|
|
66
|
+
Rollback: revert to v3.1.0 image (available in registry) if validation fails
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**RU:**
|
|
70
|
+
```
|
|
71
|
+
/deploy-production
|
|
72
|
+
|
|
73
|
+
Сервис: payment-service
|
|
74
|
+
Версия: v3.1.1 (hotfix) — исправляет критический баг сбоя платежей (INC-2024-142)
|
|
75
|
+
Стратегия деплоя: полный rollout немедленно (пропустить canary — подтверждённое исправление, низкий риск)
|
|
76
|
+
Обоснование: исправление 3 строк для null check; корневая причина подтверждена; нет изменений схемы
|
|
77
|
+
Полученные одобрения: CTO + Lead Engineer (Slack тред приложен)
|
|
78
|
+
Pre-deploy: smoke test на staging с применённым исправлением — ПРОЙДЕН
|
|
79
|
+
Валидация после деплоя:
|
|
80
|
+
- Мониторить error rate на /api/v1/payments 15 минут
|
|
81
|
+
- Подтвердить разрешение инцидента INC-2024-142 (проверить снижение счётчика ошибок Sentry до 0)
|
|
82
|
+
Откат: вернуться к образу v3.1.0 (доступен в registry) если валидация не пройдёт
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Example 3 — Multi-service coordinated deploy
|
|
88
|
+
|
|
89
|
+
**EN:**
|
|
90
|
+
```
|
|
91
|
+
/deploy-production
|
|
92
|
+
|
|
93
|
+
Services: [user-service v2.1.0, auth-service v1.8.0] — must deploy together (breaking API contract change)
|
|
94
|
+
Coordination: auth-service first (backward-compatible for 30 min window), then user-service
|
|
95
|
+
Downtime window: none — both services must be live simultaneously during transition
|
|
96
|
+
Validation: run auth integration test suite against prod after each service deploy
|
|
97
|
+
Rollback order: user-service first, then auth-service (reverse deploy order)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**RU:**
|
|
101
|
+
```
|
|
102
|
+
/deploy-production
|
|
103
|
+
|
|
104
|
+
Сервисы: [user-service v2.1.0, auth-service v1.8.0] — должны деплоиться вместе (breaking изменение API контракта)
|
|
105
|
+
Координация: сначала auth-service (обратно-совместимый в течение 30-минутного окна), затем user-service
|
|
106
|
+
Окно простоя: нет — оба сервиса должны работать одновременно в период перехода
|
|
107
|
+
Валидация: запустить набор auth integration тестов против прода после деплоя каждого сервиса
|
|
108
|
+
Порядок отката: сначала user-service, затем auth-service (обратный порядок деплоя)
|
|
109
|
+
```
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: drift-check
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/drift-check`
|
|
6
|
+
|
|
7
|
+
Use when: detecting infrastructure drift — differences between IaC state and actual cloud resources — and deciding whether to remediate or update state.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Scheduled drift audit
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/drift-check
|
|
16
|
+
|
|
17
|
+
Environment: production (AWS eu-west-1)
|
|
18
|
+
IaC tool: Terraform
|
|
19
|
+
State location: s3://tf-state-myapp/envs/prod/terraform.tfstate
|
|
20
|
+
Scope: full — all modules (network, compute, database, IAM, monitoring)
|
|
21
|
+
Command: terraform plan -detailed-exitcode (exit 2 = drift detected)
|
|
22
|
+
Expected drift (known manual changes to accept):
|
|
23
|
+
- RDS instance class bumped from db.t3.large to db.t3.xlarge last week (approved emergency change)
|
|
24
|
+
- CloudWatch alarm threshold on order-service-latency adjusted manually
|
|
25
|
+
Classification needed:
|
|
26
|
+
- ACCEPT: expected/approved manual changes → update tfvars to match
|
|
27
|
+
- REMEDIATE: unauthorised changes → revert via terraform apply
|
|
28
|
+
- INVESTIGATE: unknown changes → escalate to security review
|
|
29
|
+
Output: drift-report-2024-09-15.md with classified findings
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**RU:**
|
|
33
|
+
```
|
|
34
|
+
/drift-check
|
|
35
|
+
|
|
36
|
+
Окружение: production (AWS eu-west-1)
|
|
37
|
+
Инструмент IaC: Terraform
|
|
38
|
+
Расположение state: s3://tf-state-myapp/envs/prod/terraform.tfstate
|
|
39
|
+
Скоуп: полный — все модули (network, compute, database, IAM, monitoring)
|
|
40
|
+
Команда: terraform plan -detailed-exitcode (exit 2 = обнаружен drift)
|
|
41
|
+
Ожидаемый drift (известные ручные изменения для принятия):
|
|
42
|
+
- Класс RDS instance повышен с db.t3.large до db.t3.xlarge на прошлой неделе (одобренное экстренное изменение)
|
|
43
|
+
- Порог CloudWatch alarm на order-service-latency скорректирован вручную
|
|
44
|
+
Необходимая классификация:
|
|
45
|
+
- ПРИНЯТЬ: ожидаемые/одобренные ручные изменения → обновить tfvars чтобы соответствовало
|
|
46
|
+
- ИСПРАВИТЬ: несанкционированные изменения → откатить через terraform apply
|
|
47
|
+
- РАССЛЕДОВАТЬ: неизвестные изменения → эскалировать в security review
|
|
48
|
+
Результат: drift-report-2024-09-15.md с классифицированными находками
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Example 2 — Post-incident drift check
|
|
54
|
+
|
|
55
|
+
**EN:**
|
|
56
|
+
```
|
|
57
|
+
/drift-check
|
|
58
|
+
|
|
59
|
+
Trigger: post-incident INC-2024-088 — during incident response, engineer manually scaled EKS node group from 3 to 8 nodes; incident resolved but infra not reverted
|
|
60
|
+
Environment: production EKS cluster (eu-west-1)
|
|
61
|
+
Focus: EKS node groups, auto-scaling group desired counts
|
|
62
|
+
Expected: node count in Terraform = 3; actual = 8
|
|
63
|
+
Decision needed: scale back to 3 (traffic is back to normal) vs. update Terraform to 8 (if load justifies)
|
|
64
|
+
Load check: CloudWatch — current CPU < 40% on 8 nodes (3 nodes would be fine)
|
|
65
|
+
Action: scale back to 3 via Terraform, import new ASG config to state
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**RU:**
|
|
69
|
+
```
|
|
70
|
+
/drift-check
|
|
71
|
+
|
|
72
|
+
Триггер: post-incident INC-2024-088 — во время реагирования на инцидент инженер вручную масштабировал EKS node group с 3 до 8 узлов; инцидент разрешён но инфра не откачена
|
|
73
|
+
Окружение: production EKS кластер (eu-west-1)
|
|
74
|
+
Фокус: EKS node groups, желаемые количества auto-scaling group
|
|
75
|
+
Ожидается: количество узлов в Terraform = 3; фактически = 8
|
|
76
|
+
Необходимое решение: уменьшить до 3 (трафик вернулся к норме) или обновить Terraform до 8 (если нагрузка оправдывает)
|
|
77
|
+
Проверка нагрузки: CloudWatch — текущий CPU < 40% на 8 узлах (3 узла было бы достаточно)
|
|
78
|
+
Действие: уменьшить до 3 через Terraform, импортировать новую конфигурацию ASG в state
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Example 3 — IAM permissions drift (security focus)
|
|
84
|
+
|
|
85
|
+
**EN:**
|
|
86
|
+
```
|
|
87
|
+
/drift-check
|
|
88
|
+
|
|
89
|
+
Scope: IAM only — detect permission creep in production AWS account
|
|
90
|
+
Tool: terraform plan scoped to iam/ module + AWS Config rules
|
|
91
|
+
Concern: 3 IAM roles had policies attached manually last month (not in Terraform)
|
|
92
|
+
Detection: compare Terraform state IAM attachments vs. AWS IAM actual attached policies
|
|
93
|
+
Risk classification: any admin-level policy attached outside Terraform = CRITICAL drift
|
|
94
|
+
Output: list of unexpected IAM changes with attached policy names; immediate remediation for CRITICAL
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**RU:**
|
|
98
|
+
```
|
|
99
|
+
/drift-check
|
|
100
|
+
|
|
101
|
+
Скоуп: только IAM — обнаружить расширение прав в production AWS аккаунте
|
|
102
|
+
Инструмент: terraform plan с ограничением модуля iam/ + правила AWS Config
|
|
103
|
+
Озабоченность: к 3 IAM ролям были прикреплены политики вручную в прошлом месяце (не в Terraform)
|
|
104
|
+
Обнаружение: сравнить прикрепления IAM в Terraform state с фактически прикреплёнными политиками AWS IAM
|
|
105
|
+
Классификация рисков: любая политика уровня admin прикреплённая вне Terraform = КРИТИЧЕСКИЙ drift
|
|
106
|
+
Результат: список неожиданных изменений IAM с именами прикреплённых политик; немедленное исправление для КРИТИЧЕСКИХ
|
|
107
|
+
```
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: incident-response
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/incident-response`
|
|
6
|
+
|
|
7
|
+
Use when: a production incident is active — to coordinate triage, mitigation, communication, and postmortem.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — P1 service outage
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/incident-response
|
|
16
|
+
|
|
17
|
+
Severity: P1 — complete service outage
|
|
18
|
+
Affected: checkout flow (POST /api/v1/orders returns 503 for 100% of requests)
|
|
19
|
+
Started: 14:32 UTC (23 minutes ago)
|
|
20
|
+
Alert source: PagerDuty alert "order-service error rate 100%" + customer reports in Slack #support
|
|
21
|
+
Initial observations:
|
|
22
|
+
- order-service pods restarting every 30 seconds (CrashLoopBackOff)
|
|
23
|
+
- Last deploy: order-service v2.6.1 — deployed 14:28 UTC (4 min before incident)
|
|
24
|
+
- DB: PostgreSQL healthy (no alerts), connection pool normal
|
|
25
|
+
- Error in logs: "FATAL: relation 'order_status_history' does not exist"
|
|
26
|
+
Incident channel: #inc-2024-09-15-orders (already created)
|
|
27
|
+
On-call: @alice (primary), @bob (secondary)
|
|
28
|
+
Status page: needs update — "investigating checkout issues"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**RU:**
|
|
32
|
+
```
|
|
33
|
+
/incident-response
|
|
34
|
+
|
|
35
|
+
Серьёзность: P1 — полный отказ сервиса
|
|
36
|
+
Затронуто: поток оформления заказа (POST /api/v1/orders возвращает 503 для 100% запросов)
|
|
37
|
+
Начало: 14:32 UTC (23 минуты назад)
|
|
38
|
+
Источник алерта: PagerDuty алерт "order-service error rate 100%" + жалобы клиентов в Slack #support
|
|
39
|
+
Начальные наблюдения:
|
|
40
|
+
- Поды order-service перезапускаются каждые 30 секунд (CrashLoopBackOff)
|
|
41
|
+
- Последний деплой: order-service v2.6.1 — задеплоен в 14:28 UTC (за 4 мин до инцидента)
|
|
42
|
+
- БД: PostgreSQL здоров (нет алертов), connection pool в норме
|
|
43
|
+
- Ошибка в логах: "FATAL: relation 'order_status_history' does not exist"
|
|
44
|
+
Канал инцидента: #inc-2024-09-15-orders (уже создан)
|
|
45
|
+
Дежурные: @alice (основной), @bob (вторичный)
|
|
46
|
+
Status page: требует обновления — "расследуем проблемы с оформлением заказов"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Example 2 — P2 performance degradation
|
|
52
|
+
|
|
53
|
+
**EN:**
|
|
54
|
+
```
|
|
55
|
+
/incident-response
|
|
56
|
+
|
|
57
|
+
Severity: P2 — severe performance degradation (not full outage)
|
|
58
|
+
Affected: product search — p99 latency 8s (baseline: 120ms); timeout errors at 12%
|
|
59
|
+
Started: ~11:00 UTC (gradual, no single deploy triggered it)
|
|
60
|
+
Observations:
|
|
61
|
+
- Only search endpoints affected; orders, auth, payments normal
|
|
62
|
+
- Elasticsearch CPU at 94% (normal: 30%)
|
|
63
|
+
- Spike in search traffic: 3x normal (Monday morning, promotional email sent at 10:45 UTC)
|
|
64
|
+
- No recent code changes to search module
|
|
65
|
+
Hypothesis: Elasticsearch overwhelmed by traffic spike; may need circuit breaker
|
|
66
|
+
Workaround available: disable real-time index refresh (performance mode) — data lag 60s acceptable
|
|
67
|
+
Impact: users see slow search results; purchase flow unaffected
|
|
68
|
+
Communication: notify #product (not public status page — not full outage)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**RU:**
|
|
72
|
+
```
|
|
73
|
+
/incident-response
|
|
74
|
+
|
|
75
|
+
Серьёзность: P2 — серьёзная деградация производительности (не полный отказ)
|
|
76
|
+
Затронуто: поиск продуктов — p99 задержка 8s (baseline: 120ms); ошибки таймаута 12%
|
|
77
|
+
Начало: ~11:00 UTC (постепенное, не вызвано одним деплоем)
|
|
78
|
+
Наблюдения:
|
|
79
|
+
- Затронуты только эндпоинты поиска; заказы, auth, платежи в норме
|
|
80
|
+
- CPU Elasticsearch на 94% (норма: 30%)
|
|
81
|
+
- Всплеск поискового трафика: 3x нормального (утро понедельника, промо email отправлен в 10:45 UTC)
|
|
82
|
+
- Нет недавних изменений кода в модуле поиска
|
|
83
|
+
Гипотеза: Elasticsearch перегружен всплеском трафика; возможно нужен circuit breaker
|
|
84
|
+
Временное решение: отключить real-time обновление индекса (режим производительности) — задержка данных 60s приемлема
|
|
85
|
+
Влияние: пользователи видят медленные результаты поиска; поток покупки не затронут
|
|
86
|
+
Коммуникация: уведомить #product (не публичная status page — не полный отказ)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Example 3 — Quick / Post-incident postmortem
|
|
92
|
+
|
|
93
|
+
**EN:**
|
|
94
|
+
```
|
|
95
|
+
/incident-response
|
|
96
|
+
|
|
97
|
+
Mode: postmortem (incident resolved — INC-2024-142 checkout outage, duration 34 min)
|
|
98
|
+
Timeline: already documented in incident channel
|
|
99
|
+
Root cause: DB migration in v2.6.1 created new table but deploy ran before migration (race condition in CI)
|
|
100
|
+
Action items needed:
|
|
101
|
+
- Pre-deploy migration check (block deploy if pending migrations)
|
|
102
|
+
- Smoke test in canary phase checks table existence
|
|
103
|
+
- Runbook update: rollback procedure for failed migrations
|
|
104
|
+
Format: blameless postmortem per Google SRE template
|
|
105
|
+
Due: draft to team within 48h
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**RU:**
|
|
109
|
+
```
|
|
110
|
+
/incident-response
|
|
111
|
+
|
|
112
|
+
Режим: postmortem (инцидент разрешён — INC-2024-142 отказ оформления заказа, длительность 34 мин)
|
|
113
|
+
Таймлайн: уже задокументирован в канале инцидента
|
|
114
|
+
Корневая причина: миграция БД в v2.6.1 создала новую таблицу но деплой запустился до миграции (race condition в CI)
|
|
115
|
+
Необходимые action items:
|
|
116
|
+
- Проверка миграции перед деплоем (блокировать деплой если есть ожидающие миграции)
|
|
117
|
+
- Smoke test на этапе canary проверяет существование таблицы
|
|
118
|
+
- Обновление runbook: процедура отката для неудачных миграций
|
|
119
|
+
Формат: blameless postmortem по шаблону Google SRE
|
|
120
|
+
Срок: черновик команде в течение 48ч
|
|
121
|
+
```
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: provision-env
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/provision-env`
|
|
6
|
+
|
|
7
|
+
Use when: provisioning a new environment (staging, preview, feature env) from Terraform/Helm configs with cost estimation and DNS/smoke validation.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — New staging environment
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/provision-env
|
|
16
|
+
|
|
17
|
+
Environment name: staging-v2
|
|
18
|
+
Cloud: AWS (eu-west-1)
|
|
19
|
+
IaC tool: Terraform (modules in infra/terraform/envs/staging/)
|
|
20
|
+
Services to provision:
|
|
21
|
+
- EKS cluster (t3.medium × 3 nodes, spot instances)
|
|
22
|
+
- RDS PostgreSQL 16 (db.t3.medium, multi-AZ: false for staging)
|
|
23
|
+
- ElastiCache Redis 7 (cache.t3.micro)
|
|
24
|
+
- S3 bucket (staging-v2-assets) with versioning enabled
|
|
25
|
+
- ALB + Route53 record: staging-v2.myapp.internal
|
|
26
|
+
Variable overrides vs. prod: smaller instance sizes; no multi-AZ; 7-day log retention
|
|
27
|
+
Cost estimate required: yes — alert if projected monthly > $800
|
|
28
|
+
DNS: staging-v2.myapp.com → ALB DNS (Route53 hosted zone: myapp.com)
|
|
29
|
+
Smoke test after provisioning: curl https://staging-v2.myapp.com/health → 200
|
|
30
|
+
State backend: S3 bucket tf-state-myapp, key envs/staging-v2/terraform.tfstate
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**RU:**
|
|
34
|
+
```
|
|
35
|
+
/provision-env
|
|
36
|
+
|
|
37
|
+
Имя окружения: staging-v2
|
|
38
|
+
Облако: AWS (eu-west-1)
|
|
39
|
+
Инструмент IaC: Terraform (модули в infra/terraform/envs/staging/)
|
|
40
|
+
Сервисы для развёртывания:
|
|
41
|
+
- EKS кластер (t3.medium × 3 узла, spot instances)
|
|
42
|
+
- RDS PostgreSQL 16 (db.t3.medium, multi-AZ: false для staging)
|
|
43
|
+
- ElastiCache Redis 7 (cache.t3.micro)
|
|
44
|
+
- S3 bucket (staging-v2-assets) с включённым версионированием
|
|
45
|
+
- ALB + Route53 запись: staging-v2.myapp.internal
|
|
46
|
+
Переопределения переменных vs. prod: меньшие размеры instance; без multi-AZ; хранение логов 7 дней
|
|
47
|
+
Оценка стоимости обязательна: да — предупреждать если прогнозируемые затраты в месяц > $800
|
|
48
|
+
DNS: staging-v2.myapp.com → ALB DNS (Route53 hosted zone: myapp.com)
|
|
49
|
+
Smoke test после развёртывания: curl https://staging-v2.myapp.com/health → 200
|
|
50
|
+
State backend: S3 bucket tf-state-myapp, ключ envs/staging-v2/terraform.tfstate
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Example 2 — Feature preview environment (ephemeral)
|
|
56
|
+
|
|
57
|
+
**EN:**
|
|
58
|
+
```
|
|
59
|
+
/provision-env
|
|
60
|
+
|
|
61
|
+
Environment type: ephemeral feature preview (auto-destroy after PR merge)
|
|
62
|
+
PR: #312 "Add product recommendations"
|
|
63
|
+
Namespace: preview-pr-312 (Kubernetes namespace in shared staging cluster — not new cluster)
|
|
64
|
+
Services: order-service:pr-312, recommendation-service:pr-312 (new service)
|
|
65
|
+
Shared infra (reuse existing): PostgreSQL staging DB (separate schema: preview_pr312), Redis staging
|
|
66
|
+
Ingress: pr-312.preview.myapp.internal (internal only, no public DNS)
|
|
67
|
+
Seed data: run make seed-preview DB_SCHEMA=preview_pr312
|
|
68
|
+
Lifetime: auto-destroy when PR #312 is closed or merged (GitHub Actions workflow)
|
|
69
|
+
Cost: namespace only — no new cloud resources; ~$0 additional
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**RU:**
|
|
73
|
+
```
|
|
74
|
+
/provision-env
|
|
75
|
+
|
|
76
|
+
Тип окружения: эфемерная feature preview (авто-уничтожение после мержа PR)
|
|
77
|
+
PR: #312 "Добавить рекомендации продуктов"
|
|
78
|
+
Namespace: preview-pr-312 (Kubernetes namespace в shared staging кластере — не новый кластер)
|
|
79
|
+
Сервисы: order-service:pr-312, recommendation-service:pr-312 (новый сервис)
|
|
80
|
+
Общая инфра (переиспользовать существующую): PostgreSQL staging БД (отдельная схема: preview_pr312), Redis staging
|
|
81
|
+
Ingress: pr-312.preview.myapp.internal (только внутренний, без публичного DNS)
|
|
82
|
+
Seed данные: запустить make seed-preview DB_SCHEMA=preview_pr312
|
|
83
|
+
Время жизни: авто-уничтожение когда PR #312 закрывается или мержится (GitHub Actions workflow)
|
|
84
|
+
Стоимость: только namespace — нет новых облачных ресурсов; ~$0 дополнительно
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Example 3 — Quick / DR environment verification
|
|
90
|
+
|
|
91
|
+
**EN:**
|
|
92
|
+
```
|
|
93
|
+
/provision-env
|
|
94
|
+
|
|
95
|
+
Purpose: disaster recovery drill — spin up DR environment in us-east-1 from prod snapshots
|
|
96
|
+
Source: RDS snapshot rds:prod-postgres-2024-09-15, S3 sync from prod-assets bucket
|
|
97
|
+
Target region: us-east-1 (DR region)
|
|
98
|
+
Validation: verify app boots and read queries work; write operations disabled (DR = read-only)
|
|
99
|
+
Time limit: DR environment must be ready within 2 hours (RTO target)
|
|
100
|
+
Destroy after: 4 hours (drill complete, document RTO achieved)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**RU:**
|
|
104
|
+
```
|
|
105
|
+
/provision-env
|
|
106
|
+
|
|
107
|
+
Назначение: учения по аварийному восстановлению — развернуть DR окружение в us-east-1 из prod снапшотов
|
|
108
|
+
Источник: RDS снапшот rds:prod-postgres-2024-09-15, S3 sync из bucket prod-assets
|
|
109
|
+
Целевой регион: us-east-1 (DR регион)
|
|
110
|
+
Валидация: убедиться что приложение запускается и read запросы работают; операции записи отключены (DR = read-only)
|
|
111
|
+
Ограничение времени: DR окружение должно быть готово в течение 2 часов (цель RTO)
|
|
112
|
+
Уничтожить после: 4 часа (учения завершены, задокументировать достигнутый RTO)
|
|
113
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Rule: Cost Governance
|
|
2
|
+
|
|
3
|
+
**Priority**: P1 — Cost overruns trigger mandatory audit.
|
|
4
|
+
|
|
5
|
+
## Constraints
|
|
6
|
+
|
|
7
|
+
1. **Budget alerts**: Every AWS account/GCP project must have billing alerts at 80% and 100% of monthly budget.
|
|
8
|
+
2. **No oversized defaults**: Default instance type for new services is `t3.small` (AWS) / `e2-small` (GCP). Larger requires justification.
|
|
9
|
+
3. **Data transfer awareness**: Cross-AZ and cross-region transfer costs estimated before architectural decisions.
|
|
10
|
+
4. **Unused resource policy**: Resources with zero traffic for 7 days trigger review notification. Idle for 30 days → terminated.
|
|
11
|
+
5. **Reserved/committed use**: Any workload running continuously > 3 months must have RI/CUD analysis completed.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Rule: Immutable Infrastructure
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — No exceptions. Manual changes to running infra are a firing-level incident.
|
|
4
|
+
|
|
5
|
+
## Constraints
|
|
6
|
+
|
|
7
|
+
1. **No SSH/console patching**: Running instances are never modified in place. Fix = new image + redeploy.
|
|
8
|
+
2. **All infrastructure is code**: Every resource in production must have a corresponding Terraform resource. Resources without IaC are subject to automatic termination.
|
|
9
|
+
3. **Terraform is the single source of truth**: Never use the cloud console to create, modify, or delete resources.
|
|
10
|
+
4. **Module versioning**: All Terraform modules pinned to specific version tags. No `?ref=main` in production.
|
|
11
|
+
5. **Immutable image tags**: Container images in production use content-addressed digests (`image@sha256:...`), never `:latest`.
|
|
12
|
+
|
|
13
|
+
## Enforcement
|
|
14
|
+
|
|
15
|
+
- `terraform plan` reviewed in every PR via automated comment
|
|
16
|
+
- Drift detection runs every 6 hours via `/drift-check` workflow
|
|
17
|
+
- OPA policy blocks `terraform apply` if plan contains manually-created resources
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Rule: Reliability Standards
|
|
2
|
+
|
|
3
|
+
**Priority**: P1 — Required before production promotion.
|
|
4
|
+
|
|
5
|
+
## SLO Defaults
|
|
6
|
+
|
|
7
|
+
| Service Tier | Availability | RTO | RPO |
|
|
8
|
+
|:---|:---|:---|:---|
|
|
9
|
+
| Tier 1 (revenue-critical) | 99.9% | 30 min | 15 min |
|
|
10
|
+
| Tier 2 (internal tools) | 99.5% | 4 hours | 1 hour |
|
|
11
|
+
| Tier 3 (batch/async) | 99.0% | 24 hours | 24 hours |
|
|
12
|
+
|
|
13
|
+
## Constraints
|
|
14
|
+
|
|
15
|
+
1. **No single points of failure**: All Tier 1 services run with minimum 2 replicas across 2 AZs.
|
|
16
|
+
2. **Graceful shutdown**: All containers handle `SIGTERM` with ≥ 30s drain before `SIGKILL`.
|
|
17
|
+
3. **Readiness before liveness**: K8s probes must define `readinessProbe` before `livenessProbe`.
|
|
18
|
+
4. **Defined resource limits**: Every container must specify `resources.requests` and `resources.limits`.
|
|
19
|
+
5. **Chaos budget**: Tier 1 services must pass a basic chaos test (pod kill, node drain) before going live.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Rule: Security Posture
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — Violations block deployment.
|
|
4
|
+
|
|
5
|
+
## Constraints
|
|
6
|
+
|
|
7
|
+
1. **Least Privilege (IAM)**: Every IAM role scoped to minimum actions and resources. Wildcards (`*`) in `Action` or `Resource` forbidden in production without documented exception.
|
|
8
|
+
2. **No secrets in state or code**: Terraform state must be encrypted (S3 + KMS). No credentials in `.tf` files or CI YAML.
|
|
9
|
+
3. **Encrypted at rest and in transit**: All storage (S3, RDS, EBS) encrypted. All inter-service communication uses TLS ≥ 1.2.
|
|
10
|
+
4. **Network isolation**: Production workloads in private subnets. Public exposure only via load balancer with WAF. Security groups default-deny inbound.
|
|
11
|
+
5. **Tagging compliance**: Every resource must have tags: `Owner`, `Environment`, `CostCenter`, `Terraform=true`.
|
|
12
|
+
6. **MFA on human IAM users**: All human AWS accounts require MFA. Service accounts use IAM roles, never long-lived access keys.
|