25 Commits

Author SHA1 Message Date
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
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
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
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
89e7899b6d r-style/tidyverse: add native pipe, \(x) shorthand, snake_case, roxygen2 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