Lukasz Boryn ded5759973 feat(skills): rename skills to verb-first names; adopt blueprint vocabulary
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
2026-07-20 00:41:24 +02:00

57 lines
2.4 KiB
Markdown

---
name: develop-r
description: Orchestrate the full R dev loop; auto-detects package (DESCRIPTION) vs analysis (_targets.R).
disable-model-invocation: true
---
# develop-r
Workflow for R repos. Detects project type from filesystem markers:
| Marker | Type | Loop file |
|---|---|---|
| `DESCRIPTION` only | R package | [`package-loop.md`](package-loop.md) |
| `_targets.R` only | R analysis | [`analysis-loop.md`](analysis-loop.md) |
| both | ambiguous | ask the user |
| neither | refuse | suggest [`/build-r-package`](../../scaffold/build-r-package/SKILL.md) or [`/build-r-analysis`](../../scaffold/build-r-analysis/SKILL.md) |
Apply [`/style-r`](../style-r/SKILL.md) at every implementation step.
## When NOT to use
- Single-task work: bug fix → `/diagnose` + `/bdd` directly.
- Writing tests → `/bdd` only.
- Reviewing R style of one file → `/style-r` only.
- Committing → `/commit-atomic-jj` only.
## 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`](../../../CLAUDE.md) for the full version.
If the task is ambiguous, hand off to
[`/grill-me`](../../productivity/grill-me/SKILL.md) (no codebase needed)
or [`/grill-with-docs`](../grill-with-docs/SKILL.md) (anchors to
`CONTEXT.md`) before entering the loop.
## Then enter the appropriate loop
- `DESCRIPTION` detected → [`package-loop.md`](package-loop.md)
(document → lint → style → test → check → commit)
- `_targets.R` detected → [`analysis-loop.md`](analysis-loop.md)
(lint → style → test → run pipeline → render → commit)
## See also
- [`../bdd/SKILL.md`](../bdd/SKILL.md) and 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`](../diagnose/SKILL.md) — six-phase bug hunt
with R-flavored siblings.
- [`../style-r/SKILL.md`](../style-r/SKILL.md) — coding standards.
- [`../../productivity/commit-atomic-jj/SKILL.md`](../../productivity/commit-atomic-jj/SKILL.md).
- [`../../scaffold/build-r-package/SKILL.md`](../../scaffold/build-r-package/SKILL.md)
and
[`../../scaffold/build-r-analysis/SKILL.md`](../../scaffold/build-r-analysis/SKILL.md)
— set up the projects this workflow assumes.