@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,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: onboard-repo
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /onboard-repo
|
|
5
|
+
description: Set up CI/CD pipeline for a new repository — from zero to production-grade pipeline with quality gates and deployment automation.
|
|
6
|
+
inputs:
|
|
7
|
+
- repo_name
|
|
8
|
+
- language/framework
|
|
9
|
+
- ci_platform (github-actions|gitlab-ci)
|
|
10
|
+
- deploy_target (kubernetes|vm)
|
|
11
|
+
outputs:
|
|
12
|
+
- pipeline_config
|
|
13
|
+
- first_successful_run
|
|
14
|
+
roles:
|
|
15
|
+
- devops-engineer
|
|
16
|
+
- developer
|
|
17
|
+
execution:
|
|
18
|
+
initiator: developer
|
|
19
|
+
related-rules:
|
|
20
|
+
- pipeline-standards.md
|
|
21
|
+
- quality-gates.md
|
|
22
|
+
- supply-chain-security.md
|
|
23
|
+
uses-skills:
|
|
24
|
+
- github-actions-patterns
|
|
25
|
+
- gitlab-ci-patterns
|
|
26
|
+
- pipeline-security
|
|
27
|
+
quality-gates:
|
|
28
|
+
- pipeline runs green on first PR
|
|
29
|
+
- all mandatory stages present
|
|
30
|
+
- no hardcoded secrets in pipeline config
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Steps
|
|
34
|
+
|
|
35
|
+
### 1. Assess & Plan — `@devops-engineer`
|
|
36
|
+
- **Actions:**
|
|
37
|
+
- Confirm language, build tool, test framework
|
|
38
|
+
- Identify external dependencies (registry, cloud, K8s cluster)
|
|
39
|
+
- Choose CI platform (GitHub Actions vs GitLab CI) based on repo location
|
|
40
|
+
- Identify secrets needed: registry creds, kubeconfig, cloud role
|
|
41
|
+
- **Output:** pipeline design doc (stages, auth method, environments)
|
|
42
|
+
- **Done when:** design approved by developer and team-lead
|
|
43
|
+
|
|
44
|
+
### 2. Secrets & Environments Setup — `@devops-engineer`
|
|
45
|
+
- **Actions:**
|
|
46
|
+
- Create OIDC cloud role (preferred) or minimal-privilege service account
|
|
47
|
+
- Configure CI secrets: registry login, kubeconfig (base64), vault token
|
|
48
|
+
- Create environment definitions (staging, production) with protection rules
|
|
49
|
+
- **Done when:** secrets configured; OIDC trust policy in place
|
|
50
|
+
|
|
51
|
+
### 3. Write Pipeline Config — `@devops-engineer`
|
|
52
|
+
- **Actions:**
|
|
53
|
+
- Create `.github/workflows/ci.yml` or `.gitlab-ci.yml`
|
|
54
|
+
- Implement all mandatory stages (lint → test → build → scan → deploy)
|
|
55
|
+
- Add caching for dependencies (pip/npm/go modules)
|
|
56
|
+
- Add image signing (cosign) and SBOM generation
|
|
57
|
+
- Configure coverage reporting and test result upload
|
|
58
|
+
- **Output:** pipeline config committed to feature branch
|
|
59
|
+
- **Done when:** `yamllint` passes; no syntax errors
|
|
60
|
+
|
|
61
|
+
### 4. First Run & Debug — `@devops-engineer` + `@developer`
|
|
62
|
+
- **Actions:**
|
|
63
|
+
- Open PR to trigger pipeline
|
|
64
|
+
- Fix any failing stages (missing deps, wrong paths, auth issues)
|
|
65
|
+
- Verify each stage output matches expectations
|
|
66
|
+
- **Done when:** all stages green on PR; deployment to staging succeeds
|
|
67
|
+
|
|
68
|
+
### 5. Document — `@devops-engineer`
|
|
69
|
+
- Write `docs/ci-cd.md`: stages, how to run locally, how to add a new secret
|
|
70
|
+
- **Done when:** documentation committed
|
|
71
|
+
|
|
72
|
+
## Exit
|
|
73
|
+
Green pipeline + staging deploy + documentation = repo onboarded.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pipeline-debug
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /pipeline-debug
|
|
5
|
+
description: Diagnose and fix a failing CI/CD pipeline — from error classification to root cause and verified fix.
|
|
6
|
+
inputs:
|
|
7
|
+
- pipeline_url_or_job_id
|
|
8
|
+
- error_description
|
|
9
|
+
outputs:
|
|
10
|
+
- root_cause_summary
|
|
11
|
+
- pipeline_fix
|
|
12
|
+
roles:
|
|
13
|
+
- devops-engineer
|
|
14
|
+
execution:
|
|
15
|
+
initiator: developer
|
|
16
|
+
related-rules:
|
|
17
|
+
- pipeline-standards.md
|
|
18
|
+
uses-skills:
|
|
19
|
+
- github-actions-patterns
|
|
20
|
+
- gitlab-ci-patterns
|
|
21
|
+
quality-gates:
|
|
22
|
+
- pipeline passes on fixed branch before merging fix
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Steps
|
|
26
|
+
|
|
27
|
+
### 1. Classify Failure — `@devops-engineer`
|
|
28
|
+
- Fetch full logs; identify failing stage and step
|
|
29
|
+
- Categories: dependency install failure / test failure / auth failure / build failure / deploy timeout
|
|
30
|
+
- Check: is this a flaky test or a real regression? (re-run once to distinguish)
|
|
31
|
+
- **Done when:** failure mode and stage identified
|
|
32
|
+
|
|
33
|
+
### 2. Diagnose by Category
|
|
34
|
+
|
|
35
|
+
**Auth failure (registry, cloud, K8s):**
|
|
36
|
+
- Check secret expiry / OIDC trust policy / runner network access
|
|
37
|
+
- `kubectl auth can-i` / `aws sts get-caller-identity` in job debug step
|
|
38
|
+
|
|
39
|
+
**Dependency install failure:**
|
|
40
|
+
- Cache key stale? Lock file changed? Private registry down?
|
|
41
|
+
- Add `--verbose` flag, check resolver output
|
|
42
|
+
|
|
43
|
+
**Test failure:**
|
|
44
|
+
- Run tests locally with same env vars
|
|
45
|
+
- Check for env-dependent tests (timezone, locale, missing fixture)
|
|
46
|
+
|
|
47
|
+
**Build/Docker failure:**
|
|
48
|
+
- Check base image digest changed (pin to digest)
|
|
49
|
+
- Layer cache invalidation causing unexpected rebuild
|
|
50
|
+
|
|
51
|
+
**Deploy timeout:**
|
|
52
|
+
- Check `helm status` / `kubectl rollout status` in target namespace
|
|
53
|
+
- Look at pod events for the deployment being rolled out
|
|
54
|
+
|
|
55
|
+
### 3. Fix & Verify — `@devops-engineer`
|
|
56
|
+
- Apply fix on feature branch; push to trigger CI
|
|
57
|
+
- Confirm the previously failing stage now passes
|
|
58
|
+
- No unrelated regressions in other stages
|
|
59
|
+
- **Done when:** full pipeline green on fix branch
|
|
60
|
+
|
|
61
|
+
### 4. Merge & Monitor — `@devops-engineer`
|
|
62
|
+
- Merge fix; confirm pipeline green on main
|
|
63
|
+
- If flaky test: add to quarantine list; file follow-up ticket with `flaky-test` label
|
|
64
|
+
|
|
65
|
+
## Exit
|
|
66
|
+
Pipeline green + root cause documented in ticket = debug complete.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release-pipeline
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /release-pipeline
|
|
5
|
+
description: Run a full production release — version tagging, changelog generation, image signing, staging validation, canary deploy to production.
|
|
6
|
+
inputs:
|
|
7
|
+
- version (semver: v1.2.3)
|
|
8
|
+
- release_notes (optional)
|
|
9
|
+
outputs:
|
|
10
|
+
- published_release
|
|
11
|
+
- deployed_version
|
|
12
|
+
- deployment_report
|
|
13
|
+
roles:
|
|
14
|
+
- devops-engineer
|
|
15
|
+
- developer
|
|
16
|
+
- team-lead
|
|
17
|
+
- pm
|
|
18
|
+
execution:
|
|
19
|
+
initiator: developer
|
|
20
|
+
related-rules:
|
|
21
|
+
- pipeline-standards.md
|
|
22
|
+
- quality-gates.md
|
|
23
|
+
- supply-chain-security.md
|
|
24
|
+
uses-skills:
|
|
25
|
+
- github-actions-patterns
|
|
26
|
+
- artifact-management
|
|
27
|
+
- pipeline-security
|
|
28
|
+
quality-gates:
|
|
29
|
+
- all CI gates pass on release commit
|
|
30
|
+
- image signed and SBOM attached before deploy
|
|
31
|
+
- staging deploy healthy ≥ 15 min before production gate
|
|
32
|
+
- manual approval from team-lead for production
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Steps
|
|
36
|
+
|
|
37
|
+
### 1. Pre-Release Checks — `@devops-engineer` + `@team-lead`
|
|
38
|
+
- **Actions:**
|
|
39
|
+
- Confirm no active P0/P1 incidents
|
|
40
|
+
- Verify staging is healthy and running the release candidate
|
|
41
|
+
- Run final security scan on release image: `trivy image <image>:<version>`
|
|
42
|
+
- Check dependency review — no new Critical/High CVEs introduced
|
|
43
|
+
- Confirm changelog complete and reviewed
|
|
44
|
+
- **Done when:** all checks green; team-lead approves release to proceed
|
|
45
|
+
|
|
46
|
+
### 2. Tag Release — `@developer`
|
|
47
|
+
- **Actions:**
|
|
48
|
+
```bash
|
|
49
|
+
# Create annotated git tag
|
|
50
|
+
git tag -a v${VERSION} -m "Release v${VERSION}: ${RELEASE_NOTES}"
|
|
51
|
+
git push origin v${VERSION}
|
|
52
|
+
```
|
|
53
|
+
- **Output:** git tag triggers release pipeline in CI
|
|
54
|
+
- **Done when:** CI pipeline starts on the tag event
|
|
55
|
+
|
|
56
|
+
### 3. CI Release Pipeline (automated) — CI system
|
|
57
|
+
- **Stages:**
|
|
58
|
+
1. `validate` — lint + test suite must pass on tagged commit
|
|
59
|
+
2. `build` — Docker image tagged with semver + SHA digest
|
|
60
|
+
3. `sign` — `cosign sign` + `syft` SBOM generation + `cosign attach sbom`
|
|
61
|
+
4. `scan` — Trivy image scan on the exact release image; block on Critical/High
|
|
62
|
+
5. `publish` — push to releases registry; create GitHub Release with changelog
|
|
63
|
+
- **Done when:** CI pipeline green; release published to registry
|
|
64
|
+
|
|
65
|
+
### 4. Deploy Staging — `@devops-engineer`
|
|
66
|
+
```bash
|
|
67
|
+
helm upgrade --install order-service charts/order-service \
|
|
68
|
+
--set image.tag=v${VERSION} \
|
|
69
|
+
--namespace staging \
|
|
70
|
+
--atomic --timeout 5m
|
|
71
|
+
```
|
|
72
|
+
- Monitor for 15 minutes: error rate, p99 latency, pod restarts
|
|
73
|
+
- Run automated smoke test suite against staging
|
|
74
|
+
- **Done when:** 15 min stable; smoke tests pass
|
|
75
|
+
|
|
76
|
+
### 5. Production Gate — `@team-lead` (manual approval)
|
|
77
|
+
- Review staging metrics: confirm no anomalies
|
|
78
|
+
- Check error budget: confirm budget not exhausted
|
|
79
|
+
- Approve in CI platform (GitHub Environment approval / GitLab manual job)
|
|
80
|
+
- **Done when:** approval recorded
|
|
81
|
+
|
|
82
|
+
### 6. Deploy Production (canary) — `@devops-engineer`
|
|
83
|
+
```bash
|
|
84
|
+
# Canary: 10% traffic to new version
|
|
85
|
+
helm upgrade --install order-service charts/order-service \
|
|
86
|
+
--set image.tag=v${VERSION} \
|
|
87
|
+
--set canary.enabled=true \
|
|
88
|
+
--set canary.weight=10 \
|
|
89
|
+
--namespace production \
|
|
90
|
+
--atomic --timeout 5m
|
|
91
|
+
|
|
92
|
+
# Watch for 5 minutes
|
|
93
|
+
# If SLO breach → auto-rollback
|
|
94
|
+
# If healthy → progress to 100%
|
|
95
|
+
helm upgrade order-service charts/order-service \
|
|
96
|
+
--set image.tag=v${VERSION} \
|
|
97
|
+
--set canary.enabled=false \
|
|
98
|
+
--namespace production \
|
|
99
|
+
--atomic --timeout 5m
|
|
100
|
+
```
|
|
101
|
+
- **Done when:** 100% traffic on new version; no SLO breaches
|
|
102
|
+
|
|
103
|
+
### 7. Post-Deploy Validation — `@qa` + `@pm`
|
|
104
|
+
- Run production smoke tests
|
|
105
|
+
- Verify key business metrics not degraded
|
|
106
|
+
- Announce release in #deployments channel
|
|
107
|
+
|
|
108
|
+
### Rollback (if needed at any step)
|
|
109
|
+
```bash
|
|
110
|
+
helm rollback order-service -n production
|
|
111
|
+
# or: deploy previous version tag explicitly
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Exit
|
|
115
|
+
Production 100% + smoke tests pass + team notified + deployment report = release complete.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Database Operations — guidance index
|
|
2
|
+
|
|
3
|
+
## What this area covers
|
|
4
|
+
|
|
5
|
+
Operational database management: backup verification, performance tuning, migration safety, incident response, PostgreSQL and Redis operations. Focus is on production database reliability, not application-level ORM usage.
|
|
6
|
+
|
|
7
|
+
## Guidance chain
|
|
8
|
+
|
|
9
|
+
1. Project `.agent/` baseline
|
|
10
|
+
2. `database-ops/rules/*` — load all
|
|
11
|
+
3. `database-ops/skills/*/SKILL.md` — load only the skill matching the current task
|
|
12
|
+
4. `database-ops/workflows/*` — load the workflow matching the triggered command
|
|
13
|
+
|
|
14
|
+
## Cross-cutting constraints
|
|
15
|
+
|
|
16
|
+
- **Backups are not optional** — every production database has a verified backup and a tested restore procedure.
|
|
17
|
+
- **Migrations are backward-compatible** — no breaking schema change without a multi-step rollout plan.
|
|
18
|
+
- **No production access without audit log** — all direct DB sessions in production are logged and justified.
|
|
19
|
+
- **Verify before restore** — backup integrity is tested on a schedule; untested backups are treated as non-existent.
|
|
20
|
+
|
|
21
|
+
## Spec map
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
database-ops/
|
|
25
|
+
├── rules/
|
|
26
|
+
│ ├── backup-policy.md ← frequency, retention, offsite requirements
|
|
27
|
+
│ ├── access-control.md ← least-privilege roles, audit logging, break-glass
|
|
28
|
+
│ └── migration-runbook.md ← pre/post checks, rollback gates, zero-downtime patterns
|
|
29
|
+
├── skills/
|
|
30
|
+
│ ├── backup-restore/SKILL.md ← pg_dump, WAL archiving, PITR, restore drills
|
|
31
|
+
│ ├── db-performance/SKILL.md ← EXPLAIN ANALYZE, index design, vacuum, slow query
|
|
32
|
+
│ ├── migration-safety/SKILL.md ← expand/contract pattern, lock avoidance, online DDL
|
|
33
|
+
│ ├── postgres-operations/SKILL.md ← replication, failover, extensions, pg_stat_*
|
|
34
|
+
│ └── redis-operations/SKILL.md ← persistence modes, eviction, cluster, keyspace audit
|
|
35
|
+
├── workflows/
|
|
36
|
+
│ ├── backup-verify.md ← /backup-verify
|
|
37
|
+
│ └── db-incident.md ← /db-incident
|
|
38
|
+
└── prompts/
|
|
39
|
+
└── *.md
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Discovery patterns
|
|
43
|
+
|
|
44
|
+
- `rules/*.md`
|
|
45
|
+
- `skills/*/SKILL.md`
|
|
46
|
+
- `workflows/*.md`
|
|
47
|
+
- `prompts/*.md`
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: backup-verify
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/backup-verify`
|
|
6
|
+
|
|
7
|
+
Use when: verifying database backup integrity or practicing a PITR restore.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Weekly backup verification (automated)
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/backup-verify
|
|
16
|
+
|
|
17
|
+
Database: postgres-primary / Backup tool: pgBackRest / Stanza: main
|
|
18
|
+
Task: weekly automated backup verification
|
|
19
|
+
Steps:
|
|
20
|
+
1. Check backup catalog: pgbackrest --stanza=main info
|
|
21
|
+
2. Verify latest full backup age < 24h
|
|
22
|
+
3. Perform restore test to isolated postgres instance (restore-test pod in K8s)
|
|
23
|
+
4. After restore: run integrity queries (row counts on 5 critical tables vs production)
|
|
24
|
+
5. Report result to #ops-monitoring Slack channel
|
|
25
|
+
6. If any step fails → alert on-call immediately (P1)
|
|
26
|
+
Expected runtime: < 30 min total
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**RU:**
|
|
30
|
+
```
|
|
31
|
+
/backup-verify
|
|
32
|
+
|
|
33
|
+
База данных: postgres-primary / Инструмент бэкапа: pgBackRest / Stanza: main
|
|
34
|
+
Задача: еженедельная автоматизированная верификация бэкапа
|
|
35
|
+
Шаги:
|
|
36
|
+
1. Проверить каталог бэкапов: pgbackrest --stanza=main info
|
|
37
|
+
2. Убедиться что возраст последнего полного бэкапа < 24ч
|
|
38
|
+
3. Выполнить тест восстановления в изолированный postgres instance (restore-test под в K8s)
|
|
39
|
+
4. После восстановления: проверочные запросы (количество строк в 5 критических таблицах vs production)
|
|
40
|
+
5. Отправить результат в Slack канал #ops-monitoring
|
|
41
|
+
6. Если любой шаг завершился неудачей → немедленный алерт on-call (P1)
|
|
42
|
+
Ожидаемое время выполнения: < 30 мин
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Example 2 — Emergency PITR after accidental DELETE
|
|
48
|
+
|
|
49
|
+
**EN:**
|
|
50
|
+
```
|
|
51
|
+
/backup-verify
|
|
52
|
+
|
|
53
|
+
Database: postgres-primary / DB: production_db
|
|
54
|
+
Incident: developer accidentally ran "DELETE FROM payments WHERE status='pending'" at 14:33 UTC
|
|
55
|
+
Deleted rows: ~12,000 payment records
|
|
56
|
+
Recovery target: 14:32 UTC (1 min before deletion)
|
|
57
|
+
Backup tool: pgBackRest / WAL archiving: enabled (to MinIO)
|
|
58
|
+
Procedure needed:
|
|
59
|
+
1. Identify correct recovery target timestamp
|
|
60
|
+
2. Restore to isolated instance at 14:32:00 UTC (PITR)
|
|
61
|
+
3. Extract deleted rows: SELECT * FROM payments WHERE status='pending'
|
|
62
|
+
4. Re-insert into production (NOT full restore — use surgical row recovery)
|
|
63
|
+
5. Verify row count matches pre-deletion state
|
|
64
|
+
6. Document as incident; follow up with safer DB access controls
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**RU:**
|
|
68
|
+
```
|
|
69
|
+
/backup-verify
|
|
70
|
+
|
|
71
|
+
База данных: postgres-primary / БД: production_db
|
|
72
|
+
Инцидент: разработчик случайно выполнил "DELETE FROM payments WHERE status='pending'" в 14:33 UTC
|
|
73
|
+
Удалённые строки: ~12,000 записей платежей
|
|
74
|
+
Цель восстановления: 14:32 UTC (за 1 мин до удаления)
|
|
75
|
+
Инструмент: pgBackRest / WAL архивирование: включено (в MinIO)
|
|
76
|
+
Необходимая процедура:
|
|
77
|
+
1. Определить правильную временную метку цели восстановления
|
|
78
|
+
2. Восстановить в изолированный instance в 14:32:00 UTC (PITR)
|
|
79
|
+
3. Извлечь удалённые строки: SELECT * FROM payments WHERE status='pending'
|
|
80
|
+
4. Повторно вставить в production (НЕ полное восстановление — хирургическое восстановление строк)
|
|
81
|
+
5. Убедиться что количество строк соответствует состоянию до удаления
|
|
82
|
+
6. Задокументировать как инцидент; устранить более безопасные контроли доступа к БД
|
|
83
|
+
```
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: db-incident
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/db-incident`
|
|
6
|
+
|
|
7
|
+
Use when: responding to a production database incident or high-risk operational change affecting performance, locks, or stateful data services.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Identify and fix slow queries
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/db-incident
|
|
16
|
+
|
|
17
|
+
Database: production_db / DB: order_db
|
|
18
|
+
Symptom: order-service p99 latency increased from 80ms to 450ms 3 days ago
|
|
19
|
+
Observation: CPU on postgres-primary up from 15% to 65% (Prometheus)
|
|
20
|
+
Available: pg_stat_statements extension enabled
|
|
21
|
+
Investigation:
|
|
22
|
+
1. Top-10 queries by total_time (pg_stat_statements, last reset: 3 days ago)
|
|
23
|
+
2. Check for: sequential scans on large tables, high rows_examined vs rows_returned ratio
|
|
24
|
+
3. EXPLAIN ANALYZE the top offender
|
|
25
|
+
4. Identify missing index (likely new query after code deploy)
|
|
26
|
+
5. Test index creation on staging first (measure latency improvement)
|
|
27
|
+
6. Apply CREATE INDEX CONCURRENTLY in production (verify no lock)
|
|
28
|
+
Output: slow query + EXPLAIN output + CREATE INDEX CONCURRENTLY statement
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**RU:**
|
|
32
|
+
```
|
|
33
|
+
/db-incident
|
|
34
|
+
|
|
35
|
+
База данных: production_db / БД: order_db
|
|
36
|
+
Симптом: p99 latency order-service вырос с 80мс до 450мс 3 дня назад
|
|
37
|
+
Наблюдение: CPU на postgres-primary вырос с 15% до 65% (Prometheus)
|
|
38
|
+
Доступно: расширение pg_stat_statements включено
|
|
39
|
+
Расследование:
|
|
40
|
+
1. Топ-10 запросов по total_time (pg_stat_statements, последний сброс: 3 дня назад)
|
|
41
|
+
2. Проверить: sequential scans на больших таблицах, высокое отношение rows_examined к rows_returned
|
|
42
|
+
3. EXPLAIN ANALYZE для главного виновника
|
|
43
|
+
4. Определить отсутствующий индекс (вероятно новый запрос после деплоя кода)
|
|
44
|
+
5. Протестировать создание индекса на staging сначала (измерить улучшение latency)
|
|
45
|
+
6. Применить CREATE INDEX CONCURRENTLY в production (убедиться в отсутствии блокировки)
|
|
46
|
+
Результат: медленный запрос + вывод EXPLAIN + оператор CREATE INDEX CONCURRENTLY
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Example 2 — Safe migration: add non-null column to large table
|
|
52
|
+
|
|
53
|
+
**EN:**
|
|
54
|
+
```
|
|
55
|
+
/db-incident
|
|
56
|
+
|
|
57
|
+
Database: production_db / Table: orders (85M rows)
|
|
58
|
+
Migration: add column processed_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
|
59
|
+
Problem: naive ALTER TABLE would lock 85M rows for minutes (unacceptable in production)
|
|
60
|
+
Required approach:
|
|
61
|
+
1. Estimate lock duration on staging with production-size data first
|
|
62
|
+
2. Use safe sequence: ADD COLUMN (nullable, no default) → backfill in batches of 10k → ADD NOT NULL constraint
|
|
63
|
+
3. Backfill script: Python with batched UPDATE + commit every 10k rows + sleep 50ms between batches
|
|
64
|
+
4. Estimate total backfill time: 85M / 10k per batch × ~100ms per batch ≈ ?
|
|
65
|
+
5. Final constraint: ALTER TABLE orders ALTER COLUMN processed_at SET NOT NULL (fast, no backfill needed if no NULLs)
|
|
66
|
+
6. Rollback: DROP COLUMN processed_at (fast even on large table)
|
|
67
|
+
Show: complete migration SQL + backfill Python script + timing estimate
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**RU:**
|
|
71
|
+
```
|
|
72
|
+
/db-incident
|
|
73
|
+
|
|
74
|
+
База данных: production_db / Таблица: orders (85М строк)
|
|
75
|
+
Миграция: добавить столбец processed_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
|
76
|
+
Проблема: наивный ALTER TABLE заблокирует 85М строк на минуты (недопустимо в production)
|
|
77
|
+
Необходимый подход:
|
|
78
|
+
1. Оценить продолжительность блокировки на staging с данными размером production сначала
|
|
79
|
+
2. Использовать безопасную последовательность: ADD COLUMN (nullable, без default) → backfill батчами по 10k → ADD NOT NULL constraint
|
|
80
|
+
3. Скрипт backfill: Python с батчевым UPDATE + коммит каждые 10k строк + sleep 50мс между батчами
|
|
81
|
+
4. Оценить общее время backfill: 85М / 10k на батч × ~100мс на батч ≈ ?
|
|
82
|
+
5. Финальный constraint: ALTER TABLE orders ALTER COLUMN processed_at SET NOT NULL (быстро, без backfill если нет NULL)
|
|
83
|
+
6. Откат: DROP COLUMN processed_at (быстро даже на большой таблице)
|
|
84
|
+
Показать: полный SQL миграции + Python скрипт backfill + оценка времени
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Example 3 — Redis memory pressure: eviction policy tuning
|
|
90
|
+
|
|
91
|
+
**EN:**
|
|
92
|
+
```
|
|
93
|
+
/db-incident
|
|
94
|
+
|
|
95
|
+
Redis setup: standalone Redis 7.2 (K8s StatefulSet), 2Gi maxmemory
|
|
96
|
+
Symptom: Redis hitting maxmemory; evicting keys needed for active sessions (data loss)
|
|
97
|
+
Current eviction policy: allkeys-lru (evicting ALL keys by LRU)
|
|
98
|
+
Use cases in this Redis instance:
|
|
99
|
+
- User sessions (must not evict, TTL 24h)
|
|
100
|
+
- Rate limiting counters (can evict, TTL 60s)
|
|
101
|
+
- Cache of DB query results (can evict, TTL 5m)
|
|
102
|
+
Solution needed:
|
|
103
|
+
1. Separate key namespaces: sessions:*, rate:*, cache:*
|
|
104
|
+
2. Change eviction to volatile-lru (only evict keys WITH TTL set)
|
|
105
|
+
3. Verify: sessions never have TTL (prevent eviction), cache/rate always have TTL
|
|
106
|
+
4. Add Redis memory monitoring: alert at 80% usage, 90% critical
|
|
107
|
+
5. Long term: split into 2 Redis instances (session store vs cache)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**RU:**
|
|
111
|
+
```
|
|
112
|
+
/db-incident
|
|
113
|
+
|
|
114
|
+
Redis конфигурация: standalone Redis 7.2 (K8s StatefulSet), 2Gi maxmemory
|
|
115
|
+
Симптом: Redis достигает maxmemory; вытесняет ключи нужные для активных сессий (потеря данных)
|
|
116
|
+
Текущая политика вытеснения: allkeys-lru (вытесняет ВСЕ ключи по LRU)
|
|
117
|
+
Use cases в этом Redis:
|
|
118
|
+
- Пользовательские сессии (нельзя вытеснять, TTL 24ч)
|
|
119
|
+
- Счётчики rate limiting (можно вытеснять, TTL 60с)
|
|
120
|
+
- Кэш результатов DB запросов (можно вытеснять, TTL 5м)
|
|
121
|
+
Необходимое решение:
|
|
122
|
+
1. Разделить пространства имён ключей: sessions:*, rate:*, cache:*
|
|
123
|
+
2. Изменить вытеснение на volatile-lru (вытеснять только ключи С установленным TTL)
|
|
124
|
+
3. Убедиться: sessions никогда не имеют TTL (предотвращение вытеснения), cache/rate всегда имеют TTL
|
|
125
|
+
4. Добавить мониторинг памяти Redis: алерт при 80% использовании, critical при 90%
|
|
126
|
+
5. Долгосрочно: разделить на 2 Redis инстанса (session store vs cache)
|
|
127
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Rule: Database Access Control
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — Database access follows least-privilege; no wildcard grants.
|
|
4
|
+
|
|
5
|
+
## Role Separation
|
|
6
|
+
|
|
7
|
+
| Role | Permissions | Who/what |
|
|
8
|
+
|:---|:---|:---|
|
|
9
|
+
| `app_<service>` | SELECT, INSERT, UPDATE, DELETE on owned tables | Application service |
|
|
10
|
+
| `readonly_<service>` | SELECT only | Reporting, analytics, support |
|
|
11
|
+
| `migration_<service>` | DDL (CREATE, ALTER, DROP) on owned schema | CI/CD migration runner (transient) |
|
|
12
|
+
| `superuser` | ALL | DBAs only; MFA required; session-logged |
|
|
13
|
+
|
|
14
|
+
## Rules
|
|
15
|
+
|
|
16
|
+
1. **Application role never has DDL permissions** — migrations run as a separate migration role.
|
|
17
|
+
2. **No shared passwords** — each service has its own credential in Vault/Secrets Manager.
|
|
18
|
+
3. **Connection pooling required** — all apps connect via PgBouncer (transaction mode); no direct K8s pod → PostgreSQL.
|
|
19
|
+
4. **Access log** — `pgaudit` extension enabled for all DDL and suspicious DML patterns.
|
|
20
|
+
5. **Public schema dropped** — `DROP SCHEMA public; CREATE SCHEMA <service>` — no default public schema exposure.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Rule: Database Backup Policy
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — Missing or unverified backups are a critical operational failure.
|
|
4
|
+
|
|
5
|
+
## Backup Requirements
|
|
6
|
+
|
|
7
|
+
1. **Continuous WAL archiving** — PostgreSQL WAL archived to object storage (S3/GCS/MinIO) for PITR.
|
|
8
|
+
2. **Daily full snapshots** — in addition to WAL archiving; retained per schedule below.
|
|
9
|
+
3. **Backup verification** — weekly restore test to isolated environment; result logged.
|
|
10
|
+
4. **Backup encryption** — all backups encrypted at rest (AES-256 or KMS).
|
|
11
|
+
|
|
12
|
+
## Retention Schedule
|
|
13
|
+
|
|
14
|
+
| Backup type | Retention |
|
|
15
|
+
|:---|:---|
|
|
16
|
+
| Hourly (WAL) | 7 days |
|
|
17
|
+
| Daily full | 30 days |
|
|
18
|
+
| Weekly full | 3 months |
|
|
19
|
+
| Monthly full | 1 year |
|
|
20
|
+
| Pre-migration snapshot | Until next major release |
|
|
21
|
+
|
|
22
|
+
## Recovery Objectives
|
|
23
|
+
|
|
24
|
+
| Tier | RTO | RPO |
|
|
25
|
+
|:---|:---|:---|
|
|
26
|
+
| Tier 1 (revenue-critical) | 30 min | 15 min (PITR) |
|
|
27
|
+
| Tier 2 (internal tools) | 4 hours | 1 hour |
|
|
28
|
+
|
|
29
|
+
## Monitoring
|
|
30
|
+
|
|
31
|
+
- Alert if no backup completed in last 26 hours.
|
|
32
|
+
- Alert if backup size deviates > 20% from rolling average (data loss or corruption indicator).
|
|
33
|
+
- Backup storage capacity alert at 70% full.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Rule: Production Migration Safety
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — Unsafe migrations cause data loss or production downtime.
|
|
4
|
+
|
|
5
|
+
## Safe Migration Principles
|
|
6
|
+
|
|
7
|
+
1. **Expand-and-Contract pattern** for breaking changes:
|
|
8
|
+
```
|
|
9
|
+
Phase 1 (expand): add new column/table; old code still works
|
|
10
|
+
Phase 2 (dual-write): code writes to both old and new; read from new
|
|
11
|
+
Phase 3 (migrate): backfill data from old to new
|
|
12
|
+
Phase 4 (contract): remove old column/table; code reads only from new
|
|
13
|
+
```
|
|
14
|
+
Never rename a column directly in production — use expand-and-contract.
|
|
15
|
+
|
|
16
|
+
2. **Backward compatibility required** — migration must not break the current version of the app.
|
|
17
|
+
Running migration before deploy means old code still runs against new schema.
|
|
18
|
+
|
|
19
|
+
3. **Test migration on staging with production-size data** — migration that takes 10s on 1K rows may take 30 min on 50M rows.
|
|
20
|
+
|
|
21
|
+
4. **Pre-migration backup required** — snapshot before every production migration.
|
|
22
|
+
|
|
23
|
+
5. **Lock-safe DDL** — prefer `CREATE INDEX CONCURRENTLY`; avoid `ALTER TABLE ... ADD COLUMN NOT NULL DEFAULT` on large tables (locks entire table).
|
|
24
|
+
|
|
25
|
+
## Migration Checklist
|
|
26
|
+
|
|
27
|
+
- [ ] Tested on staging with production row count (or estimated)
|
|
28
|
+
- [ ] Estimated execution time documented (seconds / minutes / hours)
|
|
29
|
+
- [ ] Pre-migration backup taken and verified
|
|
30
|
+
- [ ] Rollback SQL prepared and tested
|
|
31
|
+
- [ ] Maintenance window communicated if > 5 min impact
|
|
32
|
+
- [ ] Connection pool configured to handle migration lock wait
|