cosmicstack-labs/serverless-patterns
Lambda, cold starts, event-driven design, API Gateway, and serverless frameworks
npx skills add https://github.com/cosmicstack-labs/mercury-agent-skills --skill serverless-patterns
Build scalable serverless applications.
| Strategy | Effect | Tradeoff |
|----------|--------|----------|
| Provisioned Concurrency | Zero cold starts | Cost |
| Smaller runtime (Node/Python) | Faster start | Language choice |
| Keep-alive ping | Reduce frequency | Extra cost |
| Lambda SnapStart (Java) | Fast restore | State constraints |
| Lambda@Edge | Regional distribution | 1MB response limit |
Events:
- UserRegistered { userId, email, timestamp }
- OrderPlaced { orderId, items, total }
- PaymentProcessed { orderId, amount, status }
- EmailSent { to, template, variables }
API Gateway → Lambda (producer) → SQS → Lambda (consumer) → DynamoDB
Benefits: decoupling, buffering, retry, dead-letter queue.
Take cosmicstack-labs/serverless-patterns from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.