

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
123456## Context78This instruction file applies to deployment scripts, appspec files, and deployment configuration. All deployments must be observable, reversible, and gated by a pre-deploy checklist. "Works in dev" is not a deployment strategy.910---1112## Deployment Patterns1314### Blue/Green Deployment (Production Default)1516- Route 100% traffic to Green (current) while Blue (new) is provisioned17- Smoke test Blue fully before any traffic shift18- Shift 100% traffic to Blue atomically19- Keep Green available for 30 minutes for instant rollback20- AWS services: CodeDeploy `AllAtOnce` on ECS with `BlueGreenDeploymentConfig`2122### Canary Deployment (Progressive Rollout)2324- Shift traffic incrementally: 10% → 25% → 50% → 100%25- Monitor error rate and latency at each stage before proceeding26- Automatic rollback if error rate exceeds threshold at any stage27- AWS services: CodeDeploy Linear/Canary deployment configuration2829### Rolling Update (Non-Production)3031- Replace instances/tasks one at a time while maintaining minimum healthy percent32- ECS: `minimumHealthyPercent: 100`, `maximumPercent: 200`3334---3536## Pre-Deploy Checklist3738This checklist must be completed before any production deployment:3940- [ ] `cdk diff` / `terraform plan` reviewed and approved by two engineers41- [ ] Database migration scripts are idempotent and tested in staging42- [ ] Secrets exist in Secrets Manager for target environment43- [ ] CloudWatch alarms are armed and baseline metrics recorded44- [ ] Rollback procedure tested and documented in runbook45- [ ] On-call engineer notified and standing by46- [ ] Deployment window agreed (prefer off-peak hours for P1 risk changes)47- [ ] Customer communication drafted (if user-visible change)48- [ ] Post-deploy smoke test script prepared4950---5152## AWS CDK Deploy Commands5354```bash55# Mandatory: review changes before deploy56npx cdk diff \57 --profile ${AWS_PROFILE} \58 --context env=${ENV}5960# Deploy a specific stack61npx cdk deploy ${STACK_NAME} \62 --profile ${AWS_PROFILE} \63 --context env=${ENV} \64 --require-approval never \65 --outputs-file cdk-outputs.json6667# Destroy (non-production only — CAUTION)68npx cdk destroy ${STACK_NAME} \69 --profile ${AWS_PROFILE} \70 --context env=${ENV} \71 --force72```7374## SAM Deploy Commands7576```bash77sam build7879sam deploy \80 --stack-name ${STACK_NAME} \81 --s3-bucket ${DEPLOY_BUCKET} \82 --parameter-overrides Env=${ENV} \83 --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM \84 --no-confirm-changeset \85 --region ${AWS_REGION}86```8788---8990## Smoke Test Template9192```bash93#!/usr/bin/env bash94set -euo pipefail9596BASE_URL="${BASE_URL:-http://localhost:8080}"97PASS=0; FAIL=09899check() {100 local name=$1; local cmd=$2101 if eval "$cmd" > /dev/null 2>&1; then102 echo "✅ PASS: $name"; ((PASS++))103 else104 echo "❌ FAIL: $name"; ((FAIL++))105 fi106}107108check "Health endpoint UP" "curl -sf ${BASE_URL}/actuator/health | grep -q '\"status\":\"UP\"'"109check "API v1 ping" "curl -sf ${BASE_URL}/api/v1/ping | grep -q 'pong'"110check "No 500s in CloudWatch" "aws cloudwatch get-metric-statistics --namespace AWS/ApplicationELB \111 --metric-name HTTPCode_Target_5XX_Count --statistics Sum --period 300 \112 --start-time $(date -u -v-5M +%FT%TZ) --end-time $(date -u +%FT%TZ) \113 --dimensions Name=LoadBalancer,Value=${ALB_NAME} | jq '.Datapoints[0].Sum // 0 | . == 0'"114115echo ""116echo "Results: ${PASS} passed, ${FAIL} failed"117[[ $FAIL -eq 0 ]] || exit 1118```119120---121122## Rollback Runbook Template123124```markdown125## Rollback Runbook: {Service Name}126127### Trigger Conditions128Initiate rollback if any of the following occur within 10 minutes of deployment:129- Error rate > 1% (production baseline)130- p99 latency > 2x baseline131- Any smoke test failure132133### Rollback Steps134135#### ECS (CodeDeploy)136```bash137# Identify the failed deployment138aws deploy list-deployments --application-name ${APP_NAME} --deployment-group-name ${GROUP_NAME}139140# Rollback to previous task definition141aws ecs update-service \142 --cluster ${CLUSTER} \143 --service ${SERVICE} \144 --task-definition ${PREVIOUS_TASK_DEF_ARN} \145 --force-new-deployment146```147148#### CDK Stack149```bash150# Redeploy previous version from git tag151git checkout ${PREVIOUS_TAG}152npx cdk deploy ${STACK_NAME} --context env=prod --require-approval never153```154155### Verification156- Run smoke tests against rollback deployment157- Confirm error rate returns to baseline in CloudWatch158- Post rollback completion in #incidents channel159```160161---162163## Anti-Patterns164165- ❌ Deploying directly to production without staging validation166- ❌ Skipping `cdk diff` / `terraform plan` before apply167- ❌ Deploying during peak business hours without business sign-off168- ❌ No rollback plan for a production deployment169- ❌ Long-lived feature flags instead of clean deployments170171```
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| doubts-suplab/eeik-bootstrap.clinerules/golden-rules.md · 1 | Cline rules | gitsecuritydo-not | 61/100 | today | |
| doubts-suplab/eeik-bootstrap.clinerules/project.md · 1 | Cline rules | teststylegit | 63/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/architecture.mdc · 1 | Cursor rules | do-not | 52/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/capabilities.mdc · 1 | Cursor rules | teststylegit | 58/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/golden-rules.mdc · 1 | Cursor rules | gitsecuritydo-not | 61/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/python.mdc · 1 | Cursor rules | lint-formatstyletypesapi+1 | 77/100 | today | |
| doubts-suplab/eeik-bootstrap.cursor/rules/security.mdc · 1 | Cursor rules | security | 39/100 | today | |
| doubts-suplab/eeik-bootstrap.github/copilot-instructions.md · 1 | Copilot instructions | lint-formatstyletesting-strategygit+2 | 54/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/a2a-protocol.instructions.md · 1 | Copilot instructions | styleagent-behaviour | 48/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/ai-governance.instructions.md · 1 | Copilot instructions | stylearchdo-notagent-behaviour | 61/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/angular.instructions.md · 1 | Copilot instructions | teststyletypestesting-strategy+4 | 69/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/architecture-governance.instructions.md · 1 | Copilot instructions | testlint-formatstylegit+4 | 65/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/autogen.instructions.md · 1 | Copilot instructions | typessecurityagent-behaviour | 50/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/aws-architecture.instructions.md · 1 | Copilot instructions | styletypessecurityperformance | 58/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/aws-data-ml-ai.instructions.md · 1 | Copilot instructions | deployment | 54/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/cdk-terraform.instructions.md · 1 | Copilot instructions | teststylearchtypes+2 | 96/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/cicd.instructions.md · 1 | Copilot instructions | stylesecuritydeploymentdo-not+1 | 65/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/containerisation.instructions.md · 1 | Copilot instructions | buildstylesecuritydo-not | 77/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/crewai.instructions.md · 1 | Copilot instructions | styleagent-behaviour | 48/100 | today | |
| doubts-suplab/eeik-bootstrap.github/instructions/data-engineering.instructions.md · 1 | Copilot instructions | teststyletypesgit+5 | 69/100 | today |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 14 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 65 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| pytorch/pytorch.github/copilot-instructions.md · 102k | Copilot instructions | setupbuildteststyle+5 | 100/100 | 14 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 32k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 7 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 14 days ago | |
| hiyouga/LlamaFactory.github/copilot-instructions.md · 74k | Copilot instructions | setupbuildtestlint-format+5 | 97/100 | 13 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 25 | Copilot instructions | setupbuildtestlint-format+8 | 96/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/doubts-suplab-eeik-bootstrap-github-instructions-deployment-instructions)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.