* 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
982 B
982 B
dev-r — R-analysis loop
Detected by the presence of _targets.R at the repo root. Apply
../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.
2. Lint & style
just lint
just style-check # fix with: just style
3. Test (TDD-BDD)
Hand to /tdd-bdd, which loops red→green→refactor
one scenario at a time — never write all the tests upfront (see
../tdd-bdd/anti-patterns.md). Target
R/functions/. Then:
just test
4. Pipeline
just run # targets::tar_make()
Verify outputs in data/processed/.
5. Render (if applicable)
just render # quarto render reports/
6. Commit
Hand to /jj-atomic.