@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,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: slo-sli-design
|
|
3
|
+
type: skill
|
|
4
|
+
description: Define SLIs, SLOs, and error budgets; implement burn rate alerts; integrate with Prometheus.
|
|
5
|
+
related-rules:
|
|
6
|
+
- slo-policy.md
|
|
7
|
+
- error-budget-policy.md
|
|
8
|
+
allowed-tools: Read, Write, Edit
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Skill: SLO/SLI Design
|
|
12
|
+
|
|
13
|
+
> **Expertise:** SLI selection, SLO target setting, error budget calculation, burn rate alerting, Sloth/pyrra integration.
|
|
14
|
+
|
|
15
|
+
## When to load
|
|
16
|
+
|
|
17
|
+
When defining SLOs for a new service, setting up error budget tracking, or reviewing existing SLOs after an incident.
|
|
18
|
+
|
|
19
|
+
## SLI Selection Framework
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
Step 1: What does the user care about?
|
|
23
|
+
→ "The checkout completes successfully and quickly"
|
|
24
|
+
|
|
25
|
+
Step 2: What CAN we measure?
|
|
26
|
+
→ HTTP 2xx responses, p99 latency
|
|
27
|
+
|
|
28
|
+
Step 3: Define the SLI formula
|
|
29
|
+
→ Availability SLI: good_requests / total_requests
|
|
30
|
+
where good = status < 500 AND latency < 500ms
|
|
31
|
+
|
|
32
|
+
Step 4: Pick SLO target (start conservative, tighten later)
|
|
33
|
+
→ 99.5% (don't chase 99.99% without data — high budget wasted on caution)
|
|
34
|
+
|
|
35
|
+
Step 5: Calculate error budget
|
|
36
|
+
→ 100% - 99.5% = 0.5% over 28 days = 0.5% × 28 × 24 × 60 = 201.6 minutes
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Prometheus SLO Implementation (manual)
|
|
40
|
+
|
|
41
|
+
```yaml
|
|
42
|
+
# Recording rules for SLO tracking
|
|
43
|
+
groups:
|
|
44
|
+
- name: slo.checkout-service
|
|
45
|
+
interval: 30s
|
|
46
|
+
rules:
|
|
47
|
+
# Good requests (2xx, latency < 500ms)
|
|
48
|
+
- record: slo:http_requests_good:rate5m
|
|
49
|
+
expr: |
|
|
50
|
+
sum(rate(http_requests_total{
|
|
51
|
+
service="checkout-service",
|
|
52
|
+
status=~"2..",
|
|
53
|
+
duration_bucket="0.5"
|
|
54
|
+
}[5m]))
|
|
55
|
+
|
|
56
|
+
# Total requests
|
|
57
|
+
- record: slo:http_requests_total:rate5m
|
|
58
|
+
expr: |
|
|
59
|
+
sum(rate(http_requests_total{service="checkout-service"}[5m]))
|
|
60
|
+
|
|
61
|
+
# SLI = good / total
|
|
62
|
+
- record: slo:http_availability:ratio_rate5m
|
|
63
|
+
expr: slo:http_requests_good:rate5m / slo:http_requests_total:rate5m
|
|
64
|
+
|
|
65
|
+
# 28-day rolling availability
|
|
66
|
+
- record: slo:http_availability:ratio_rate28d
|
|
67
|
+
expr: |
|
|
68
|
+
sum_over_time(slo:http_availability:ratio_rate5m[28d]) / (28 * 24 * 12)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Burn Rate Alerts (multiwindow)
|
|
72
|
+
|
|
73
|
+
```yaml
|
|
74
|
+
# Multi-window, multi-burn-rate alerting (Google SRE Workbook pattern)
|
|
75
|
+
groups:
|
|
76
|
+
- name: slo.checkout-service.burn-rate
|
|
77
|
+
rules:
|
|
78
|
+
# Fast burn: 14.4× rate (burns 1h of budget in 5 min)
|
|
79
|
+
- alert: SLOFastBurn
|
|
80
|
+
expr: |
|
|
81
|
+
(
|
|
82
|
+
slo:http_availability:ratio_rate1h{service="checkout-service"} < (1 - 14.4 * 0.005)
|
|
83
|
+
) and (
|
|
84
|
+
slo:http_availability:ratio_rate5m{service="checkout-service"} < (1 - 14.4 * 0.005)
|
|
85
|
+
)
|
|
86
|
+
labels:
|
|
87
|
+
severity: critical
|
|
88
|
+
slo: checkout-service-availability
|
|
89
|
+
annotations:
|
|
90
|
+
summary: "Fast error budget burn — checkout-service (> 14.4× rate)"
|
|
91
|
+
runbook_url: "https://runbooks.internal/slo-fast-burn"
|
|
92
|
+
|
|
93
|
+
# Slow burn: 3× rate (burns 10% of budget in 6h)
|
|
94
|
+
- alert: SLOSlowBurn
|
|
95
|
+
expr: |
|
|
96
|
+
(
|
|
97
|
+
slo:http_availability:ratio_rate6h{service="checkout-service"} < (1 - 3 * 0.005)
|
|
98
|
+
) and (
|
|
99
|
+
slo:http_availability:ratio_rate30m{service="checkout-service"} < (1 - 3 * 0.005)
|
|
100
|
+
)
|
|
101
|
+
labels:
|
|
102
|
+
severity: warning
|
|
103
|
+
slo: checkout-service-availability
|
|
104
|
+
annotations:
|
|
105
|
+
summary: "Slow error budget burn — checkout-service (> 3× rate)"
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Sloth (SLO as Code)
|
|
109
|
+
|
|
110
|
+
```yaml
|
|
111
|
+
# slo/checkout-service.yaml — Sloth generates all recording rules + alerts
|
|
112
|
+
version: "prometheus/v1"
|
|
113
|
+
service: checkout-service
|
|
114
|
+
labels:
|
|
115
|
+
team: backend
|
|
116
|
+
slos:
|
|
117
|
+
- name: requests-availability
|
|
118
|
+
objective: 99.5
|
|
119
|
+
description: "99.5% of checkout requests succeed with latency < 500ms"
|
|
120
|
+
sli:
|
|
121
|
+
events:
|
|
122
|
+
error_query: |
|
|
123
|
+
sum(rate(http_requests_total{service="checkout-service", status=~"5.."}[{{.window}}]))
|
|
124
|
+
total_query: |
|
|
125
|
+
sum(rate(http_requests_total{service="checkout-service"}[{{.window}}]))
|
|
126
|
+
alerting:
|
|
127
|
+
name: CheckoutServiceSLO
|
|
128
|
+
page_alert:
|
|
129
|
+
labels: { severity: critical }
|
|
130
|
+
ticket_alert:
|
|
131
|
+
labels: { severity: warning }
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# Generate Prometheus rules from Sloth definition
|
|
136
|
+
sloth generate -i slo/checkout-service.yaml -o prometheus-rules/slo-checkout.yaml
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Error Budget Dashboard (Grafana)
|
|
140
|
+
|
|
141
|
+
Key panels:
|
|
142
|
+
1. **SLI over 28 days** — current ratio vs SLO target line
|
|
143
|
+
2. **Error budget remaining** — percentage + time remaining (burn at current rate)
|
|
144
|
+
3. **Burn rate** — 1h, 6h, 1d, 7d windows
|
|
145
|
+
4. **Events causing budget consumption** — top error causes by count
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: incident-response
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /incident-response
|
|
5
|
+
description: Structured P0/P1 incident response — acknowledge, scope, mitigate, communicate, resolve, document.
|
|
6
|
+
inputs:
|
|
7
|
+
- incident_summary
|
|
8
|
+
- severity (P0|P1)
|
|
9
|
+
- affected_service
|
|
10
|
+
outputs:
|
|
11
|
+
- incident_resolved
|
|
12
|
+
- preliminary_postmortem
|
|
13
|
+
roles:
|
|
14
|
+
- devops-engineer (IC)
|
|
15
|
+
- developer (technical lead)
|
|
16
|
+
- pm (comms)
|
|
17
|
+
execution:
|
|
18
|
+
initiator: developer
|
|
19
|
+
related-rules:
|
|
20
|
+
- on-call-standards.md
|
|
21
|
+
- error-budget-policy.md
|
|
22
|
+
uses-skills:
|
|
23
|
+
- incident-command
|
|
24
|
+
- postmortem-analysis
|
|
25
|
+
quality-gates:
|
|
26
|
+
- status page updated within 10 min of P0 declaration
|
|
27
|
+
- mitigation applied before root cause fully known (if available)
|
|
28
|
+
- timeline captured in real-time (not reconstructed after)
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Steps
|
|
32
|
+
|
|
33
|
+
### T+0–5: Acknowledge & Scope — `@devops-engineer`
|
|
34
|
+
- Post to #incidents: "I'm on this. War room: [link]"
|
|
35
|
+
- Scope: `kubectl get pods -A | grep -v Running`; check Grafana golden signals
|
|
36
|
+
- Declare severity; page secondary if P0
|
|
37
|
+
|
|
38
|
+
### T+5–15: Mitigate — `@developer` + `@devops-engineer`
|
|
39
|
+
- **First: try rollback** — `helm rollback <release> -n <ns>`
|
|
40
|
+
- If rollback not applicable: feature flag off → scale up → restart
|
|
41
|
+
- Start scribe doc: copy timeline template, log every action with timestamp
|
|
42
|
+
|
|
43
|
+
### T+10: Communicate — `@pm`
|
|
44
|
+
- Status page update: "Investigating [symptom] affecting [service]"
|
|
45
|
+
- Stakeholder Slack message in #incidents + product channel
|
|
46
|
+
|
|
47
|
+
### T+15–30: Stabilize — `@devops-engineer`
|
|
48
|
+
- Watch error rate for 10 min post-mitigation
|
|
49
|
+
- Confirm P95 and P99 latency returning to baseline
|
|
50
|
+
- If not stabilized: re-escalate; try next mitigation step
|
|
51
|
+
|
|
52
|
+
### T+30: Resolve or Escalate
|
|
53
|
+
- If resolved: status page "Monitoring"; all-clear in #incidents
|
|
54
|
+
- If not: loop mitigation; escalate to on-call lead
|
|
55
|
+
|
|
56
|
+
### T+60: Preliminary Postmortem
|
|
57
|
+
- Create postmortem doc with timeline (while fresh)
|
|
58
|
+
- Mark as Draft; schedule 5-whys session within 48h
|
|
59
|
+
|
|
60
|
+
### T+24h: Full Postmortem
|
|
61
|
+
- Complete 5-whys RCA
|
|
62
|
+
- Define action items with owners and due dates
|
|
63
|
+
- Publish to team wiki; announce in #postmortems
|
|
64
|
+
|
|
65
|
+
## Exit
|
|
66
|
+
Service healthy + stakeholders informed + postmortem published = incident closed.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: postmortem
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /postmortem
|
|
5
|
+
description: Facilitate and write a blameless postmortem after a P0/P1 incident — 5-whys RCA, action items, and publication.
|
|
6
|
+
inputs:
|
|
7
|
+
- incident_id
|
|
8
|
+
- severity
|
|
9
|
+
- timeline_raw (scribe notes)
|
|
10
|
+
outputs:
|
|
11
|
+
- published_postmortem
|
|
12
|
+
- action_items_in_tracker
|
|
13
|
+
roles:
|
|
14
|
+
- devops-engineer (facilitator)
|
|
15
|
+
- team-lead
|
|
16
|
+
- developer (technical lead for RCA)
|
|
17
|
+
execution:
|
|
18
|
+
initiator: developer
|
|
19
|
+
related-rules:
|
|
20
|
+
- on-call-standards.md
|
|
21
|
+
- error-budget-policy.md
|
|
22
|
+
uses-skills:
|
|
23
|
+
- postmortem-analysis
|
|
24
|
+
- incident-command
|
|
25
|
+
quality-gates:
|
|
26
|
+
- postmortem published within 48h of incident resolution
|
|
27
|
+
- every action item has an owner and a due date
|
|
28
|
+
- root cause reaches systemic level (not "human error")
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Steps
|
|
32
|
+
|
|
33
|
+
### 1. Collect Data (within 2h of resolution) — `@devops-engineer`
|
|
34
|
+
- Export timeline from scribe doc / Slack thread
|
|
35
|
+
- Pull metrics from Prometheus: error rate, latency, pod events during incident window
|
|
36
|
+
- Download relevant log excerpts from Loki
|
|
37
|
+
- Note: who was involved, what actions were taken, what worked
|
|
38
|
+
|
|
39
|
+
### 2. Draft Postmortem — `@devops-engineer`
|
|
40
|
+
- Use `postmortem-analysis` skill template
|
|
41
|
+
- Write timeline with precise UTC timestamps
|
|
42
|
+
- Write preliminary 5-whys (iteration 1 — will be refined in meeting)
|
|
43
|
+
- List initial action item candidates
|
|
44
|
+
- Mark doc: **DRAFT — pending review meeting**
|
|
45
|
+
|
|
46
|
+
### 3. 5-Whys Facilitation Meeting (within 48h) — `@devops-engineer` (facilitator)
|
|
47
|
+
|
|
48
|
+
**Meeting format (45–60 min):**
|
|
49
|
+
```
|
|
50
|
+
5 min: Ground rules — blameless; focus on systems, not people
|
|
51
|
+
10 min: Walk through timeline (verify accuracy, fill gaps)
|
|
52
|
+
20 min: 5-Whys analysis (stop when you reach a missing process/tooling/convention)
|
|
53
|
+
15 min: Action items — specific, owned, dated; challenge vague items
|
|
54
|
+
5 min: What went well? (at least 3 items)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Facilitation rules:**
|
|
58
|
+
- If the answer is "human error" → ask why the system allowed the error
|
|
59
|
+
- If the answer is "lack of monitoring" → that's an actionable system gap
|
|
60
|
+
- If a "why" repeats a previous incident → high priority to fix
|
|
61
|
+
- Stop at 5 whys or when you reach an organizational/process level
|
|
62
|
+
|
|
63
|
+
### 4. Finalize Document — `@devops-engineer`
|
|
64
|
+
- Incorporate all meeting feedback
|
|
65
|
+
- Ensure every action item:
|
|
66
|
+
- Is specific (not "improve testing" but "add k6 load test for /checkout")
|
|
67
|
+
- Has a named owner
|
|
68
|
+
- Has a due date within 2–4 weeks
|
|
69
|
+
- Remove any blame language ("Alice forgot to" → "the process did not require")
|
|
70
|
+
- Calculate SLO impact: minutes of error budget consumed
|
|
71
|
+
|
|
72
|
+
### 5. Publish & Track — `@devops-engineer` + `@team-lead`
|
|
73
|
+
```bash
|
|
74
|
+
# Create Jira/Linear tickets for each action item
|
|
75
|
+
for item in action_items; do
|
|
76
|
+
create_ticket --title "$item.title" --assignee "$item.owner" --due "$item.due_date" \
|
|
77
|
+
--label "postmortem-followup" --link "postmortem_url"
|
|
78
|
+
done
|
|
79
|
+
```
|
|
80
|
+
- Publish to team wiki (Confluence/Notion)
|
|
81
|
+
- Announce in #postmortems Slack: "Postmortem for INC-XXXX published: [link]"
|
|
82
|
+
- Add to monthly reliability review agenda
|
|
83
|
+
|
|
84
|
+
### 6. Follow-Up (2 weeks later) — `@team-lead`
|
|
85
|
+
- Check ticket status: are action items progressing?
|
|
86
|
+
- Any blocked items? Need resource allocation?
|
|
87
|
+
- If root cause not addressed: escalate to engineering lead
|
|
88
|
+
|
|
89
|
+
## Exit
|
|
90
|
+
Postmortem published + all action items in tracker + team notified = postmortem complete.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: slo-review
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /slo-review
|
|
5
|
+
description: Conduct quarterly SLO review — evaluate current SLOs against reliability data, adjust targets, and plan error budget policy changes.
|
|
6
|
+
inputs:
|
|
7
|
+
- quarter (e.g. Q4-2024)
|
|
8
|
+
- services_to_review
|
|
9
|
+
outputs:
|
|
10
|
+
- slo_review_report
|
|
11
|
+
- updated_slo_definitions
|
|
12
|
+
- error_budget_policy_changes
|
|
13
|
+
roles:
|
|
14
|
+
- devops-engineer (SRE)
|
|
15
|
+
- team-lead
|
|
16
|
+
- product-owner
|
|
17
|
+
execution:
|
|
18
|
+
initiator: developer
|
|
19
|
+
related-rules:
|
|
20
|
+
- slo-policy.md
|
|
21
|
+
- error-budget-policy.md
|
|
22
|
+
uses-skills:
|
|
23
|
+
- slo-sli-design
|
|
24
|
+
- slo-implementation
|
|
25
|
+
- capacity-planning
|
|
26
|
+
quality-gates:
|
|
27
|
+
- SLO targets grounded in actual reliability data (not aspirational)
|
|
28
|
+
- every changed SLO has product-owner sign-off
|
|
29
|
+
- error budget policy reviewed for services that hit freeze state
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Steps
|
|
33
|
+
|
|
34
|
+
### 1. Pull Reliability Data — `@devops-engineer`
|
|
35
|
+
```promql
|
|
36
|
+
-- 90-day availability per service
|
|
37
|
+
avg_over_time(
|
|
38
|
+
slo:http_availability:ratio_rate5m{service="$svc"}[90d]
|
|
39
|
+
) * 100
|
|
40
|
+
|
|
41
|
+
-- Total error budget consumed this quarter
|
|
42
|
+
(
|
|
43
|
+
1 - avg_over_time(
|
|
44
|
+
slo:http_availability:ratio_rate5m{service="$svc"}[90d]
|
|
45
|
+
)
|
|
46
|
+
) / (1 - 0.995) * 100 -- as % of total budget
|
|
47
|
+
```
|
|
48
|
+
- For each service: actual availability, error budget consumed, number of incidents
|
|
49
|
+
|
|
50
|
+
### 2. Classify Services — `@devops-engineer`
|
|
51
|
+
|
|
52
|
+
| Category | Criteria | Action |
|
|
53
|
+
|:---|:---|:---|
|
|
54
|
+
| **Overperforming** | Actual > SLO + 0.5% | Tighten SLO (stop "saving" budget by over-engineering) |
|
|
55
|
+
| **Meeting SLO** | Within ±0.2% | No change required |
|
|
56
|
+
| **Underperforming** | Budget < 25% remaining | Investigate root cause; adjust target or invest in reliability |
|
|
57
|
+
| **New service** | < 1 month of data | Set conservative target; review in 30 days |
|
|
58
|
+
|
|
59
|
+
### 3. SLO Adjustment Workshop — `@devops-engineer` + `@team-lead` + `@product-owner`
|
|
60
|
+
|
|
61
|
+
For each flagged service:
|
|
62
|
+
- **Tightening:** "We maintained 99.92% — can we commit to 99.9% and remove over-engineering?"
|
|
63
|
+
- **Loosening:** "We hit 99.3% but committed to 99.5% — is the gap a reliability problem or wrong target?"
|
|
64
|
+
- **New SLIs:** any new customer-visible behavior not yet covered by an SLI?
|
|
65
|
+
|
|
66
|
+
### 4. Update SLO Definitions — `@devops-engineer`
|
|
67
|
+
```yaml
|
|
68
|
+
# Update slo/<service>.yaml (Sloth)
|
|
69
|
+
# Re-generate Prometheus rules
|
|
70
|
+
sloth generate -i slo/${SERVICE}.yaml -o rules/slo-${SERVICE}-generated.yaml
|
|
71
|
+
kubectl apply -f rules/slo-${SERVICE}-generated.yaml -n monitoring
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### 5. Error Budget Policy Review — `@team-lead` + `@product-owner`
|
|
75
|
+
- Did any service exhaust budget? → Was feature freeze enforced? Did it work?
|
|
76
|
+
- Any services that needed freeze but policy wasn't triggered? → Fix thresholds
|
|
77
|
+
- Review next quarter's reliability investment vs feature work ratio
|
|
78
|
+
|
|
79
|
+
### 6. Publish SLO Review Report — `@devops-engineer`
|
|
80
|
+
```markdown
|
|
81
|
+
# SLO Review Report — Q4 2024
|
|
82
|
+
|
|
83
|
+
| Service | SLO Target | Actual Q4 | Budget Used | Action |
|
|
84
|
+
|:----------|:-----------|:----------|:------------|:-------|
|
|
85
|
+
| checkout | 99.5% | 99.71% | 42% | None |
|
|
86
|
+
| payments | 99.9% | 99.82% | 80% | Invest |
|
|
87
|
+
| notify | 99.0% | 99.43% | 0% | Tighten to 99.3% |
|
|
88
|
+
|
|
89
|
+
## Decisions
|
|
90
|
+
- payments: allocate 20% of Q1 sprint capacity to reliability work
|
|
91
|
+
- notify: tighten SLO to 99.3%; generates meaningful error budget
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Exit
|
|
95
|
+
Report published + SLO changes applied + action items in tracker = review complete.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Backend — guidance index
|
|
2
|
+
|
|
3
|
+
## What this area covers
|
|
4
|
+
|
|
5
|
+
Server-side service development: REST / GraphQL API design, domain modeling, database access patterns, async processing, observability, and security. Load after `software/general/` baseline.
|
|
6
|
+
|
|
7
|
+
## Guidance chain
|
|
8
|
+
|
|
9
|
+
1. Project `.agent/` baseline (`AGENTS.md` + `.agent/*`)
|
|
10
|
+
2. `software/general/rules/*` — always active
|
|
11
|
+
3. `backend/rules/*` — load all for this spec
|
|
12
|
+
4. `backend/skills/*/SKILL.md` — load only the skill matching the current task
|
|
13
|
+
5. `backend/workflows/*` — load the workflow matching the triggered command
|
|
14
|
+
|
|
15
|
+
## Inherited from general
|
|
16
|
+
|
|
17
|
+
- SDLC methodology and role responsibilities
|
|
18
|
+
- Git / CI / lint / format and code style baselines
|
|
19
|
+
- General development and code review workflows
|
|
20
|
+
|
|
21
|
+
## Backend-specific overrides
|
|
22
|
+
|
|
23
|
+
- All endpoints must include authZ check, input validation, and structured error response.
|
|
24
|
+
- Database changes require a migration file — no schema drift via ORM sync in production.
|
|
25
|
+
- Every new module requires observability: at minimum, structured logs and a latency metric.
|
|
26
|
+
|
|
27
|
+
## Spec map
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
backend/
|
|
31
|
+
├── rules/
|
|
32
|
+
│ ├── architecture.md ← layering, module boundaries, dependency direction
|
|
33
|
+
│ ├── data_access.md ← ORM usage, query patterns, N+1 prevention
|
|
34
|
+
│ ├── security.md ← authN/authZ, input validation, secret handling
|
|
35
|
+
│ └── testing.md ← test pyramid targets, mock boundaries, contract tests
|
|
36
|
+
├── skills/
|
|
37
|
+
│ ├── api-design/SKILL.md ← REST / GraphQL conventions, versioning, contracts
|
|
38
|
+
│ ├── async-processing/SKILL.md ← queues, workers, retry/DLQ patterns
|
|
39
|
+
│ ├── database-modeling/SKILL.md ← schema design, indexes, migration safety
|
|
40
|
+
│ ├── observability/SKILL.md ← structured logging, metrics, distributed tracing
|
|
41
|
+
│ └── troubleshooting/SKILL.md ← systematic debugging, profiling, root-cause analysis
|
|
42
|
+
├── workflows/
|
|
43
|
+
│ ├── add-migration.md ← /add-migration
|
|
44
|
+
│ ├── create-endpoint.md ← /create-endpoint
|
|
45
|
+
│ ├── debug-issue.md ← /debug-issue
|
|
46
|
+
│ ├── develop-epic.md ← /develop-epic
|
|
47
|
+
│ ├── develop-feature.md ← /develop-feature
|
|
48
|
+
│ ├── refactor-module.md ← /refactor-module
|
|
49
|
+
│ └── test-feature.md ← /test-feature
|
|
50
|
+
└── prompts/
|
|
51
|
+
└── *.md
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Discovery patterns
|
|
55
|
+
|
|
56
|
+
- `rules/*.md`
|
|
57
|
+
- `skills/*/SKILL.md`
|
|
58
|
+
- `workflows/*.md`
|
|
59
|
+
- `prompts/*.md`
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# PROMPTS: backend
|
|
2
|
+
|
|
3
|
+
Use these prompts with `backend/AGENTS.md` from the same directory.
|
|
4
|
+
|
|
5
|
+
## 1) Initialize backend agent behavior
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
Read `backend/AGENTS.md` and apply all backend rules as hard constraints.
|
|
9
|
+
Before implementation, return:
|
|
10
|
+
1) selected workflow,
|
|
11
|
+
2) loaded skills,
|
|
12
|
+
3) implementation plan,
|
|
13
|
+
4) risk list.
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## 2) Develop backend feature
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
Using `backend/AGENTS.md`, implement: <feature description>.
|
|
20
|
+
Mandatory pre-coding output:
|
|
21
|
+
- architecture notes,
|
|
22
|
+
- data model/query impact,
|
|
23
|
+
- security checks,
|
|
24
|
+
- test plan.
|
|
25
|
+
After coding: run checks and report exact commands and results.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 3) Create endpoint
|
|
29
|
+
|
|
30
|
+
```text
|
|
31
|
+
Using `backend/AGENTS.md`, create endpoint: <method + path + contract>.
|
|
32
|
+
Include request/response DTOs, validation, authZ, error mapping, tests,
|
|
33
|
+
and observability (metrics/logs/tracing) updates.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 4) Incident / debug mode
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
Using `backend/AGENTS.md`, triage incident: <incident summary>.
|
|
40
|
+
Return root-cause hypotheses, validation steps, minimal fix,
|
|
41
|
+
regression tests, and rollback plan.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 5) Safe migration
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
Using `backend/AGENTS.md`, implement migration: <schema change>.
|
|
48
|
+
Produce backward-compatible rollout plan, migration SQL/code,
|
|
49
|
+
verification queries, and rollback strategy.
|
|
50
|
+
```
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# .agent-os Backend Module
|
|
2
|
+
|
|
3
|
+
This directory contains the deep specialization rules, skills, workflows, and prompts for the **Backend Engineering** domain.
|
|
4
|
+
|
|
5
|
+
This specialization is engineered for modern, robust backend systems that rely on:
|
|
6
|
+
- **Architecture**: Microservices, Clean/Hexagonal Architecture.
|
|
7
|
+
- **Security**: Zero Trust Architecture, OWASP standards, RBAC/ABAC.
|
|
8
|
+
- **Tech Agnosticism**: Deep principles applicable across Python/FastAPI, Go, Node.js/NestJS, Java, Rust.
|
|
9
|
+
- **Databases**: PostgreSQL (OLTP), Redis (Caching/Locks), ClickHouse (OLAP/Analytics).
|
|
10
|
+
- **Asynchronous Processing**: NATS, Kafka, RabbitMQ, Celery, BullMQ.
|
|
11
|
+
- **Telemetry**: Prometheus, OpenTelemetry, Structured JSON Logging.
|
|
12
|
+
- **Quality**: Unit, Integration (Testcontainers), E2E, SVT tests.
|
|
13
|
+
|
|
14
|
+
## Ecosystem Content
|
|
15
|
+
|
|
16
|
+
### 1. Rules (`/rules`)
|
|
17
|
+
The immutable constraints of the backend world. Agent will strictly abide by these.
|
|
18
|
+
- `architecture.md` - Service boundaries, ZTA, Clean Arch.
|
|
19
|
+
- `data_access.md` - Polyglot Persistence, No N+1, Safe Migrations.
|
|
20
|
+
- `security.md` - OWASP Top 10 mitigations.
|
|
21
|
+
- `testing.md` - Testing Pyramid strategy.
|
|
22
|
+
|
|
23
|
+
### 2. Skills (`/skills`)
|
|
24
|
+
Active knowledge to execute specialized tasks.
|
|
25
|
+
- `api-design.md` - RESTful semantics and gRPC contracts.
|
|
26
|
+
- `database-modeling.md` - Indices, scaling, ClickHouse patterns.
|
|
27
|
+
- `async-processing.md` - Event-Driven Architecture, Outbox, DLQ.
|
|
28
|
+
- `observability.md` - RED/USE methodology and distributed tracing.
|
|
29
|
+
- `troubleshooting.md` - RCA, categorizing HTTP errors, fixing N+1 and OOMs.
|
|
30
|
+
|
|
31
|
+
### 3. Workflows (`/workflows`)
|
|
32
|
+
Step-by-step algorithms for repetitive backend chores.
|
|
33
|
+
- `develop-epic.md` - High-level system design and task decomposition for large features.
|
|
34
|
+
- `develop-feature.md` - Developing a single vertical slice from DB to API.
|
|
35
|
+
- `test-feature.md` - Applying the testing pyramid to existing code.
|
|
36
|
+
- `debug-issue.md` - Root Cause Analysis and bug fixing strategy.
|
|
37
|
+
- `create-endpoint.md` - From DTO validation to presentation.
|
|
38
|
+
- `add-migration.md` - Safe backward-compatible schema changes.
|
|
39
|
+
- `refactor-module.md` - Strangler fig extraction from legacy.
|
|
40
|
+
|
|
41
|
+
### 4. Prompts (`/prompts`)
|
|
42
|
+
System instructions configuring the Agent's persona and context.
|
|
43
|
+
- `system-prompt.md` - Base instruction for the Senior Backend Agent.
|
|
44
|
+
- `code-review.md` - Uncompromising code review checklist.
|
|
45
|
+
- `develop-epic.md` - Prompt to kick off an epic structure.
|
|
46
|
+
- `develop-feature.md` - Prompt to build a standalone feature.
|
|
47
|
+
- `test-feature.md` - Prompt to generate comprehensive tests.
|
|
48
|
+
- `debug-issue.md` - Prompt to find the exact root cause of an incident.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: add-migration
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/add-migration`
|
|
6
|
+
|
|
7
|
+
Use when: adding or modifying database schema — columns, tables, indexes, constraints.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Breaking Change (Expand/Contract)
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/add-migration "Rename users.full_name to users.display_name"
|
|
16
|
+
|
|
17
|
+
Change type: breaking — column rename
|
|
18
|
+
Affected services: user-service (writes), profile-service (reads), search-service (reads)
|
|
19
|
+
Current column: users.full_name VARCHAR(255) NOT NULL
|
|
20
|
+
Target column: users.display_name VARCHAR(255) NOT NULL
|
|
21
|
+
Strategy: expand/contract
|
|
22
|
+
Phase 1: add display_name column, backfill from full_name, write to both
|
|
23
|
+
Phase 2: migrate all reader services to display_name
|
|
24
|
+
Phase 3: mark full_name deprecated
|
|
25
|
+
Phase 4 (30 days): drop full_name
|
|
26
|
+
Rollback: Phase 1 is reversible; document downgrade migration
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**RU:**
|
|
30
|
+
```
|
|
31
|
+
/add-migration "Переименование users.full_name в users.display_name"
|
|
32
|
+
|
|
33
|
+
Тип изменения: breaking — переименование колонки
|
|
34
|
+
Затронутые сервисы: user-service (запись), profile-service (чтение), search-service (чтение)
|
|
35
|
+
Текущая колонка: users.full_name VARCHAR(255) NOT NULL
|
|
36
|
+
Целевая колонка: users.display_name VARCHAR(255) NOT NULL
|
|
37
|
+
Стратегия: expand/contract
|
|
38
|
+
Фаза 1: добавить display_name, бэкфилл из full_name, писать в обе
|
|
39
|
+
Фаза 2: перевести все читающие сервисы на display_name
|
|
40
|
+
Фаза 3: пометить full_name как deprecated
|
|
41
|
+
Фаза 4 (через 30 дней): удалить full_name
|
|
42
|
+
Rollback: Фаза 1 обратима; написать downgrade миграцию
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Example 2 — Non-Breaking Change
|
|
48
|
+
|
|
49
|
+
**EN:**
|
|
50
|
+
```
|
|
51
|
+
/add-migration "Add index on orders.created_at for date-range queries"
|
|
52
|
+
|
|
53
|
+
Change type: non-breaking — add index
|
|
54
|
+
Table: orders
|
|
55
|
+
New index: idx_orders_created_at ON orders(created_at DESC)
|
|
56
|
+
Reason: query GET /orders?from=&to= does full table scan; table has 50M rows
|
|
57
|
+
Validate: EXPLAIN ANALYZE on the query before and after
|
|
58
|
+
Deployment: can be applied with CONCURRENTLY in Postgres — no table lock
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**RU:**
|
|
62
|
+
```
|
|
63
|
+
/add-migration "Добавить индекс на orders.created_at для range-запросов"
|
|
64
|
+
|
|
65
|
+
Тип изменения: non-breaking — добавление индекса
|
|
66
|
+
Таблица: orders
|
|
67
|
+
Новый индекс: idx_orders_created_at ON orders(created_at DESC)
|
|
68
|
+
Причина: запрос GET /orders?from=&to= делает full table scan; в таблице 50M строк
|
|
69
|
+
Валидация: EXPLAIN ANALYZE на запрос до и после
|
|
70
|
+
Деплой: применить с CONCURRENTLY в Postgres — без блокировки таблицы
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Example 3 — Quick / Minimal
|
|
76
|
+
|
|
77
|
+
**EN:**
|
|
78
|
+
```
|
|
79
|
+
/add-migration "Add archived_at nullable column to projects"
|
|
80
|
+
|
|
81
|
+
Table: projects
|
|
82
|
+
Change: add column archived_at TIMESTAMP WITH TIME ZONE NULL DEFAULT NULL
|
|
83
|
+
Non-breaking; no existing queries affected; no data backfill needed.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**RU:**
|
|
87
|
+
```
|
|
88
|
+
/add-migration "Добавить nullable колонку archived_at в projects"
|
|
89
|
+
|
|
90
|
+
Таблица: projects
|
|
91
|
+
Изменение: добавить archived_at TIMESTAMP WITH TIME ZONE NULL DEFAULT NULL
|
|
92
|
+
Non-breaking; существующие запросы не затронуты; бэкфилл не нужен.
|
|
93
|
+
```
|