feat(skills): rename scribe-OKF>write-OKF, implement>weave, domain-modeling>model-domain, codebase-design>design-codebase, caveman>talk-caveman, background-work>harden-background-work, dev-python>develop-python, dev-r>develop-r, r-style>style-r, handoff>write-handoff, cavecrew-octobot>spawn-cavecrew, jj-atomic>commit-atomic-jj; bdd stays as the single grandfathered name docs(skills): sweep spec>blueprint across skill prose; spec-format.md becomes blueprint-format.md; internal Spec section becomes Contract; commit citations now read implements blueprint NNN docs(blueprint): numbering starts at 001 when OKF/blueprints/ is empty docs(conjure): 110-line cap applies to SKILL.md only; siblings uncapped fix(containerize): read an existing build-dev recipe and surface semantic mismatch instead of trusting the name
3.1 KiB
3.1 KiB
name, description, disable-model-invocation
| name | description | disable-model-invocation |
|---|---|---|
| containerize-project | Add the three-stage Docker setup (base/production/development) to a uv or renv project. | true |
containerize-project
When to use
- User says "containerize", "dockerize", "add docker", "/containerize-project".
- A
build-*scaffold skill reaches its Docker step and delegates here. - An existing uv or renv project needs the standard three-stage setup.
Process
- Detect ecosystem (in this order; ask if none or several match):
Marker Variant Templates pyproject.tomlpython Dockerfile.python.tpl,docker-compose.python.yml.tpl,dockerignore.python.tplDESCRIPTIONr-package Dockerfile.r-package.tpl,docker-compose.r.yml.tpl,dockerignore.r.tpl_targets.Rr-analysis Dockerfile.r-analysis.tpl,docker-compose.r.yml.tpl,dockerignore.r.tpl - Materialise with placeholder substitution:
Dockerfile← variant Dockerfile templatedocker-compose.yml← variant compose template.dockerignore← variant dockerignore template
- Justfile recipes from
justfile-docker.tpl:- No
justfile→ create one with the standard header (set dotenv-load := false,default: @just --list) plus the Docker section. justfileexists without abuild-devrecipe → append the Docker section.build-devalready present → leave the justfile alone, but read the recipe and confirm it actually builds the dev image; a same-named recipe with different semantics → surface it, don't assume.
- No
- Stop. Do not run
jj describe. Tell the user:"Review with
jj diff. Thenjust build-devto verify the toolchain. Describe with/commit-atomic-jjwhen satisfied."
Placeholders
- python:
<project-name>(kebab-case),<package_name>(snake_case). - r-package:
<package-name>. - r-analysis:
<project-name>(snake_case).
Guardrails
- Never overwrite an existing
Dockerfile,docker-compose.yml, or.dockerignorewithout explicit confirmation — show a diff first. - Never put credentials in
ENV,ARG, orCOPY-ed files — that'sadd-docker-secretsterritory. - Never add a source mount to the production service — it overrides the baked image and defeats immutability.
- The development stage runs as root deliberately (bind mounts +
interactive installs); production runs as
app. Don't "fix" either. - Keep the pinned uv image tag; never switch to
:latest.
See also
- three-stage-dockerfile.md — rationale for the base/production/development pattern, caveats, anti-patterns.
../add-docker-secrets/SKILL.md— build-time and runtime secrets once the project needs credentials.../build-py-project/SKILL.md,../build-r-package/SKILL.md,../build-r-analysis/SKILL.md— scaffolds that delegate their Docker step here.