refactor(bdd): rename tdd-bdd skill to bdd (dir, triggers, 24 refs, symlink) feat(skills): add sieve (Real/Good/Minimal gate) and winnow (debloat audit) feat(skills): add background-work and review-angles from review-round lessons feat(bdd): fold rules 7/13/17 into interface-design + new SKILL sections docs(refute): extract shared elenchus doctrine, cite from review-angles/winnow/bdd docs(CLAUDE): reframe Simplicity First as the three sieves docs(README): list new skills, add Socratic-spine roadmap
3.3 KiB
3.3 KiB
name, description
| name | description |
|---|---|
| build-r-analysis | Scaffold a new R analysis project with renv for dependency management, a justfile, a `_targets.R` workflow skeleton, and Quarto reports under `reports/`, then delegate the three-stage Docker setup on rocker/verse (Dockerfile, docker-compose, .dockerignore) to containerize-project. Configured with lintr, styler, testthat, and box. Materialises files and stops on `jj diff` for review before any commit. Use when the user says "new R analysis", "scaffold R project", "create R analysis", "set up R data science project", "new quarto project", "/build-r-analysis". |
build-r-analysis
When to use
- User says "new R analysis", "scaffold R analysis", "/build-r-analysis".
- A fresh directory needs renv + targets + Quarto on rocker/verse.
Inputs to collect (one grouped prompt)
- Project name (snake_case).
- One-line description.
Process
- Confirm target directory is empty (or user-confirmed override).
- Materialise files from sibling templates:
<project>/ ├── R/functions/.gitkeep ├── R/pipeline/load_data.R ← R-pipeline-load_data.R.tpl ├── data/raw/.gitkeep ├── data/processed/.gitkeep ├── reports/index.qmd ← reports-index.qmd.tpl ├── tests/testthat/test-functions.R ← tests-test-functions.R.tpl ├── _targets.R ← _targets.R.tpl ├── justfile ← justfile.tpl └── .gitignore ← gitignore.tpl - Delegate Docker to
/containerize-project(r-analysis 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. Thenjust build-dev→just up→R -e 'renv::init()'to lock dependencies. Thenjust runto execute the pipeline. Describe with/jj-atomicwhen satisfied."
Placeholders used by templates
<project-name>— snake_case project name.<description>— one-line description (forreports/index.qmd).
Guardrails
- Never scaffold into a non-empty directory without confirmation.
- Never invoke
jj describe— first commit is the user's call. - Never invoke
renv::init()for the user. R/functions/andR/pipeline/followbox::userules — nolibrary(), nosource(). See../../engineering/r-style/box.md.- Skeleton
_targets.Rhas two demo targets (raw,processed) showing the box-imported pipeline pattern. Replace, don't extend.
See also
../containerize-project/SKILL.md— owns the Docker templates and the three-stage pattern rationale.../../engineering/dev-r/SKILL.md— workflow auto-detects_targets.R→ R-analysis loop.../../engineering/r-style/SKILL.md— every function inR/functions/andR/pipeline/follows these.../../engineering/bdd/SKILL.md—tests/testthat/opens with the standardbox::use(testthat[...])prologue (seebdd/tests-r.md).