Skip to main content
prompt GP ChatGPT

Serverless Functions taste — ChatGPT prompt: what it does

Serverless Functions taste — a prompt for ChatGPT and Claude Code defines design rules for serverless functions to cut cold starts and optimize database connections.

CC0-1.0 ★ 178,201 updated 2026-10-24

Open on GitHub

What Serverless Functions taste does

The prompt establishes engineering standards for serverless architectures. It instructs developers to initialize SDK clients outside handlers for reuse during warm invocations, set explicit timeouts, and define resources via Terraform, Serverless Framework, SAM, or SST.

The guidelines cover event idempotency, message queues for slow tasks, structured JSON logs with request correlation IDs, and tracing through OpenTelemetry. They also suggest using connection poolers for PostgreSQL and avoiding synchronous function chaining.

The prompt aids in structuring backend services with least-privilege permissions, concurrency limits, and cloud cost monitoring.

What it helps with

  • design serverless functions with reduced cold start latency
  • configure database connection poolers for concurrent functions
  • implement structured logging and request tracing
  • define cloud infrastructure and permissions as code

Example prompts for the agent

  • Review my serverless handler against Serverless Functions taste standards
  • Design an event handler following Serverless Functions taste rules

How to install Serverless Functions taste

How to use

Paste the text at the start of a chat or into project instructions

Questions about Serverless Functions taste

How to install Serverless Functions taste in Claude Code?

Place the configuration file into .claude/commands/prompts.csv.md to install it.

What does Serverless Functions taste do?

The prompt guides AI assistants to apply cloud backend engineering standards covering serverless architecture, logging, security, and database management.

What is required to use Serverless Functions taste?

The prompt requires access to ChatGPT, Claude.ai, or Claude Code for cloud architecture design tasks.

Source text

prompts.csv · CC0-1.0
# Serverless Functions taste of a cloud backend engineer
- Keep each function small and focused on one trigger, but group closely related HTTP routes in one handler to cut cold starts. Confidence: 0.80
- Initialize SDK clients and database pools outside the handler so warm invocations reuse them. Confidence: 0.95
- Use a connection pooler or an HTTP-based database driver, since thousands of concurrent functions will exhaust direct Postgres connections. Confidence: 0.90
- Set an explicit timeout and memory size per function instead of accepting platform defaults. Confidence: 0.85
- Keep bundles small with tree-shaking and lazy imports, and measure cold start time after every major dependency change. Confidence: 0.85
- Make every event handler idempotent, because queues and event sources deliver at least once. Confidence: 0.95
- Move slow or retryable work to a queue and return quickly from HTTP functions. Confidence: 0.90
- Send failed async events to a dead letter queue with an alert on its depth. Confidence: 0.90
- Define functions, permissions and triggers as code with SST, Serverless Framework, SAM or Terraform, never by clicking in the console. Confidence: 0.90
- Grant each function its own least-privilege role scoped to the exact resources it touches. Confidence: 0.95
- Load secrets from a secrets manager or the platform's encrypted env vars, never from the repo. Confidence: 0.95
- Write structured JSON logs with a request ID and correlation ID on every line. Confidence: 0.90
- Trace requests across functions and queues with OpenTelemetry or the platform's tracing. Confidence: 0.80
- Keep business logic in plain modules and keep the handler a thin adapter, so it can be unit tested without the cloud. Confidence: 0.90
- Run integration tests against a real deployed stage per pull request rather than trusting local emulators. Confidence: 0.80
- Set reserved or maximum concurrency on functions that call fragile downstream services. Confidence: 0.85
- Use provisioned concurrency only for latency-critical paths where cold starts were measured to hurt. Confidence: 0.75
- Prefer the arm64 runtime when dependencies support it for better price per performance. Confidence: 0.70
- Set billing alerts and per-function cost dashboards before launch, not after the first surprise invoice. Confidence: 0.85
- Avoid chaining functions that call each other synchronously; use events or a workflow engine like Step Functions instead. Confidence: 0.85
- Choose containers or long-running services for steady high-throughput workloads where serverless costs more. Confidence: 0.75

© f · CC0-1.0 · f/prompts.chat

Similar prompts

All prompts for Backend and APIs →
aws-lambda-functions aj-geddes aws-lambda-functions is a Claude Code skill for building and deploying AWS Lambda functions. It covers event sources, permissions, Lambda layers, and environment settings. CX Codex +1 621installs aws-serverless aws aws-serverless is a Claude Code skill that routes AWS serverless work to a compute model and the specialist skill responsible for it. It handles open choices for APIs, event-driven jobs and workflows. CX Codex +1 11,600installs aws-serverless-eda zxkane aws-serverless-eda guides serverless and event-driven architecture design on AWS following Well-Architected principles. Handy when setting up Lambda, Step Functions, DynamoDB, and EventBridge. CX Codex +1 755installs event-driven-serverless-systems qodex-ai The event-driven-serverless-systems skill designs AWS serverless and event-driven systems, connecting Lambda to event sources and shaping workflows across distributed services. CX Codex +1 137installs aws-serverless-architect official github aws-serverless-architect — a GitHub Copilot subagent that designs AWS serverless applications: Lambda, API Gateway, EventBridge, Step Functions, DynamoDB. Activates when you architect event-driven systems and choose services. CX Codex +1 ★ 41,430repo stars aws-lambda-durable-functions aws aws-lambda-durable-functions is a Claude Code skill that orchestrates long-running multi-step workflows using AWS Lambda durable execution. Triggers when writing step functions, sagas, and retries. CX Codex +1 6,600installs

From the same set218

The whole set →
Browser Extension taste Browser Extension taste — a prompt for ChatGPT and Claude Code defines best practices for building cross-browser extensions on Manifest V3. It guides the AI when designing extension architecture. GP ChatGPT ★ 178,201repo stars Rails App taste Rails App taste is a prompt for ChatGPT, Claude.ai, and Claude Code that sets pragmatic Ruby on Rails development standards. Use it before starting an app or planning its architecture. GP ChatGPT ★ 178,201repo stars Authentication taste Authentication taste — a prompt for ChatGPT, Claude.ai, and Claude Code that defines security standards for backend development. It guides agents in evaluating authentication architecture. GP ChatGPT ★ 178,201repo stars Realtime WebSocket taste Realtime WebSocket taste — a prompt for ChatGPT with engineering guidance for real-time WebSocket systems. It covers transport choices, connection security, reconnects, and message delivery. GP ChatGPT ★ 178,201repo stars SvelteKit App taste The SvelteKit App taste ChatGPT prompt sets development conventions for SvelteKit apps. It covers project setup, data loading, forms, and testing. GP ChatGPT ★ 178,201repo stars Tauri Desktop App taste Tauri Desktop App taste — a prompt for ChatGPT that sets engineering practices for cross-platform Tauri apps. It covers Rust commands, UI boundaries, security, testing, and release builds. GP ChatGPT ★ 178,201repo stars Vue App taste The Vue App taste ChatGPT prompt sets conventions for building Vue applications. It covers framework choice, component patterns, data handling, and tests. GP ChatGPT ★ 178,201repo stars Background Jobs taste Background Jobs taste — a prompt for ChatGPT and Claude.ai guides background worker design and queue reliability. Sets clear constraints for idempotency, retry budgets, and payload versioning. GP ChatGPT ★ 178,201repo stars

Project sponsors

Companies that keep this analytics open