@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,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: troubleshooting
|
|
3
|
+
type: skill
|
|
4
|
+
description: Systematic backend debugging — reproduce, isolate root cause, implement fix with regression test.
|
|
5
|
+
related-rules:
|
|
6
|
+
- architecture.md
|
|
7
|
+
- testing.md
|
|
8
|
+
allowed-tools: Read, Write, Edit, Bash, Grep
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Troubleshooting Skill
|
|
12
|
+
|
|
13
|
+
> **Expertise:** Systematic debugging, log analysis, query profiling, memory/CPU profiling, regression tests.
|
|
14
|
+
|
|
15
|
+
## Debugging Framework (RRCA)
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
1. REPRODUCE — make the bug happen reliably before touching code
|
|
19
|
+
2. REDUCE — find the smallest input that triggers the bug
|
|
20
|
+
3. CAUSE — identify the specific code line/condition responsible
|
|
21
|
+
4. ADDRESS — fix + regression test + verify fix doesn't reappear
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Never fix what you can't reproduce. A guess-and-check fix is technical debt.
|
|
25
|
+
|
|
26
|
+
## Log Analysis Patterns
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Find all errors in last hour (structured logs with jq)
|
|
30
|
+
journalctl -u myapp --since "1 hour ago" | jq 'select(.level == "error")'
|
|
31
|
+
|
|
32
|
+
# Count errors by type
|
|
33
|
+
cat app.log | jq -r '.error_code' | sort | uniq -c | sort -rn | head -20
|
|
34
|
+
|
|
35
|
+
# Find slowest requests
|
|
36
|
+
cat access.log | jq 'select(.duration > 1000)' | jq -r '[.method, .path, .duration] | @csv'
|
|
37
|
+
|
|
38
|
+
# Trace a specific request by request_id
|
|
39
|
+
grep "request_id=req_abc123" app.log
|
|
40
|
+
|
|
41
|
+
# Find N+1 patterns: same query repeated many times in same request
|
|
42
|
+
grep "request_id=req_abc123" app.log | grep "db.query" | wc -l # > 10 is suspicious
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Database Query Debugging
|
|
46
|
+
|
|
47
|
+
```sql
|
|
48
|
+
-- Show currently running queries (PostgreSQL)
|
|
49
|
+
SELECT pid, now() - pg_stat_activity.query_start AS duration, query, state
|
|
50
|
+
FROM pg_stat_activity
|
|
51
|
+
WHERE state != 'idle' AND query_start < now() - interval '5 seconds'
|
|
52
|
+
ORDER BY duration DESC;
|
|
53
|
+
|
|
54
|
+
-- Kill a blocking query
|
|
55
|
+
SELECT pg_terminate_backend(<pid>);
|
|
56
|
+
|
|
57
|
+
-- Find slow queries from pg_stat_statements
|
|
58
|
+
SELECT query, calls, mean_exec_time, total_exec_time
|
|
59
|
+
FROM pg_stat_statements
|
|
60
|
+
ORDER BY total_exec_time DESC LIMIT 10;
|
|
61
|
+
|
|
62
|
+
-- Check for table bloat (after many deletes/updates)
|
|
63
|
+
SELECT relname, n_dead_tup, n_live_tup,
|
|
64
|
+
round(n_dead_tup * 100.0 / nullif(n_live_tup + n_dead_tup, 0), 2) AS dead_pct
|
|
65
|
+
FROM pg_stat_user_tables
|
|
66
|
+
WHERE n_dead_tup > 1000
|
|
67
|
+
ORDER BY dead_pct DESC;
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Memory Leak Detection (Python)
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
# Detect growing memory with tracemalloc
|
|
74
|
+
import tracemalloc
|
|
75
|
+
|
|
76
|
+
tracemalloc.start()
|
|
77
|
+
|
|
78
|
+
# ... run suspected code ...
|
|
79
|
+
|
|
80
|
+
snapshot = tracemalloc.take_snapshot()
|
|
81
|
+
top_stats = snapshot.statistics("lineno")
|
|
82
|
+
for stat in top_stats[:10]:
|
|
83
|
+
print(stat) # shows file:line and allocated bytes
|
|
84
|
+
|
|
85
|
+
# Typical culprits:
|
|
86
|
+
# - Unbounded in-memory caches (dict that grows forever)
|
|
87
|
+
# - Event listeners not being removed
|
|
88
|
+
# - Circular references preventing GC
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## HTTP Client Debugging
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
import httpx
|
|
95
|
+
import logging
|
|
96
|
+
|
|
97
|
+
# Enable full request/response logging for debugging
|
|
98
|
+
logging.basicConfig(level=logging.DEBUG)
|
|
99
|
+
httpx_logger = logging.getLogger("httpx")
|
|
100
|
+
httpx_logger.setLevel(logging.DEBUG)
|
|
101
|
+
|
|
102
|
+
# Or manually log request details
|
|
103
|
+
async with httpx.AsyncClient() as client:
|
|
104
|
+
response = await client.post(url, json=payload, timeout=30.0)
|
|
105
|
+
print(f"Request: {response.request.method} {response.request.url}")
|
|
106
|
+
print(f"Request body: {response.request.content}")
|
|
107
|
+
print(f"Status: {response.status_code}")
|
|
108
|
+
print(f"Response: {response.text[:500]}")
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Writing Regression Tests
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
# Pattern: test must FAIL before the fix, PASS after
|
|
115
|
+
# Step 1: reproduce as a test
|
|
116
|
+
def test_order_creation_with_zero_quantity_raises_validation_error():
|
|
117
|
+
"""Regression: order with zero quantity was silently accepted (bug PROJ-198)"""
|
|
118
|
+
with pytest.raises(ValidationError) as exc_info:
|
|
119
|
+
CreateOrderRequest(items=[{"product_id": "prod_1", "quantity": 0}])
|
|
120
|
+
|
|
121
|
+
assert "quantity" in str(exc_info.value)
|
|
122
|
+
assert "greater than 0" in str(exc_info.value)
|
|
123
|
+
|
|
124
|
+
# Step 2: run test — it should FAIL on current code
|
|
125
|
+
# Step 3: implement fix
|
|
126
|
+
# Step 4: run test — it should now PASS
|
|
127
|
+
# Step 5: run full suite to confirm no regressions
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Common Root Cause Patterns
|
|
131
|
+
|
|
132
|
+
| Symptom | Likely cause | Investigation |
|
|
133
|
+
|---|---|---|
|
|
134
|
+
| Intermittent 500s after deploy | Exception in new code path | Check error logs at deploy time; git diff |
|
|
135
|
+
| Slow requests on specific endpoint | N+1 query or missing index | EXPLAIN ANALYZE on DB queries in that request |
|
|
136
|
+
| Memory grows over time | Cache without TTL or eviction | tracemalloc; check dict/list sizes in long-running processes |
|
|
137
|
+
| Random 429s from upstream | No retry-after respect; burst traffic | Check outbound request rate; add backoff |
|
|
138
|
+
| Test passes locally, fails in CI | Env var missing; timing issue | Compare env vars; add explicit waits |
|
|
139
|
+
| Occasional duplicate records | Missing idempotency key or DB unique constraint | Add unique constraint; add idempotency check |
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: add-migration
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /add-migration
|
|
5
|
+
description: Plan, implement, and validate safe schema migrations using expand/contract principles.
|
|
6
|
+
inputs:
|
|
7
|
+
- schema_change_request
|
|
8
|
+
- affected_services
|
|
9
|
+
outputs:
|
|
10
|
+
- migration_artifacts
|
|
11
|
+
- validation_report
|
|
12
|
+
roles:
|
|
13
|
+
- team-lead
|
|
14
|
+
- developer
|
|
15
|
+
- qa
|
|
16
|
+
execution:
|
|
17
|
+
initiator: team-lead
|
|
18
|
+
related-rules:
|
|
19
|
+
- data_access.md
|
|
20
|
+
- architecture.md
|
|
21
|
+
- testing.md
|
|
22
|
+
uses-skills:
|
|
23
|
+
- database-modeling
|
|
24
|
+
- troubleshooting
|
|
25
|
+
quality-gates:
|
|
26
|
+
- forward migration validated on test DB
|
|
27
|
+
- rollback or mitigation strategy documented
|
|
28
|
+
- no blocking backward-compatibility risk for running services
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Steps
|
|
32
|
+
|
|
33
|
+
### 1. Risk & Compatibility Analysis — `@team-lead`
|
|
34
|
+
- **Input:** schema change request + list of affected services
|
|
35
|
+
- **Actions:**
|
|
36
|
+
- classify change: non-breaking (add nullable column, add index) vs. breaking (rename/drop column, change type, add NOT NULL)
|
|
37
|
+
- for breaking changes: require expand/contract — two-phase migration across separate deployments
|
|
38
|
+
- identify all consumers of the affected table/column; confirm backward-compatibility window
|
|
39
|
+
- document rollback plan or mitigation (feature flag, dual-read window)
|
|
40
|
+
- **Output:** migration strategy doc: phases, compatibility window, rollback plan
|
|
41
|
+
- **Done when:** strategy approved; no services will break on forward migration
|
|
42
|
+
|
|
43
|
+
### 2. Migration Implementation — `@developer`
|
|
44
|
+
- **Input:** approved migration strategy
|
|
45
|
+
- **Actions:**
|
|
46
|
+
- write migration script (Alembic, Flyway, Liquibase, etc.) following project conventions
|
|
47
|
+
- Phase 1 (expand): add new column/table as nullable or with default; keep old structure intact
|
|
48
|
+
- ensure migration is idempotent and reversible (`upgrade` + `downgrade` both implemented)
|
|
49
|
+
- update application code to write to both old and new structures during transition if needed
|
|
50
|
+
- **Output:** migration file + updated application code on feature branch
|
|
51
|
+
- **Done when:** migration runs cleanly on local test DB; `downgrade` also verified
|
|
52
|
+
|
|
53
|
+
### 3. Test DB Validation & Data Checks — `@qa`
|
|
54
|
+
- **Input:** migration file + test DB
|
|
55
|
+
- **Actions:**
|
|
56
|
+
- run `upgrade` on a copy of the test DB; verify schema matches expected state
|
|
57
|
+
- run `downgrade`; verify clean revert with no data loss
|
|
58
|
+
- execute affected queries and check index usage (EXPLAIN ANALYZE)
|
|
59
|
+
- validate row counts and data integrity on key tables post-migration
|
|
60
|
+
- **Output:** `validation_report.md` — migration results, query plans, data integrity checks
|
|
61
|
+
- **Done when:** both directions validated; no unexpected data loss or performance degradation
|
|
62
|
+
|
|
63
|
+
### 4. Review & Remediation Loop — `@team-lead` + `@developer`
|
|
64
|
+
- **Input:** validation report
|
|
65
|
+
- **Actions:** `@team-lead` reviews migration SQL and application changes; flags any issues; `@developer` fixes and re-runs validation
|
|
66
|
+
- **Output:** approved migration
|
|
67
|
+
- **Done when:** `@team-lead` approves; no open issues in validation report
|
|
68
|
+
|
|
69
|
+
### 5. Readiness Report — `@pm` (or `@team-lead` if PM absent)
|
|
70
|
+
- **Input:** approved migration + validation report
|
|
71
|
+
- **Actions:** confirm deployment sequence (migrate before or after app rollout); document rollback command; note monitoring signals to watch post-deploy
|
|
72
|
+
- **Output:** `migration_readiness.md` with deployment steps, rollback command, monitoring checklist
|
|
73
|
+
- **Done when:** ops/release team has everything needed to deploy safely
|
|
74
|
+
|
|
75
|
+
## Iteration Loop
|
|
76
|
+
If validation reveals data issues or compatibility risks → return to Step 1 for strategy revision.
|
|
77
|
+
|
|
78
|
+
## Exit
|
|
79
|
+
Validated migration + readiness report + `@team-lead` approval = ready to deploy.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-endpoint
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /create-endpoint
|
|
5
|
+
description: Implement a new API endpoint with contract, security, and test coverage.
|
|
6
|
+
inputs:
|
|
7
|
+
- endpoint_scope
|
|
8
|
+
- api_contract
|
|
9
|
+
- non_functional_requirements
|
|
10
|
+
outputs:
|
|
11
|
+
- production_ready_endpoint
|
|
12
|
+
- tests_and_review_evidence
|
|
13
|
+
roles:
|
|
14
|
+
- product-owner
|
|
15
|
+
- pm
|
|
16
|
+
- team-lead
|
|
17
|
+
- developer
|
|
18
|
+
- qa
|
|
19
|
+
execution:
|
|
20
|
+
initiator: product-owner
|
|
21
|
+
related-rules:
|
|
22
|
+
- architecture.md
|
|
23
|
+
- data_access.md
|
|
24
|
+
- security.md
|
|
25
|
+
- testing.md
|
|
26
|
+
uses-skills:
|
|
27
|
+
- api-design
|
|
28
|
+
- database-modeling
|
|
29
|
+
- troubleshooting
|
|
30
|
+
quality-gates:
|
|
31
|
+
- API contract approved before implementation
|
|
32
|
+
- security checks passed (auth, input validation, rate limiting)
|
|
33
|
+
- automated tests green
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Steps
|
|
37
|
+
|
|
38
|
+
### 1. Scope & Contract — `@product-owner` + `@pm`
|
|
39
|
+
- **Input:** endpoint request
|
|
40
|
+
- **Actions:** define HTTP method, path, request/response schema, error codes, auth requirements, non-goals
|
|
41
|
+
- **Output:** API contract doc or OpenAPI snippet in `docs/<feature>/api-contract.md`
|
|
42
|
+
- **Done when:** contract is unambiguous and approved
|
|
43
|
+
|
|
44
|
+
### 2. Architecture Review — `@team-lead`
|
|
45
|
+
- **Input:** API contract
|
|
46
|
+
- **Actions:** verify contract aligns with existing API conventions (per `api-design` skill); confirm data model impact; identify performance and security risks (N+1, injection surface, auth scope); approve or request changes
|
|
47
|
+
- **Output:** architecture approval + notes on risks
|
|
48
|
+
- **Done when:** `@team-lead` approves; implementation approach clear
|
|
49
|
+
|
|
50
|
+
### 3. Implementation — `@developer`
|
|
51
|
+
- **Input:** approved contract + architecture notes
|
|
52
|
+
- **Actions:**
|
|
53
|
+
- update schemas/DTOs for input validation (Pydantic, Joi, etc.)
|
|
54
|
+
- implement repository method if new DB query needed — check indexes
|
|
55
|
+
- implement service layer logic with error handling and business rules
|
|
56
|
+
- wire API layer: route, auth middleware, response serialization
|
|
57
|
+
- do not put business logic in the API handler
|
|
58
|
+
- **Output:** endpoint implemented on feature branch
|
|
59
|
+
- **Done when:** endpoint handles all contract scenarios; no lint errors
|
|
60
|
+
|
|
61
|
+
### 4. Test Design & Execution — `@qa`
|
|
62
|
+
- **Input:** implemented endpoint + API contract
|
|
63
|
+
- **Actions:**
|
|
64
|
+
- write integration tests covering: happy path, validation errors (400), auth errors (401/403), not-found (404), edge cases
|
|
65
|
+
- verify input sanitization and auth enforcement manually
|
|
66
|
+
- check response schema matches contract
|
|
67
|
+
- **Output:** test suite passing; `docs/<feature>/test_report.md`
|
|
68
|
+
- **Done when:** all contract scenarios tested and passing; security checks confirmed
|
|
69
|
+
|
|
70
|
+
### 5. Code Review & Sign-off — `@team-lead`
|
|
71
|
+
- **Input:** feature branch + test report
|
|
72
|
+
- **Actions:** verify layering rules respected; check error handling completeness; confirm observability (request logged, errors traced); provide feedback as blocking / non-blocking
|
|
73
|
+
- **Output:** review feedback (PR comments or `review_feedback.md`)
|
|
74
|
+
- **Done when:** all blocking comments resolved; `@team-lead` approves
|
|
75
|
+
|
|
76
|
+
### 6. Fix / Retest Loop — `@developer` + `@qa`
|
|
77
|
+
- **Input:** blocking feedback
|
|
78
|
+
- **Actions:** fix issues; re-run tests; re-request review
|
|
79
|
+
- **Output:** updated branch
|
|
80
|
+
- **Done when:** zero blocking issues; tests green
|
|
81
|
+
|
|
82
|
+
### 7. Acceptance — `@product-owner` + `@pm`
|
|
83
|
+
- **Input:** verified endpoint + test evidence
|
|
84
|
+
- **Actions:** `@product-owner` confirms endpoint meets business need; `@pm` records delivery notes
|
|
85
|
+
- **Output:** endpoint accepted; delivery note in `docs/<feature>/delivery_summary.md`
|
|
86
|
+
- **Done when:** `@product-owner` signs off
|
|
87
|
+
|
|
88
|
+
## Exit
|
|
89
|
+
Accepted endpoint + passing tests + `@team-lead` sign-off = ready to merge.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debug-issue
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /debug-issue
|
|
5
|
+
description: Resolve backend defects with reproducible diagnosis, verified fix, and root cause documentation.
|
|
6
|
+
inputs:
|
|
7
|
+
- incident_or_bug_report
|
|
8
|
+
- logs_metrics_traces
|
|
9
|
+
outputs:
|
|
10
|
+
- verified_fix
|
|
11
|
+
- root_cause_summary
|
|
12
|
+
roles:
|
|
13
|
+
- pm
|
|
14
|
+
- team-lead
|
|
15
|
+
- developer
|
|
16
|
+
- qa
|
|
17
|
+
execution:
|
|
18
|
+
initiator: pm
|
|
19
|
+
related-rules:
|
|
20
|
+
- architecture.md
|
|
21
|
+
- security.md
|
|
22
|
+
- testing.md
|
|
23
|
+
uses-skills:
|
|
24
|
+
- observability
|
|
25
|
+
- troubleshooting
|
|
26
|
+
quality-gates:
|
|
27
|
+
- issue reproducible before fix is written
|
|
28
|
+
- fix verified by automated checks and regression test
|
|
29
|
+
- root cause documented with prevention note
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Steps
|
|
33
|
+
|
|
34
|
+
### 1. Triage & Impact Classification — `@pm` + `@team-lead`
|
|
35
|
+
- **Input:** bug report or incident alert
|
|
36
|
+
- **Actions:** confirm business impact and affected users; classify severity (P0 critical / P1 high / P2 normal); assign owner; set expected resolution time
|
|
37
|
+
- **Output:** severity label + assigned owner + ETA in ticket
|
|
38
|
+
- **Done when:** severity agreed; `@developer` assigned and briefed
|
|
39
|
+
|
|
40
|
+
### 2. Reproduce & Isolate — `@developer`
|
|
41
|
+
- **Input:** bug report + logs/metrics/traces (use `observability` skill to query)
|
|
42
|
+
- **Actions:**
|
|
43
|
+
- reproduce the issue in a local or staging environment — do not fix without reproducing first
|
|
44
|
+
- narrow to the smallest reproducible case
|
|
45
|
+
- identify the code path: which layer (API / service / repository / infra)?
|
|
46
|
+
- check recent commits touching that area: `git log -p -- <file>`
|
|
47
|
+
- **Output:** confirmed reproduction steps + suspected root cause hypothesis
|
|
48
|
+
- **Done when:** issue reliably reproducible; root cause narrowed to a specific code area
|
|
49
|
+
|
|
50
|
+
### 3. Fix Implementation — `@developer`
|
|
51
|
+
- **Input:** reproduction + root cause hypothesis
|
|
52
|
+
- **Actions:**
|
|
53
|
+
- write a failing regression test first (proves the bug exists)
|
|
54
|
+
- implement the minimal fix that makes the test pass
|
|
55
|
+
- check for related occurrences of the same pattern elsewhere in the codebase
|
|
56
|
+
- run full test suite to confirm no regressions: `make test`
|
|
57
|
+
- **Output:** fix + regression test on feature branch; all tests passing
|
|
58
|
+
- **Done when:** regression test passes; full suite green; fix is minimal and safe
|
|
59
|
+
|
|
60
|
+
### 4. Verification & Regression Checks — `@qa`
|
|
61
|
+
- **Input:** fix branch
|
|
62
|
+
- **Actions:**
|
|
63
|
+
- reproduce original issue with fix applied — confirm resolved
|
|
64
|
+
- run regression test suite on affected module
|
|
65
|
+
- perform exploratory checks on related functionality
|
|
66
|
+
- verify fix in staging environment if P0/P1
|
|
67
|
+
- **Output:** `verification_report.md` — confirmed fix, regression results, env tested
|
|
68
|
+
- **Done when:** issue resolved in all tested environments; no new failures introduced
|
|
69
|
+
|
|
70
|
+
### 5. Technical Review & Closure — `@team-lead`
|
|
71
|
+
- **Input:** fix branch + verification report
|
|
72
|
+
- **Actions:** review fix for correctness and side effects; confirm root cause analysis is complete; check that regression test is sufficient; write or approve `root_cause_summary.md` with prevention note
|
|
73
|
+
- **Output:** `root_cause_summary.md` — what failed, why, how fixed, how to prevent
|
|
74
|
+
- **Done when:** `@team-lead` approves fix; root cause documented; ticket closed
|
|
75
|
+
|
|
76
|
+
## Exit
|
|
77
|
+
Merged fix + verified resolution + root cause documented = incident closed.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: develop-epic
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /develop-epic
|
|
5
|
+
description: Deliver a large multi-increment backend epic with controlled milestones and replanning.
|
|
6
|
+
inputs:
|
|
7
|
+
- epic_goals
|
|
8
|
+
- prioritized_backlog
|
|
9
|
+
outputs:
|
|
10
|
+
- incrementally_delivered_epic
|
|
11
|
+
- decision_and_risk_log
|
|
12
|
+
roles:
|
|
13
|
+
- product-owner
|
|
14
|
+
- pm
|
|
15
|
+
- team-lead
|
|
16
|
+
- developer
|
|
17
|
+
- qa
|
|
18
|
+
execution:
|
|
19
|
+
initiator: product-owner
|
|
20
|
+
related-rules:
|
|
21
|
+
- architecture.md
|
|
22
|
+
- data_access.md
|
|
23
|
+
- security.md
|
|
24
|
+
- testing.md
|
|
25
|
+
uses-skills:
|
|
26
|
+
- api-design
|
|
27
|
+
- async-processing
|
|
28
|
+
- observability
|
|
29
|
+
- troubleshooting
|
|
30
|
+
quality-gates:
|
|
31
|
+
- each increment is independently testable and deployable
|
|
32
|
+
- integration and regression checks pass after each increment
|
|
33
|
+
- epic acceptance criteria satisfied before final sign-off
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Steps
|
|
37
|
+
|
|
38
|
+
### 1. Epic Decomposition & Milestone Planning — `@product-owner` + `@pm`
|
|
39
|
+
- **Input:** epic goals and high-level backlog
|
|
40
|
+
- **Actions:** decompose epic into independently deliverable increments (max 1–2 weeks each); define milestone acceptance criteria; prioritize increments by value and risk; identify inter-increment dependencies
|
|
41
|
+
- **Output:** `docs/<epic>/epic_plan.md` — increment list, acceptance criteria per increment, dependency map
|
|
42
|
+
- **Done when:** `@product-owner` approves scope; `@pm` has a delivery sequence
|
|
43
|
+
|
|
44
|
+
### 2. Architecture Runway Definition — `@team-lead`
|
|
45
|
+
- **Input:** epic plan
|
|
46
|
+
- **Actions:** identify shared infrastructure needed across increments (DB schema, shared services, API contracts); design the architecture runway — foundational work that must precede feature increments; document module layout and inter-service contracts; flag risks and non-functional requirements (performance, security, scalability)
|
|
47
|
+
- **Output:** `docs/<epic>/architecture_notes.md` — layering decisions, migration plan, risk register
|
|
48
|
+
- **Done when:** architecture runway approved; `@developer` can start Increment 1
|
|
49
|
+
|
|
50
|
+
### 3. Increment Implementation — `@developer`
|
|
51
|
+
- **Input:** increment spec from epic plan + architecture notes
|
|
52
|
+
- **Actions:** implement current increment per `/develop-feature` workflow (Steps 3–5 of that workflow); each increment must have its own branch, tests, and acceptance evidence; do not start next increment without current one passing verification
|
|
53
|
+
- **Output:** implemented increment on branch with passing checks
|
|
54
|
+
- **Done when:** increment passes local checks and is ready for QA
|
|
55
|
+
|
|
56
|
+
### 4. Increment Verification — `@qa`
|
|
57
|
+
- **Input:** implemented increment
|
|
58
|
+
- **Actions:** verify acceptance criteria for the current increment; run regression tests against all previously merged increments; document any cross-increment integration issues
|
|
59
|
+
- **Output:** increment test report; integration risk notes if any
|
|
60
|
+
- **Done when:** increment accepted; no regressions introduced
|
|
61
|
+
|
|
62
|
+
### 5. Milestone Review & Replanning — `@pm` + `@team-lead`
|
|
63
|
+
- **Input:** completed increment(s) + integration risk notes
|
|
64
|
+
- **Actions:** review progress against epic plan; replan remaining increments based on learnings; update risk register; communicate status to `@product-owner`; adjust scope if needed (add/drop items with `@product-owner` approval)
|
|
65
|
+
- **Output:** updated `epic_plan.md`; `risk_register.md` updated; stakeholders informed
|
|
66
|
+
- **Done when:** next increment is prioritized and `@developer` is briefed
|
|
67
|
+
|
|
68
|
+
### 6. Final Acceptance — `@product-owner`
|
|
69
|
+
- **Input:** all increments delivered + complete risk summary
|
|
70
|
+
- **Actions:** validate all epic acceptance criteria are met; review risk register for residual items; make go/defer decision on any remaining scope
|
|
71
|
+
- **Output:** `docs/<epic>/delivery_summary.md` — accepted items, deferred items, follow-up backlog
|
|
72
|
+
- **Done when:** epic accepted; follow-up items logged
|
|
73
|
+
|
|
74
|
+
## Iteration Loop
|
|
75
|
+
Steps 3–5 repeat for each increment. Replanning in Step 5 governs scope adjustments.
|
|
76
|
+
|
|
77
|
+
## Exit
|
|
78
|
+
All increments accepted by `@product-owner` + clean regression suite = epic delivered.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: develop-feature
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /develop-feature
|
|
5
|
+
description: End-to-end backend feature delivery from requirements to accepted increment.
|
|
6
|
+
inputs:
|
|
7
|
+
- feature_request
|
|
8
|
+
- acceptance_criteria
|
|
9
|
+
outputs:
|
|
10
|
+
- delivered_feature
|
|
11
|
+
- release_readiness_report
|
|
12
|
+
roles:
|
|
13
|
+
- product-owner
|
|
14
|
+
- pm
|
|
15
|
+
- team-lead
|
|
16
|
+
- developer
|
|
17
|
+
- qa
|
|
18
|
+
- designer
|
|
19
|
+
execution:
|
|
20
|
+
initiator: product-owner
|
|
21
|
+
related-rules:
|
|
22
|
+
- architecture.md
|
|
23
|
+
- data_access.md
|
|
24
|
+
- security.md
|
|
25
|
+
- testing.md
|
|
26
|
+
uses-skills:
|
|
27
|
+
- api-design
|
|
28
|
+
- async-processing
|
|
29
|
+
- observability
|
|
30
|
+
quality-gates:
|
|
31
|
+
- scope and acceptance criteria approved before implementation
|
|
32
|
+
- all automated checks pass (lint / test / build)
|
|
33
|
+
- no unresolved blocking defects
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Steps
|
|
37
|
+
|
|
38
|
+
### 1. Requirements & Value Framing — `@product-owner` + `@pm`
|
|
39
|
+
- **Input:** feature request from stakeholder or backlog
|
|
40
|
+
- **Actions:** define problem statement, expected outcomes, acceptance criteria, non-goals; confirm scope is implementation-ready
|
|
41
|
+
- **Output:** `docs/<feature>/README.md` with acceptance criteria
|
|
42
|
+
- **Done when:** criteria are testable and approved by `@product-owner`
|
|
43
|
+
|
|
44
|
+
### 2. Solution Design & Risk Plan — `@team-lead` + `@designer`
|
|
45
|
+
- **Input:** approved acceptance criteria
|
|
46
|
+
- **Actions:** identify impacted domain entities and service boundaries; design API contracts and data model changes; define UX states and interaction constraints; flag security and performance risks; confirm approach with `@developer` for feasibility
|
|
47
|
+
- **Output:** `docs/<feature>/implementation_plan.md` — layers affected, risks, migration notes if any
|
|
48
|
+
- **Done when:** `@team-lead` and `@designer` approve plan; no open architecture blockers
|
|
49
|
+
|
|
50
|
+
### 3. Implementation — `@developer`
|
|
51
|
+
- **Input:** approved implementation plan
|
|
52
|
+
- **Actions:**
|
|
53
|
+
- implement changes layer by layer (inner to outer): models/schemas → repository → service → API
|
|
54
|
+
- follow architecture rule: no business logic in API layer, no DB access in service layer directly
|
|
55
|
+
- add or update unit tests alongside implementation
|
|
56
|
+
- run `make lint && make test` locally before handoff
|
|
57
|
+
- **Output:** code changes on feature branch with passing local checks
|
|
58
|
+
- **Done when:** all acceptance criteria implemented; local checks green
|
|
59
|
+
|
|
60
|
+
### 4. Risk-Based Verification — `@qa`
|
|
61
|
+
- **Input:** feature branch + acceptance criteria
|
|
62
|
+
- **Actions:**
|
|
63
|
+
- design test scenarios covering happy path, edge cases, failure paths
|
|
64
|
+
- execute automated tests (unit + integration); run exploratory checks for acceptance criteria
|
|
65
|
+
- verify security constraints (auth, input validation) per `security.md`
|
|
66
|
+
- document findings with severity classification
|
|
67
|
+
- **Output:** `docs/<feature>/test_report.md` — pass/fail per scenario, defect list
|
|
68
|
+
- **Done when:** no critical or high-severity open defects
|
|
69
|
+
|
|
70
|
+
### 5. Code Review & Architecture Sign-off — `@team-lead`
|
|
71
|
+
- **Input:** feature branch + test report
|
|
72
|
+
- **Actions:** review layering and dependency rules; check test coverage quality; verify observability (logs, metrics, traces per `observability` skill); provide feedback as blocking / non-blocking
|
|
73
|
+
- **Output:** `review_feedback.md` or inline PR comments
|
|
74
|
+
- **Done when:** `@team-lead` approves; all blocking comments resolved
|
|
75
|
+
|
|
76
|
+
### 6. Fix / Retest Loop — `@developer` + `@qa` (coordinated by `@pm`)
|
|
77
|
+
- **Input:** blocking feedback list
|
|
78
|
+
- **Actions:** `@developer` fixes; `@qa` retests affected scenarios; loop until no open blockers
|
|
79
|
+
- **Output:** updated code + updated test report
|
|
80
|
+
- **Done when:** zero open blocking issues
|
|
81
|
+
|
|
82
|
+
### 7. Acceptance & Final Report — `@product-owner` + `@pm`
|
|
83
|
+
- **Input:** verified increment + risk summary
|
|
84
|
+
- **Actions:** `@product-owner` validates acceptance criteria; `@pm` produces delivery summary with decisions and follow-ups
|
|
85
|
+
- **Output:** `docs/<feature>/delivery_summary.md` — accepted / deferred with rationale
|
|
86
|
+
- **Done when:** feature accepted or explicitly deferred
|
|
87
|
+
|
|
88
|
+
## Iteration Loop
|
|
89
|
+
Steps 3–6 repeat per increment for large features. `@pm` tracks scope changes and timeline impact.
|
|
90
|
+
|
|
91
|
+
## Mandatory Role Delegation
|
|
92
|
+
- For `/develop-feature`, the executor must spawn exactly 6 subagents, one per role: `@product-owner`, `@pm`, `@team-lead`, `@developer`, `@qa`, `@designer`.
|
|
93
|
+
- Role consolidation is forbidden: one subagent cannot own multiple roles.
|
|
94
|
+
- Implementation work may start only after requirements outputs from `@product-owner` and `@pm`, and design outputs from `@team-lead` and `@designer`, are complete.
|
|
95
|
+
- Final delivery requires QA recommendation and team-lead sign-off.
|
|
96
|
+
|
|
97
|
+
## Exit
|
|
98
|
+
`@product-owner` acceptance + no unresolved blockers = feature complete and ready for release.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refactor-module
|
|
3
|
+
type: workflow
|
|
4
|
+
trigger: /refactor-module
|
|
5
|
+
description: Safely refactor backend modules with behavior parity guarantee and no functional regressions.
|
|
6
|
+
inputs:
|
|
7
|
+
- refactor_goal
|
|
8
|
+
- baseline_behavior
|
|
9
|
+
outputs:
|
|
10
|
+
- refactored_module
|
|
11
|
+
- behavior_parity_evidence
|
|
12
|
+
roles:
|
|
13
|
+
- team-lead
|
|
14
|
+
- developer
|
|
15
|
+
- qa
|
|
16
|
+
execution:
|
|
17
|
+
initiator: team-lead
|
|
18
|
+
related-rules:
|
|
19
|
+
- architecture.md
|
|
20
|
+
- testing.md
|
|
21
|
+
uses-skills:
|
|
22
|
+
- troubleshooting
|
|
23
|
+
- observability
|
|
24
|
+
quality-gates:
|
|
25
|
+
- behavior baseline captured before refactor begins
|
|
26
|
+
- no regressions on critical flows
|
|
27
|
+
- complexity reduced or maintainability measurably improved
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Steps
|
|
31
|
+
|
|
32
|
+
### 1. Refactor Plan & Boundaries — `@team-lead`
|
|
33
|
+
- **Input:** refactor goal (e.g. extract service layer, reduce coupling, eliminate duplication)
|
|
34
|
+
- **Actions:** define exact scope boundaries — what changes and what does NOT change; identify all callers/consumers of the module being refactored; define "behavior baseline" — the set of tests that must still pass after refactor; flag risk areas (shared state, async flows, external integrations)
|
|
35
|
+
- **Output:** `docs/<refactor>/refactor_plan.md` — scope, boundaries, baseline test list, risk notes
|
|
36
|
+
- **Done when:** `@team-lead` approves plan; boundaries are unambiguous
|
|
37
|
+
|
|
38
|
+
### 2. Baseline Test Coverage — `@qa` + `@developer`
|
|
39
|
+
- **Input:** refactor plan + current codebase
|
|
40
|
+
- **Actions:** ensure all critical flows in scope are covered by automated tests before any changes; add missing tests if coverage gaps exist — this is the safety net; document the baseline coverage metrics
|
|
41
|
+
- **Output:** baseline test suite passing; coverage metrics recorded
|
|
42
|
+
- **Done when:** critical flows are covered; `make test` green on current code
|
|
43
|
+
|
|
44
|
+
### 3. Incremental Refactor Implementation — `@developer`
|
|
45
|
+
- **Input:** approved plan + baseline tests
|
|
46
|
+
- **Actions:**
|
|
47
|
+
- refactor in small, reviewable increments — one conceptual change per commit
|
|
48
|
+
- run `make test` after each commit — if tests break, revert immediately
|
|
49
|
+
- do not change behavior while refactoring — behavior changes require a separate PR
|
|
50
|
+
- use strangler fig or parallel implementation pattern for high-risk module replacements
|
|
51
|
+
- **Output:** refactored module on feature branch; all baseline tests passing
|
|
52
|
+
- **Done when:** all planned scope refactored; baseline tests still green; no behavior changes introduced
|
|
53
|
+
|
|
54
|
+
### 4. Regression Validation — `@qa`
|
|
55
|
+
- **Input:** refactored branch
|
|
56
|
+
- **Actions:** run full regression suite; perform exploratory testing on affected flows; compare observable behavior (API responses, DB state, logs) against baseline; verify performance is not degraded (run EXPLAIN ANALYZE on key queries if DB touched)
|
|
57
|
+
- **Output:** `behavior_parity_evidence.md` — test results, behavior comparison, performance check
|
|
58
|
+
- **Done when:** no regressions detected; behavior parity confirmed
|
|
59
|
+
|
|
60
|
+
### 5. Review / Fix Loop — `@team-lead` + `@developer` + `@qa`
|
|
61
|
+
- **Input:** refactored branch + parity evidence
|
|
62
|
+
- **Actions:** `@team-lead` reviews structural improvements against plan goals; flags any remaining issues; `@developer` fixes; `@qa` re-verifies
|
|
63
|
+
- **Output:** approved refactor
|
|
64
|
+
- **Done when:** `@team-lead` confirms improvement is achieved; no open issues
|
|
65
|
+
|
|
66
|
+
### 6. Closure with Parity Report — `@team-lead`
|
|
67
|
+
- **Input:** approved refactor
|
|
68
|
+
- **Actions:** confirm that the refactor achieved its stated goal (reduced complexity, improved layering, etc.); sign off with a brief note on what was improved
|
|
69
|
+
- **Output:** merge approval + note in `refactor_plan.md`: "Goal achieved: <description>"
|
|
70
|
+
- **Done when:** PR merged
|
|
71
|
+
|
|
72
|
+
## Exit
|
|
73
|
+
Merged refactor + behavior parity confirmed + improvement goal achieved = refactor complete.
|