@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,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: create-endpoint
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/create-endpoint`
|
|
6
|
+
|
|
7
|
+
Use when: adding a single new API endpoint to an existing backend service.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Domain Action Endpoint
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/create-endpoint "Refund Order"
|
|
16
|
+
|
|
17
|
+
Method: POST /orders/{order_id}/refund
|
|
18
|
+
Auth: Bearer token, scope: orders:write
|
|
19
|
+
Request body: { reason: string (max 500 chars), amount?: number (partial refund, optional) }
|
|
20
|
+
Business rules:
|
|
21
|
+
- Order must be in PAID status, else return 400 with error code ORDER_NOT_REFUNDABLE
|
|
22
|
+
- If amount not provided: full refund
|
|
23
|
+
- If amount > original: return 400 REFUND_EXCEEDS_ORIGINAL
|
|
24
|
+
- On success: create refund_transaction, update order status to REFUNDED (or PARTIALLY_REFUNDED), emit order.refunded event
|
|
25
|
+
Response: 200 { refund_id, status, amount, processed_at }
|
|
26
|
+
Non-functional: idempotency key support via X-Idempotency-Key header
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**RU:**
|
|
30
|
+
```
|
|
31
|
+
/create-endpoint "Возврат средств по заказу"
|
|
32
|
+
|
|
33
|
+
Метод: POST /orders/{order_id}/refund
|
|
34
|
+
Auth: Bearer token, scope: orders:write
|
|
35
|
+
Тело запроса: { reason: string (макс 500 символов), amount?: number (частичный возврат, опционально) }
|
|
36
|
+
Бизнес-правила:
|
|
37
|
+
- Заказ должен быть в статусе PAID, иначе 400 с кодом ORDER_NOT_REFUNDABLE
|
|
38
|
+
- Если amount не указан: полный возврат
|
|
39
|
+
- Если amount > оригинального: 400 REFUND_EXCEEDS_ORIGINAL
|
|
40
|
+
- Успех: создать refund_transaction, обновить статус (REFUNDED или PARTIALLY_REFUNDED), emit order.refunded
|
|
41
|
+
Ответ: 200 { refund_id, status, amount, processed_at }
|
|
42
|
+
Нефункциональное: поддержка idempotency key через заголовок X-Idempotency-Key
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Example 2 — Read / Query Endpoint
|
|
48
|
+
|
|
49
|
+
**EN:**
|
|
50
|
+
```
|
|
51
|
+
/create-endpoint "List User Activity Feed"
|
|
52
|
+
|
|
53
|
+
Method: GET /users/{user_id}/feed
|
|
54
|
+
Auth: Bearer token; user can only access own feed unless admin scope
|
|
55
|
+
Query params: limit (default 20, max 100), cursor (pagination), type? (filter by event type)
|
|
56
|
+
Response: { items: ActivityEvent[], next_cursor?: string, total_count: int }
|
|
57
|
+
ActivityEvent: { id, type, payload, created_at }
|
|
58
|
+
Performance: response time p99 < 200ms; use cursor-based pagination, not offset
|
|
59
|
+
Constraints: do not expose other users' PII in feed items
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**RU:**
|
|
63
|
+
```
|
|
64
|
+
/create-endpoint "Лента активности пользователя"
|
|
65
|
+
|
|
66
|
+
Метод: GET /users/{user_id}/feed
|
|
67
|
+
Auth: Bearer token; пользователь видит только свою ленту, если нет admin scope
|
|
68
|
+
Query params: limit (default 20, max 100), cursor (пагинация), type? (фильтр по типу события)
|
|
69
|
+
Ответ: { items: ActivityEvent[], next_cursor?: string, total_count: int }
|
|
70
|
+
ActivityEvent: { id, type, payload, created_at }
|
|
71
|
+
Производительность: p99 < 200ms; cursor-based пагинация, не offset
|
|
72
|
+
Ограничения: не раскрывать PII других пользователей в элементах ленты
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Example 3 — Quick / Minimal
|
|
78
|
+
|
|
79
|
+
**EN:**
|
|
80
|
+
```
|
|
81
|
+
/create-endpoint "Health Check"
|
|
82
|
+
|
|
83
|
+
Method: GET /health
|
|
84
|
+
Auth: none
|
|
85
|
+
Response: 200 { status: "ok", version: string, uptime_seconds: int }
|
|
86
|
+
Must respond in < 50ms; must not trigger DB queries.
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**RU:**
|
|
90
|
+
```
|
|
91
|
+
/create-endpoint "Health Check"
|
|
92
|
+
|
|
93
|
+
Метод: GET /health
|
|
94
|
+
Auth: нет
|
|
95
|
+
Ответ: 200 { status: "ok", version: string, uptime_seconds: int }
|
|
96
|
+
Ответ < 50ms; запросы к БД не допускаются.
|
|
97
|
+
```
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: debug-issue
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/debug-issue`
|
|
6
|
+
|
|
7
|
+
Use when: investigating and resolving a backend defect, incident, or unexpected behavior.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Production Incident
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/debug-issue "Orders API 500 errors spike — P1"
|
|
16
|
+
|
|
17
|
+
Severity: P1
|
|
18
|
+
Symptoms: 500 error rate on POST /orders jumped from 0.1% to 8% at 14:32 UTC
|
|
19
|
+
Affected service: order-service (v2.4.1, deployed 14:15 UTC)
|
|
20
|
+
Logs: attached — shows NullPointerException in OrderService.createOrder() line 142
|
|
21
|
+
Metrics: error spike matches deployment time; CPU and memory normal
|
|
22
|
+
Last change: added optional discount_code field to order creation
|
|
23
|
+
Expected: reproduce and fix; write regression test; document root cause
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**RU:**
|
|
27
|
+
```
|
|
28
|
+
/debug-issue "Спайк 500 ошибок в Orders API — P1"
|
|
29
|
+
|
|
30
|
+
Severity: P1
|
|
31
|
+
Симптомы: rate 500 ошибок на POST /orders вырос с 0.1% до 8% в 14:32 UTC
|
|
32
|
+
Сервис: order-service (v2.4.1, задеплоен в 14:15 UTC)
|
|
33
|
+
Логи: приложены — NullPointerException в OrderService.createOrder() строка 142
|
|
34
|
+
Метрики: спайк совпадает со временем деплоя; CPU и memory в норме
|
|
35
|
+
Последнее изменение: добавлено опциональное поле discount_code
|
|
36
|
+
Ожидание: воспроизвести и исправить; написать regression test; задокументировать причину
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Example 2 — Intermittent Bug
|
|
42
|
+
|
|
43
|
+
**EN:**
|
|
44
|
+
```
|
|
45
|
+
/debug-issue "Duplicate order creation on payment webhook retry"
|
|
46
|
+
|
|
47
|
+
Severity: P2
|
|
48
|
+
Symptoms: ~0.3% of orders created twice when payment provider retries webhook
|
|
49
|
+
Frequency: intermittent, only on webhook retry (payment provider retries 3x on timeout)
|
|
50
|
+
Suspected cause: webhook handler is not idempotent — processes same payment_id twice
|
|
51
|
+
Expected: implement idempotency check on payment_id; add regression test with concurrent request simulation
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**RU:**
|
|
55
|
+
```
|
|
56
|
+
/debug-issue "Дублирование заказов при повторном вебхуке оплаты"
|
|
57
|
+
|
|
58
|
+
Severity: P2
|
|
59
|
+
Симптомы: ~0.3% заказов создаётся дважды при retry от платёжного провайдера
|
|
60
|
+
Частота: intermittent, только при retry (провайдер делает 3 попытки при таймауте)
|
|
61
|
+
Предполагаемая причина: обработчик вебхука не idempotent — обрабатывает один payment_id дважды
|
|
62
|
+
Ожидание: добавить проверку идемпотентности по payment_id; тест с симуляцией конкурентных запросов
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Example 3 — Quick / Minimal
|
|
68
|
+
|
|
69
|
+
**EN:**
|
|
70
|
+
```
|
|
71
|
+
/debug-issue "GET /products returns 403 for service account token"
|
|
72
|
+
|
|
73
|
+
Service account role: product-reader
|
|
74
|
+
Expected: 200 with product list
|
|
75
|
+
Actual: 403 Forbidden
|
|
76
|
+
Started: after auth service upgrade to v3.1.0 yesterday
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**RU:**
|
|
80
|
+
```
|
|
81
|
+
/debug-issue "GET /products возвращает 403 для service account токена"
|
|
82
|
+
|
|
83
|
+
Роль service account: product-reader
|
|
84
|
+
Ожидалось: 200 со списком продуктов
|
|
85
|
+
Факт: 403 Forbidden
|
|
86
|
+
Началось: после обновления auth service до v3.1.0 вчера
|
|
87
|
+
```
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: develop-epic
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/develop-epic`
|
|
6
|
+
|
|
7
|
+
Use when: delivering a large multi-sprint epic that must be broken into independently deployable increments.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — New Domain Feature
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/develop-epic "Multi-currency Support"
|
|
16
|
+
|
|
17
|
+
Epic goal: allow users to transact in USD, EUR, GBP, and JPY with real-time exchange rates
|
|
18
|
+
Increments (suggested):
|
|
19
|
+
1. Currency model + exchange rate service integration (no UI)
|
|
20
|
+
2. Price display in user's preferred currency
|
|
21
|
+
3. Checkout and payment in selected currency
|
|
22
|
+
4. Historical transaction display with original and converted amounts
|
|
23
|
+
Acceptance criteria (epic-level):
|
|
24
|
+
- User can set preferred currency in profile
|
|
25
|
+
- All price displays respect preferred currency
|
|
26
|
+
- Payments processed in selected currency via Stripe multi-currency
|
|
27
|
+
- Exchange rate updated every 15 minutes from provider
|
|
28
|
+
Non-goals: crypto currencies; manual rate override by admins (future epic)
|
|
29
|
+
Architecture risk: exchange rate service failure must not block checkout
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**RU:**
|
|
33
|
+
```
|
|
34
|
+
/develop-epic "Поддержка нескольких валют"
|
|
35
|
+
|
|
36
|
+
Цель эпика: пользователи могут работать в USD, EUR, GBP, JPY с курсами в реальном времени
|
|
37
|
+
Инкременты (предложение):
|
|
38
|
+
1. Модель валюты + интеграция сервиса курсов (без UI)
|
|
39
|
+
2. Отображение цен в валюте пользователя
|
|
40
|
+
3. Оформление и оплата в выбранной валюте
|
|
41
|
+
4. История транзакций с оригинальной и конвертированной суммой
|
|
42
|
+
Критерии приёмки (уровень эпика):
|
|
43
|
+
- Пользователь выбирает предпочтительную валюту в профиле
|
|
44
|
+
- Все цены учитывают валюту пользователя
|
|
45
|
+
- Платежи обрабатываются в выбранной валюте через Stripe multi-currency
|
|
46
|
+
- Курс обновляется каждые 15 минут
|
|
47
|
+
Non-goals: криптовалюты; ручное управление курсами (следующий эпик)
|
|
48
|
+
Архитектурный риск: сбой сервиса курсов не должен блокировать оформление заказа
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Example 2 — Platform Improvement
|
|
54
|
+
|
|
55
|
+
**EN:**
|
|
56
|
+
```
|
|
57
|
+
/develop-epic "Event-Driven Architecture Migration for Order Processing"
|
|
58
|
+
|
|
59
|
+
Epic goal: migrate synchronous order processing chain to event-driven with Kafka
|
|
60
|
+
Current: OrderService → PaymentService → NotificationService (synchronous, 3s p99)
|
|
61
|
+
Target: OrderService emits events; Payment and Notification subscribe independently
|
|
62
|
+
Increments:
|
|
63
|
+
1. Kafka infrastructure + event schema definitions
|
|
64
|
+
2. Order service emits events (dual-write: sync + async during migration)
|
|
65
|
+
3. Payment service migrated to consume events
|
|
66
|
+
4. Notification service migrated; sync chain removed
|
|
67
|
+
Success metric: order creation p99 < 500ms; services independently deployable
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**RU:**
|
|
71
|
+
```
|
|
72
|
+
/develop-epic "Миграция обработки заказов на Event-Driven Architecture"
|
|
73
|
+
|
|
74
|
+
Цель: перевести синхронную цепочку обработки заказов на Kafka
|
|
75
|
+
Текущее: OrderService → PaymentService → NotificationService (синхронно, p99 3s)
|
|
76
|
+
Цель: OrderService публикует события; Payment и Notification независимо подписываются
|
|
77
|
+
Инкременты:
|
|
78
|
+
1. Kafka инфраструктура + схемы событий
|
|
79
|
+
2. OrderService публикует события (dual-write во время миграции)
|
|
80
|
+
3. PaymentService переведён на события
|
|
81
|
+
4. NotificationService переведён; синхронная цепочка удалена
|
|
82
|
+
Метрика успеха: создание заказа p99 < 500ms; сервисы деплоятся независимо
|
|
83
|
+
```
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: develop-feature
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/develop-feature`
|
|
6
|
+
|
|
7
|
+
Use when: starting end-to-end backend feature delivery from a business request to an accepted, tested increment.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — New Business Feature
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/develop-feature "User Subscription Cancellation"
|
|
16
|
+
|
|
17
|
+
Feature: allow users to cancel their active subscription immediately or at end of billing period.
|
|
18
|
+
Acceptance criteria:
|
|
19
|
+
- User can cancel via DELETE /subscriptions/{id}
|
|
20
|
+
- Cancellation reason is recorded (enum: too_expensive, not_useful, switching_product, other)
|
|
21
|
+
- Immediate cancellation: subscription status set to CANCELLED, refund_eligible flag computed
|
|
22
|
+
- End-of-period: status set to CANCEL_PENDING, access retained until period end
|
|
23
|
+
- Cancellation event emitted to event bus for billing and analytics consumers
|
|
24
|
+
Constraints: backward-compatible with existing billing integrations; no downtime; rollback-safe
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**RU:**
|
|
28
|
+
```
|
|
29
|
+
/develop-feature "Отмена подписки пользователем"
|
|
30
|
+
|
|
31
|
+
Фича: пользователь может отменить активную подписку немедленно или по окончании платёжного периода.
|
|
32
|
+
Критерии приёмки:
|
|
33
|
+
- Отмена через DELETE /subscriptions/{id}
|
|
34
|
+
- Причина отмены записывается (enum: too_expensive, not_useful, switching_product, other)
|
|
35
|
+
- Немедленная отмена: статус CANCELLED, вычисляется флаг refund_eligible
|
|
36
|
+
- Отмена в конце периода: статус CANCEL_PENDING, доступ сохраняется до конца периода
|
|
37
|
+
- Событие cancellation публикуется в event bus для billing и analytics
|
|
38
|
+
Ограничения: обратная совместимость с текущим billing; без даунтайма; безопасный rollback
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Example 2 — Technical Feature / Platform Improvement
|
|
44
|
+
|
|
45
|
+
**EN:**
|
|
46
|
+
```
|
|
47
|
+
/develop-feature "Rate Limiting on Public API"
|
|
48
|
+
|
|
49
|
+
Feature: add per-client rate limiting to all public API endpoints.
|
|
50
|
+
Acceptance criteria:
|
|
51
|
+
- Limit: 100 requests/minute per API key (configurable)
|
|
52
|
+
- Response on breach: 429 Too Many Requests with Retry-After header
|
|
53
|
+
- Limits tracked in Redis with sliding window algorithm
|
|
54
|
+
- Admin endpoint to view current usage per client: GET /admin/rate-limits/{api_key}
|
|
55
|
+
- Rate limit headers on every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
|
|
56
|
+
Constraints: p99 latency increase < 5ms; Redis connection failure must degrade gracefully (fail open with logging)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**RU:**
|
|
60
|
+
```
|
|
61
|
+
/develop-feature "Rate Limiting на публичном API"
|
|
62
|
+
|
|
63
|
+
Фича: per-client rate limiting для всех публичных эндпоинтов.
|
|
64
|
+
Критерии приёмки:
|
|
65
|
+
- Лимит: 100 запросов/минуту на API-ключ (конфигурируемо)
|
|
66
|
+
- При превышении: 429 Too Many Requests с заголовком Retry-After
|
|
67
|
+
- Лимиты хранятся в Redis, алгоритм sliding window
|
|
68
|
+
- Эндпоинт для просмотра использования: GET /admin/rate-limits/{api_key}
|
|
69
|
+
- Заголовки в каждом ответе: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
|
|
70
|
+
Ограничения: рост p99 latency < 5ms; сбой Redis — fail open с логированием
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Example 3 — Quick / Minimal
|
|
76
|
+
|
|
77
|
+
**EN:**
|
|
78
|
+
```
|
|
79
|
+
/develop-feature "Add soft delete to orders"
|
|
80
|
+
|
|
81
|
+
Feature: orders should not be hard-deleted; add deleted_at timestamp column and filter deleted orders from all default queries.
|
|
82
|
+
Constraints: existing queries must not return deleted orders without explicit flag.
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**RU:**
|
|
86
|
+
```
|
|
87
|
+
/develop-feature "Soft delete для заказов"
|
|
88
|
+
|
|
89
|
+
Фича: заказы не удаляются физически; добавить колонку deleted_at и фильтровать удалённые из всех стандартных запросов.
|
|
90
|
+
Ограничения: существующие запросы не должны возвращать удалённые заказы без явного флага.
|
|
91
|
+
```
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: refactor-module
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/refactor-module`
|
|
6
|
+
|
|
7
|
+
Use when: improving the structure, readability, or maintainability of existing backend code without changing behavior.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Extract Service Layer
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/refactor-module "Extract business logic from OrderController into OrderService"
|
|
16
|
+
|
|
17
|
+
Current state: OrderController has 400+ lines mixing HTTP handling, business rules, and DB queries
|
|
18
|
+
Target: clean controller (HTTP only) + OrderService (business logic) + OrderRepository (data access)
|
|
19
|
+
Baseline behavior: all existing integration tests for /orders/* must still pass
|
|
20
|
+
Constraints: no behavior changes; no new features; one PR per logical extraction step
|
|
21
|
+
Risk areas: transaction handling is currently in controller — must move to service layer correctly
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**RU:**
|
|
25
|
+
```
|
|
26
|
+
/refactor-module "Вынести бизнес-логику из OrderController в OrderService"
|
|
27
|
+
|
|
28
|
+
Текущее состояние: OrderController — 400+ строк, смешаны HTTP, бизнес-правила и запросы к БД
|
|
29
|
+
Цель: чистый контроллер (только HTTP) + OrderService (бизнес-логика) + OrderRepository (доступ к данным)
|
|
30
|
+
Базовое поведение: все существующие integration tests для /orders/* должны пройти после рефакторинга
|
|
31
|
+
Ограничения: без изменений поведения; без новых фич; один PR на каждый логический шаг
|
|
32
|
+
Риск: управление транзакциями сейчас в контроллере — перенести корректно в service layer
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Example 2 — Eliminate Duplication
|
|
38
|
+
|
|
39
|
+
**EN:**
|
|
40
|
+
```
|
|
41
|
+
/refactor-module "Deduplicate pagination logic across 12 repository methods"
|
|
42
|
+
|
|
43
|
+
Current state: each repository method has its own copy of limit/offset/cursor pagination boilerplate (~30 lines each)
|
|
44
|
+
Target: single PaginationHelper utility used by all repository methods
|
|
45
|
+
Baseline: all repository unit tests pass; pagination behavior identical before/after
|
|
46
|
+
Approach: strangler fig — introduce helper, migrate methods one at a time, delete old code
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
**RU:**
|
|
50
|
+
```
|
|
51
|
+
/refactor-module "Устранить дублирование логики пагинации в 12 методах репозитория"
|
|
52
|
+
|
|
53
|
+
Текущее состояние: каждый метод репозитория содержит собственную копию boilerplate пагинации (~30 строк каждая)
|
|
54
|
+
Цель: единый PaginationHelper, используемый всеми методами
|
|
55
|
+
Базовое поведение: все unit tests репозитория проходят; поведение пагинации идентично до и после
|
|
56
|
+
Подход: strangler fig — ввести helper, мигрировать методы по одному, удалить старый код
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Example 3 — Quick / Minimal
|
|
62
|
+
|
|
63
|
+
**EN:**
|
|
64
|
+
```
|
|
65
|
+
/refactor-module "Replace raw SQL strings with ORM queries in UserRepository"
|
|
66
|
+
|
|
67
|
+
Scope: UserRepository only (5 methods)
|
|
68
|
+
Target: replace string-concatenated SQL with SQLAlchemy ORM; improve readability and eliminate injection surface
|
|
69
|
+
Behavior: identical query results; existing tests must pass
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**RU:**
|
|
73
|
+
```
|
|
74
|
+
/refactor-module "Заменить raw SQL строки на ORM запросы в UserRepository"
|
|
75
|
+
|
|
76
|
+
Скоуп: только UserRepository (5 методов)
|
|
77
|
+
Цель: заменить конкатенацию SQL на SQLAlchemy ORM; улучшить читаемость, убрать injection surface
|
|
78
|
+
Поведение: идентичные результаты; существующие тесты должны пройти
|
|
79
|
+
```
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: test-feature
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/test-feature`
|
|
6
|
+
|
|
7
|
+
Use when: expanding test coverage for an existing feature that is undertested or has known coverage gaps.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Critical Business Flow
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/test-feature "Payment processing coverage gaps"
|
|
16
|
+
|
|
17
|
+
Feature scope: payment-service — charge, refund, dispute flows
|
|
18
|
+
Current coverage: 38% (only happy path unit tests)
|
|
19
|
+
Critical gaps:
|
|
20
|
+
- No tests for partial refund edge cases (amount > original, amount = 0)
|
|
21
|
+
- No tests for payment provider timeout handling
|
|
22
|
+
- No tests for idempotency key collision
|
|
23
|
+
- No integration tests for charge → refund round-trip
|
|
24
|
+
Acceptance: coverage ≥ 70% on payment domain; all failure paths have explicit assertions
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**RU:**
|
|
28
|
+
```
|
|
29
|
+
/test-feature "Покрытие критических сценариев обработки платежей"
|
|
30
|
+
|
|
31
|
+
Скоуп: payment-service — charge, refund, dispute flows
|
|
32
|
+
Текущее покрытие: 38% (только happy path unit tests)
|
|
33
|
+
Критические пробелы:
|
|
34
|
+
- Нет тестов для edge cases частичного возврата (amount > оригинала, amount = 0)
|
|
35
|
+
- Нет тестов для обработки таймаута от платёжного провайдера
|
|
36
|
+
- Нет тестов для коллизии idempotency key
|
|
37
|
+
- Нет integration tests для round-trip charge → refund
|
|
38
|
+
Критерий: покрытие ≥ 70% на payment domain; для всех failure paths — явные assertions
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Example 2 — API Contract Testing
|
|
44
|
+
|
|
45
|
+
**EN:**
|
|
46
|
+
```
|
|
47
|
+
/test-feature "Contract tests for Orders API public endpoints"
|
|
48
|
+
|
|
49
|
+
Endpoints: POST /orders, GET /orders/{id}, PATCH /orders/{id}/status, DELETE /orders/{id}
|
|
50
|
+
Missing test scenarios:
|
|
51
|
+
- 400 responses: invalid input shapes, missing required fields
|
|
52
|
+
- 401/403: unauthenticated, wrong scope, other user's order
|
|
53
|
+
- 404: non-existent order ID
|
|
54
|
+
- 409: concurrent status update conflict
|
|
55
|
+
Constraints: use existing test client; no new test infrastructure; stable in CI
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**RU:**
|
|
59
|
+
```
|
|
60
|
+
/test-feature "Contract tests для публичных эндпоинтов Orders API"
|
|
61
|
+
|
|
62
|
+
Эндпоинты: POST /orders, GET /orders/{id}, PATCH /orders/{id}/status, DELETE /orders/{id}
|
|
63
|
+
Отсутствующие сценарии:
|
|
64
|
+
- 400 ответы: невалидные данные, отсутствующие обязательные поля
|
|
65
|
+
- 401/403: без аутентификации, неверный scope, чужой заказ
|
|
66
|
+
- 404: несуществующий order ID
|
|
67
|
+
- 409: конфликт при одновременном изменении статуса
|
|
68
|
+
Ограничения: использовать существующий test client; без новой test infrastructure; стабильно в CI
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Example 3 — Quick / Minimal
|
|
74
|
+
|
|
75
|
+
**EN:**
|
|
76
|
+
```
|
|
77
|
+
/test-feature "Add unit tests for DiscountCalculator service"
|
|
78
|
+
|
|
79
|
+
Current state: 0 tests; 3 methods: applyPercentage, applyFixed, applyCode
|
|
80
|
+
Cover: valid inputs, zero discount, negative discount guard, code not found case.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**RU:**
|
|
84
|
+
```
|
|
85
|
+
/test-feature "Unit tests для DiscountCalculator service"
|
|
86
|
+
|
|
87
|
+
Текущее состояние: 0 тестов; 3 метода: applyPercentage, applyFixed, applyCode
|
|
88
|
+
Покрыть: валидные входные данные, нулевая скидка, защита от отрицательной скидки, case code not found.
|
|
89
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Rule: Backend Architecture (Microservices & Zero Trust)
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — Architectural violations block deployment.
|
|
4
|
+
|
|
5
|
+
## Core principles
|
|
6
|
+
|
|
7
|
+
1. **Microservices First**
|
|
8
|
+
- Each service owns one bounded context.
|
|
9
|
+
- Shared databases across microservices are forbidden (except read-only analytical replicas).
|
|
10
|
+
- Services must support independent deployment.
|
|
11
|
+
|
|
12
|
+
2. **Zero Trust Architecture**
|
|
13
|
+
- No request is trusted by default, including internal traffic.
|
|
14
|
+
- Inter-service communication must use mTLS or signed service tokens.
|
|
15
|
+
- Enforce least privilege for every service identity.
|
|
16
|
+
|
|
17
|
+
3. **API and communication strategy**
|
|
18
|
+
- Use synchronous calls (REST/gRPC) only when immediate responses are required.
|
|
19
|
+
- Prefer asynchronous event-driven communication (Kafka/NATS/RabbitMQ) for service-to-service flows.
|
|
20
|
+
- Use circuit breakers and retries with exponential backoff for external dependencies.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Rule: Data Access & State Management
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — Data integrity violations are critical.
|
|
4
|
+
|
|
5
|
+
## Constraints
|
|
6
|
+
|
|
7
|
+
1. **Polyglot persistence roles**
|
|
8
|
+
- **PostgreSQL**: primary source of truth for OLTP transactions.
|
|
9
|
+
- **Redis**: cache, rate-limiting, distributed locks, and transient Pub/Sub only.
|
|
10
|
+
- **ClickHouse**: analytics/time-series/high-volume OLAP workloads.
|
|
11
|
+
|
|
12
|
+
2. **Migration protocol**
|
|
13
|
+
- All schema migrations must be versioned.
|
|
14
|
+
- Migrations must remain backward compatible.
|
|
15
|
+
- Breaking changes follow Expand-and-Contract: add new -> dual write/read -> remove old.
|
|
16
|
+
|
|
17
|
+
3. **Performance and query hygiene**
|
|
18
|
+
- N+1 queries are forbidden; use joins, eager loading, or DataLoader patterns.
|
|
19
|
+
- `SELECT *` is disallowed.
|
|
20
|
+
- Avoid long-running transactions; external I/O must not run inside DB transactions.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Rule: Backend Security & OWASP Standards
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — Security vulnerabilities are release blockers.
|
|
4
|
+
|
|
5
|
+
## OWASP-aligned baseline
|
|
6
|
+
|
|
7
|
+
1. **Access control**
|
|
8
|
+
- Protect all endpoints with a default-deny posture.
|
|
9
|
+
- Use RBAC or ABAC and enforce resource-level authorization.
|
|
10
|
+
|
|
11
|
+
2. **Cryptography and secrets**
|
|
12
|
+
- Use Argon2id or bcrypt for password hashing.
|
|
13
|
+
- Store secrets in a dedicated secret manager (Vault/AWS Secrets Manager/etc.).
|
|
14
|
+
|
|
15
|
+
3. **Injection prevention**
|
|
16
|
+
- Never build SQL via string concatenation; use parameterized queries only.
|
|
17
|
+
- Validate input at system boundaries with typed DTO/schema validation.
|
|
18
|
+
|
|
19
|
+
4. **Authentication hardening**
|
|
20
|
+
- Implement strong token/session validation, rotation, and auditability.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Rule: Backend Testing Pyramid
|
|
2
|
+
|
|
3
|
+
**Priority**: P1 — Missing critical-path coverage fails review.
|
|
4
|
+
|
|
5
|
+
## Testing layers
|
|
6
|
+
|
|
7
|
+
1. **Unit tests**
|
|
8
|
+
- Isolated domain/application logic tests.
|
|
9
|
+
- External dependencies must be mocked.
|
|
10
|
+
|
|
11
|
+
2. **Integration tests**
|
|
12
|
+
- Validate real integration with databases/message systems.
|
|
13
|
+
- Use realistic infrastructure (for example, Testcontainers).
|
|
14
|
+
|
|
15
|
+
3. **E2E/API tests**
|
|
16
|
+
- Verify critical user and system flows through service interfaces.
|
|
17
|
+
|
|
18
|
+
4. **SVT/chaos (when relevant)**
|
|
19
|
+
- Validate resilience under partial failure and degraded conditions.
|