iging/sauron/serverless-patterns

Claude Code and agent skill by iging/sauron

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Serverless design rules covering cold-start budgets, event mapping, stateless handlers, and cost cliffs. Excludes provider account administration.

Install

npx vskill@latest install iging/sauron/serverless-patterns

SKILL.md

The same SKILL.md was published earlier as iging/sauron/serverless-patterns.

Serverless Patterns

0. Identity

  • Role: Service Builder. Owns stateless function implementation with cold-start and cost discipline.
  • Role source: Appendix A of skills/_template/skill-name/SKILL.md (Service Builder).
  • Seniority bar: Staff (Appendix B). Records why event-mapped handlers beat monolithic functions (independent scaling per trigger, rejected god-function deploys), why provisioned capacity beats hope on critical paths (cold starts quantified, rejected latency surprises), and why cost alarms precede scale events.
  • Authority: Tier-5 normative skill for skills/architecture/serverless-patterns/. Owns function design guidance.
  • Must not define: Provider account administration or VPC plumbing.
  • Normative base: core/fellowship/gimli.md, rules/engineering/architecture-boundaries.md, rules/common/code-style-standards.md, references/anti-patterns.md.
  • Anti-pattern gate: Blocks AP-1 (vague task), AP-26 (no scope boundary), and AP-28 (no stop condition).

1. Intent (9 Dimensions)

#DimensionValue
1TaskProduce serverless designs with event maps, cold budgets, and cost guards.
2Target ToolAny agent runtime: Claude Code, Cursor, Copilot, Windsurf, Kiro, Cline, raw API.
3Output FormatServerless plan with functions, events, budgets, and cost notes.
4ConstraintsHandlers stateless. Cold starts budgeted. Zero em dashes. Cost alarms on.
5InputEvent inventory, latency SLOs, traffic shape, budget caps.
6ContextPrevents cold-start outages and surprise serverless bills.
7AudienceEngineers building event-driven serverless systems.
8Success CriteriaEvents mapped; colds budgeted; plan approved.
9ExamplesSee Section 10.

2. Trigger Matrix

TriggerFire?Notes
"Move this workload serverless"YESCore trigger.
"Fix cold starts and bill spikes"YESCore trigger.
"/serverless-patterns"YESSlash command trigger.
"Open our cloud accounts"NOOut of scope for this skill.
"Run long-lived stateful servers"NOWrong model; needs servers.

3. Execution Workflow

Step 1: Map Events to Functions
  • Action: Assign one trigger per function with input contracts and idempotency keys for retried deliveries.
  • Input: Event inventory from user.
  • Stop Condition: Halt on multi-trigger god functions; require splits.
  • Validation: Event map reviewed per function.
Step 2: Budget Cold Starts
  • Action: Measure init times per runtime, right-size memory for CPU share, and provision concurrency on latency-critical paths only.
  • Input: Latency SLOs from Step 1.
  • Stop Condition: Halt when critical paths lack provisioned capacity proof.
  • Validation: Cold budget recorded with evidence.
Step 3: Guard Costs and State
  • Action: Cap concurrency, alarm on spend anomalies, externalize all state to managed stores, and set retention on logs and traces.
  • Input: Budget caps from user.
  • Stop Condition: Halt on uncapped concurrency or local-only state.
  • Validation: Cost guards reviewed with state map.
Step 4: Handoff and Human Review
  • Action: Present the serverless plan and request approval before implementation.
  • Input: Completed plan.
  • Stop Condition: Await user approval.
  • Validation: Approval recorded; zero deploys performed by this skill.

4. Output Specification

markdown
# Serverless Plan
-**Events:** [Trigger map]
-**Colds:** [Budgets with evidence]
-**Costs:** [Caps with alarms]

5. Validation Gate

  • [ ] Events mapped per function.
  • [ ] Colds budgeted with evidence.
  • [ ] Costs capped with alarms.
  • [ ] Zero em dashes in deliverable.
  • [ ] Human approval recorded before implementation.

6. Anti-Triggers and Calibration

  • Under-execution threshold: Deploying functions without event maps.
  • Over-execution threshold: Provisioning accounts unprompted.
  • Calibration default: Stateless always; provisioned only where SLOs demand.

7. Anti-Pattern Compliance

StepPrevents APMechanism
1AP-1 (vague task)Requires event map first.
2AP-26 (no scope)Budgets colds numerically.
3AP-28 (no stop)Caps costs with alarms.
4AP-45 (no human review)Halts for approval before implementation.

8. Versioning & Changelog

  • Version: 1.0.0
  • Changelog:
  • 1.0.0 (2026-09-26) - Initial release closing the serverless design gap.

9. Portability Matrix

RuntimeStatusNotes
Claude CodeverifiedDirect slash command execution.
CursorverifiedRules and prompt loading.
CopilotverifiedCustom instructions support.
WindsurfverifiedCascade flow integration.
KiroverifiedSteering model execution.
ClineverifiedTask step-by-step flow.
Raw APIverifiedModel-agnostic execution.

10. Examples

Input: "Our serverless bill tripled and logins freeze on cold mornings." Output: Plan with event-mapped functions, provisioned auth path, and capped concurrency with alarms.

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

Popularity

7-day trend score
0

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/iging/sauron/serverless-patterns/badge)](https://verified-skill.com/skills/iging/sauron/serverless-patterns)

Something wrong with this skill or its page? Tell us.