seiyajapon/ia-handbooks/serverless-architecture
Claude Code and agent skill by seiyajapon/ia-handbooks
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install seiyajapon/ia-handbooks/serverless-architectureSKILL.md
The same SKILL.md was published earlier as seiyajapon/ia-handbooks/serverless-architecture.
Serverless Architecture Skill
Use this skill when designing, reviewing, or refactoring software using serverless. Triggers: serverless, Lambda, Cloud Functions, FaaS, function as a service, cold starts, vendor-managed compute.
What serverless is
Serverless is an architecture and runtime model where code runs in short-lived, managed compute triggered by events (HTTP requests, queue messages, schedules, file uploads). The platform owns the runtime; the developer owns the function.
Key examples: AWS Lambda, Google Cloud Functions, Azure Functions, Cloudflare Workers, Vercel Functions.
The defining properties:
- Short-lived execution. Each invocation is independent; no long-running process.
- Vendor-managed runtime. The platform handles scaling, infrastructure, OS, runtime version.
- Event-driven. Functions are triggered by events.
- Pay per use. Cost scales with invocations, not with reserved capacity.
What serverless is and is not
Serverless is an architecture and runtime model. It is not:
- A synonym of "stateless". Functions can have state (in databases, in caches); they just do not own the runtime.
- A synonym of "Lambda". Lambda is one platform; serverless is the architectural pattern.
- A replacement for all backends. Long-running services, stateful workloads, latency-critical paths often need long-running compute.
- An automatic best practice. Serverless has costs (cold starts, vendor lock-in, debugging complexity).
Non-negotiable rule
Never start serverless work from "let's use Lambda".
The mandatory order is:
- Identify the workloads. What runs? When? How long? How often?
- Match each workload against serverless fit (event-driven, short, bursty) vs long-running fit (always-on, stateful, latency-critical).
- Pick serverless only for workloads that fit.
- Decide the function granularity (one function per use case, one per event type, etc.).
- Decide cold start mitigation strategy.
- Decide stateful concerns (database connections, caches, secrets).
- Only then discuss specific platforms (Lambda, Cloud Functions) and frameworks.
Hard rules
Each function has one job
A function does one thing. Composing many operations in one function turns serverless into "monolith on FaaS".
Functions are stateless
Function state lives outside the function: databases, caches, queues. The function instance may die between invocations.
Cold starts are real
The first invocation of a function (after idle, after deploy) is slower. Latency-critical paths must mitigate (provisioned concurrency, minimum instances, runtime choice).
Vendor lock-in is real
Each platform has its own invocation contract, event types, environment limits. Code coupled to the platform is hard to migrate. Mitigate: hexagonal core inside the function, the function handler as a driving adapter.
Forbidden shortcuts
- "Lambda is the architecture."
- "Each function is a service, so we are doing microservices."
- "Cold starts do not matter."
- "Serverless = stateless = simple."
- "We use Lambda, so we have hexagonal architecture."
Mandatory review behavior
When reviewing serverless, check in order:
- Is each workload's serverless fit justified?
- Does each function have one clear responsibility?
- Is the function handler a thin driving adapter, with the core inside the function (or in a shared library)?
- Are cold starts mitigated where they matter?
- Are connections (database, HTTP) managed correctly across invocations (pooling, connection limits)?
- Is observability in place (CloudWatch, distributed tracing)?
- Is the platform coupling minimised, or has the function become a vendor-specific blob?
When to pick serverless
- Bursty or unpredictable load.
- Event-driven workflows (queue consumers, scheduled jobs, HTTP endpoints with low constant load).
- Operational simplicity matters more than runtime control.
- Cost should scale with usage, not with reserved capacity.
When NOT to pick serverless
- Long-running processes.
- Latency-critical paths sensitive to cold starts.
- Stateful workloads where state lives in the runtime.
- Complex local state or large memory footprints.
- Workloads where vendor lock-in is unacceptable.
References
references/01-foundations.mdfor what serverless is, when it applies.references/02-function-design.mdfor granularity, single-responsibility, statelessness.references/03-cold-starts-and-performance.mdfor cold start causes and mitigations.references/04-state-and-connections.mdfor managing databases, caches, secrets across invocations.references/05-relationship-with-other-disciplines.mdfor serverless vs hexagonal/clean/onion (composable internally), vs microservices (composable), vs EDA (natural fit).references/06-anti-patterns.mdfor monolith on FaaS, distributed monolith of functions, vendor blobs.references/07-review-checklist.mdfor reviewing a serverless system.references/08-user-preferences.mdfor Francisco's project conventions.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghandbook_v3/handbook/skills/software-architecture/serverless-architecture/SKILL.md
Popularity
- Repository forks
- 1
- 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/seiyajapon/ia-handbooks/serverless-architecture)