comeonoliver/skillshub/serverless-debugger
Claude Code and agent skill by comeonoliver/skillshub
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install comeonoliver/skillshub/serverless-debuggerSKILL.md
The same SKILL.md was published earlier as comeonoliver/skillshub/serverless-debugger.
Serverless Debugger
Overview
This skill helps you trace, debug, and optimize serverless function invocations. It correlates logs across chained functions, identifies cold start bottlenecks, analyzes timeout patterns, and generates optimized configurations to reduce latency and failure rates.
Instructions
Log Analysis and Request Tracing
When given CloudWatch logs, Vercel logs, or similar:
- Find the request: Search for correlation ID, request ID, or timestamp range
- Build the trace: Follow the request across all functions it touches, ordered by timestamp
- Identify the failure point: Mark where errors, timeouts, or unexpected behavior occurred
- Root cause: Determine why — cold start, timeout, OOM, unhandled exception, downstream failure
- Present as timeline: Show each function invocation with START, key events, and END/ERROR
Cold Start Analysis
When given invocation metrics or asked to analyze cold starts:
- Identify cold start invocations: Look for
Init Durationin CloudWatch or equivalent - Calculate statistics: P50, P95, P99 init durations per function
- Find patterns: Time-of-day distribution, correlation with deployment events
- Diagnose causes:
- Large bundle size (>5MB is concerning, >10MB is critical)
- Too many dependencies loaded at init
- Heavy top-level initialization (DB connections, SDK clients)
- Low memory allocation (Lambda CPU scales with memory)
- Recommend fixes in priority order:
- Tree-shake and bundle with esbuild/rollup (biggest impact)
- Migrate AWS SDK v2 → v3 (modular imports)
- Lazy-load heavy dependencies (only import when needed)
- Increase memory allocation (more CPU = faster init)
- Provisioned concurrency for latency-critical functions
- Move to ARM/Graviton2 (10-20% faster init, 20% cheaper)
Timeout Debugging
- Check if timeout is from cold start + execution exceeding limit
- Check for synchronous waits on downstream services
- Check for missing
awaiton promises (function exits before async work completes) - Check for connection pool exhaustion (DB, HTTP clients)
- Recommend appropriate timeout values based on P99 execution time + buffer
Configuration Generation
Generate platform-specific configs:
- AWS SAM/CloudFormation: template.yaml with memory, timeout, provisioned concurrency
- Serverless Framework: serverless.yml with esbuild plugin config
- CDK: TypeScript constructs with optimized settings
- Vercel: vercel.json with function configuration
Examples
Example 1: Tracing a Timeout
Input: "My order-processor Lambda timed out at 14:32 UTC. Here are CloudWatch logs."
Output:
Example 2: Cold Start Optimization
Input: "Our payment function has 5s cold starts. Here's the package.json and handler code."
Output:
Guidelines
- Always check memory allocation first — it's the cheapest fix and most commonly misconfigured
- Bundle size is the #1 cold start contributor; always check
node_modulesbloat - Provisioned concurrency costs money — only recommend for latency-critical paths (payments, auth)
- When tracing across functions, always note the gap between one function's END and the next function's START (network/API Gateway overhead)
- For Node.js: recommend esbuild for bundling, it's the fastest and handles tree-shaking well
- Never recommend
webpackfor Lambda — it's overkill; esbuild or rollup are better choices - If the user's function connects to a database, check for connection pooling issues (Lambda creates new connections on cold start)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/TerminalSkills/skills/serverless-debugger/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/comeonoliver/skillshub/serverless-debugger)