34 Commits

Author SHA1 Message Date
5ea282ec03 feat(skills): add general write-readme skill
- feat(skills): detect ecosystem from marker files (py/r/node/rust/generic)
- feat(skills): add shared readme.template.md generalizing the py card layout
- docs(skills): add REFERENCE.md with per-ecosystem extraction snippets
- generalizes write-readme-py, which stays as the worked python example
2026-07-19 22:08:11 +02:00
a595106cc5 feat(write-readme-py): adopt Saduko-style README layout
Extends the template and skill so a generated README matches the Saduko
reference: logo block in the header table, multi-extras install, local-
checks subsection, and an Apache-aware License block with attribution.

- readme-py.template.md: add <logo-block>, <install-block>,
  <local-checks-preamble>, <local-section>, <license-block> placeholders;
  Project layout block trimmed to match Saduko's flatter form
- SKILL.md: read every project.optional-dependencies group (not just dev),
  detect logo asset, detect local-* recipes, branch the License block on
  the licence string; refuse to invent author or repo URL
- saduko-license-block.md: new topic file with the parameterised Apache
  2.0 rights / requirements / attribution / bibtex template, token
  resolution table, and a minimal NOTICE companion
2026-07-19 22:08:11 +02:00
51ae52709d docs(add-copilot-project-skill): pivot to GitHub-native .github/skills layout
Drops the dual-surface "skills/ + .github/prompts/" framing in favour of
the Copilot cloud agent's documented .github/skills/<name>/SKILL.md
autodiscovery with description-matching routing.

