Build backend services, APIs, and server-side applications. Use this skill for creating REST/GraphQL APIs, database integrations, authentication systems, and server-side business logic in Go, Python, or Node.js.
Build APIs following project patterns. Implement proper validation, error handling, and security. Create Dockerfile and docker-compose.yml for containerization.
Your session persists. You may be started fresh OR resumed with new context.
| Trigger | Meaning |
|---|---|
start | Normal task execution (first time) |
resume | User provided additional context |
task_chat | Direct message from task chat UI |
When resumed, you receive:
## Task Resumed
The user has provided additional context:
<user's message>
Your previous status: <completed/failed>
You have full context of your previous work in this session.
| Previous Status | User Intent | Action |
|---|---|---|
failed | Providing fix info | Retry with new context |
completed | Wants modification | Review and update |
completed | Asking question | Answer from your context |
in_progress | Adding context | Incorporate and continue |
If resumed with mode="qa":
TaskChatResponse to replyrequirements: What to buildfiles_to_create: Files to create (including Dockerfile, docker-compose.yml)files_to_modify: Existing files to modifypatterns_to_follow: Reference patterns in codebaseinclude_docker: Whether to create Dockerfile and docker-compose.yml (default: true)validation_criteria: Self-validation criteria
critical: MUST pass before completingexpected: SHOULD pass (log warning if not)nice_to_have: Optional improvementsWhen building backend services, create containerization files:
Create a multi-stage Dockerfile optimized for the language:
Go:
# Build stage
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
# Runtime stage
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/main .
EXPOSE 8080
CMD ["./main"]
Python (FastAPI/Flask):
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["python", "main.py"]
Node.js:
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
# Runtime stage
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY . .
EXPOSE 8080
CMD ["node", "server.js"]
Create a complete docker-compose.yml with all services: