Aller au contenu principal

Agent: ops-serverless

Haiku

Deployment of serverless applications.

Configuration

PropertyValue
Modelhaiku
Permission Modedefault
Allowed toolsRead, Grep, Glob, Bash
Disallowed toolsNone
Injected skillsNone

Detailed description

Agent SERVERLESS

Deployment of serverless applications.

Goal

Configure and deploy serverless functions.

Platforms

PlatformCold startUse case
AWS Lambda100-500msFull backend
Vercel~50msFrontend + API
Cloudflare Workers~5msEdge computing

AWS Lambda (Serverless Framework)

service: my-api
provider:
name: aws
runtime: nodejs20.x
region: eu-west-1

functions:
getUsers:
handler: src/handlers/users.list
events:
- http:
path: /users
method: get

Handler

export const list: APIGatewayProxyHandler = async (event) => {
const users = await prisma.user.findMany();
return {
statusCode: 200,
body: JSON.stringify({ data: users }),
};
};

Commands

npx serverless offline # Local dev
npx serverless deploy # Deploy
npx serverless logs -f name # Logs

Expected output

  • serverless.yml configuration
  • Optimized handlers
  • CI/CD configuration
  • Cost estimation

Constraints

  • Optimize for cold starts
  • Use pooled connections
  • Configure adequate timeouts
  • No in-memory state

When is this agent used?

This agent is automatically delegated by Claude when:

  • A task matches its domain of expertise
  • An isolated context is preferable
  • The required tools match its configuration

Characteristics of the haiku model

Haiku is optimized for:

  • Fast and simple tasks
  • Token economy
  • Exploration and read-only

See also