Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Detect project stack and generate production-ready multi-stage Dockerfiles with compose services, .dockerignore, non-root users, health checks, layer caching, and optional dev hot-reload profiles
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
You are in AUTONOMOUS MODE. Do NOT ask questions. Do NOT pause for confirmation. Execute every phase below in sequence, making decisions based on what you find.
$ARGUMENTS may contain:
--compose — also generate docker-compose.yml (default: auto-detect need)--dev — include development compose profile with hot reload--prod — optimize for production (smaller image, no dev deps)--registry <url> — target container registry (default: ghcr.io)--slim — use Alpine/distroless base images for minimal sizeIf no arguments, generate both Dockerfile and docker-compose.yml if the project has dependencies (database, cache, etc.).
Detect the application stack by reading manifest files:
Node.js:
package.json for: engines.node, scripts.start, scripts.build, frameworkpackage-lock.json (npm), yarn.lock (yarn), pnpm-lock.yaml (pnpm)next.config.*), Fastify, Express, NestJS, Remix, Astrotsconfig.json — TypeScript build step neededPython:
pyproject.toml, requirements.txt, Pipfile, setup.pymanage.py), Flask, FastAPI (uvicorn/gunicorn).python-version, pyproject.toml, or runtime.txtGo:
go.mod for module name and Go versioncmd/main.go or main.go entry pointRust:
Cargo.toml for binary nameJava:
pom.xml (Maven) or build.gradle (Gradle)Ruby:
Gemfile for Ruby version and framework (Rails, Sinatra)config.ru (Rack app)Also detect dependencies that need compose services:
Create a multi-stage Dockerfile following these principles:
Stage 1 — Dependencies (deps or builder):
latest (e.g., node:22-alpine, python:3.12-slim)--mount=type=cache for package manager caches where supportedStage 2 — Build (if applicable):
npm run build, go build, cargo build --release)Stage 3 — Production:
node:22-alpine (or distroless if --slim)python:3.12-slimgcr.io/distroless/static-debian12 or scratchgcr.io/distroless/cc-debian12 or scratcheclipse-temurin:21-jre-alpineruby:3.3-slimWORKDIR /appSecurity hardening (always apply):
USER appuser before CMDapt-get upgrade — pin base image version insteadHealth check (always include):
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3wget --no-verbose --tries=1 --spider http://localhost:${PORT}/health || exit 1curl -f http://localhost:${PORT}/health || exit 1Labels (OCI standard):
LABEL org.opencontainers.image.source="https://github.com/OWNER/REPO"
LABEL org.opencontainers.image.description="Description"
Environment:
NODE_ENV=production or equivalentPORT and EXPOSE itCreate .dockerignore to minimize build context. Always exclude:
.git directory.vscode, .idea)coverage, .nyc_output, .pytest_cache).env*)node_modules (rebuilt inside container)*.md)Adjust patterns based on detected stack.
Create docker-compose.yml if the application has external dependencies or --compose is set.
Structure requirements:
version: field (Docker Compose V2+ does not need it)depends_on with condition: service_healthy for startup ordering${VAR:-default} for configurable valuesrestart: unless-stopped on all servicesDatabase services: Include proper health checks:
pg_isready -U postgresmysqladmin ping -h localhostmongosh --eval "db.runCommand('ping')"Cache services: Include memory limits and eviction policy configuration.
Development profile (if --dev):
Create a docker-compose.dev.yml override with:
NODE_ENV=development or equivalentAfter generating files, verify:
latestAfter completing deployment/infrastructure changes, validate:
IF STILL FAILING after 2 iterations:
Print a summary:
## Docker Setup Complete
### Files Created
- Dockerfile — Multi-stage build ({base image}, {final size estimate})
- .dockerignore — {N} patterns to minimize build context
- docker-compose.yml — Services: {list}
- docker-compose.dev.yml — Development overrides (if generated)
### Build Commands
- Production: docker compose up --build -d
- Development: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
- Image only: docker build -t {name}:latest .
### Image Details
- Base: {base image}
- Estimated size: {size estimate}
- User: appuser (non-root, UID 1001)
- Health check: {endpoint}
- Exposed port: {port}
### Services
| Service | Image | Port | Volume |
|---------|-------|------|--------|
| app | built | {port} | -- |
| db | postgres:16 | 5432 | db-data |
docker compose up --build/health endpoint to the application if one does not existdeploy/github-actions)deploy/secrets)After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
~/.claude/projects/skill-telemetry.md in that memory directoryEntry format:
### /docker — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.
latest tag for base images — pin to specific versions.env files into the image — use environment variables at runtimeADD when COPY suffices (ADD has implicit tar extraction and URL fetch)apt-get upgrade — use a pinned base image instead--mount=type=cache or clean up)还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Analyzes actuarial modeling systems for loss reserving accuracy, premium pricing methodology, mortality/morbidity tables, stochastic modeling, and capital adequacy per SOA and Solvency II standards..
中文简介正在准备中。当前显示原文说明。
Analyzes advertising yield across programmatic and direct-sold inventory including CPM/CPC/CPA performance, header bidding efficiency, fill rate optimization, inventory monetization strategies, and compliance with IAB standards and OpenRTB protocols..
中文简介正在准备中。当前显示原文说明。
Create and manage Architecture Decision Records using the Michael Nygard format. Triggers: you need to document architecture decisions, record technical choices, explain why a technology was chosen.
中文简介正在准备中。当前显示原文说明。
Analyzes affordable housing management software for unit allocation algorithms, waitlist management, income verification workflows, Fair Housing compliance, LIHTC and Section 8 program tracking, inspection scheduling, and tenant reporting..
中文简介正在准备中。当前显示原文说明。
Rewrites existing landing pages, blog posts, and documentation so AI search engines (Google AI Overviews, ChatGPT, Perplexity, Claude, Gemini) cite them. Triggers: an existing page underperforms in AI answers despite ranking well in classic SERPs.
中文简介正在准备中。当前显示原文说明。