Agent skill
deployment-patterns
Generate deployment configuration for the user's project. Supports Docker, Docker Compose, GitHub Actions CI/CD, and cloud platform deployment (Vercel, Railway, Cloud Run). Detects stack automatically.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/deployment-patterns-corbat-tech-coco
SKILL.md
Deployment Patterns
Generate production-ready deployment configuration for the user's project.
Stack Detection
ls Dockerfile docker-compose.yml .github/workflows/ package.json pom.xml go.mod pyproject.toml 2>/dev/null
Docker Patterns
Node.js/TypeScript
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN corepack enable && pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/package.json ./
RUN corepack enable && pnpm install --prod --frozen-lockfile
EXPOSE 3000
CMD ["node", "dist/index.js"]
Python
FROM python:3.12-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
FROM python:3.12-slim AS runner
WORKDIR /app
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY . .
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
Java/Spring Boot
FROM eclipse-temurin:21-jdk AS builder
WORKDIR /app
COPY mvnw pom.xml ./
COPY .mvn .mvn
RUN ./mvnw dependency:go-offline
COPY src ./src
RUN ./mvnw package -DskipTests
FROM eclipse-temurin:21-jre
WORKDIR /app
COPY --from=builder /app/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "app.jar"]
GitHub Actions CI/CD
Node.js CI
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "22" }
- run: corepack enable && pnpm install --frozen-lockfile
- run: pnpm check
- run: pnpm test:coverage
Cloud Deployment
Railway (fastest for demos)
# railway.toml
[build]
builder = "DOCKERFILE"
[deploy]
startCommand = "node dist/index.js"
healthcheckPath = "/health"
Vercel (Next.js/static)
// vercel.json
{
"framework": "nextjs",
"buildCommand": "pnpm build",
"outputDirectory": ".next"
}
Google Cloud Run
gcloud run deploy my-service \
--source . \
--region us-central1 \
--allow-unauthenticated \
--memory 512Mi
Usage
/deployment-patterns # detect stack and generate config
/deployment-patterns docker # Dockerfile + docker-compose
/deployment-patterns ci # GitHub Actions CI/CD
/deployment-patterns railway # Railway deployment
/deployment-patterns vercel # Vercel deployment
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?