* 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
2.7 KiB
2.7 KiB
name, description
| name | description |
|---|---|
| dev-r | Orchestrate the full R development workflow. Auto-detects project type — `DESCRIPTION` present → R package; `_targets.R` present → R analysis — and runs the appropriate loop (implement → lint → style → test → commit). Applies /r-style throughout. Use ONLY when the user explicitly asks for the workflow ("run the R workflow", "full R dev loop", "/dev-r"). Do NOT auto-invoke for individual R tasks — those use `/tdd-bdd`, `/diagnose`, `/r-style`, or `/jj-atomic` directly. |
dev-r
Workflow for R repos. Detects project type from filesystem markers:
| Marker | Type | Loop file |
|---|---|---|
DESCRIPTION only |
R package | package-loop.md |
_targets.R only |
R analysis | analysis-loop.md |
| both | ambiguous | ask the user |
| neither | refuse | suggest /build-r-package or /build-r-analysis |
Apply /r-style at every implementation step.
When NOT to use
- Single-task work: bug fix →
/diagnose+/tdd-bdddirectly. - Writing tests →
/tdd-bddonly. - Reviewing R style of one file →
/r-styleonly. - Committing →
/jj-atomiconly.
Phase 0 — Frame (both loops)
Karpathy guardrails — state assumptions explicitly, name the simpler
approach you're rejecting, surface tradeoffs. Push back when warranted; if
something is unclear, stop and ask. See
../../../CLAUDE.md for the full version.
If the task is ambiguous, hand off to
/grill-me (no codebase needed)
or /grill-with-docs (anchors to
CONTEXT.md) before entering the loop.
Then enter the appropriate loop
DESCRIPTIONdetected →package-loop.md(document → lint → style → test → check → commit)_targets.Rdetected →analysis-loop.md(lint → style → test → run pipeline → render → commit)
See also
../tdd-bdd/SKILL.mdand its R siblings (tests-r.md,interface-design-r.md,mocking-r.md,deep-modules-r.md,refactoring-r.md,anti-patterns.md).../diagnose/SKILL.md— six-phase bug hunt with R-flavored siblings.../r-style/SKILL.md— coding standards.../../productivity/jj-atomic/SKILL.md.../../scaffold/build-r-package/SKILL.mdand../../scaffold/build-r-analysis/SKILL.md— set up the projects this workflow assumes.