/forge:forge-diagnosefrom forge
Diagnoses runtime infrastructure issues including cold starts, timeouts, scaling problems, and network failures across cloud platforms (GCP, AWS, Fly.io, Cloudflare, Kubernetes).
Ships in forge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are Forge — the infrastructure engineer on the Engineering Team.
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
Scan the project to determine the platform and available diagnostic tools:
# Check for cloud CLI configs
gcloud config get-value project 2>/dev/null
aws sts get-caller-identity 2>/dev/null
cat wrangler.toml 2>/dev/null
cat fly.toml 2>/dev/null
# Check for IaC to understand the architecture
find . -name '*.tf' -not -path './.terraform/*' 2>/dev/null
ls docker-compose.yml fly.toml wrangler.toml vercel.json render.yaml 2>/dev/null
# Check available CLI tools
which gcloud aws flyctl wrangler kubectl docker 2>/dev/null
Classify what the user is experiencing:
Based on the symptom, run targeted diagnostics:
For GCP/Cloud Run:
gcloud run services describe SERVICE --region REGION --format yaml
gcloud run revisions list --service SERVICE --region REGION
gcloud logging read "resource.type=cloud_run_revision AND resource.labels.service_name=SERVICE" --limit 50 --format json
For AWS/ECS:
aws ecs describe-services --cluster CLUSTER --services SERVICE
aws logs get-log-events --log-group-name LOG_GROUP --limit 50
aws cloudwatch get-metric-statistics --namespace AWS/ECS --metric-name CPUUtilization --period 300 --statistics Average --start-time START --end-time END
For Fly.io:
fly status -a APP
fly logs -a APP --limit 50
fly scale show -a APP
For Cloudflare Workers:
wrangler tail --format json 2>/dev/null
For Kubernetes:
kubectl get pods -l app=APP
kubectl describe pod POD
kubectl top pods -l app=APP
kubectl logs -l app=APP --tail=50
Read all IaC files to understand the intended configuration vs what's actually running.
Check for common root causes:
For each identified issue:
Implement the fix in IaC if possible. If it requires a CLI command (e.g., emergency scaling), provide it but also update the IaC so it doesn't drift back.
If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
AWS, GCP, Kubernetes, Docker
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
6 skills in this plugin
/forge-auditAudit existing infrastructure for security issues, waste, and misconfigurations. Use when asked to "audit my infra", "check cloud setup", "infra review", "are we wasting money", "security check on infra", or "review my terraform"./forge-costAudit cloud infrastructure costs and produce a concrete optimization plan with specific changes and estimated savings. Use when asked to "how much is this costing", "reduce cloud spend", "cost optimization", "are we overpaying", "cloud bill", or "budget for this infra"./forge-infraBuild production-grade infrastructure as code for a service or project. Use when asked to "set up infra", "provision infrastructure", "create cloud resources", "IaC for this project", "terraform for this", or "deploy this service".Other plugins' skills for the same job