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
47 lines
984 B
Markdown
47 lines
984 B
Markdown
# develop-r — R-analysis loop
|
|
|
|
Detected by the presence of `_targets.R` at the repo root. Apply
|
|
[`../style-r/SKILL.md`](../style-r/SKILL.md) at every implementation step.
|
|
|
|
## 1. Implement
|
|
|
|
- Functions in `R/functions/` as box modules.
|
|
- Pipeline steps in `R/pipeline/` as box modules.
|
|
- All code under [`/style-r`](../style-r/SKILL.md).
|
|
|
|
## 2. Lint & style
|
|
|
|
```bash
|
|
just lint
|
|
just style-check # fix with: just style
|
|
```
|
|
|
|
## 3. Test (TDD-BDD)
|
|
|
|
Hand to [`/bdd`](../bdd/SKILL.md), which loops red→green→refactor
|
|
**one scenario at a time** — never write all the tests upfront (see
|
|
[`../bdd/anti-patterns.md`](../bdd/anti-patterns.md)). Target
|
|
`R/functions/`. Then:
|
|
|
|
```bash
|
|
just test
|
|
```
|
|
|
|
## 4. Pipeline
|
|
|
|
```bash
|
|
just run # targets::tar_make()
|
|
```
|
|
|
|
Verify outputs in `data/processed/`.
|
|
|
|
## 5. Render (if applicable)
|
|
|
|
```bash
|
|
just render # quarto render reports/
|
|
```
|
|
|
|
## 6. Commit
|
|
|
|
Hand to [`/commit-atomic-jj`](../../productivity/commit-atomic-jj/SKILL.md).
|