EC

ecs-runtime-debug-playbook

Diagnostic workflow for ECS deployments that verifies live state against CI/CD claims.

Install

mkdir -p .claude/skills/ecs-runtime-debug-playbook && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13584" && unzip -o skill.zip -d .claude/skills/ecs-runtime-debug-playbook && rm skill.zip

Installs to .claude/skills/ecs-runtime-debug-playbook

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Debug AWS ECS or Fargate deployments where CI or workflow status does not match live behavior, especially when an old task definition keeps serving traffic, a new task exits during startup, health checks are false-green, Alembic or schema state may be inconsistent with physical tables, or AWS profile or region confusion blocks diagnosis. Use when tracing deploy failures across workflows, ECS services, one-off tasks, CloudWatch logs, database state, and public smoke checks.
477 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Pin the investigation scope by recording expected release SHA, task definition, cluster, service, AWS profile, and region.
  • Compare the workflow claim to live ECS state, inspecting service `taskDefinition`, `desiredCount`, `runningCount`, and deployments.
  • Collect crash evidence before changing anything, inspecting stopped tasks and CloudWatch logs.
  • Verify runtime invariants inside the real runtime, preferring one-off inspection tasks.
  • Repair the smallest trustworthy layer, creating snapshots for live data mutations and replaying migrations.

How it works

This skill systematically debugs ECS/Fargate deployment incidents by verifying each layer against live state, collecting crash evidence, and repairing the smallest trustworthy component.

Inputs & outputs

You give it
AWS ECS or Fargate deployment issues where CI/workflow status does not match live behavior.
You get back
Identified root cause, live repair sequence, guardrails added, and validation performed, recorded in an incident record.

When to use ecs-runtime-debug-playbook

  • Debug ECS deployment failures
  • Verify Fargate task revision
  • Investigate service health check errors

About this skill

ECS Runtime Debug Playbook

Use this skill to debug deploy incidents by proving each layer in order instead of trusting workflow output.

Read references/playbook.md when you need the full checklist, failure-pattern inventory, example commands, or validation expectations.

Workflow

1. Pin the investigation scope

  • Record the expected release SHA, task definition revision, cluster, service, AWS profile, and region before inspecting anything.
  • Export AWS_DEFAULT_PROFILE, AWS_REGION, and AWS_DEFAULT_REGION explicitly for every command path that touches live infrastructure.
  • Treat relative labels like "latest deploy" or "the new backend" as unsafe until they are tied to exact ARNs, workflow run IDs, or commit SHAs.

2. Compare the workflow claim to live ECS state

  • Inspect the ECS service first. Do not assume a green workflow means the intended revision is actually serving traffic.
  • Check service taskDefinition, service desiredCount and runningCount, the PRIMARY deployment revision, and whether any older deployments still have running or pending tasks.
  • If the intended task definition is not the only active deployment serving the full desired count, treat rollout as incomplete even if CI reported success.

3. Collect crash evidence before changing anything

  • Inspect the stopped task for the intended revision.
  • Read the CloudWatch log stream for the startup failure.
  • Identify the first concrete runtime fault, not just the top-level deploy symptom.

4. Verify runtime invariants inside the real runtime

  • Prefer one-off inspection tasks that run inside the same image and task definition as the failing service.
  • For database-backed services, compare revision metadata to physical schema state. Do not trust Alembic head alone.
  • If a health endpoint says healthy but the runtime crashes on startup, assume the readiness contract is incomplete until proven otherwise.

5. Repair the smallest trustworthy layer

  • If live data may be mutated, create a snapshot first.
  • If revision metadata is ahead of the physical schema, rewind or restamp only to the last revision you can prove is real, then replay migrations forward.
  • If the failure is a false-green deploy gate, fix the rollout waiter or readiness logic in code so the same incident cannot pass again.
  • Prefer repairing the contract and the live state together: one without the other leaves recurrence risk.

6. Prove recovery with live checks

  • Re-run the migration or repair path and confirm the expected revision and required runtime objects now exist.
  • Wait until the exact expected task definition is the sole active serving deployment.
  • Run public or load-balancer-level smoke checks against the live system, not only internal health checks.

7. Write the incident record

  • Record the root cause, contradictory signals, live repair sequence, guardrails added, and validation performed.
  • Make the record specific enough that another agent can repeat the investigation without rediscovering the path.

Guardrails

  • Prefer exact resource identifiers over inferred names.
  • Prefer one-off runtime inspection over local speculation.
  • Prefer physical schema checks over metadata-only checks.
  • Prefer explicit rollout success criteria over provider waiters whose semantics you have not verified.
  • Stop before risky live mutation if you do not have a snapshot or rollback path.

When not to use it

  • When trusting workflow output without proving each layer in order.
  • When relying on relative labels like 'latest deploy' without tying them to exact ARNs or SHAs.
  • When proceeding with risky live mutation without a snapshot or rollback path.

Limitations

  • The skill requires explicit export of `AWS_DEFAULT_PROFILE`, `AWS_REGION`, and `AWS_DEFAULT_REGION`.
  • The skill treats relative labels like 'latest deploy' as unsafe until tied to exact ARNs, workflow run IDs, or commit SHAs.
  • The skill prefers exact resource identifiers over inferred names.

How it compares

This skill enforces a rigorous, evidence-based debugging process for ECS/Fargate deployments, bypassing workflow assumptions to confirm live behavior, unlike relying on CI status alone.

Compared to similar skills

ecs-runtime-debug-playbook side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ecs-runtime-debug-playbook (this skill)04moNo flagsAdvanced
deployment-pipeline-design62moReviewAdvanced
mlops-engineer34moNo flagsAdvanced
ecs23moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

deployment-pipeline-design

wshobson

Design multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use when architecting deployment workflows, setting up continuous delivery, or implementing GitOps practices.

670

mlops-engineer

sickn33

Build comprehensive ML pipelines, experiment tracking, and model registries with MLflow, Kubeflow, and modern MLOps tools. Implements automated training, deployment, and monitoring across cloud platforms. Use PROACTIVELY for ML infrastructure, experiment management, or pipeline automation.

333

ecs

itsmostafa

AWS ECS container orchestration for running Docker containers. Use when deploying containerized applications, configuring task definitions, setting up services, managing clusters, or troubleshooting container issues.

215

enter-services

pollinations

Deploy and manage enter.pollinations.ai text/image services on EC2 and Cloudflare Workers. Requires: SSH keys, sops, wrangler.

11

exa-deploy-integration

jeremylongshore

Deploy Exa integrations to Vercel, Fly.io, and Cloud Run platforms. Use when deploying Exa-powered applications to production, configuring platform-specific secrets, or setting up deployment pipelines. Trigger with phrases like "deploy exa", "exa Vercel", "exa production deploy", "exa Cloud Run", "exa Fly.io".

01

backstage-deployment

Ohorizons

Deploys the upstream open-source Backstage developer portal on Azure AKS or locally via Docker Desktop. USE FOR: deploy Backstage, Backstage on AKS, Backstage local Docker, Backstage Helm chart, Backstage PostgreSQL, Backstage ACR image, Backstage GitHub OAuth, Microsoft Entra ID auth, GitHub Enterp

00

Search skills

Search the agent skills registry