- replace .github/prompts/ mirror with .github/instructions/*.instructions.md
  path-scoped auto-apply
- AGENTS.md becomes the single source of style; copilot-instructions.md
  reduced to a redirect + skills-menu for discoverability
- add frontmatter spec table (name/description/license/allowed-tools)
- restate handoff rationale as cloud-agent per-turn routing
2026-07-19 22:08:11 +02:00
e36a37d0bb docs(skills): README + symlink sync; align stragglers to seam vocab
Discovered by audit:

1. README missed 4 skills that exist in the repo — add bullets for
   productivity/plan-project, productivity/update-project,
   productivity/cavecrew-octobot, engineering/add-copilot-project-skill.
2. ~/.claude/skills/ was missing symlinks for 5 skills (add-docker-secrets,
   cavecrew-octobot, containerize-project, plan-project, update-project) —
   linked manually so Claude Code discovers them on next start.
3. bdd/SKILL.md described mocking-{r,py}.md as "boundaries only" but those
   files now read "seams only" after the codebase-design vocab port — swap
   the descriptions to match.
4. diagnose/feedback-loops-{r,py}.md said "boundary" for the contract
   interface — swap to "seam" so the diagnose worked examples use the
   same vocab as the bdd / codebase-design siblings they link into.

Not done in this commit:
- skills/productivity/writing-great-skills/ is an empty folder (no
  SKILL.md, no other files) — flagged separately, no action yet.
- nuke-review uses "boundary" deliberately as a port of the upstream
  cursor team-kit voice ("type / boundary muddiness" etc.); the term
  has a distinct type-system sense that doesn't collide with the
  module-seam sense codebase-design owns. Left as-is.
2026-06-19 01:20:58 +02:00
b93454bbc3 chore(skills): relax house cap from 100 to 110 lines; restore nuke-review phrases
Updates the file-size house rule in CLAUDE.md, conjure-a-skill/SKILL.md
(description + body + done-criteria + guardrails), and
conjure-a-skill/PRINCIPLES.md. The cap on sprawl stays — just a slightly
more generous ceiling.

Brings back the six "Good phrases" dropped from the nuke-review port (now
all nine upstream phrases inline as voice cues): the dropped six covered
spaghetti / canonical-placement (x2) / indirection / type-boundary /
code-judo themes that were previously kept as standards but lacked
line-ready phrasing. nuke-review/SKILL.md lands at 106 lines (under new cap).
2026-06-19 01:09:39 +02:00
3862514d6f feat(skills): port nuke-review structural-quality skill from cursor team-kit
Adds engineering/nuke-review/SKILL.md — adaptation of cursor/plugins
thermo-nuclear-code-quality-review. User-invoked (disable-model-invocation:
true). 100 lines after trimming the upstream ~200-line original.

Trims: consolidated the three checklists (Primary Questions / What to Flag /
Preferred Remedies) into one 6-theme "What to look for, what to push for"
section; the 8 Non-negotiable Standards kept verbatim as headlines with
sub-bullets compressed; 3 of the original ~9 "Good phrases" kept inline as
voice cues (a sibling would weaken the priming effect).

Positions the four post-green review surfaces as distinct axes:
- review-angles    correctness / robustness (finder angles)
- nuke-review      structural quality / code judo  (NEW)
- winnow           mechanical debloat (line-count scoreboard)
- cavecrew-octobot invocation cheatsheet for caveman:cavecrew-reviewer
                   (the agent that executes any of the three axes)

bdd/SKILL.md "After green" section now lists all three axes (was:
review-angles only); compensating cut to the Vocabulary blurb keeps it at
103 lines (pre-existing over-cap, no further regression). Cross-refs added
in review-angles, winnow, cavecrew-octobot See-also.

Source: cursor/plugins@main
  cursor-team-kit/skills/thermo-nuclear-code-quality-review/SKILL.md
2026-06-19 01:04:46 +02:00
feb12b1586 feat(skills): port codebase-design vocabulary skill from upstream
Adds engineering/codebase-design/ — shared vocabulary for designing deep
modules (module, interface, seam, adapter, depth, leverage, locality).
Three files: SKILL.md (glossary + principles + R+Py testability examples +
rejected framings); DEEPENING.md (4 dependency categories, seam discipline,
replace-don't-layer); DESIGN-IT-TWICE.md (parallel sub-agent pattern for
exploring 3+ radically different interface designs).

Retargets existing bdd siblings as language-flavored leaves:
- bdd/SKILL.md gains a Vocabulary anchor pointing at codebase-design
- interface-design-{r,py}.md and deep-modules-r.md get "vocab lives
  upstream" headers; "deep modules" mention dropped from the py
  interface-design description (codebase-design owns it now)
- mocking-{r,py}.md swap "boundary" -> "seam" throughout — upstream
  rejects "boundary" as overloaded with DDD's bounded context
- refactoring-r.md cross-links Shallow-modules to DEEPENING.md

Cross-references added in sieve/SKILL.md (Minimal invokes depth),
winnow/SKILL.md (deletion test formalised there), diagnose/SKILL.md
(seam definition for Phase 5's "no correct seam" finding),
domain-modeling/SKILL.md (sibling — vocabulary for solution structure
vs problem domain). README gains a codebase-design bullet.

Source: mattpocock/skills@main engineering/codebase-design/. R+Py
testability examples replace upstream TS originals.
2026-06-19 00:37:37 +02:00
f5227325a3 refactor(skills): split grill-with-docs into router + domain-modeling
Mirror upstream's structural split. Old grill-with-docs bundled the
Socratic interview and the docs-discipline in one model-invoked skill;
upstream now separates them.

- Rename engineering/grill-with-docs/ -> engineering/domain-modeling/
  (the active glossary / ADR discipline). Model-invocable, fires when
  another skill needs canonical vocabulary.
- Adopt upstream's active-vs-reading distinction in domain-modeling/SKILL.md.
- Detect multi-context mode from CONTEXT-MAP.md presence (was a manual
  switch).
- New engineering/grill-with-docs/SKILL.md is now a 16-line user-invoked
  router (disable-model-invocation: true). It composes grill-me
  (Socratic interview) and domain-modeling (docs discipline).
- Trim examples-r.md to 99 lines: drop CONTEXT-MAP-kicks-in section
  (covered in SKILL.md), compress NOT-written bullets and
  zero-implementation note, drop decorative narration.
- Retarget cross-refs in diagnose and bdd to domain-modeling (their
  interest is canonical vocabulary, not the interview).
- Retarget plan-project's three-of-three rule pointer and vocabulary
  See-also to domain-modeling.
- Fix pre-existing broken path in sieve See-also
  (../../productivity/grill-with-docs -> ../grill-with-docs).
- Update upstream attribution URLs in ADR-FORMAT.md and CONTEXT-FORMAT.md
  (upstream renamed grill-with-docs -> domain-modeling).
- README: replace single grill-with-docs entry with router + domain-modeling
  pair; retarget examples-r.md path.
2026-06-19 00:12:06 +02:00
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
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