octobot/skills/engineering/dev-r/analysis-loop.md
lukabor d6febf78d3 refactor(skills): apply review-driven structural refinements
* refactor(tdd-bdd): extract horizontal-slicing anti-pattern into anti-patterns.md
* refactor(jj-atomic): extract anti-patterns into anti-patterns.md; trim See also list
* refactor(dev-r): split SKILL.md into package-loop.md and analysis-loop.md siblings
* fix(dev-python): repair CLAUDE.md URL mismatch and tdd-bdd self-referential link
* docs(dev-python): rewrite phase 4 to forbid horizontal slicing; inline Karpathy summary
* docs(dev-r): inline Karpathy guardrails summary in phase 0
2026-06-11 12:49:48 +02:00

47 lines
982 B
Markdown

# dev-r — R-analysis loop
Detected by the presence of `_targets.R` at the repo root. Apply
[`../r-style/SKILL.md`](../r-style/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 [`/r-style`](../r-style/SKILL.md).
## 2. Lint & style
```bash
just lint
just style-check # fix with: just style
```
## 3. Test (TDD-BDD)
Hand to [`/tdd-bdd`](../tdd-bdd/SKILL.md), which loops red→green→refactor
**one scenario at a time** — never write all the tests upfront (see
[`../tdd-bdd/anti-patterns.md`](../tdd-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 [`/jj-atomic`](../../productivity/jj-atomic/SKILL.md).