Serverless debugging

From charlieviettq/awesome-agent-skill · View interactive version

Serverless debugging is an AI agent skill from the GitHub repository charlieviettq/awesome-agent-skill. Debug serverless and edge functions—limited logs, cold starts, timeouts, env/config mismatches. Use for Lambda, Cloud Functions, Workers, Vercel/Netlify functions.

How to use this skill

Skill file

Serverless Debugging

Systematic debugging when traditional server logs and SSH are unavailable. Complements test-failure-triage with environment-specific constraints.

When to use

When not to use

Workflow

  1. Reproduce — identify trigger (HTTP event, queue, schedule)
  2. Logs — cloud provider log group/stream; filter by request ID
  3. Config — compare env vars/secrets: local vs deployed (names only, never log values)
  4. Limits — timeout, memory, payload size, concurrency
  5. Cold start — init duration, heavy imports, VPC ENI delay
  6. Dependencies — outbound network, IAM permissions, region mismatch
  7. Minimal fix — smallest change; redeploy; verify with structured log line

Common failure modes

| Symptom | Likely cause |

|---------|----------------|

| Task timed out | Slow downstream, missing async, too much work in handler |

| Cannot find module | Bundle/packaging; wrong runtime |

| Access denied | IAM role, resource policy |

| Connection timeout | VPC/subnet/NAT; wrong security group |

| Works once then fails | State in /tmp; connection pool reuse |

Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.