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: build-py-project
description: Scaffold a Python project: uv + justfile + pyproject (ruff, ty, pytest); Docker via containerize-project.
disable-model-invocation: true
build-py-project
When to use
- User says "new python project", "scaffold python", "/build-py-project".
- A fresh empty directory needs the standard uv + Docker + justfile setup.
Inputs to collect (one grouped prompt)
- Project name (kebab-case, e.g.
my-project). - Package name (derived: lowercase, hyphens → underscores; confirm).
- Author name + email for
pyproject.toml. - One-line description for
pyproject.toml. - License (default: MIT).
Process
- Confirm target directory. Refuse to write into a non-empty directory unless the user explicitly opts in.
- Materialise files from sibling templates with placeholder
substitution. Files written:
<project>/ ├── src/<package>/__init__.py ├── tests/fixtures/.gitkeep ├── justfile ← justfile.tpl ├── pyproject.toml ← pyproject.toml.tpl ├── README.md ← README.md.tpl (stub; hatchling needs │ it to exist — /write-readme-py replaces it) └── .gitignore ← gitignore.tpl - Delegate Docker to
/containerize-project(python variant): it writesDockerfile,docker-compose.yml,.dockerignore, and appends the Docker recipes to the justfile. - Stop. Do not run
jj describe. Tell the user:"Review with
jj diff(orgit status+git diff). Then runjust build-devto verify the toolchain. Describe the change with/commit-atomic-jjwhen satisfied." - Suggest running
/write-readme-pyafter the first successful build to generate the README.
Placeholders used by templates
<project-name>— kebab-case project name.<package_name>— snake_case Python package name.<author-name>,<author-email>— forpyproject.toml.<description>— one-line project description.<license>— SPDX identifier (defaultMIT).
Guardrails
- Never scaffold into a non-empty directory without explicit user confirmation.
- Never invoke
jj describe— the first commit is the user's call. - Never invent dependency versions beyond the conservative pins in
pyproject.toml.tpl. - Never add packages outside the templates without asking — keep the scaffold lean and let the user grow it.
See also
../containerize-project/SKILL.md— owns the Docker templates and the three-stage pattern rationale.../../engineering/develop-python/SKILL.md— workflow that this scaffold sets up.../../engineering/write-readme-py/SKILL.md— README generator that reads the scaffoldedpyproject.tomlandjustfile.