@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,48 @@
|
|
|
1
|
+
# CI/CD — guidance index
|
|
2
|
+
|
|
3
|
+
## What this area covers
|
|
4
|
+
|
|
5
|
+
Continuous integration and delivery pipelines: GitHub Actions, GitLab CI, quality gates, artifact management, build optimization, supply-chain security, and pipeline security hardening.
|
|
6
|
+
|
|
7
|
+
## Guidance chain
|
|
8
|
+
|
|
9
|
+
1. Project `.agent/` baseline
|
|
10
|
+
2. `ci-cd/rules/*` — load all
|
|
11
|
+
3. `ci-cd/skills/*/SKILL.md` — load only the skill matching the current task
|
|
12
|
+
4. `ci-cd/workflows/*` — load the workflow matching the triggered command
|
|
13
|
+
|
|
14
|
+
## Cross-cutting constraints
|
|
15
|
+
|
|
16
|
+
- **No secrets in pipeline YAML** — all credentials via vault / environment secrets, never inline.
|
|
17
|
+
- **Quality gates are non-negotiable** — pipelines must not merge on test failure, ever.
|
|
18
|
+
- **Supply-chain integrity** — pin all external actions to a full commit SHA, not a tag.
|
|
19
|
+
- **Artifact immutability** — built artifacts are never modified after creation; re-build instead.
|
|
20
|
+
|
|
21
|
+
## Spec map
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
ci-cd/
|
|
25
|
+
├── rules/
|
|
26
|
+
│ ├── pipeline-standards.md ← stage order, naming, timeout policies
|
|
27
|
+
│ ├── quality-gates.md ← required checks, merge block conditions
|
|
28
|
+
│ └── supply-chain-security.md ← action pinning, SBOM, provenance attestation
|
|
29
|
+
├── skills/
|
|
30
|
+
│ ├── github-actions-patterns/SKILL.md ← reusable workflows, matrix, caching strategies
|
|
31
|
+
│ ├── gitlab-ci-patterns/SKILL.md ← DAG pipelines, include templates, runners
|
|
32
|
+
│ ├── artifact-management/SKILL.md ← registry push, versioning, retention policy
|
|
33
|
+
│ ├── build-optimization/SKILL.md ← layer caching, parallelism, incremental builds
|
|
34
|
+
│ └── pipeline-security/SKILL.md ← OIDC auth, secret scanning, SAST integration
|
|
35
|
+
├── workflows/
|
|
36
|
+
│ ├── onboard-repo.md ← /onboard-repo
|
|
37
|
+
│ ├── pipeline-debug.md ← /pipeline-debug
|
|
38
|
+
│ └── release-pipeline.md ← /release-pipeline
|
|
39
|
+
└── prompts/
|
|
40
|
+
└── *.md
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Discovery patterns
|
|
44
|
+
|
|
45
|
+
- `rules/*.md`
|
|
46
|
+
- `skills/*/SKILL.md`
|
|
47
|
+
- `workflows/*.md`
|
|
48
|
+
- `prompts/*.md`
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: onboard-repo
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/onboard-repo`
|
|
6
|
+
|
|
7
|
+
Use when: setting up CI/CD pipeline for a new repository from scratch.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Python service on GitHub Actions
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/onboard-repo
|
|
16
|
+
|
|
17
|
+
Repo: github.com/myorg/payment-service / Language: Python 3.12 / Framework: FastAPI
|
|
18
|
+
CI platform: GitHub Actions
|
|
19
|
+
Tests: pytest + coverage / Lint: ruff + mypy
|
|
20
|
+
Registry: ghcr.io (OIDC auth — no long-lived keys)
|
|
21
|
+
Deploy: Kubernetes (bare-metal, ArgoCD GitOps)
|
|
22
|
+
Environments: staging (auto on main merge) + production (manual approval, team-lead required)
|
|
23
|
+
Image signing: cosign + SBOM via Syft
|
|
24
|
+
Quality gates: coverage >= 80%, no Critical/High CVEs in Trivy scan
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**RU:**
|
|
28
|
+
```
|
|
29
|
+
/onboard-repo
|
|
30
|
+
|
|
31
|
+
Репо: github.com/myorg/payment-service / Язык: Python 3.12 / Фреймворк: FastAPI
|
|
32
|
+
CI платформа: GitHub Actions
|
|
33
|
+
Тесты: pytest + coverage / Линтер: ruff + mypy
|
|
34
|
+
Реестр: ghcr.io (OIDC auth — без долгоживущих ключей)
|
|
35
|
+
Деплой: Kubernetes (bare-metal, ArgoCD GitOps)
|
|
36
|
+
Окружения: staging (авто при merge в main) + production (ручное подтверждение, team-lead)
|
|
37
|
+
Подпись образов: cosign + SBOM через Syft
|
|
38
|
+
Quality gates: coverage >= 80%, нет Critical/High CVE в Trivy scan
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Example 2 — Go service on self-hosted GitLab CI
|
|
44
|
+
|
|
45
|
+
**EN:**
|
|
46
|
+
```
|
|
47
|
+
/onboard-repo
|
|
48
|
+
|
|
49
|
+
Repo: gitlab.internal/backend/order-service / Language: Go 1.23
|
|
50
|
+
CI platform: GitLab CI (self-hosted, bare-metal runner tagged: [self-hosted, docker])
|
|
51
|
+
Tests: go test ./... / Lint: golangci-lint
|
|
52
|
+
Registry: registry.internal (authenticated, no OIDC — use GitLab CI_JOB_TOKEN)
|
|
53
|
+
Deploy: Helm to K8s staging namespace; production requires manual approval gate
|
|
54
|
+
Special: internal module proxy (GOPROXY=https://proxy.internal); runner has no public internet
|
|
55
|
+
SAST: GitLab built-in SAST template
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**RU:**
|
|
59
|
+
```
|
|
60
|
+
/onboard-repo
|
|
61
|
+
|
|
62
|
+
Репо: gitlab.internal/backend/order-service / Язык: Go 1.23
|
|
63
|
+
CI платформа: GitLab CI (self-hosted, bare-metal runner с тегами: [self-hosted, docker])
|
|
64
|
+
Тесты: go test ./... / Линтер: golangci-lint
|
|
65
|
+
Реестр: registry.internal (аутентификация через CI_JOB_TOKEN, без OIDC)
|
|
66
|
+
Деплой: Helm в K8s staging namespace; production требует ручного подтверждения
|
|
67
|
+
Особенность: внутренний module proxy (GOPROXY=https://proxy.internal); runner без публичного интернета
|
|
68
|
+
SAST: встроенный GitLab SAST шаблон
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Example 3 — Quick: add missing security scan stage
|
|
74
|
+
|
|
75
|
+
**EN:**
|
|
76
|
+
```
|
|
77
|
+
/onboard-repo
|
|
78
|
+
|
|
79
|
+
Task: add Trivy container scan to existing GitHub Actions pipeline
|
|
80
|
+
Current stages: lint → test → build (already working)
|
|
81
|
+
Missing: image scan between build and deploy
|
|
82
|
+
Threshold: block on Critical/High; warn on Medium
|
|
83
|
+
Upload results to GitHub Security tab (SARIF format)
|
|
84
|
+
Platform: GitHub Actions / Image: ghcr.io/myorg/api:${{ github.sha }}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**RU:**
|
|
88
|
+
```
|
|
89
|
+
/onboard-repo
|
|
90
|
+
|
|
91
|
+
Задача: добавить Trivy сканирование контейнера в существующий GitHub Actions pipeline
|
|
92
|
+
Текущие стадии: lint → test → build (уже работают)
|
|
93
|
+
Отсутствует: сканирование образа между build и deploy
|
|
94
|
+
Порог: блокировать при Critical/High; предупреждать при Medium
|
|
95
|
+
Загрузить результаты в GitHub Security tab (формат SARIF)
|
|
96
|
+
Платформа: GitHub Actions / Образ: ghcr.io/myorg/api:${{ github.sha }}
|
|
97
|
+
```
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: pipeline-debug
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/pipeline-debug`
|
|
6
|
+
|
|
7
|
+
Use when: a CI/CD pipeline is failing, a build is too slow, or a delivery job needs root-cause diagnosis and recovery.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Auth failure: registry push rejected
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/pipeline-debug
|
|
16
|
+
|
|
17
|
+
Pipeline: https://github.com/myorg/order-service/actions/runs/12345678
|
|
18
|
+
Stage: build / Step: "Push image to ghcr.io"
|
|
19
|
+
Error: "unauthorized: unauthenticated: User cannot be authenticated"
|
|
20
|
+
Last successful run: 3 days ago (same workflow, no code changes)
|
|
21
|
+
Hypothesis: GITHUB_TOKEN permissions changed, or OIDC trust policy expired
|
|
22
|
+
Check: workflow permissions block, repository Settings → Actions → permissions
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**RU:**
|
|
26
|
+
```
|
|
27
|
+
/pipeline-debug
|
|
28
|
+
|
|
29
|
+
Pipeline: https://github.com/myorg/order-service/actions/runs/12345678
|
|
30
|
+
Стадия: build / Шаг: "Push image to ghcr.io"
|
|
31
|
+
Ошибка: "unauthorized: unauthenticated: User cannot be authenticated"
|
|
32
|
+
Последний успешный запуск: 3 дня назад (тот же workflow, без изменений кода)
|
|
33
|
+
Гипотеза: изменились разрешения GITHUB_TOKEN или истёк OIDC trust policy
|
|
34
|
+
Проверить: блок permissions в workflow, Settings → Actions → permissions репозитория
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Example 2 — Flaky test causing random failures
|
|
40
|
+
|
|
41
|
+
**EN:**
|
|
42
|
+
```
|
|
43
|
+
/pipeline-debug
|
|
44
|
+
|
|
45
|
+
Pipeline: GitLab CI / Project: backend/payment-service / Branch: main
|
|
46
|
+
Stage: test / Failure rate: ~30% (same commit sometimes passes, sometimes fails)
|
|
47
|
+
Error: "FAILED tests/test_settlement.py::test_daily_settlement - AssertionError: expected 3 records, got 2"
|
|
48
|
+
Suspicion: test depends on datetime.now() — timezone or timing issue in CI runner
|
|
49
|
+
Environment: GitLab shared runner (UTC) vs local dev (Europe/Moscow)
|
|
50
|
+
Goal: identify root cause + fix test + add to flaky-test tracking
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**RU:**
|
|
54
|
+
```
|
|
55
|
+
/pipeline-debug
|
|
56
|
+
|
|
57
|
+
Pipeline: GitLab CI / Проект: backend/payment-service / Ветка: main
|
|
58
|
+
Стадия: test / Частота отказов: ~30% (один и тот же коммит иногда проходит, иногда нет)
|
|
59
|
+
Ошибка: "FAILED tests/test_settlement.py::test_daily_settlement - AssertionError: expected 3 records, got 2"
|
|
60
|
+
Подозрение: тест зависит от datetime.now() — проблема с timezone или таймингом в CI runner
|
|
61
|
+
Окружение: GitLab shared runner (UTC) vs локальная разработка (Europe/Moscow)
|
|
62
|
+
Цель: определить корневую причину + исправить тест + добавить в flaky-test tracking
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Example 3 — Reduce Docker build time from 12 min to < 3 min
|
|
68
|
+
|
|
69
|
+
**EN:**
|
|
70
|
+
```
|
|
71
|
+
/pipeline-debug
|
|
72
|
+
|
|
73
|
+
Service: order-service / Language: Python 3.12 + FastAPI
|
|
74
|
+
Current build time: 12 min (GitHub Actions); cache hit rate: ~15%
|
|
75
|
+
Problems observed:
|
|
76
|
+
- pip install runs from scratch every build (no layer caching)
|
|
77
|
+
- Test dependencies bundled into production image
|
|
78
|
+
- Base image pulled fresh every build (no registry mirror)
|
|
79
|
+
Goals:
|
|
80
|
+
- Achieve < 3 min build on cache hit
|
|
81
|
+
- Separate build deps from runtime image (multi-stage)
|
|
82
|
+
- Use GitHub Actions cache for pip + Docker layer cache (type=gha)
|
|
83
|
+
- Produce minimal production image (target < 200MB)
|
|
84
|
+
Show: before/after Dockerfile + updated GitHub Actions workflow
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**RU:**
|
|
88
|
+
```
|
|
89
|
+
/pipeline-debug
|
|
90
|
+
|
|
91
|
+
Сервис: order-service / Язык: Python 3.12 + FastAPI
|
|
92
|
+
Текущее время сборки: 12 мин (GitHub Actions); cache hit rate: ~15%
|
|
93
|
+
Наблюдаемые проблемы:
|
|
94
|
+
- pip install запускается с нуля при каждой сборке (нет layer caching)
|
|
95
|
+
- Зависимости для тестов входят в production образ
|
|
96
|
+
- Base image скачивается заново при каждой сборке (нет registry mirror)
|
|
97
|
+
Цели:
|
|
98
|
+
- Достичь < 3 мин при попадании в кэш
|
|
99
|
+
- Разделить build и runtime зависимости (multi-stage)
|
|
100
|
+
- Использовать GitHub Actions cache для pip + Docker layer cache (type=gha)
|
|
101
|
+
- Минимальный production образ (цель < 200MB)
|
|
102
|
+
Показать: Dockerfile до/после + обновлённый GitHub Actions workflow
|
|
103
|
+
```
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
workflow: release-pipeline
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Prompt: `/release-pipeline`
|
|
6
|
+
|
|
7
|
+
Use when: designing or running a production release pipeline with versioning, supply-chain controls, and deployment gates.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Example 1 — Semantic versioning + automated changelog
|
|
12
|
+
|
|
13
|
+
**EN:**
|
|
14
|
+
```
|
|
15
|
+
/release-pipeline
|
|
16
|
+
|
|
17
|
+
Repo: github.com/myorg/api-service
|
|
18
|
+
Release strategy: semantic versioning (semver) via git tags
|
|
19
|
+
Changelog: auto-generated from conventional commits (feat/fix/breaking)
|
|
20
|
+
Trigger: manual tag push (v1.2.3) → full release pipeline
|
|
21
|
+
Pipeline steps:
|
|
22
|
+
1. Validate: all CI gates pass on tagged commit
|
|
23
|
+
2. Build: image with tag=v1.2.3 AND digest; push to ghcr.io
|
|
24
|
+
3. Sign: cosign sign + SBOM attach
|
|
25
|
+
4. Release: GitHub Release with changelog + image digest in description
|
|
26
|
+
5. Deploy staging: Helm upgrade --set image.tag=v1.2.3 --atomic
|
|
27
|
+
6. Smoke test staging: automated; gate before production
|
|
28
|
+
7. Deploy production: manual approval; canary 10% → 100%
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**RU:**
|
|
32
|
+
```
|
|
33
|
+
/release-pipeline
|
|
34
|
+
|
|
35
|
+
Репо: github.com/myorg/api-service
|
|
36
|
+
Стратегия релизов: semantic versioning (semver) через git теги
|
|
37
|
+
Changelog: авто-генерация из conventional commits (feat/fix/breaking)
|
|
38
|
+
Триггер: ручной push тега (v1.2.3) → полный pipeline релиза
|
|
39
|
+
Шаги pipeline:
|
|
40
|
+
1. Validate: все CI gates проходят на тегированном коммите
|
|
41
|
+
2. Build: образ с tag=v1.2.3 И digest; push в ghcr.io
|
|
42
|
+
3. Sign: cosign sign + SBOM attach
|
|
43
|
+
4. Release: GitHub Release с changelog + image digest в описании
|
|
44
|
+
5. Deploy staging: Helm upgrade --set image.tag=v1.2.3 --atomic
|
|
45
|
+
6. Smoke test staging: автоматический; gate перед production
|
|
46
|
+
7. Deploy production: ручное подтверждение; canary 10% → 100%
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Example 2 — Emergency hotfix release
|
|
52
|
+
|
|
53
|
+
**EN:**
|
|
54
|
+
```
|
|
55
|
+
/release-pipeline
|
|
56
|
+
|
|
57
|
+
Context: critical bug in v2.1.0 (CVE exploited in production); hotfix needed in < 2 hours
|
|
58
|
+
Branch: hotfix/cve-2024-payment from tag v2.1.0 (NOT from main — main has unreleased features)
|
|
59
|
+
Version: v2.1.1
|
|
60
|
+
Speed optimizations allowed:
|
|
61
|
+
- Skip: integration tests (replace with targeted regression test for the fix)
|
|
62
|
+
- Skip: changelog automation (write manually)
|
|
63
|
+
- Keep: security scan (mandatory), smoke test (mandatory), canary deploy (mandatory)
|
|
64
|
+
Rollback plan: v2.1.0 image already in registry — Helm rollback in < 2 min if needed
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**RU:**
|
|
68
|
+
```
|
|
69
|
+
/release-pipeline
|
|
70
|
+
|
|
71
|
+
Контекст: критический баг в v2.1.0 (CVE эксплуатируется в production); hotfix нужен за < 2 часа
|
|
72
|
+
Ветка: hotfix/cve-2024-payment от тега v2.1.0 (НЕ от main — там незарелиженные фичи)
|
|
73
|
+
Версия: v2.1.1
|
|
74
|
+
Допустимые оптимизации скорости:
|
|
75
|
+
- Пропустить: интеграционные тесты (заменить целевым регрессионным тестом для исправления)
|
|
76
|
+
- Пропустить: автоматизацию changelog (написать вручную)
|
|
77
|
+
- Оставить: security scan (обязательно), smoke test (обязательно), canary deploy (обязательно)
|
|
78
|
+
План отката: образ v2.1.0 уже в реестре — Helm rollback за < 2 мин при необходимости
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Example 3 — Add full supply chain to existing pipeline
|
|
84
|
+
|
|
85
|
+
**EN:**
|
|
86
|
+
```
|
|
87
|
+
/release-pipeline
|
|
88
|
+
|
|
89
|
+
Service: checkout-service / CI: GitHub Actions
|
|
90
|
+
Current state: images built and pushed, no signing, no SBOM
|
|
91
|
+
Required:
|
|
92
|
+
1. SBOM: generate CycloneDX SBOM with Syft during build; attach to image with cosign
|
|
93
|
+
2. Signing: sign image with cosign using GitHub OIDC (keyless) after push
|
|
94
|
+
3. Provenance: enable SLSA level 2 via docker/build-push-action (provenance: true)
|
|
95
|
+
4. Verification: add cosign verify step in CD pipeline before every deploy
|
|
96
|
+
5. Policy: Kyverno ClusterPolicy — block unsigned images in production namespace
|
|
97
|
+
6. Dependency pinning: base image must reference @sha256 digest, not tag
|
|
98
|
+
Show full updated GitHub Actions workflow + Kyverno policy
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**RU:**
|
|
102
|
+
```
|
|
103
|
+
/release-pipeline
|
|
104
|
+
|
|
105
|
+
Сервис: checkout-service / CI: GitHub Actions
|
|
106
|
+
Текущее состояние: образы собираются и пушатся, без подписи, без SBOM
|
|
107
|
+
Требуется:
|
|
108
|
+
1. SBOM: генерация CycloneDX SBOM через Syft при сборке; прикрепление к образу через cosign
|
|
109
|
+
2. Подпись: подпись образа через cosign с GitHub OIDC (keyless) после push
|
|
110
|
+
3. Provenance: SLSA level 2 через docker/build-push-action (provenance: true)
|
|
111
|
+
4. Верификация: добавить шаг cosign verify в CD pipeline перед каждым деплоем
|
|
112
|
+
5. Политика: Kyverno ClusterPolicy — блокировка неподписанных образов в production namespace
|
|
113
|
+
6. Pinning зависимостей: base image должен ссылаться на @sha256 digest, не тег
|
|
114
|
+
Показать полный обновлённый workflow GitHub Actions + Kyverno политику
|
|
115
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Rule: Pipeline Standards
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — Pipelines without quality gates do not deploy to production.
|
|
4
|
+
|
|
5
|
+
## Mandatory Pipeline Stages (in order)
|
|
6
|
+
|
|
7
|
+
1. **lint** — static analysis, formatting check; zero tolerance for errors
|
|
8
|
+
2. **test** — unit + integration; coverage gate ≥ 80% on critical paths
|
|
9
|
+
3. **build** — reproducible image/artifact with content-addressable tag (digest)
|
|
10
|
+
4. **scan** — SAST + dependency CVE audit + secrets detection; blocks on Critical/High
|
|
11
|
+
5. **deploy-staging** — deploy to staging; auto-triggered on main branch merge
|
|
12
|
+
6. **smoke-test** — automated health check against staging post-deploy
|
|
13
|
+
7. **deploy-production** — manual approval gate + canary rollout
|
|
14
|
+
|
|
15
|
+
## Image Tagging
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
❌ :latest, :main, :branch-name (mutable — untraceable)
|
|
19
|
+
✅ :<git-sha> (immutable, traceable)
|
|
20
|
+
✅ image@sha256:<digest> (preferred in K8s manifests)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Secrets in CI
|
|
24
|
+
|
|
25
|
+
- CI secrets stored in vault (GitHub Actions Secrets, GitLab Variables masked+protected).
|
|
26
|
+
- OIDC-based cloud auth preferred over long-lived access keys.
|
|
27
|
+
- No `echo $SECRET` or `env` dump in logs — mask all sensitive values.
|
|
28
|
+
|
|
29
|
+
## Pipeline as Code
|
|
30
|
+
|
|
31
|
+
- All pipeline config lives in the repo alongside the code it builds.
|
|
32
|
+
- No pipeline configuration via UI — Git is the only source of truth.
|
|
33
|
+
- Pipeline changes require peer review (same PR as code changes when possible).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Rule: Quality Gates
|
|
2
|
+
|
|
3
|
+
**Priority**: P1 — Gates below minimum thresholds block promotion to production.
|
|
4
|
+
|
|
5
|
+
## Gate Thresholds
|
|
6
|
+
|
|
7
|
+
| Gate | Minimum | Block on |
|
|
8
|
+
|:---|:---|:---|
|
|
9
|
+
| Unit test coverage (critical paths) | 80% | < 70% |
|
|
10
|
+
| Integration tests | all pass | any failure |
|
|
11
|
+
| SAST findings | 0 Critical/High unresolved | any Critical/High |
|
|
12
|
+
| Dependency CVE | 0 Critical/High unresolved | any Critical/High |
|
|
13
|
+
| Secrets scan | 0 findings | any finding |
|
|
14
|
+
| Image scan | 0 Critical/High CVEs | any Critical/High |
|
|
15
|
+
| Smoke tests (staging) | 100% pass | any failure |
|
|
16
|
+
|
|
17
|
+
## Promotion Rules
|
|
18
|
+
|
|
19
|
+
1. Code merges to `main` only after all CI gates pass.
|
|
20
|
+
2. Staging deployment is automatic on `main` merge.
|
|
21
|
+
3. Production deployment requires:
|
|
22
|
+
- Staging deployment healthy for ≥ 15 minutes
|
|
23
|
+
- Manual approval from team-lead or on-call
|
|
24
|
+
- No active P0/P1 incidents
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Rule: Supply Chain Security
|
|
2
|
+
|
|
3
|
+
**Priority**: P0 — Unsigned or unverified artifacts are blocked from production.
|
|
4
|
+
|
|
5
|
+
## SBOM (Software Bill of Materials)
|
|
6
|
+
|
|
7
|
+
1. Every container image build generates an SBOM (Syft / Trivy).
|
|
8
|
+
2. SBOM attached to image in OCI registry (cosign attach sbom).
|
|
9
|
+
3. SBOM stored for minimum 1 year per compliance requirements.
|
|
10
|
+
|
|
11
|
+
## Image Signing (Sigstore/cosign)
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Sign image after build
|
|
15
|
+
cosign sign --key env://COSIGN_PRIVATE_KEY \
|
|
16
|
+
registry.example.com/my-service@sha256:<digest>
|
|
17
|
+
|
|
18
|
+
# Verify before deploy (in CD pipeline)
|
|
19
|
+
cosign verify --key env://COSIGN_PUBLIC_KEY \
|
|
20
|
+
registry.example.com/my-service@sha256:<digest>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
4. Unsigned images are blocked from production namespaces via OPA/Kyverno policy.
|
|
24
|
+
|
|
25
|
+
## Dependency Pinning
|
|
26
|
+
|
|
27
|
+
5. All `package.json`, `requirements.txt`, `go.sum` must pin exact versions.
|
|
28
|
+
6. `pip install requests` (unpinned) is forbidden in CI — use `requirements.txt` with hashes.
|
|
29
|
+
7. Base images pinned to digest in Dockerfile: `FROM python:3.12-slim@sha256:...`
|
|
30
|
+
|
|
31
|
+
## Audit Trail
|
|
32
|
+
|
|
33
|
+
8. Every build records: git commit, build timestamp, base image digest, all dependency versions.
|
|
34
|
+
9. Provenance attestation (SLSA level 2+) generated for production releases.
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: artifact-management
|
|
3
|
+
type: skill
|
|
4
|
+
description: Manage container images, Helm charts, and build artifacts — registry organization, retention, promotion between environments.
|
|
5
|
+
related-rules:
|
|
6
|
+
- pipeline-standards.md
|
|
7
|
+
- supply-chain-security.md
|
|
8
|
+
allowed-tools: Read, Write, Edit, Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Skill: Artifact Management
|
|
12
|
+
|
|
13
|
+
> **Expertise:** OCI registry organization, image tagging strategy, Helm chart registry, artifact promotion, retention policies.
|
|
14
|
+
|
|
15
|
+
## When to load
|
|
16
|
+
|
|
17
|
+
When designing artifact storage, setting up Helm chart publishing, configuring image retention, or promoting artifacts between environments.
|
|
18
|
+
|
|
19
|
+
## Image Tagging Strategy
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
Registry: registry.example.com / myorg/<service>
|
|
23
|
+
|
|
24
|
+
Development (PR):
|
|
25
|
+
registry.example.com/myorg/order-service:pr-123-abc1234 ← per-PR, short-lived
|
|
26
|
+
|
|
27
|
+
Staging (main branch merge):
|
|
28
|
+
registry.example.com/myorg/order-service:main-abc1234def ← branch + sha
|
|
29
|
+
|
|
30
|
+
Release (git tag):
|
|
31
|
+
registry.example.com/myorg/order-service:v2.3.1 ← semver tag
|
|
32
|
+
registry.example.com/myorg/order-service:v2.3 ← minor floating (optional)
|
|
33
|
+
registry.example.com/myorg/order-service@sha256:abc... ← digest (use in K8s manifests)
|
|
34
|
+
|
|
35
|
+
❌ NEVER in production:
|
|
36
|
+
:latest / :main / :develop ← mutable, untraceable
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Build + Push with Digest Output
|
|
40
|
+
|
|
41
|
+
```yaml
|
|
42
|
+
# GitHub Actions — capture digest for downstream jobs
|
|
43
|
+
- name: Build and push
|
|
44
|
+
id: build
|
|
45
|
+
uses: docker/build-push-action@v6
|
|
46
|
+
with:
|
|
47
|
+
tags: |
|
|
48
|
+
registry.example.com/myorg/order-service:${{ github.sha }}
|
|
49
|
+
registry.example.com/myorg/order-service:v${{ steps.version.outputs.tag }}
|
|
50
|
+
outputs: type=image,push=true
|
|
51
|
+
|
|
52
|
+
- name: Export digest
|
|
53
|
+
run: echo "${{ steps.build.outputs.digest }}" > /tmp/digest.txt
|
|
54
|
+
|
|
55
|
+
# Use digest in deploy job (pinned, immutable)
|
|
56
|
+
- name: Deploy
|
|
57
|
+
run: |
|
|
58
|
+
helm upgrade --install order-service charts/order-service \
|
|
59
|
+
--set image.digest=${{ steps.build.outputs.digest }}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Helm Chart Registry (OCI)
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Push chart to OCI registry (Helm 3.8+)
|
|
66
|
+
helm package charts/order-service --version 1.2.3
|
|
67
|
+
helm push order-service-1.2.3.tgz oci://registry.example.com/myorg/charts
|
|
68
|
+
|
|
69
|
+
# Pull and use in CI/CD
|
|
70
|
+
helm upgrade --install order-service \
|
|
71
|
+
oci://registry.example.com/myorg/charts/order-service \
|
|
72
|
+
--version 1.2.3
|
|
73
|
+
|
|
74
|
+
# GitLab registry (built-in Helm registry)
|
|
75
|
+
helm push order-service-1.2.3.tgz oci://registry.gitlab.com/myorg/helm-charts
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Artifact Promotion Pattern (staging → production)
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# Promote: re-tag staging image as release candidate (no rebuild)
|
|
82
|
+
# Using crane (OCI tool) — copy image without pulling/pushing layers
|
|
83
|
+
crane copy \
|
|
84
|
+
registry.example.com/myorg/order-service:main-abc1234 \
|
|
85
|
+
registry.example.com/myorg/order-service:v2.3.1
|
|
86
|
+
|
|
87
|
+
# Verify digest is same (promotion = same bytes, different tag)
|
|
88
|
+
crane digest registry.example.com/myorg/order-service:main-abc1234
|
|
89
|
+
crane digest registry.example.com/myorg/order-service:v2.3.1
|
|
90
|
+
# Must match ✅
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Registry Organization (Harbor / internal)
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
registry.example.com/
|
|
97
|
+
├── dev/ ← PR images; retain 7 days; no signing required
|
|
98
|
+
│ └── myorg/<service>:<pr-tag>
|
|
99
|
+
├── staging/ ← main branch images; retain 30 days; scan required
|
|
100
|
+
│ └── myorg/<service>:<sha-tag>
|
|
101
|
+
├── releases/ ← versioned releases; retain 1 year; signed + SBOM attached
|
|
102
|
+
│ └── myorg/<service>:v<semver>
|
|
103
|
+
└── base/ ← internal base images; curated, patched, signed
|
|
104
|
+
├── python:3.12-slim
|
|
105
|
+
└── golang:1.23-alpine
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Retention Policy (Harbor / ECR)
|
|
109
|
+
|
|
110
|
+
```yaml
|
|
111
|
+
# Harbor retention policy (UI or API)
|
|
112
|
+
rules:
|
|
113
|
+
- tag_selectors:
|
|
114
|
+
- kind: doublestar
|
|
115
|
+
pattern: "pr-*"
|
|
116
|
+
action: retain
|
|
117
|
+
params:
|
|
118
|
+
latestPushedK: 5 # keep only 5 latest per PR branch
|
|
119
|
+
scope_selectors:
|
|
120
|
+
- kind: daysAgo
|
|
121
|
+
params: { daysAgo: "7" } # and delete after 7 days regardless
|
|
122
|
+
|
|
123
|
+
- tag_selectors:
|
|
124
|
+
- kind: doublestar
|
|
125
|
+
pattern: "v[0-9]*" # semver tags
|
|
126
|
+
action: retain # retain all versioned releases
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# ECR lifecycle policy
|
|
131
|
+
aws ecr put-lifecycle-policy \
|
|
132
|
+
--repository-name myorg/order-service \
|
|
133
|
+
--lifecycle-policy '{
|
|
134
|
+
"rules": [{
|
|
135
|
+
"rulePriority": 1,
|
|
136
|
+
"selection": {
|
|
137
|
+
"tagStatus": "tagged",
|
|
138
|
+
"tagPrefixList": ["pr-"],
|
|
139
|
+
"countType": "sinceImagePushed",
|
|
140
|
+
"countUnit": "days",
|
|
141
|
+
"countNumber": 7
|
|
142
|
+
},
|
|
143
|
+
"action": {"type": "expire"}
|
|
144
|
+
}]
|
|
145
|
+
}'
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Vulnerability Database Refresh
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# Trivy: update vuln DB before scanning (don't use stale DB in CI)
|
|
152
|
+
trivy image --download-db-only
|
|
153
|
+
# Or in GitHub Actions:
|
|
154
|
+
- uses: aquasecurity/trivy-action@master
|
|
155
|
+
with:
|
|
156
|
+
update-db: true
|
|
157
|
+
```
|