92 Commits

Author SHA1 Message Date
4aebdee30a refactor(diagnose): trim instrumentation-r.md to the 100-line cap
- Drop the tag-emphasis sentence from the Logging section (duplicates
  the dedicated tag-convention section below)
- Drop generic tar_option_set advice (not instrumentation)
- Drop the "single date/single tag/one regex" restatement
- Compress the smuggle-a-fix and .Rprofile anti-patterns to one line each
2026-06-18 23:41:33 +02:00
22951e5b79 feat(diagnose): adopt loop-recipes taxonomy, completion gate, and minimisation
- Extract 10-recipe loop taxonomy + tighten/non-determinism principles
  into new sibling loop-recipes.md (language-agnostic)
- Shrink feedback-loops-{py,r}.md to worked-examples-only; both now
  under the 100-line cap (R: 146 -> 95, py: 111 -> 79)
- Phase 1: add four-bullet completion gate (red / tight / deterministic
  / agent-runnable) + "no red-capable command, no Phase 2" guardrail
- Phase 2: rename to "Reproduce + minimise"; add shrink-to-smallest
  sub-step
- Phase 5: add "no correct seam is itself the finding" escape valve
  pointing to refactoring-r.md instead of writing a lying test
- Phase 6: lead with "what would have prevented this bug?" framing

Adapted from mattpocock/skills diagnosing-bugs.
2026-06-18 23:29:55 +02:00
8b0455fabc chore(skills): scrub project-specific identifiers from examples
cmdr/crm/godm fake-domain tokens were leaking from a private project
into octobot examples. Replace with neutral analogues so the library is
truly project-agnostic:

