boot-repro
Create a reproducible environment and command path for a project.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 65
- Forks
- 0
01 前言 Front Matter
- name
- boot-repro
- description
- Create a reproducible environment and command path for a project.
03 SKILL.md 正文
Objective
Make the project hermetic and deterministic: git clone -> make up -> working app, with no manual setup steps, global npm or pip installs, or undocumented environment variables; dependencies live in the container.
Input
- A URL (
git clone ...orhttps://...): rungit clone [URL] .into an empty directory (create a new one if needed), then follow the procedure. - The current directory: start at step 1.
Procedure
- Detect artifacts:
Dockerfileanddocker-compose.yml(Compose v2), created if missing;Makefileandpackage.jsonscripts;.env.exampleand.dockerignore. Ensure lockfiles exist (uv.lock,poetry.lock,Cargo.lock,package-lock.jsonorpnpm-lock.yaml). For Python, useuv(uv sync,uv run ...) or containerized runs, never rawpip. - Dockerfile:
- Pin the base image by version and prefer a digest (
node:22-bookworm-slim@sha256:...,python:3.13-slim-bookworm); neverlatest. With no version specified, choose a stable recent one (Node 22, Python 3.13, Postgres 17). - Multi-stage:
builderinstalls dependencies and compiles;runnercopies artifacts into a minimal runtime and runs as a non-root user. - Debian/Ubuntu:
apt-get update && apt-get install -y --no-install-recommends ... && rm -rf /var/lib/apt/lists/*. - Build with BuildKit (
DOCKER_BUILDKIT=1), using--mount=type=cachefor package caches when useful. - Add a
.dockerignoreto keep the context small.
- Pin the base image by version and prefer a digest (
- Compose:
- Define
appplus only the backing services the project uses (for exampledborcache); a stateless tool getsappalone. - Define an explicit bridge network and named volumes for persistence (e.g.
postgres_data:/var/lib/postgresql/data). - Give
appand each backing service a healthcheck, e.g. Postgres:test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"],interval: 5s,timeout: 5s,retries: 20. appusesdepends_onwithcondition: service_healthyfor each backing service.- Set
platform: linux/amd64when needed for consistent images (e.g. Apple Silicon).
- Define
- Makefile:
make setup: copy.env.example->.envonly when.envdoes not exist.make up:docker compose up -d --wait(returns once healthchecks pass).make down: stop containers.make clean:docker compose down -v(removes volumes).make rebuild:docker compose build --no-cache --pull.
- In CI, run
docker compose build --pull --no-cacheto verify determinism, with digest-pinned images.
Output
Create or update Dockerfile, docker-compose.yml, Makefile, .env.example (every environment variable, documented), and .dockerignore; without file-edit tools, output their full content.
04 同仓库更多 Skills
workflow-runtime
Prove skill or workflow discovery, full-autonomy tool execution, and task-shaped materialization before assigning a CLI, extension, provider, or model to a workflow role.
workflow-reviewer
Review batched implementation output against the BOSS spec and evidence.
workflow-rescue
Resolve repeated workflow failures with a single decisive action.
workflow-orchestrator
Run risk-adaptive development, review, multi-agent, and release workflows with runtime preflight, bounded retries, liveness checks, isolated writers, and evidence-backed handoffs.
workflow-judger
Arbitrate repeated task failures and decide merge, rework, or escalation.
workflow-doctor
Validate active workflow state before any role acts on it.