g1joshi/agent-skills/serverless
Claude Code and agent skill by g1joshi/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert Serverless architecture assistance covering Function-as-a-Service (FaaS), event triggers, cold start mitigation, stateless execution, and cloud BaaS integration. Use when building AWS Lambda, Google Cloud Functions, or Cloudflare Workers systems with event-driven scale.
Install
npx vskill@latest install g1joshi/agent-skills/serverlessSKILL.md
The same SKILL.md was published earlier as g1joshi/agent-skills/serverless.
Serverless
Serverless is a cloud-native development model for building and running applications without managing servers. The cloud provider handles the routine work of provisioning, maintaining, and scaling the server infrastructure.
When to Use
- Event-Driven Workloads: Processing file uploads (S3), stream events (Kafka/Kinesis), and asynchronous queue workers.
- Variable & Spiky Traffic: Applications with unpredictable request volumes scaling automatically from 0 to thousands of instances.
- Low-Maintenance Web APIs: Deploying micro-APIs or webhook handlers without managing servers, operating systems, or patching.
- Scheduled Background Tasks: Running cron jobs, batch data transformations, and reporting tasks via EventBridge / CloudWatch.
Quick Start
Core Concepts
Ephemeral Stateless Execution
Instances spin up on demand and shut down after idle periods; in-memory state is destroyed when containers terminate:
Cold Start Lifecycle & Mitigation
Understanding initialization phases:
Cloud BaaS Integration & Event Mappings
Connects functions directly to cloud managed services without polling:
Common Patterns
Connection Pool Management Outside Handler
Problem: Serverless functions initialize new database connections on every invocation, exhausting connection limits. Solution: Initialize database pools outside the lambda handler to reuse connections across warm invocations.
Best Practices
Do:
- Keep Deployment Packages Compact: Minify JavaScript with esbuild; keep lambda zip files small to reduce cold start initialization times.
- Reuse Persistent Connections in Global Scope: Instantiate database connection pools, AWS SDK clients, and HTTP agents outside the handler.
- Enforce Fine-Grained IAM Permissions: Grant functions least-privilege access to only the specific database tables or S3 buckets needed.
- Implement Structured Logging with Correlation IDs: Inject invocation request IDs and tracing headers into every log output.
Don't:
- Run long-running monolithic services in Lambda: Functions exceeding 15-minute limits or requiring continuous memory belong in ECS/Kubernetes.
- Create unpooled relational database connections: Use RDS Proxy or HTTP-based database drivers (Neon, PlanetScale) to prevent connection exhaustion.
- Store files on local disk: The
/tmpdirectory is ephemeral and shared only during warm invocations; store assets in S3.
Troubleshooting
| Error | Cause | Solution | |
|---|---|---|---|
Timeout | Function took too long. | Increase timeout setting; optimize code; move to async pattern. | |
OOM (Out of Memory) | Processing large files. | Increase RAM (allocates more CPU too); stream data instead of loading all in memory. |
References
Security
- Security scanPassed, 90 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/architecture/serverless/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/g1joshi/agent-skills/serverless)