@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,58 @@
|
|
|
1
|
+
# Skill: CI/CD Pipeline Patterns
|
|
2
|
+
|
|
3
|
+
## When to load
|
|
4
|
+
|
|
5
|
+
When designing GitHub Actions workflows, optimizing pipeline speed, implementing deployment gates.
|
|
6
|
+
|
|
7
|
+
## Pipeline Structure
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
.github/workflows/
|
|
11
|
+
├── ci.yml # Every PR: lint, test, build, security scan
|
|
12
|
+
├── deploy-stg.yml # Merge to main: deploy to staging
|
|
13
|
+
└── deploy-prd.yml # Release tag: deploy to production (with approval)
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## CI Template
|
|
17
|
+
|
|
18
|
+
```yaml
|
|
19
|
+
jobs:
|
|
20
|
+
validate:
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/cache@v4
|
|
23
|
+
with:
|
|
24
|
+
path: ~/.npm
|
|
25
|
+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
26
|
+
- run: npm ci
|
|
27
|
+
- run: npm run lint && npm run typecheck && npm test -- --coverage
|
|
28
|
+
|
|
29
|
+
terraform-validate:
|
|
30
|
+
steps:
|
|
31
|
+
- uses: hashicorp/setup-terraform@v3
|
|
32
|
+
- run: terraform init -backend=false && terraform validate && terraform fmt -check -recursive
|
|
33
|
+
working-directory: terraform/
|
|
34
|
+
|
|
35
|
+
security:
|
|
36
|
+
steps:
|
|
37
|
+
- uses: aquasecurity/trivy-action@master
|
|
38
|
+
with: { scan-type: fs, severity: HIGH,CRITICAL, exit-code: 1 }
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Deployment Gate
|
|
42
|
+
|
|
43
|
+
```yaml
|
|
44
|
+
jobs:
|
|
45
|
+
deploy:
|
|
46
|
+
environment: production # Requires reviewer approval in GitHub Environments
|
|
47
|
+
steps:
|
|
48
|
+
- run: kubectl set image deployment/api api=$IMAGE
|
|
49
|
+
- run: npm run test:smoke -- --env production
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Pipeline Optimization Checklist
|
|
53
|
+
|
|
54
|
+
- [ ] Dependencies cached with hash-based keys
|
|
55
|
+
- [ ] Independent jobs parallelized (lint + test + security)
|
|
56
|
+
- [ ] Docker layer caching enabled
|
|
57
|
+
- [ ] Matrix builds for multi-version testing
|
|
58
|
+
- [ ] Concurrency groups prevent redundant runs on same branch
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Skill: Incident Response Runbooks
|
|
2
|
+
|
|
3
|
+
## When to load
|
|
4
|
+
|
|
5
|
+
When responding to a production alert, diagnosing an outage, or writing a postmortem.
|
|
6
|
+
|
|
7
|
+
## Severity Classification
|
|
8
|
+
|
|
9
|
+
| Severity | Definition | Response Time |
|
|
10
|
+
|:---|:---|:---|
|
|
11
|
+
| P0 | Complete outage, data loss | Immediate |
|
|
12
|
+
| P1 | Significant degradation, key feature broken | 15 min |
|
|
13
|
+
| P2 | Minor degradation, workaround exists | 1 hour |
|
|
14
|
+
| P3 | Non-user-facing | Next business day |
|
|
15
|
+
|
|
16
|
+
## P0 Response Playbook
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
T+0: ACKNOWLEDGE — "I'm on this"
|
|
20
|
+
T+5: SCOPE — What's broken? Who's affected? Since when?
|
|
21
|
+
T+10: COMMUNICATE — Post status page update; notify stakeholders
|
|
22
|
+
T+15: MITIGATE — Rollback > fix. Prefer reversible actions.
|
|
23
|
+
Order: rollback deploy → feature flag off → scale up → redirect traffic
|
|
24
|
+
T+30: STABILIZE — Confirm metrics returning to normal
|
|
25
|
+
T+60: DOCUMENT — Write preliminary postmortem
|
|
26
|
+
T+24h: POSTMORTEM — Full 5-whys analysis, action items
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Common Runbooks
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# High error rate: check recent deploys
|
|
33
|
+
kubectl rollout history deployment/api
|
|
34
|
+
kubectl logs -l app=api --since=10m | grep ERROR | tail -50
|
|
35
|
+
kubectl rollout undo deployment/api # If recent deploy
|
|
36
|
+
|
|
37
|
+
# DB connection exhaustion
|
|
38
|
+
psql -c "SELECT count(*), state FROM pg_stat_activity GROUP BY state;"
|
|
39
|
+
psql -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity
|
|
40
|
+
WHERE state = 'idle' AND age(clock_timestamp(), state_change) > interval '10 minutes';"
|
|
41
|
+
```
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Skill: Kubernetes Manifests & Helm
|
|
2
|
+
|
|
3
|
+
## When to load
|
|
4
|
+
|
|
5
|
+
When writing K8s YAML, designing Helm charts, setting resource limits, configuring probes, or reviewing pod security.
|
|
6
|
+
|
|
7
|
+
## Production Deployment Template
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
spec:
|
|
11
|
+
replicas: {{ .Values.replicaCount }} # Min 2 for Tier 1
|
|
12
|
+
template:
|
|
13
|
+
spec:
|
|
14
|
+
securityContext:
|
|
15
|
+
runAsNonRoot: true
|
|
16
|
+
runAsUser: 1000
|
|
17
|
+
terminationGracePeriodSeconds: 60
|
|
18
|
+
containers:
|
|
19
|
+
- name: api
|
|
20
|
+
image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}"
|
|
21
|
+
resources:
|
|
22
|
+
requests: { cpu: 100m, memory: 128Mi }
|
|
23
|
+
limits: { cpu: 500m, memory: 512Mi }
|
|
24
|
+
readinessProbe:
|
|
25
|
+
httpGet: { path: /health/ready, port: http }
|
|
26
|
+
initialDelaySeconds: 10
|
|
27
|
+
periodSeconds: 5
|
|
28
|
+
livenessProbe:
|
|
29
|
+
httpGet: { path: /health/live, port: http }
|
|
30
|
+
initialDelaySeconds: 30
|
|
31
|
+
periodSeconds: 15
|
|
32
|
+
topologySpreadConstraints:
|
|
33
|
+
- maxSkew: 1
|
|
34
|
+
topologyKey: topology.kubernetes.io/zone
|
|
35
|
+
whenUnsatisfiable: DoNotSchedule
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## HPA
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
spec:
|
|
42
|
+
minReplicas: 2
|
|
43
|
+
maxReplicas: 20
|
|
44
|
+
metrics:
|
|
45
|
+
- type: Resource
|
|
46
|
+
resource: { name: cpu, target: { type: Utilization, averageUtilization: 70 } }
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## PodDisruptionBudget (Required for Tier 1)
|
|
50
|
+
|
|
51
|
+
```yaml
|
|
52
|
+
spec:
|
|
53
|
+
minAvailable: 1
|
|
54
|
+
selector:
|
|
55
|
+
matchLabels: {{ include "app.selectorLabels" . | nindent 6 }}
|
|
56
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Skill: Cloud Networking
|
|
2
|
+
|
|
3
|
+
## When to load
|
|
4
|
+
|
|
5
|
+
When designing VPC topology, configuring security groups, setting up NAT, or reviewing network architecture.
|
|
6
|
+
|
|
7
|
+
## VPC Design (3-tier)
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
VPC (10.0.0.0/16)
|
|
11
|
+
├── Public subnets (10.0.1.0/24, 10.0.2.0/24) ← ALB, NAT Gateway
|
|
12
|
+
├── Private subnets (10.0.10.0/24, 10.0.11.0/24) ← App servers, K8s nodes
|
|
13
|
+
└── Isolated subnets (10.0.20.0/24, 10.0.21.0/24) ← RDS, ElastiCache
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Security Group Rules (Default-Deny)
|
|
17
|
+
|
|
18
|
+
```hcl
|
|
19
|
+
# App tier: only accepts traffic from ALB security group
|
|
20
|
+
resource "aws_security_group_rule" "app_from_alb" {
|
|
21
|
+
type = "ingress"
|
|
22
|
+
from_port = 8080
|
|
23
|
+
to_port = 8080
|
|
24
|
+
protocol = "tcp"
|
|
25
|
+
source_security_group_id = aws_security_group.alb.id
|
|
26
|
+
security_group_id = aws_security_group.app.id
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
# DB tier: only accepts traffic from app security group
|
|
30
|
+
resource "aws_security_group_rule" "db_from_app" {
|
|
31
|
+
type = "ingress"
|
|
32
|
+
from_port = 5432
|
|
33
|
+
to_port = 5432
|
|
34
|
+
protocol = "tcp"
|
|
35
|
+
source_security_group_id = aws_security_group.app.id
|
|
36
|
+
security_group_id = aws_security_group.db.id
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Cost Optimization
|
|
41
|
+
|
|
42
|
+
- Use VPC Endpoints for S3/DynamoDB to avoid NAT Gateway costs
|
|
43
|
+
- NAT Gateway: one per AZ in production (not one shared)
|
|
44
|
+
- Transit Gateway for multi-VPC connectivity (cheaper than VPC peering at scale)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Skill: Observability Setup
|
|
2
|
+
|
|
3
|
+
## When to load
|
|
4
|
+
|
|
5
|
+
When setting up monitoring for a new service, configuring alerts, debugging production issues.
|
|
6
|
+
|
|
7
|
+
## Golden Signals (Mandatory)
|
|
8
|
+
|
|
9
|
+
Every service must expose:
|
|
10
|
+
1. **Latency**: p50, p95, p99 response times
|
|
11
|
+
2. **Traffic**: requests per second
|
|
12
|
+
3. **Errors**: 4xx/5xx rate
|
|
13
|
+
4. **Saturation**: CPU %, memory %, queue depth
|
|
14
|
+
|
|
15
|
+
## Prometheus Alert Rules
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
groups:
|
|
19
|
+
- name: api-alerts
|
|
20
|
+
rules:
|
|
21
|
+
- alert: HighErrorRate
|
|
22
|
+
expr: |
|
|
23
|
+
sum(rate(http_requests_total{status=~"5.."}[5m]))
|
|
24
|
+
/ sum(rate(http_requests_total[5m])) > 0.01
|
|
25
|
+
for: 2m
|
|
26
|
+
labels: { severity: critical }
|
|
27
|
+
annotations:
|
|
28
|
+
summary: "Error rate > 1% for 2 minutes"
|
|
29
|
+
runbook: "https://runbooks.internal/high-error-rate"
|
|
30
|
+
|
|
31
|
+
- alert: HighLatency
|
|
32
|
+
expr: histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m])) > 2
|
|
33
|
+
for: 5m
|
|
34
|
+
labels: { severity: warning }
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Structured Logging Contract
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"timestamp": "2026-02-16T10:30:00Z",
|
|
42
|
+
"level": "ERROR",
|
|
43
|
+
"service": "payments-api",
|
|
44
|
+
"trace_id": "abc123",
|
|
45
|
+
"message": "Payment processing failed",
|
|
46
|
+
"error": { "type": "PaymentGatewayError", "code": "CARD_DECLINED" },
|
|
47
|
+
"duration_ms": 1240
|
|
48
|
+
}
|
|
49
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Skill: Secrets Management
|
|
2
|
+
|
|
3
|
+
## When to load
|
|
4
|
+
|
|
5
|
+
When provisioning a new service, rotating credentials, or setting up CI/CD secrets.
|
|
6
|
+
|
|
7
|
+
## Secrets Hierarchy
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
Level 1: Static secrets (rotate quarterly)
|
|
11
|
+
→ AWS Secrets Manager / HashiCorp Vault
|
|
12
|
+
→ Database passwords, API keys for external services
|
|
13
|
+
|
|
14
|
+
Level 2: Dynamic secrets (auto-expire, 1 hour)
|
|
15
|
+
→ Vault dynamic secrets / AWS IAM OIDC roles
|
|
16
|
+
|
|
17
|
+
Level 3: Runtime injection (never on disk)
|
|
18
|
+
→ K8s ExternalSecrets Operator → mounts as env vars
|
|
19
|
+
→ Never in container image or Git
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## ExternalSecrets Pattern
|
|
23
|
+
|
|
24
|
+
```yaml
|
|
25
|
+
apiVersion: external-secrets.io/v1beta1
|
|
26
|
+
kind: ExternalSecret
|
|
27
|
+
spec:
|
|
28
|
+
refreshInterval: 1h
|
|
29
|
+
secretStoreRef: { kind: ClusterSecretStore, name: aws-secretsmanager }
|
|
30
|
+
data:
|
|
31
|
+
- secretKey: DATABASE_URL
|
|
32
|
+
remoteRef: { key: prod/api/database, property: connection_string }
|
|
33
|
+
- secretKey: STRIPE_SECRET_KEY
|
|
34
|
+
remoteRef: { key: prod/api/stripe, property: secret_key }
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Rotation Checklist
|
|
38
|
+
|
|
39
|
+
- [ ] New secret created, old secret still active
|
|
40
|
+
- [ ] Service updated to accept both (dual-read window)
|
|
41
|
+
- [ ] New secret deployed and verified
|
|
42
|
+
- [ ] Old secret revoked
|
|
43
|
+
- [ ] Rotation documented (next rotation: +90 days)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Skill: Terraform Patterns
|
|
2
|
+
|
|
3
|
+
## When to load
|
|
4
|
+
|
|
5
|
+
When writing new Terraform, reviewing IaC PRs, designing module structure, or debugging plan/apply failures.
|
|
6
|
+
|
|
7
|
+
## Module Structure
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
terraform/
|
|
11
|
+
├── modules/
|
|
12
|
+
│ ├── vpc/
|
|
13
|
+
│ ├── eks-cluster/
|
|
14
|
+
│ ├── rds-postgres/
|
|
15
|
+
│ └── static-site/
|
|
16
|
+
└── environments/
|
|
17
|
+
├── staging/
|
|
18
|
+
│ ├── main.tf
|
|
19
|
+
│ ├── variables.tf
|
|
20
|
+
│ └── terraform.tfvars
|
|
21
|
+
└── production/
|
|
22
|
+
├── main.tf
|
|
23
|
+
├── variables.tf
|
|
24
|
+
└── terraform.tfvars
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Rule**: Modules must be generic. Environment-specific values live in `tfvars`, never hardcoded in modules.
|
|
28
|
+
|
|
29
|
+
## Resource Naming
|
|
30
|
+
|
|
31
|
+
```hcl
|
|
32
|
+
resource "aws_s3_bucket" "this" {
|
|
33
|
+
bucket = "${var.project}-${var.environment}-assets-${random_id.suffix.hex}"
|
|
34
|
+
tags = merge(var.common_tags, { Name = "${var.project}-${var.environment}-assets" })
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Remote State (Mandatory)
|
|
39
|
+
|
|
40
|
+
```hcl
|
|
41
|
+
terraform {
|
|
42
|
+
backend "s3" {
|
|
43
|
+
bucket = "my-company-terraform-state"
|
|
44
|
+
key = "${var.project}/${var.environment}/terraform.tfstate"
|
|
45
|
+
region = "us-east-1"
|
|
46
|
+
encrypt = true
|
|
47
|
+
kms_key_id = "arn:aws:kms:us-east-1:123456789:key/..."
|
|
48
|
+
dynamodb_table = "terraform-state-lock"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## IAM Least Privilege
|
|
54
|
+
|
|
55
|
+
```hcl
|
|
56
|
+
# ✅ Scoped policy
|
|
57
|
+
resource "aws_iam_policy" "app_s3_read" {
|
|
58
|
+
policy = jsonencode({
|
|
59
|
+
Statement = [{
|
|
60
|
+
Effect = "Allow"
|
|
61
|
+
Action = ["s3:GetObject", "s3:ListBucket"]
|
|
62
|
+
Resource = [aws_s3_bucket.assets.arn, "${aws_s3_bucket.assets.arn}/*"]
|
|
63
|
+
}]
|
|
64
|
+
})
|
|
65
|
+
}
|
|
66
|
+
# ❌ Never: Action = ["s3:*"], Resource = ["*"]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Anti-Patterns
|
|
70
|
+
|
|
71
|
+
| Anti-pattern | Fix |
|
|
72
|
+
|:---|:---|
|
|
73
|
+
| `count` for module variants | Use `for_each` with meaningful keys |
|
|
74
|
+
| Hardcoded AMI IDs | Use `data "aws_ami"` with filters |
|
|
75
|
+
| `terraform_remote_state` across all envs | Use SSM Parameter Store for cross-stack values |
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cost-audit
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /cost-audit
|
|
5
|
+
description: Analyze cloud spend, identify waste, and generate actionable optimization recommendations with Terraform snippets.
|
|
6
|
+
inputs:
|
|
7
|
+
- audit_period
|
|
8
|
+
- account_scope
|
|
9
|
+
outputs:
|
|
10
|
+
- cost_report
|
|
11
|
+
- optimization_recommendations
|
|
12
|
+
roles:
|
|
13
|
+
- qa
|
|
14
|
+
- team-lead
|
|
15
|
+
execution:
|
|
16
|
+
initiator: qa
|
|
17
|
+
related-rules:
|
|
18
|
+
- cost-governance.md
|
|
19
|
+
- immutability.md
|
|
20
|
+
uses-skills:
|
|
21
|
+
- terraform-patterns
|
|
22
|
+
- observability-setup
|
|
23
|
+
quality-gates:
|
|
24
|
+
- all waste categories checked (EBS, EC2, ELB, S3, RDS)
|
|
25
|
+
- recommendations include specific resource IDs and estimated savings
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
|
|
30
|
+
### 1. Fetch Billing Data — `@qa`
|
|
31
|
+
- **Input:** audit period, account scope
|
|
32
|
+
- **Actions:** query AWS Cost Explorer for target period; group by: service, environment tag, team tag
|
|
33
|
+
- **Output:** billing data grouped by service and tag
|
|
34
|
+
- **Done when:** data fetched; groupings confirmed
|
|
35
|
+
|
|
36
|
+
### 2. Analyze Spend Patterns — `@qa`
|
|
37
|
+
- **Input:** billing data
|
|
38
|
+
- **Actions:** compare to same period last month; flag services with > 20% month-over-month increase
|
|
39
|
+
- **Output:** spend pattern analysis; anomalies flagged
|
|
40
|
+
- **Done when:** anomalies identified
|
|
41
|
+
|
|
42
|
+
### 3. Detect Waste — `@qa`
|
|
43
|
+
- **Input:** billing data + resource inventory
|
|
44
|
+
- **Actions:** check for: unattached EBS volumes (> 7 days); stopped EC2 instances with EBS; idle load balancers (< 1 req/min for 7 days); S3 buckets without Intelligent Tiering (> 10 GB); over-provisioned RDS (CPU < 10% for 30 days)
|
|
45
|
+
- **Output:** waste list with resource IDs and current monthly cost
|
|
46
|
+
- **Done when:** all waste categories checked
|
|
47
|
+
|
|
48
|
+
### 4. Generate Recommendations — `@team-lead`
|
|
49
|
+
- **Input:** waste list + anomalies
|
|
50
|
+
- **Actions:** per waste item: resource ID, current monthly cost, recommended action, estimated savings, Terraform snippet for the fix; prioritize by savings impact
|
|
51
|
+
- **Output:** prioritized recommendation list with Terraform snippets
|
|
52
|
+
- **Done when:** all waste items have actionable recommendations
|
|
53
|
+
|
|
54
|
+
### 5. Report — `@team-lead`
|
|
55
|
+
- **Input:** analysis + recommendations
|
|
56
|
+
- **Actions:** produce `cost_report.md`: executive summary (total spend vs. budget vs. last month), total identified savings opportunity, full recommendation list; share with engineering leads
|
|
57
|
+
- **Output:** `cost_report.md`
|
|
58
|
+
- **Done when:** report shared; owners assigned for top recommendations
|
|
59
|
+
|
|
60
|
+
## Exit
|
|
61
|
+
Published report + owners assigned for top recommendations = audit complete.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deploy-production
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /deploy-production
|
|
5
|
+
description: Execute a gated, observable production deployment with progressive rollout and automatic rollback on SLO breach.
|
|
6
|
+
inputs:
|
|
7
|
+
- version
|
|
8
|
+
- deployment_strategy
|
|
9
|
+
outputs:
|
|
10
|
+
- deployed_version
|
|
11
|
+
- deployment_report
|
|
12
|
+
roles:
|
|
13
|
+
- team-lead
|
|
14
|
+
- developer
|
|
15
|
+
- qa
|
|
16
|
+
execution:
|
|
17
|
+
initiator: team-lead
|
|
18
|
+
related-rules:
|
|
19
|
+
- reliability.md
|
|
20
|
+
- security-posture.md
|
|
21
|
+
- immutability.md
|
|
22
|
+
uses-skills:
|
|
23
|
+
- ci-cd-pipelines
|
|
24
|
+
- observability-setup
|
|
25
|
+
quality-gates:
|
|
26
|
+
- no active P0/P1 incidents before deploy starts
|
|
27
|
+
- canary passes error rate and latency SLOs
|
|
28
|
+
- smoke tests pass against production post-deploy
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Steps
|
|
32
|
+
|
|
33
|
+
### 1. Pre-flight — `@team-lead`
|
|
34
|
+
- **Input:** version tag
|
|
35
|
+
- **Actions:** confirm version tag exists and CI passed; verify staging is healthy with same version; check active incidents — HALT if P0/P1 open; post to `#deployments`: "Deploying <version> to production"
|
|
36
|
+
- **Output:** pre-flight sign-off
|
|
37
|
+
- **Done when:** all checks pass; team notified
|
|
38
|
+
|
|
39
|
+
### 2. Canary (10% traffic) — `@developer`
|
|
40
|
+
- **Input:** pre-flight sign-off
|
|
41
|
+
- **Actions:** deploy new image to canary pod group; monitor 5 minutes:
|
|
42
|
+
- error rate delta > 0.5% → AUTO-ROLLBACK
|
|
43
|
+
- p99 latency delta > 500ms → AUTO-ROLLBACK
|
|
44
|
+
- pod crash loops → AUTO-ROLLBACK
|
|
45
|
+
- **Output:** canary health metrics
|
|
46
|
+
- **Done when:** canary stable for 5 minutes
|
|
47
|
+
|
|
48
|
+
### 3. Progressive Rollout — `@developer`
|
|
49
|
+
- **Input:** healthy canary
|
|
50
|
+
- **Actions:** 25% → wait 2 min → 50% → wait 2 min → 100%; continue SLO monitoring at each step; rollback if any threshold breached
|
|
51
|
+
- **Output:** 100% traffic on new version
|
|
52
|
+
- **Done when:** full rollout complete with no SLO breaches
|
|
53
|
+
|
|
54
|
+
### 4. Post-Deploy Validation — `@qa`
|
|
55
|
+
- **Input:** fully deployed version
|
|
56
|
+
- **Actions:** run smoke test suite against production; verify key business metrics not degraded > 10%; confirm monitoring dashboards reflect new version baseline
|
|
57
|
+
- **Output:** smoke test results; metric comparison
|
|
58
|
+
- **Done when:** all smoke tests pass; metrics stable
|
|
59
|
+
|
|
60
|
+
### 5. Complete — `@pm`
|
|
61
|
+
- **Input:** validated deployment
|
|
62
|
+
- **Actions:** post success to `#deployments` and status page; if rollback was triggered — create P1 incident, preserve logs, assign postmortem
|
|
63
|
+
- **Output:** `deployment_report.md`
|
|
64
|
+
- **Done when:** team and stakeholders informed
|
|
65
|
+
|
|
66
|
+
## Exit
|
|
67
|
+
Green smoke tests + stable metrics + deployment report = release complete.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: drift-check
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /drift-check
|
|
5
|
+
description: Detect and report differences between IaC definitions and actual cloud state, with optional auto-remediation.
|
|
6
|
+
inputs:
|
|
7
|
+
- target_environment
|
|
8
|
+
- auto_fix
|
|
9
|
+
outputs:
|
|
10
|
+
- drift_report
|
|
11
|
+
- remediation_issues
|
|
12
|
+
roles:
|
|
13
|
+
- qa
|
|
14
|
+
- team-lead
|
|
15
|
+
- developer
|
|
16
|
+
execution:
|
|
17
|
+
initiator: qa
|
|
18
|
+
related-rules:
|
|
19
|
+
- immutability.md
|
|
20
|
+
- security-posture.md
|
|
21
|
+
uses-skills:
|
|
22
|
+
- terraform-patterns
|
|
23
|
+
quality-gates:
|
|
24
|
+
- Category D drift (unexpected destroy) pages on-call immediately
|
|
25
|
+
- auto-fix applies only Category A (tag-only) drift
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
|
|
30
|
+
### 1. Fetch Live State — `@qa`
|
|
31
|
+
- **Input:** target environment
|
|
32
|
+
- **Actions:** `terraform refresh` for target environment; ensure state backend is up to date
|
|
33
|
+
- **Output:** refreshed state
|
|
34
|
+
- **Done when:** state reflects current cloud reality
|
|
35
|
+
|
|
36
|
+
### 2. Compute Diff — `@qa`
|
|
37
|
+
- **Input:** refreshed state
|
|
38
|
+
- **Actions:** `terraform plan -detailed-exitcode`; exit code 2 = drift detected; capture full diff output
|
|
39
|
+
- **Output:** diff report
|
|
40
|
+
- **Done when:** drift computed; exit code recorded
|
|
41
|
+
|
|
42
|
+
### 3. Classify Drift — `@team-lead`
|
|
43
|
+
- **Input:** diff report
|
|
44
|
+
- **Actions:** A: tag-only drift → auto-fixable, low risk; B: config drift → review required; C: missing resource (created manually) → investigate origin; D: unexpected destroy → CRITICAL, page on-call immediately
|
|
45
|
+
- **Output:** drift classification per item
|
|
46
|
+
- **Done when:** all drift items classified
|
|
47
|
+
|
|
48
|
+
### 4. Report — `@team-lead`
|
|
49
|
+
- **Input:** classified drift
|
|
50
|
+
- **Actions:** post summary to Slack `#infra-alerts`; Category D → page on-call immediately, do not wait
|
|
51
|
+
- **Output:** Slack notification; on-call paged if D
|
|
52
|
+
- **Done when:** team informed
|
|
53
|
+
|
|
54
|
+
### 5. Remediate — `@developer` (if `--fix` flag)
|
|
55
|
+
- **Input:** classified drift
|
|
56
|
+
- **Actions:** auto-apply Category A only: `terraform apply -target=<resource>`; for B/C/D: create GitHub issue, assign to IaC owner; do NOT auto-apply B/C/D
|
|
57
|
+
- **Output:** Category A drift resolved; issues created for B/C/D
|
|
58
|
+
- **Done when:** Category A applied; B/C/D tracked in issues
|
|
59
|
+
|
|
60
|
+
## Exit
|
|
61
|
+
Drift report published + Category A resolved (if --fix) + B/C/D tracked = drift check complete.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: incident-response
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /incident-response
|
|
5
|
+
description: Guide on-call engineer through structured incident response — triage, mitigation, and postmortem.
|
|
6
|
+
inputs:
|
|
7
|
+
- severity
|
|
8
|
+
- service
|
|
9
|
+
outputs:
|
|
10
|
+
- resolved_incident
|
|
11
|
+
- postmortem_draft
|
|
12
|
+
roles:
|
|
13
|
+
- team-lead
|
|
14
|
+
- developer
|
|
15
|
+
- qa
|
|
16
|
+
execution:
|
|
17
|
+
initiator: team-lead
|
|
18
|
+
related-rules:
|
|
19
|
+
- reliability.md
|
|
20
|
+
- security-posture.md
|
|
21
|
+
uses-skills:
|
|
22
|
+
- incident-response
|
|
23
|
+
- observability-setup
|
|
24
|
+
quality-gates:
|
|
25
|
+
- incident channel created within 5 minutes of P0/P1 alert
|
|
26
|
+
- mitigation attempted per runbook before ad-hoc debugging
|
|
27
|
+
- postmortem scheduled within 48 hours
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Steps
|
|
31
|
+
|
|
32
|
+
### 1. Triage — `@team-lead`
|
|
33
|
+
- **Input:** incident alert, severity
|
|
34
|
+
- **Actions:** fetch last 30 min of metrics for named service; check recent deployments (last 2 hours); identify correlated alerts; confirm severity classification
|
|
35
|
+
- **Output:** severity confirmed; initial impact summary
|
|
36
|
+
- **Done when:** impact is understood; owner assigned
|
|
37
|
+
|
|
38
|
+
### 2. Establish Incident Channel — `@team-lead`
|
|
39
|
+
- **Input:** confirmed severity
|
|
40
|
+
- **Actions:** create `#incident-YYYY-MM-DD-<service>` Slack channel; post initial summary: what's broken, impact, timeline, current hypothesis
|
|
41
|
+
- **Output:** incident channel active; team assembled
|
|
42
|
+
- **Done when:** all relevant responders in channel
|
|
43
|
+
|
|
44
|
+
### 3. Generate Hypothesis List — `@team-lead` + `@developer`
|
|
45
|
+
- **Input:** metrics + recent deployment history
|
|
46
|
+
- **Actions:** surface top 3 most likely causes: recent deployment? → test rollback hypothesis; DB connection errors? → check pool exhaustion runbook; 5xx spike? → check upstream dependencies
|
|
47
|
+
- **Output:** prioritized hypothesis list with runbook links
|
|
48
|
+
- **Done when:** top hypothesis identified; runbook commands ready
|
|
49
|
+
|
|
50
|
+
### 4. Execute Mitigation — `@developer`
|
|
51
|
+
- **Input:** prioritized hypothesis + runbook
|
|
52
|
+
- **Actions:** per hypothesis (most likely first): provide exact kubectl / aws / psql commands; execute; monitor 2 minutes; if metrics improve → STABILIZE; else → next hypothesis
|
|
53
|
+
- **Output:** metrics stabilizing or next hypothesis attempted
|
|
54
|
+
- **Done when:** services healthy; error rate returned to baseline
|
|
55
|
+
|
|
56
|
+
### 5. Draft Postmortem — `@team-lead`
|
|
57
|
+
- **Input:** resolved incident + timeline
|
|
58
|
+
- **Actions:** auto-generate postmortem template with timeline from monitoring data; flag gaps requiring human input; schedule postmortem review within 48 hours
|
|
59
|
+
- **Output:** `postmortem_draft.md`
|
|
60
|
+
- **Done when:** draft complete; meeting scheduled
|
|
61
|
+
|
|
62
|
+
### 6. Communicate Resolution — `@pm`
|
|
63
|
+
- **Input:** resolved incident
|
|
64
|
+
- **Actions:** post resolution to `#deployments` and status page with impact summary and next steps
|
|
65
|
+
- **Output:** stakeholders informed; status page updated
|
|
66
|
+
- **Done when:** all affected parties notified
|
|
67
|
+
|
|
68
|
+
## Exit
|
|
69
|
+
Services healthy + postmortem scheduled + stakeholders notified = incident resolved.
|