- R/cmdr/* paths → R/plot/* (plot examples) and R/{ingest,analysis,report}
  (the grill-with-docs sub-roots example)
- CRM_genetics.Rmd / cmdr_rmd/ → chapters/genetics.Rmd
- homology_cmdr.R → legacy_analysis.R; "Legacy CRM script shim" → "Legacy
  script shim"
- test_crm_textmining.R → test_textmining.R; assemble_expr_cmdr → assemble_expr
- godm consolidated under modb (chosen as the canonical fake-domain name)
2026-06-18 23:15:49 +02:00
260f1865e3 refactor(skills): rename write-a-skill → conjure-a-skill and fold in writing-great-skills
- Rename directory; update README pointer and trigger phrase
- Add PRINCIPLES.md (design playbook) and GLOSSARY.md (vocabulary),
  both adapted from mattpocock/skills writing-great-skills
- Promote the 100-line cap from convention to SKILL.md guardrail and
  a When-to-split trigger in PRINCIPLES.md; GLOSSARY.md is the
  documented exception (flat dictionary; splitting breaks lookup)
- Description adds the "conjure" trigger and retains old aliases
2026-06-18 23:15:30 +02:00
1963934422 docs(jj-atomic): document the headless-editor hang
A jj describe/split/commit without -m opens $JJ_EDITOR (nvim), which hangs in
a non-terminal context and can leave split mid-operation. Record the failure
and the -m + JJ_EDITOR=true workaround alongside the backgrounding gotcha.
2026-06-15 22:30:54 +02:00
5885cff284 refactor(skills): trim bdd and jj-atomic SKILL.md under the 100-line cap
Both SKILL.md exceeded the repo's 100-line ceiling (bdd 120, jj-atomic 105).
Relocate prose lessons into the existing anti-patterns.md siblings so each
SKILL.md stays the routing layer; no content lost.

- refactor(bdd): move the producer-fixture lesson to anti-patterns.md, compress
  green-is-not-sufficient to a pointer (review-angles owns it), fold the
  redundant Anti-patterns section into Guardrails, tighten language-ref spacing
  (120 -> 98)
- refactor(jj-atomic): inline the Step-5 and foreground-mutation prose, fold
  Examples into See also (105 -> 100)
2026-06-15 22:30:54 +02:00
1e55224733 docs(skills): drop orphan rule-N citations lacking a canonical source
The skills cited a private lessons-learnt rulebook (rule 1..20) that has no
in-repo definition, so every bare (rule N) marker pointed nowhere. Strip the
markers; the surrounding lessons stand on their own.

- docs(review-angles): drop rule refs from the 6 angle headings + refute.md
- docs(background-work): drop rule refs from the loop/lock guidance + See also
- docs(sieve): drop rule 20 refs; docs(winnow): drop rule 18 ref
2026-06-15 22:30:54 +02:00
aa3a797c5d feat(skills): coin nostos lessons into octobot, add Socratic sieve/winnow spine
refactor(bdd): rename tdd-bdd skill to bdd (dir, triggers, 24 refs, symlink)
feat(skills): add sieve (Real/Good/Minimal gate) and winnow (debloat audit)
feat(skills): add background-work and review-angles from review-round lessons
feat(bdd): fold rules 7/13/17 into interface-design + new SKILL sections
docs(refute): extract shared elenchus doctrine, cite from review-angles/winnow/bdd
docs(CLAUDE): reframe Simplicity First as the three sieves
docs(README): list new skills, add Socratic-spine roadmap
2026-06-15 22:30:54 +02:00
0182c682b9 feat(skills): add add-copilot-project-skill engineering skill
Scaffolds a project-specific, Copilot-consumed skill set authored in the
Claude Code SKILLS structure: single-sourced from the repo's docs, leaf +
parent skills with guided handoff, and a mechanical validator checkpoint.
Topic files cover layout/surfaces, validator design, and stub templates.
2026-06-11 16:47:27 +02:00
47d352a60c docs(dev-python): point to the now-written Python tdd-bdd siblings
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:49:48 +02:00
f0983ea2ef feat(diagnose): add Python feedback-loop and instrumentation references
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:49:48 +02:00
1fee9ca488 feat(tdd-bdd): add Python interface-design and docstring references
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:49:48 +02:00
c8041d203f feat(tdd-bdd): add Python mocking reference (boundaries, facade, autospec)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:49:48 +02:00
ef22a7dbdb feat(tdd-bdd): add Python test reference enforcing pytest fixtures + BDD
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:49:48 +02:00
623d285589 feat(skills): add plan-project and update-project skills 2026-06-11 12:49:48 +02:00
a4abd1d95c fix(scaffold): ship stub README.md in build-py-project
- pyproject.toml.tpl declares readme = "README.md"; without the file,
  hatchling fails the in-container uv sync (OSError: Readme file does
  not exist) on the very first just build-dev
- stub is replaced by /write-readme-py after the first successful build

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:49:48 +02:00
565a3337eb docs(skills): codify verb-first naming rule in write-a-skill
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:49:48 +02:00
2517b1fb43 refactor(skills): extract containerize-project from build-* scaffolds
- refactor(scaffold): move Docker/compose templates and three-stage doc into
  new containerize-project skill; build-* skills delegate their Docker step
- fix(scaffold): drop source mount from the production compose service
- fix(scaffold): add .dockerignore templates so COPY . . excludes .git/.env/data
- feat(scaffold): run production stages as non-root app user; pin uv install
  via COPY --from=ghcr.io/astral-sh/uv:0.7
- docs(README): list containerize-project and add-docker-secrets; remove the
  now-empty _concepts section

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 12:49:48 +02:00
79141458d3 feat(skills): add add-docker-secrets skill 2026-06-11 12:49:48 +02:00
e355c3a090 feat(skills): add cavecrew-octobot skill
Document the caveman: namespace prefix required to invoke cavecrew subagents
(the gotcha behind "Agent type not found"), with copy-paste invocation examples
and octobot defaults (review current jj diff, commit edits via jj-atomic).
2026-06-11 12:49:48 +02:00
d9ad9280d5 docs(skills): refine write-a-skill conventions; tighten caveman rule
* docs(write-a-skill): rename split-file guidance to topic-named siblings (tests-r.md, anti-patterns.md, …) over generic REFERENCE/EXAMPLES
* docs(write-a-skill): fix '< 1024 chars' typo to '≤ 1024'; update jj describe example to use type(scope) form per jj-atomic
* docs(caveman): tighten 'one sentence before first tool call' rule — caveman overrides the global default and skips even that sentence
2026-06-11 12:49:48 +02:00
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
9d2fbe2307 chore(skills): library housekeeping — relocate _concepts and refresh README
* refactor(_concepts): move concepts/three-stage-dockerfile.md to skills/_concepts/
* docs(readme): drop _concepts symlink from install loop; rename section to _concepts
* docs(readme): add Roadmap section for known gaps (filled examples, py siblings, write-readme-r)
2026-06-11 12:49:48 +02:00
a7e9b95183 wire new skills: symlinks, README, jj-atomic cross-links 2026-06-11 12:49:48 +02:00
ff3f74db39 add skill: engineering/write-readme-py (Python README from pyproject + justfile) 2026-06-11 12:49:48 +02:00
557034fa8e add skill: engineering/dev-r (auto-detect package/analysis; orchestrate workflow) 2026-06-11 12:49:48 +02:00
8fa1639fbd add skill: engineering/dev-python (orchestrate lint → typecheck → test → commit) 2026-06-11 12:49:48 +02:00
d33f7046c6 add skill: scaffold/build-r-analysis (renv + targets + Quarto + rocker/verse) 2026-06-11 12:49:48 +02:00
356fb7fce7 add skill: scaffold/build-r-package (renv + rocker/r-ver + DESCRIPTION) 2026-06-11 12:49:48 +02:00
66907fc37f add skill: scaffold/build-py-project (uv + Docker + justfile) 2026-06-11 12:49:48 +02:00
89e7899b6d r-style/tidyverse: add native pipe, \(x) shorthand, snake_case, roxygen2 2026-06-11 12:49:48 +02:00
bf18d62ed9 jj-atomic: add step 6 — open new change after describe 2026-06-11 12:49:48 +02:00
399790b43b r-style: testthat box prologue, imports-omitted note, box::reload, Rmd-setup policy 2026-06-11 12:49:48 +02:00
fe050e9092 r-style/dtplyr: document dtplyr NSE restriction with aliased box::use(dplyr) 2026-06-11 12:49:48 +02:00
9f060db93c add skills: r-style (box/tidyverse/dtplyr) + jj-atomic 2026-06-11 12:49:48 +02:00
03f9ef5be8 add skill: grill-with-docs (docs-anchored Socratic interview) 2026-06-11 12:49:48 +02:00
f08223c3b2 add skill: diagnose (six-phase bug hunt) + R refs; cross-link tdd-bdd 2026-06-11 12:49:48 +02:00
5526eb203c tdd-bdd: add R-flavored deep-modules, interface-design, mocking, refactoring refs 2026-06-11 12:49:48 +02:00
cabfcc019f tdd-bdd: add horizontal-slicing anti-pattern; trigger on BDD too 2026-06-11 12:49:48 +02:00
881a8cb99e add tests-r.md: paired good/bad R examples for tdd-bdd 2026-06-11 12:49:48 +02:00
6ab5b98905 add skill: tdd-bdd (test-driven dev with BDD-flavored Given/When/Then) 2026-06-11 12:49:48 +02:00
a3aea09acd fix install: per-skill symlinks (Claude Code scans only one level deep) 2026-06-11 12:49:48 +02:00