agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Production-ready containerization orchestrator with multi-stage builds, security hardening, and Kubernetes optimization
How it fires
How this command gets triggered: by you, by Claude, or both.
/containerizeContext preview
What this command does when you run it.
Production-ready containerization orchestrator with multi-stage builds, security hardening, and Kubernetes optimization
allowed-tools: Task, Read, Write, Edit, MultiEdit, Bash(fd:*), Bash(rg:*), Bash(eza:*), Bash(bat:*), Bash(jq:*), Bash(gdate:*), Bash(docker:*), Bash(kubectl:*), Bash(mvn:*), Bash(gradle:*), Bash(cargo:*), Bash(go:*) name: "Containerize" description: "Production-ready containerization orchestrator with multi-stage builds, security hardening, and Kubernetes optimization" author: "wcygan" tags: ["ops","deploy"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize containerization session and analyze project architecture
# Initialize containerization session state
echo '{
"sessionId": "'$SESSION_ID'",
"targetProject": "'$ARGUMENTS'",
"detectedTechnologies": [],
"containerStrategy": "auto-detect",
"securityProfile": "production",
"deploymentTarget": "kubernetes"
}' > /tmp/containerize-session-$SESSION_ID.jsonSTEP 2: Comprehensive project analysis with parallel sub-agent coordination
TRY:
IF project_complexity == "multi-service" OR technology_stack == "polyglot":
LAUNCH parallel sub-agents for comprehensive project analysis:
ELSE:
EXECUTE streamlined single-service containerization analysis:
# Single-service analysis workflow echo "🔍 Analyzing single-service containerization requirements..."
STEP 3: Intelligent Dockerfile generation based on detected technology stack
CASE detected_technology: WHEN "rust":
**Rust Projects (Axum/Warp optimized):**
# Build stage
FROM rust:1.80-alpine AS builder
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache musl-dev pkgconfig openssl-dev
# Cache dependencies
COPY Cargo.toml Cargo.lock ./
RUN mkdir src && echo "fn main() {}" > src/main.rs
RUN cargo build --release && rm -rf src/
# Build application
COPY src/ src/
RUN touch src/main.rs && cargo build --release
# Runtime stage
FROM alpine:3.19
RUN apk add --no-cache ca-certificates tzdata
RUN addgroup -g 1001 -S appgroup && adduser -u 1001 -S appuser -G appgroup
WORKDIR /app
COPY --from=builder /app/target/release/app /app/
RUN chown -R appuser:appgroup /app
USER appuser
EXPOSE 8080
CMD ["./app"]**Go Projects:**
# Build stage FROM golang:1.22-alpine AS builder WORKDIR /app # Install build dependencies RUN apk add --no-cache git ca-certificates tzdata # Cache dependencies COPY go.mod go.sum ./ RUN go mod download && go mod verify # Build application COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app ./cmd/server # Runtime stage FROM scratch COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=builder /app/app /app EXPOSE 8080 CMD ["/app"]
**Java Projects (Spring Boot/Quarkus):**
# Build stage FROM eclipse-temurin:21-jdk-alpine AS builder WORKDIR /app # Cache dependencies COPY pom.xml ./ COPY mvnw ./ COPY .mvn .mvn RUN ./mvnw dependency:go-offline -B # Build application COPY src src RUN ./mvnw clean package -DskipTests -B # Runtime stage FROM eclipse-temurin:21-jre-alpine RUN addgroup -g 1001 -S appgroup && adduser -u 1001 -S appuser -G appgroup WORKDIR /app COPY --from=builder /app/target/*.jar app.jar RUN chown appuser:appgroup app.jar USER appuser EXPOSE 8080 ENTRYPOINT ["java", "-jar", "app.jar"]
**Deno Projects:**
# Build stage (if compilation needed) FROM denoland/deno:1.46.0 AS b
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies