@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,161 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-data-management
|
|
3
|
+
type: skill
|
|
4
|
+
description: Manage test data with factories, fixtures, isolation strategies, and cleanup to prevent test pollution.
|
|
5
|
+
related-rules:
|
|
6
|
+
- test-strategy.md
|
|
7
|
+
- test-data.md
|
|
8
|
+
allowed-tools: Read, Write, Edit, Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Test Data Management Skill
|
|
12
|
+
|
|
13
|
+
> **Expertise:** Factory functions, database isolation, seed data strategies, test pollution prevention.
|
|
14
|
+
|
|
15
|
+
## Factory Pattern (Python — pytest)
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
# tests/factories.py
|
|
19
|
+
from faker import Faker
|
|
20
|
+
from decimal import Decimal
|
|
21
|
+
import pytest_asyncio
|
|
22
|
+
|
|
23
|
+
fake = Faker()
|
|
24
|
+
|
|
25
|
+
def build_user(**overrides) -> dict:
|
|
26
|
+
"""Build a user dict — does NOT write to DB"""
|
|
27
|
+
return {
|
|
28
|
+
"email": fake.email(domain="example-test.com"), # Never real domains
|
|
29
|
+
"name": fake.name(),
|
|
30
|
+
"role": "viewer",
|
|
31
|
+
"password_hash": "hashed_test_password",
|
|
32
|
+
**overrides,
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def build_order(**overrides) -> dict:
|
|
36
|
+
return {
|
|
37
|
+
"status": "pending",
|
|
38
|
+
"total_amount": Decimal("99.99"),
|
|
39
|
+
"currency": "USD",
|
|
40
|
+
**overrides,
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
# Async factory fixture — writes to DB
|
|
44
|
+
@pytest_asyncio.fixture
|
|
45
|
+
async def create_user(db_session):
|
|
46
|
+
created = []
|
|
47
|
+
async def _create(**overrides):
|
|
48
|
+
user = User(**build_user(**overrides))
|
|
49
|
+
db_session.add(user)
|
|
50
|
+
await db_session.flush() # Get ID without committing
|
|
51
|
+
created.append(user)
|
|
52
|
+
return user
|
|
53
|
+
yield _create
|
|
54
|
+
# Cleanup is handled by transaction rollback (see isolation below)
|
|
55
|
+
|
|
56
|
+
# Usage in test
|
|
57
|
+
async def test_user_can_view_own_profile(create_user, client):
|
|
58
|
+
user = await create_user(role="viewer")
|
|
59
|
+
response = await client.get(f"/users/{user.id}", headers=auth_headers(user))
|
|
60
|
+
assert response.status_code == 200
|
|
61
|
+
assert response.json()["email"] == user.email
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Database Isolation Strategies
|
|
65
|
+
|
|
66
|
+
### Option 1: Transaction rollback (fastest — no cleanup needed)
|
|
67
|
+
```python
|
|
68
|
+
# conftest.py
|
|
69
|
+
@pytest_asyncio.fixture
|
|
70
|
+
async def db_session(engine):
|
|
71
|
+
async with engine.connect() as conn:
|
|
72
|
+
transaction = await conn.begin()
|
|
73
|
+
session = AsyncSession(bind=conn)
|
|
74
|
+
yield session
|
|
75
|
+
await transaction.rollback() # Rollback after each test — zero pollution
|
|
76
|
+
await session.close()
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Option 2: Truncate tables (compatible with most ORM features)
|
|
80
|
+
```python
|
|
81
|
+
@pytest_asyncio.fixture(autouse=True)
|
|
82
|
+
async def clean_tables(db_session):
|
|
83
|
+
yield
|
|
84
|
+
# After test: truncate in reverse FK order
|
|
85
|
+
await db_session.execute(text("TRUNCATE order_items, orders, users RESTART IDENTITY CASCADE"))
|
|
86
|
+
await db_session.commit()
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Option 3: Separate test database (for E2E / integration)
|
|
90
|
+
```bash
|
|
91
|
+
# docker-compose.test.yml
|
|
92
|
+
services:
|
|
93
|
+
db-test:
|
|
94
|
+
image: postgres:16
|
|
95
|
+
environment:
|
|
96
|
+
POSTGRES_DB: myapp_test
|
|
97
|
+
tmpfs: [/var/lib/postgresql/data] # In-memory — fast and isolated per run
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Seed Data for E2E Tests
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
# tests/e2e/seeds/standard.py
|
|
104
|
+
async def seed_standard_dataset(db: AsyncSession):
|
|
105
|
+
"""
|
|
106
|
+
Creates a deterministic dataset for E2E tests.
|
|
107
|
+
All IDs and values are fixed — tests can reference them directly.
|
|
108
|
+
"""
|
|
109
|
+
# Admin user — for management UI tests
|
|
110
|
+
admin = User(id=1, email="admin@test.example", role="admin", ...)
|
|
111
|
+
# Regular user — for end-user flow tests
|
|
112
|
+
user = User(id=2, email="user@test.example", role="viewer", ...)
|
|
113
|
+
# Products — for order flow tests
|
|
114
|
+
product_a = Product(id=101, name="Widget A", price=Decimal("29.99"), stock=100)
|
|
115
|
+
product_b = Product(id=102, name="Widget B", price=Decimal("49.99"), stock=50)
|
|
116
|
+
|
|
117
|
+
db.add_all([admin, user, product_a, product_b])
|
|
118
|
+
await db.commit()
|
|
119
|
+
|
|
120
|
+
# Apply before E2E suite
|
|
121
|
+
@pytest.fixture(scope="session", autouse=True)
|
|
122
|
+
async def seed(db_session):
|
|
123
|
+
await seed_standard_dataset(db_session)
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Anti-Patterns to Avoid
|
|
127
|
+
|
|
128
|
+
```python
|
|
129
|
+
# ❌ Shared mutable state between tests
|
|
130
|
+
orders = [] # module-level list
|
|
131
|
+
|
|
132
|
+
def test_1():
|
|
133
|
+
orders.append(create_order()) # test 1 adds
|
|
134
|
+
|
|
135
|
+
def test_2():
|
|
136
|
+
assert len(orders) == 0 # fails if test_1 ran first — order-dependent
|
|
137
|
+
|
|
138
|
+
# ✅ Each test creates its own data
|
|
139
|
+
async def test_order_count_for_new_user(create_user, client):
|
|
140
|
+
user = await create_user()
|
|
141
|
+
response = await client.get(f"/users/{user.id}/orders")
|
|
142
|
+
assert response.json()["count"] == 0 # always true — isolated
|
|
143
|
+
|
|
144
|
+
# ❌ Real email addresses in test data — risk of sending to real people
|
|
145
|
+
user = build_user(email="john.doe@gmail.com")
|
|
146
|
+
|
|
147
|
+
# ✅ Always use test-safe domains
|
|
148
|
+
user = build_user(email=fake.email(domain="example-test.com"))
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Test Data Cleanup Verification
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# Verify no test data leaked to production DB
|
|
155
|
+
SELECT count(*) FROM users WHERE email LIKE '%example-test.com%';
|
|
156
|
+
# → Should always be 0 in production
|
|
157
|
+
|
|
158
|
+
# Verify test DB is clean before test run
|
|
159
|
+
SELECT count(*) FROM users;
|
|
160
|
+
# → Should be 0 or match seed count only
|
|
161
|
+
```
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-pyramid
|
|
3
|
+
type: skill
|
|
4
|
+
description: Decide what type of test to write, structure the suite, measure health, and apply test doubles correctly.
|
|
5
|
+
related-rules:
|
|
6
|
+
- test-strategy.md
|
|
7
|
+
- quality-gates.md
|
|
8
|
+
allowed-tools: Read, Write, Edit, Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Test Pyramid Strategy Skill
|
|
12
|
+
|
|
13
|
+
> **Expertise:** Test type selection, suite health, test doubles, coverage strategy, CI integration.
|
|
14
|
+
|
|
15
|
+
## Test Type Decision Tree
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
Is this a user-visible multi-step workflow (login → action → confirmation)?
|
|
19
|
+
→ E2E test (Playwright/Cypress/Detox)
|
|
20
|
+
|
|
21
|
+
Does the code call external systems (DB, API, queue, file system)?
|
|
22
|
+
→ Integration test (real or containerized dependency)
|
|
23
|
+
|
|
24
|
+
Is this pure business logic, calculation, data transformation, conditional?
|
|
25
|
+
→ Unit test (fast, isolated, no I/O)
|
|
26
|
+
|
|
27
|
+
Is this a contract between two services?
|
|
28
|
+
→ Contract test (Pact or schema validation)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Healthy Suite Ratios
|
|
32
|
+
|
|
33
|
+
| Layer | Target % | When runs | Max duration |
|
|
34
|
+
|---|---|---|---|
|
|
35
|
+
| Unit | 70% | Every commit | < 2 min |
|
|
36
|
+
| Integration | 20% | Every PR | < 5 min |
|
|
37
|
+
| E2E | 10% | Pre-release | < 20 min |
|
|
38
|
+
|
|
39
|
+
**Suite health signals to act on:**
|
|
40
|
+
- Tests take > 10 min → too many E2E, not enough unit
|
|
41
|
+
- Flake rate > 1% → isolation problems
|
|
42
|
+
- Coverage high but bugs still escape → testing implementation, not behavior
|
|
43
|
+
|
|
44
|
+
## Test Doubles Reference
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
Situation → Double
|
|
48
|
+
──────────────────────────────────────────────────────────
|
|
49
|
+
Verify a function WAS called → Mock
|
|
50
|
+
Control what a dependency returns → Stub
|
|
51
|
+
Need working but simplified implementation → Fake (in-memory DB)
|
|
52
|
+
Observe calls without replacing behavior → Spy
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Golden rule:** Never mock what you don't own.
|
|
56
|
+
Wrap third-party libraries in your own adapter → mock the adapter.
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
# ❌ Mocking requests directly
|
|
60
|
+
with patch("requests.get") as mock:
|
|
61
|
+
mock.return_value.json.return_value = {"status": "ok"}
|
|
62
|
+
|
|
63
|
+
# ✅ Mock your own wrapper
|
|
64
|
+
class HttpClient:
|
|
65
|
+
async def get(self, url: str) -> dict: ...
|
|
66
|
+
|
|
67
|
+
class FakeHttpClient:
|
|
68
|
+
async def get(self, url: str) -> dict:
|
|
69
|
+
return {"status": "ok"}
|
|
70
|
+
|
|
71
|
+
service = MyService(http_client=FakeHttpClient())
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Coverage Strategy (Risk-Based Priority)
|
|
75
|
+
|
|
76
|
+
Coverage is a floor, not a ceiling. Priority:
|
|
77
|
+
1. Data mutations — anything that writes to DB
|
|
78
|
+
2. Business rules — validation, state machines, calculations
|
|
79
|
+
3. Error paths — what happens when things fail
|
|
80
|
+
4. Integration boundaries — DB queries, API calls, queue messages
|
|
81
|
+
5. Happy path UI flows — last, most expensive
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
# ❌ Coverage inflation — tests nothing meaningful
|
|
85
|
+
def test_order_fields_exist():
|
|
86
|
+
order = Order(id=1, status="pending")
|
|
87
|
+
assert order.id == 1 # tests Python, not your logic
|
|
88
|
+
|
|
89
|
+
# ✅ Tests behavior and business rules
|
|
90
|
+
def test_order_cannot_be_cancelled_if_already_shipped():
|
|
91
|
+
order = Order(id=1, status="shipped")
|
|
92
|
+
with pytest.raises(OrderStateError, match="Cannot cancel shipped order"):
|
|
93
|
+
order.cancel()
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Pytest Conventions
|
|
97
|
+
|
|
98
|
+
```python
|
|
99
|
+
# Naming: test_<when>_<expected_outcome>
|
|
100
|
+
def test_create_order_with_invalid_product_id_raises_not_found(): ...
|
|
101
|
+
def test_apply_discount_when_code_expired_returns_zero(): ...
|
|
102
|
+
|
|
103
|
+
# Structure: Arrange / Act / Assert
|
|
104
|
+
def test_order_total_includes_tax():
|
|
105
|
+
order = Order(items=[OrderItem(price=Decimal("100.00"), quantity=2)])
|
|
106
|
+
total = order.calculate_total(tax_rate=Decimal("0.20"))
|
|
107
|
+
assert total == Decimal("240.00")
|
|
108
|
+
|
|
109
|
+
# Parametrize for multiple inputs
|
|
110
|
+
@pytest.mark.parametrize("quantity,expected_error", [
|
|
111
|
+
(0, "must be greater than 0"),
|
|
112
|
+
(-1, "must be greater than 0"),
|
|
113
|
+
(1001, "exceeds maximum"),
|
|
114
|
+
])
|
|
115
|
+
def test_order_item_quantity_validation(quantity, expected_error):
|
|
116
|
+
with pytest.raises(ValidationError, match=expected_error):
|
|
117
|
+
OrderItem(product_id="prod_1", quantity=quantity)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Suite Health Checklist
|
|
121
|
+
|
|
122
|
+
- [ ] `make test` (unit + integration) < 5 min
|
|
123
|
+
- [ ] E2E suite < 20 min
|
|
124
|
+
- [ ] Zero flaky tests (0% flake rate over last 20 CI runs)
|
|
125
|
+
- [ ] Coverage ≥ project threshold on critical paths
|
|
126
|
+
- [ ] No `time.sleep()` — use explicit waits or mocks for time
|
|
127
|
+
- [ ] Each test independent — no shared mutable state between tests
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: flakiness-investigation
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /flakiness-investigation
|
|
5
|
+
description: Diagnose and eliminate flaky tests with reproducible evidence and root cause documentation.
|
|
6
|
+
inputs:
|
|
7
|
+
- flaky_test_target
|
|
8
|
+
- ci_history
|
|
9
|
+
outputs:
|
|
10
|
+
- flakiness_root_cause_report
|
|
11
|
+
- stabilized_test_suite
|
|
12
|
+
roles:
|
|
13
|
+
- qa
|
|
14
|
+
- developer
|
|
15
|
+
- team-lead
|
|
16
|
+
execution:
|
|
17
|
+
initiator: qa
|
|
18
|
+
related-rules:
|
|
19
|
+
- flakiness-policy.md
|
|
20
|
+
- test-strategy.md
|
|
21
|
+
uses-skills:
|
|
22
|
+
- e2e-patterns
|
|
23
|
+
- test-data-management
|
|
24
|
+
quality-gates:
|
|
25
|
+
- root cause identified (not just test quarantined)
|
|
26
|
+
- stabilization confirmed by 5+ consecutive green CI runs
|
|
27
|
+
- flakiness policy applied (quarantine before fix, never suppress)
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Steps
|
|
31
|
+
|
|
32
|
+
### 1. Collect Failure Signals & Patterns — `@qa`
|
|
33
|
+
- **Input:** flaky test name, CI history
|
|
34
|
+
- **Actions:** pull last 20 CI runs; calculate flake rate; identify patterns: time-of-day, parallel vs. serial, specific test data, resource contention signals; quarantine the test immediately per flakiness policy
|
|
35
|
+
- **Output:** flake rate + pattern analysis; test quarantined
|
|
36
|
+
- **Done when:** flakiness pattern identified; test not blocking CI
|
|
37
|
+
|
|
38
|
+
### 2. Reproduce & Classify Root Cause — `@qa` + `@developer`
|
|
39
|
+
- **Input:** pattern analysis
|
|
40
|
+
- **Actions:** attempt local reproduction; classify root cause category: timing/race condition; test data pollution; external dependency non-determinism; test isolation failure; environment-specific (CI vs. local); `@developer` assists with code-level investigation
|
|
41
|
+
- **Output:** confirmed reproduction method; root cause category
|
|
42
|
+
- **Done when:** root cause category confirmed; can reproduce on demand
|
|
43
|
+
|
|
44
|
+
### 3. Stabilization Fix — `@developer`
|
|
45
|
+
- **Input:** confirmed root cause
|
|
46
|
+
- **Actions:** apply fix appropriate to root cause: add explicit waits/retries for timing; isolate test data per test; mock non-deterministic external deps; fix test setup/teardown isolation; implement fix as minimal change; do not just increase timeouts without addressing root cause
|
|
47
|
+
- **Output:** fix on feature branch
|
|
48
|
+
- **Done when:** fix addresses root cause, not just symptoms
|
|
49
|
+
|
|
50
|
+
### 4. Stress Re-run & Quarantine Decision — `@qa`
|
|
51
|
+
- **Input:** fix branch
|
|
52
|
+
- **Actions:** run fixed test 10+ times in CI; if stable: remove from quarantine; if still flaky: escalate with detailed root cause report for `@team-lead` decision (fix deeper vs. delete test)
|
|
53
|
+
- **Output:** stress run results; quarantine decision
|
|
54
|
+
- **Done when:** test stable for 5+ consecutive runs OR deletion decision made
|
|
55
|
+
|
|
56
|
+
### 5. Policy Review & Closure — `@team-lead`
|
|
57
|
+
- **Input:** stabilized test or escalation
|
|
58
|
+
- **Actions:** review fix quality; if test deleted: confirm equivalent coverage exists elsewhere; update flakiness tracking log; review if pattern reveals systemic issue requiring broader action
|
|
59
|
+
- **Output:** closure note in flakiness log; systemic action item if needed
|
|
60
|
+
- **Done when:** flakiness log updated; test unquarantined or deleted
|
|
61
|
+
|
|
62
|
+
## Exit
|
|
63
|
+
Stable test in CI + root cause documented + log updated = investigation closed.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: performance-audit
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /performance-audit
|
|
5
|
+
description: Execute performance testing and turn findings into prioritized, actionable engineering work.
|
|
6
|
+
inputs:
|
|
7
|
+
- target_endpoint_or_flow
|
|
8
|
+
- test_type
|
|
9
|
+
- slo_baseline
|
|
10
|
+
outputs:
|
|
11
|
+
- performance_report
|
|
12
|
+
- prioritized_remediation_plan
|
|
13
|
+
roles:
|
|
14
|
+
- qa
|
|
15
|
+
- developer
|
|
16
|
+
- team-lead
|
|
17
|
+
- pm
|
|
18
|
+
execution:
|
|
19
|
+
initiator: qa
|
|
20
|
+
related-rules:
|
|
21
|
+
- quality-gates.md
|
|
22
|
+
- test-strategy.md
|
|
23
|
+
uses-skills:
|
|
24
|
+
- performance-testing
|
|
25
|
+
- api-testing
|
|
26
|
+
quality-gates:
|
|
27
|
+
- SLO regressions explicitly identified vs. baseline
|
|
28
|
+
- bottleneck root cause identified (not just symptom)
|
|
29
|
+
- remediation actions assigned with priority
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Steps
|
|
33
|
+
|
|
34
|
+
### 1. Scenario Definition & Baseline Alignment — `@qa`
|
|
35
|
+
- **Input:** target, test type, SLO baseline
|
|
36
|
+
- **Actions:** define test scenarios (load / stress / soak / spike) matching production traffic patterns; confirm SLO baseline values (p50, p99 latency; error rate; throughput); align on success/failure thresholds with `@team-lead`
|
|
37
|
+
- **Output:** test plan with scenarios and thresholds
|
|
38
|
+
- **Done when:** `@team-lead` approves test plan
|
|
39
|
+
|
|
40
|
+
### 2. Load/Stress Execution & Monitoring Capture — `@qa`
|
|
41
|
+
- **Input:** approved test plan
|
|
42
|
+
- **Actions:** run load test; capture: latency percentiles (p50/p95/p99), error rate, throughput, saturation metrics (CPU, memory, DB connections); identify breaking point if stress test
|
|
43
|
+
- **Output:** raw performance metrics; test execution evidence
|
|
44
|
+
- **Done when:** all scenarios executed; metrics captured
|
|
45
|
+
|
|
46
|
+
### 3. Bottleneck Analysis & Fix Proposal — `@developer` + `@qa`
|
|
47
|
+
- **Input:** performance metrics
|
|
48
|
+
- **Actions:** identify bottleneck location: DB queries (EXPLAIN ANALYZE), service CPU, network, memory pressure; `@developer` proposes targeted fix per bottleneck; estimate improvement before implementing
|
|
49
|
+
- **Output:** bottleneck analysis with proposed fixes and estimates
|
|
50
|
+
- **Done when:** root cause per regression identified; fixes proposed
|
|
51
|
+
|
|
52
|
+
### 4. Prioritization & Delivery Planning — `@team-lead` + `@pm`
|
|
53
|
+
- **Input:** analysis with fix proposals
|
|
54
|
+
- **Actions:** prioritize fixes by SLO impact and effort; `@pm` schedules as engineering work items; produce `performance_report.md` with: scenario results vs. SLO, bottleneck analysis, remediation backlog with priority
|
|
55
|
+
- **Output:** `performance_report.md`; remediation backlog items created
|
|
56
|
+
- **Done when:** report complete; backlog items assigned
|
|
57
|
+
|
|
58
|
+
## Exit
|
|
59
|
+
Published report + prioritized remediation plan + backlog items created = audit complete.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: regression-suite
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /regression-suite
|
|
5
|
+
description: Execute and analyze regression suites to produce a confident, evidence-backed release recommendation.
|
|
6
|
+
inputs:
|
|
7
|
+
- environment
|
|
8
|
+
- regression_scope
|
|
9
|
+
outputs:
|
|
10
|
+
- regression_report
|
|
11
|
+
- blocker_list
|
|
12
|
+
roles:
|
|
13
|
+
- qa
|
|
14
|
+
- developer
|
|
15
|
+
- team-lead
|
|
16
|
+
execution:
|
|
17
|
+
initiator: qa
|
|
18
|
+
related-rules:
|
|
19
|
+
- quality-gates.md
|
|
20
|
+
- test-strategy.md
|
|
21
|
+
- flakiness-policy.md
|
|
22
|
+
uses-skills:
|
|
23
|
+
- e2e-patterns
|
|
24
|
+
- test-pyramid
|
|
25
|
+
- test-data-management
|
|
26
|
+
quality-gates:
|
|
27
|
+
- no unresolved critical failures in selected scope
|
|
28
|
+
- flaky test handling policy applied (quarantine, not suppress)
|
|
29
|
+
- go/no-go recommendation explicit
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Steps
|
|
33
|
+
|
|
34
|
+
### 1. Scope Selection & Environment Readiness — `@qa`
|
|
35
|
+
- **Input:** environment, regression scope
|
|
36
|
+
- **Actions:** confirm environment health (services up, test data seeded); select test scope based on change surface (smoke / targeted / full regression); ensure no flaky tests in scope without quarantine decision
|
|
37
|
+
- **Output:** confirmed scope + environment health check
|
|
38
|
+
- **Done when:** environment ready; scope documented
|
|
39
|
+
|
|
40
|
+
### 2. Suite Execution & Evidence Capture — `@qa`
|
|
41
|
+
- **Input:** ready environment + scope
|
|
42
|
+
- **Actions:** execute selected test suite; capture: pass/fail per scenario, logs, screenshots on failure, duration metrics
|
|
43
|
+
- **Output:** raw execution results
|
|
44
|
+
- **Done when:** full suite run complete; results captured
|
|
45
|
+
|
|
46
|
+
### 3. Failure Triage & Fixes — `@developer` + `@qa`
|
|
47
|
+
- **Input:** raw execution results
|
|
48
|
+
- **Actions:** `@qa` triages failures: real defect vs. flaky vs. environment issue; `@developer` fixes real defects; `@qa` applies flakiness policy for flaky tests (quarantine, not suppress); re-run after fixes
|
|
49
|
+
- **Output:** resolved defect list; updated execution results
|
|
50
|
+
- **Done when:** all failures triaged; real defects fixed or explicitly accepted with risk note
|
|
51
|
+
|
|
52
|
+
### 4. Risk Review & Release Recommendation — `@team-lead` + `@qa`
|
|
53
|
+
- **Input:** final execution results + defect list
|
|
54
|
+
- **Actions:** assess residual risk of accepted failures; produce `regression_report.md` with: pass rate, defect list with severity, risk assessment, explicit go/no-go recommendation
|
|
55
|
+
- **Output:** `regression_report.md`; go/no-go decision
|
|
56
|
+
- **Done when:** recommendation is explicit; stakeholders informed
|
|
57
|
+
|
|
58
|
+
## Exit
|
|
59
|
+
Go recommendation + regression report = release confidence confirmed.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: smoke-test
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /smoke-test
|
|
5
|
+
description: Rapid post-change validation of critical user and system paths after a deployment.
|
|
6
|
+
inputs:
|
|
7
|
+
- target_environment
|
|
8
|
+
- deployment_context
|
|
9
|
+
outputs:
|
|
10
|
+
- smoke_result_summary
|
|
11
|
+
- rollback_recommendation
|
|
12
|
+
roles:
|
|
13
|
+
- qa
|
|
14
|
+
- developer
|
|
15
|
+
- team-lead
|
|
16
|
+
- pm
|
|
17
|
+
execution:
|
|
18
|
+
initiator: qa
|
|
19
|
+
related-rules:
|
|
20
|
+
- quality-gates.md
|
|
21
|
+
- test-strategy.md
|
|
22
|
+
- test-data.md
|
|
23
|
+
uses-skills:
|
|
24
|
+
- e2e-patterns
|
|
25
|
+
- api-testing
|
|
26
|
+
quality-gates:
|
|
27
|
+
- critical path checks complete within 15 minutes of deployment
|
|
28
|
+
- any blocking failure escalated immediately with rollback recommendation
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Steps
|
|
32
|
+
|
|
33
|
+
### 1. Prepare Environment & Test Data — `@qa`
|
|
34
|
+
- **Input:** deployed environment
|
|
35
|
+
- **Actions:** confirm services responding; seed or verify required test data; confirm smoke suite targets correct environment (not staging vs. production mix)
|
|
36
|
+
- **Output:** environment ready; test data confirmed
|
|
37
|
+
- **Done when:** ready to execute in < 5 minutes of deployment
|
|
38
|
+
|
|
39
|
+
### 2. Run Critical Smoke Scenarios — `@qa`
|
|
40
|
+
- **Input:** ready environment
|
|
41
|
+
- **Actions:** execute smoke suite covering: authentication, core business action, key API endpoints, data read/write round-trip; capture evidence (response codes, screenshots, timing)
|
|
42
|
+
- **Output:** pass/fail per scenario; evidence captured
|
|
43
|
+
- **Done when:** all scenarios executed
|
|
44
|
+
|
|
45
|
+
### 3. Defect Triage & Fix — `@developer`
|
|
46
|
+
- **Input:** smoke failures (if any)
|
|
47
|
+
- **Actions:** `@qa` classifies failure: blocking (rollback) vs. non-blocking (monitor); if blocking → `@developer` assesses rollback vs. hotfix; if non-blocking → document and continue
|
|
48
|
+
- **Output:** triage decision per failure
|
|
49
|
+
- **Done when:** all failures triaged; rollback or hotfix decision made if needed
|
|
50
|
+
|
|
51
|
+
### 4. Operational Risk Assessment — `@team-lead`
|
|
52
|
+
- **Input:** triage results
|
|
53
|
+
- **Actions:** review blocking vs. non-blocking failure list; assess overall risk of keeping deployment live; confirm rollback decision if blocking failures present
|
|
54
|
+
- **Output:** risk assessment note
|
|
55
|
+
- **Done when:** go/no-go confirmed by `@team-lead`
|
|
56
|
+
|
|
57
|
+
### 5. Communicate Go/No-Go — `@pm` + `@qa`
|
|
58
|
+
- **Input:** risk assessment
|
|
59
|
+
- **Actions:** `@qa` produces `smoke_result_summary.md`; `@pm` communicates status to stakeholders; if rollback: trigger `/deploy-production` with previous version
|
|
60
|
+
- **Output:** `smoke_result_summary.md`; stakeholders informed
|
|
61
|
+
- **Done when:** all parties notified; action taken if needed
|
|
62
|
+
|
|
63
|
+
## Exit
|
|
64
|
+
Go status + summary published = deployment validated. No-go + rollback triggered = incident response starts.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: test-coverage-report
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /test-coverage-report
|
|
5
|
+
description: Measure, analyze, and improve test coverage based on business risk to drive targeted test investment.
|
|
6
|
+
inputs:
|
|
7
|
+
- coverage_artifacts
|
|
8
|
+
- threshold
|
|
9
|
+
outputs:
|
|
10
|
+
- coverage_analysis_report
|
|
11
|
+
- targeted_test_improvement_plan
|
|
12
|
+
roles:
|
|
13
|
+
- qa
|
|
14
|
+
- developer
|
|
15
|
+
- team-lead
|
|
16
|
+
execution:
|
|
17
|
+
initiator: qa
|
|
18
|
+
related-rules:
|
|
19
|
+
- quality-gates.md
|
|
20
|
+
- test-strategy.md
|
|
21
|
+
uses-skills:
|
|
22
|
+
- test-pyramid
|
|
23
|
+
- test-data-management
|
|
24
|
+
quality-gates:
|
|
25
|
+
- critical business paths meet coverage threshold
|
|
26
|
+
- top uncovered risks have assigned owners
|
|
27
|
+
- coverage trend tracked (not just snapshot)
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Steps
|
|
31
|
+
|
|
32
|
+
### 1. Collect & Compare Metrics — `@qa`
|
|
33
|
+
- **Input:** coverage artifacts, threshold
|
|
34
|
+
- **Actions:** collect coverage report from CI (line, branch, function coverage); compare to previous sprint/release; identify regressions (coverage dropped) and improvements; segment by module/service for targeted analysis
|
|
35
|
+
- **Output:** coverage metrics with delta vs. previous; per-module breakdown
|
|
36
|
+
- **Done when:** metrics collected; delta computed
|
|
37
|
+
|
|
38
|
+
### 2. Identify High-Risk Gaps — `@qa` + `@team-lead`
|
|
39
|
+
- **Input:** per-module coverage breakdown
|
|
40
|
+
- **Actions:** map untested code to business criticality (payment flows > UI helpers); rank gaps by: data integrity risk, frequency of change, defect history; distinguish: "not worth testing" vs. "must cover"
|
|
41
|
+
- **Output:** prioritized gap list with risk classification
|
|
42
|
+
- **Done when:** gaps ranked; `@team-lead` agrees on priorities
|
|
43
|
+
|
|
44
|
+
### 3. Implement Targeted Tests & Fixes — `@developer` + `@qa`
|
|
45
|
+
- **Input:** prioritized gap list
|
|
46
|
+
- **Actions:** `@developer` fixes testability issues (DI, interfaces) if needed; `@qa` implements targeted tests for high-risk gaps; focus on behavior tests, not coverage inflation (no tests that only chase the number)
|
|
47
|
+
- **Output:** new tests on feature branch; coverage improved on critical paths
|
|
48
|
+
- **Done when:** critical paths meet threshold; no coverage-inflating tests added
|
|
49
|
+
|
|
50
|
+
### 4. Publish Trend & Action Plan — `@qa`
|
|
51
|
+
- **Input:** updated coverage metrics
|
|
52
|
+
- **Actions:** produce `coverage_report.md` with: coverage delta, module breakdown, newly covered critical paths, remaining known gaps with risk justification, trend chart (last 4 sprints if available)
|
|
53
|
+
- **Output:** `coverage_report.md`; next sprint coverage actions noted
|
|
54
|
+
- **Done when:** report shared with team; action items logged
|
|
55
|
+
|
|
56
|
+
## Exit
|
|
57
|
+
Critical paths at threshold + trend published + gaps assigned = coverage cycle complete.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Security — guidance index
|
|
2
|
+
|
|
3
|
+
## What this area covers
|
|
4
|
+
|
|
5
|
+
Application and infrastructure security: secure coding standards, dependency auditing, SAST/DAST interpretation, threat modeling, auth patterns, cryptography standards, security headers, secret rotation, and compliance reporting.
|
|
6
|
+
|
|
7
|
+
## Guidance chain
|
|
8
|
+
|
|
9
|
+
1. Project `.agent/` baseline (`AGENTS.md` + `.agent/*`)
|
|
10
|
+
2. `software/general/rules/*` — always active
|
|
11
|
+
3. `security/rules/*` — load all for this spec
|
|
12
|
+
4. `security/skills/*/SKILL.md` — load only the skill matching the current task
|
|
13
|
+
5. `security/workflows/*` — load the workflow matching the triggered command
|
|
14
|
+
|
|
15
|
+
## Inherited from general
|
|
16
|
+
|
|
17
|
+
- Git / CI quality baseline
|
|
18
|
+
- SDLC role responsibilities and handoff contracts
|
|
19
|
+
|
|
20
|
+
## Security-specific constraints
|
|
21
|
+
|
|
22
|
+
- Security findings with CVSS ≥ 7.0 are release blockers — they are not deferred without explicit documented acceptance by Team Lead and Product Owner.
|
|
23
|
+
- Secrets appearing in source code, commits, or logs trigger immediate rotation — no grace period.
|
|
24
|
+
- Threat model review is mandatory for features that introduce new data flows, auth boundaries, or external integrations.
|
|
25
|
+
- Compliance baseline (`rules/compliance-baseline.md`) applies to every new service by default.
|
|
26
|
+
|
|
27
|
+
## Spec map
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
security/
|
|
31
|
+
├── rules/
|
|
32
|
+
│ ├── secure-coding.md ← OWASP Top 10 mitigations, input validation, output encoding
|
|
33
|
+
│ ├── secrets-policy.md ← storage, rotation, access audit, emergency rotation
|
|
34
|
+
│ ├── dependency-policy.md ← vulnerability SLAs, allowed licenses, patching cadence
|
|
35
|
+
│ └── compliance-baseline.md ← SOC 2 / ISO 27001 controls applicable to all services
|
|
36
|
+
├── skills/
|
|
37
|
+
│ ├── threat-modeling/SKILL.md ← STRIDE, DFD construction, mitigations
|
|
38
|
+
│ ├── auth-patterns/SKILL.md ← OAuth2, OIDC, JWT, session management
|
|
39
|
+
│ ├── crypto-standards/SKILL.md ← algorithm selection, key management, TLS config
|
|
40
|
+
│ ├── dependency-audit/SKILL.md ← npm audit, Snyk, OSV, triage workflow
|
|
41
|
+
│ ├── sast-dast-interpretation/SKILL.md ← Semgrep, Bandit, OWASP ZAP results triage
|
|
42
|
+
│ └── security-headers/SKILL.md ← CSP, HSTS, CORS, referrer policy
|
|
43
|
+
├── workflows/
|
|
44
|
+
│ ├── security-scan.md ← /security-scan
|
|
45
|
+
│ ├── threat-model-review.md ← /threat-model-review
|
|
46
|
+
│ ├── secret-rotation.md ← /secret-rotation
|
|
47
|
+
│ ├── pen-test-sim.md ← /pen-test-sim
|
|
48
|
+
│ └── compliance-report.md ← /compliance-report
|
|
49
|
+
└── prompts/
|
|
50
|
+
└── *.md
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Discovery patterns
|
|
54
|
+
|
|
55
|
+
- `rules/*.md`
|
|
56
|
+
- `skills/*/SKILL.md`
|
|
57
|
+
- `workflows/*.md`
|
|
58
|
+
- `prompts/*.md`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# PROMPTS: security
|
|
2
|
+
|
|
3
|
+
Use these prompts with `AGENTS.md` from the same directory.
|
|
4
|
+
|
|
5
|
+
## 1) Initialize agent behavior
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
Read `security/AGENTS.md` and adopt its rules, skills loading strategy, and workflows as hard constraints.
|
|
9
|
+
List the active rules and the selected workflow before implementation.
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## 2) Implement a feature
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
Using `security/AGENTS.md`, implement: <feature description>.
|
|
16
|
+
Before coding: provide architecture notes, risk list, and test plan.
|
|
17
|
+
After coding: run checks and report exact commands and results.
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 3) Incident / debug mode
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
Using `security/AGENTS.md`, run incident triage for: <incident summary>.
|
|
24
|
+
Return root cause hypotheses, validation steps, fix plan, and rollback plan.
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## 4) Release readiness
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
Using `security/AGENTS.md`, prepare release checklist for: <release scope>.
|
|
31
|
+
Include quality gates, security gates, performance gates, and deployment validation.
|
|
32
|
+
```
|