68 Commits

Author SHA1 Message Date
07afbe8473 feat(write-OKF): conform OKF contract to Google OKF v0.1 spec
feat(write-OKF): require type frontmatter on every page; okf_version in
index; conformance block + page-type vocabulary in okf-layout.md
feat(write-OKF): rename INDEX.md to reserved lowercase index.md across
templates and cross-referencing skills
feat(blueprint): add type: Blueprint to blueprint-format frontmatter
feat(ferry): add type: Ferry Map / Decision to decision-format
docs(write-OKF): cite Google OKF v0.1 spec alongside Karpathy and
LangChain OpenWiki in the layout contract
2026-07-20 00:51:43 +02:00
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
3481fbdbd2 feat(conjure): enforce imperative-verb names and invocation-cost choice
- feat(conjure): noun-first names rejected at gather and review; please-test
- feat(conjure): user-invoked default with steer registration; Use when only if model-invoked
- docs(conjure): legacy non-verb names grandfathered explicitly
2026-07-19 23:29:34 +02:00
d704f2bbae feat(loop): add steer router skill 2026-07-19 23:29:06 +02:00
2dbb579b35 refactor(skills): disable model invocation on orchestrators and rituals
- refactor(skills): 16 user-ritual skills flagged disable-model-invocation
- refactor(skills): their descriptions shrink to one human-facing line
- 11 stay model-invoked: r-style, bdd, diagnose, jj-atomic, background-work,
  review-angles, review-blueprint, codebase-design, domain-modeling,
  cavecrew-octobot, resolve-conflicts
2026-07-19 23:28:30 +02:00
997f435b12 feat(productivity): add resolve-conflicts skill — jj conflict discipline
- feat(resolve-conflicts): topology-first rule for phantom conflicts from wrong rebase roots
- feat(resolve-conflicts): marker-header intent reading; both-intents resolution
- feat(resolve-conflicts): headless squash gotcha and immutable-commit note
2026-07-19 23:27:26 +02:00
b2b1a1f286 feat(handoff): add redaction, reference-dont-duplicate, suggested-skills
- feat(handoff): two exits — session file and subagent brief payload
- feat(handoff): redact secrets; cite OKF/spec/ferry artifacts by path, never restate
- feat(handoff): suggested-skills template section; temp-dir target option
2026-07-19 23:26:48 +02:00
dcec931589 feat(bdd): add tautological-test anti-pattern and pre-agreed-seams step
- feat(bdd): step 0.5 — seams under test confirmed before any test exists
- feat(bdd): tautological-test anti-pattern — expected values from independent truth
- docs(bdd): note the deliberate refactor-inside-loop divergence from upstream
2026-07-19 23:26:02 +02:00
794b25a666 feat(productivity): enforce handoff gate for mutating subagents
- feat(cavecrew-octobot): builders require a brief — goal, spec refs, verify command
- docs(jj-atomic): implement commits cite their spec number
2026-07-19 23:24:12 +02:00
f19eb4bfa1 feat(loop): add implement skill — spec-driven execution with verify gate 2026-07-19 23:24:12 +02:00
c587a0d60f feat(loop): add ferry skill — decision maps for multi-session work 2026-07-19 23:24:12 +02:00
e14fae6331 feat(review): add review-blueprint axis — diff versus originating spec
- feat(review-blueprint): complete/contained/verified gate with pasted-output rule
- docs(skills): wire the fourth axis into bdd after-green and review cross-links
2026-07-19 23:22:10 +02:00
7fb4450fa8 feat(loop): add blueprint skill — specs with justification into OKF/specs 2026-07-19 23:22:10 +02:00
246a81d0dc refactor(skills): retarget canonical knowledge paths into OKF/
- refactor(domain-modeling): CONTEXT.md, adr/ and multi-context layout move under OKF/
- refactor(domain-modeling): bounded-context-only split rule; per-issue glossaries forbidden
- refactor(grill-with-docs): glossary and ADR updates target OKF/ paths
2026-07-19 23:18:16 +02:00
7ec15a4e9d feat(loop): merge plan-project and update-project into architect
- feat(architect): mode router — greenfield vs revision by OKF/ROADMAP.md state
- refactor(architect): plan-project body becomes greenfield.md, update-project becomes revise.md
- refactor(architect): roadmap and glossary paths retargeted to OKF/
- chore(skills): delete plan-project and update-project
2026-07-19 23:16:49 +02:00
03ddb4ed01 feat(loop): add scribe-OKF skill — open-knowledge-format scaffold and refresh
- feat(scribe-OKF): mode-routed SKILL.md (scaffold vs refresh) with okf-layout contract
- feat(scribe-OKF): AGENTS.md hook block with Karpathy behavioral guardrails
- feat(scribe-OKF): TODO-marker templates for INDEX, SUMMARY, ARCHITECTURE, LEARNINGS
2026-07-19 23:16:05 +02:00
878a5e063d fix(skills): read python floor from requires-python in write-readme-py
- fix(skills): stop hardcoding "≥ 3.11"; substitute project.requires-python
2026-07-19 22:08:11 +02:00
7cd2e44799 fix(skills): harden write-readme from review findings
- fix(skills): guard against clobbering an existing README before overwrite
- fix(skills): require manifest fields present, not just marker file, before trusting ecosystem
- fix(skills): resolve detection rule contradiction (ask when several markers match)
- fix(skills): read project.requires-python instead of hardcoding python floor
- fix(skills): make usage fence language a placeholder, not hardcoded bash
2026-07-19 22:08:11 +02:00
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
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