/darkroom:harvest [what to harvest | transcript file | NoteTaker session | Granola meeting ID]from Darkroom Engineering
Extracts repeatable procedures from successful sessions and saves them as skills, rules, profiles, or AGENTS.md diffs. Validates behavior with evidence before promotion.
Ships in Darkroom Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Extract the repeatable procedure behind an unusually good result and land it as a reviewed cc-settings artifact — with the evidence measured, not asserted. The output is a concrete file (skill, rule, profile section, AGENTS.md diff, or team-knowledge note) plus a filled harvest contract whose verdict (PASS / FAIL / INCONCLUSIVE) decides whether it may be promoted, and to what scope.
This is a ratchet: it only tightens shared standards on behavior it can show repeated or survived a trap. Behavior it cannot measure is marked INCONCLUSIVE and held back, not written up as fact.
Claude frontmatter does not create an isolated fork in standalone Codex. Keep
evidence inspection read-only in the current context or use a fresh native
reader. Audit native rules under ${CODEX_HOME:-$HOME/.codex}/rules, the
installed AGENTS.md, and managed artifacts in the real cc-settings git
checkout named by the Codex sentinel's repo_path. Installed plugin/cache files
and darkroom/source may be inspected for drift, but never edited as the source
repo.
Before deciding what to harvest, inventory what was actually seen. For each candidate behavior, record — from evidence, not memory:
Evidence comes three ways — use whichever the user has:
Single-witness is a valid census result; it caps how far the artifact can travel (the contract's promotion scope gate).
The argument can name a recording instead of the current session:
| Source | How to read it |
|---|---|
File path (.txt, .md, .vtt) | Read it. In .vtt, cue numbers and timing lines are noise; keep speaker labels and timestamps to cite. |
| NoteTaker session | Find it with mcp__notetaker__list_sessions (title or date), then read it with mcp__notetaker__read_transcript. |
| Granola meeting ID | mcp__claude_ai_Granola__get_meeting_transcript with the ID. A paid-plan error means there is no transcript: say so. |
If the file does not exist or the named tool is not connected, say which, and ask for an exported file. Never reconstruct a recording from its title or memory.
null in the
contract, never a plausible default.The output matches a session harvest: the routed artifact (for a skill: when to use, steps, checks, mistakes to avoid) and the Phase 6 eval seeds, with trap prompts drawn from the mistakes the speakers named.
The bar is a repeatable procedure, not raw intelligence. Test each candidate:
docs/skills.md
and ~/.claude/rules/; in standalone Codex use the source boundary above. If
an existing artifact covers 80% of it, the deliverable
is a diff to that artifact, not a new one.Distill the census into the harvest contract — copy its template and fill every field: trigger, observed evidence, procedure, known failure modes, quality bar, trap prompts, required tools, verification result, promotion decision.
If you can't fill a row with something concrete, it is null / INCONCLUSIVE — that
is data, not a blank to paper over; an unknown witness count is null, never an
optimistic guess. A missing failure mode usually means the
behavior wasn't actually different from the default; go back to Phase 1.
| The behavior is… | Artifact | How |
|---|---|---|
| A multi-step workflow a user would invoke | Skill | bun run new-skill + docs/skill-authoring.md |
| An always-on constraint tied to file types | Rule | New/edited file in rules/ with paths: frontmatter |
| A workflow bundle for one project type | Profile | Section in the matching profiles/*.md |
| A universal standard every tool should follow | AGENTS.md | Targeted diff to the relevant section |
| A single gotcha, decision, or convention | Team learning | Hand off to /share-learning |
| A deterministic operation agents hand-roll and get wrong | Script | A src/scripts/ or skill-local helper the procedure calls |
| A recurring tool-call mistake, or an error signature that keeps returning | Hook | PreToolUse deny whose reason names the fix, or a PostToolUse additionalContext hint, wired per docs/hooks-reference.md "Adding New Hooks", then bun run audit:hooks and setup.sh (see SECURITY.md) |
Bias toward the smallest artifact that carries the procedure — folding into an existing skill beats adding a new one (see the skill cap in CLAUDE-FULL.md). Weigh context cost too: a skill, script, or hook costs nothing until it fires, while an always-on rule or AGENTS.md line is paid on every turn of every session. Prefer the on-demand form, and when the artifact must be always-on, cut an equal amount of existing always-on text in the same diff. Author it in the target's own conventions, carrying the contract's fields into the file: procedure as steps, failure modes as a DON'T / red-flags section, quality bar as explicit checks.
When the harvested behavior is a mistake agents keep making (the user corrected the same class twice, or reverts and review comments show it), prose is the weakest artifact: nothing fails when an agent skips it. If the mistake is a tool call an agent issues (a shell command, an edit target) rather than code, the ladder below cannot see it: use the Hook row above, not a lint, test, or conftest-style check. Assume the next agent sees only the files it opened and copies the nearest example. Fix the class at the highest level that works, and say in the contract why each higher level did not:
Prove each new check fails on a real past instance of the mistake, and run the same command locally and in CI. That proof is this route's trap in Phase 5. When a correction repeats a rule that already exists but nothing enforces, treat it as a repeat and move it up the ladder in the same change.
For skills, complete registration: ACTIVE_SKILLS in src/lib/managed-skills.ts, the human
contract in docs/skills.md, then bun run lint:skills.
Write 2–3 trap prompts — realistic requests where an agent without the artifact takes the documented bad path. For each:
/autoresearch).Then set the verification result (PASS / FAIL / INCONCLUSIVE) per the contract's verdict rubric, and let its promotion scope gate decide how far the artifact travels. On FAIL, revise and re-run, or stop.
When the routed artifact is a skill, hand its evidence forward: write or update
skills/<name>/RESEARCH.md so /autoresearch can later optimize it.
## Test Inputs ← the trap prompts (one ### Test N: per trap).## Checklist ← the quality-bar checks (observable, binary — 3–7 items).## Settings ← defaults (samples: 3, min_improvement: 0.05, stall_rounds: 3).## Held-out Inputs: /autoresearch writes those itself from the skill's use
cases, so they stay independent of the traps. The linter's missing-held-out
warning on a fresh seed is expected.Preserve the blind-run rule: the seed carries only the raw prompt and the binary criteria — never the expected answer, the scoring rationale, or this conversation's context. Leaking any of those teaches to the test.
Validate the shape before finishing: bun run lint:research skills/<name>/RESEARCH.md
(required sections present, ≥2 test inputs, 3–7 checklist items, numeric settings).
Evidence missing, a trap failing, or an unknown number follows the contract's
Deopt section. For unknown territory (behavior you can't reconstruct, a judgment
you can't verify from evidence on disk), fall back to /poke-holes, human
approval, or normal reasoning rather than forcing a verdict.
Stop. Present the artifact and the filled contract (with its verdict). Wait for approval before:
AGENTS.md, rules/, or profiles/ (shared standards — every teammate
inherits these; require multi-witness and PASS)/share-learningPersonal-scope drafts (a new unregistered skill file, a RESEARCH.md seed) may be written freely; the gate is on anything shared. End the reply by naming the files written and asking whether to commit or land them, even when nothing shared was touched.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub darkroomengineering/cc-settings --plugin darkroom24 skills in this plugin
/auditRepo audits, one mode or all (codebase, docs, process, perf, tests, state, threat-model, motion, SEO, platform guidelines, debt). Triggers "audit the codebase", "full audit", "perf audit", "audit the tests", "find the implicit state machines", "threat model", "motion audit", "seo audit", "platform audit", "does this follow the HIG", "debt ledger"./autoresearchAutonomous mutate/score/keep optimization of a SKILL.md prompt. Triggers "autoresearch", "optimize skill", "tune this skill", "evolve this skill"./buildBuild a feature, page, or integration end-to-end with a GO/NO-GO gate. Triggers "build a feature", "implement feature", "add feature", "build integration". Components go to /component./case-studyTurn any web project (WebGL, three.js, React Three Fiber, Theatre.js, GSAP or Lenis scroll sites, plain DOM sites, and browser games or app-like flows) into case-study material for the studio website. Produces frame-perfect 16:9 clips of every chapter and transition (games are played through by a script with real input), layer-by-layer decompositions of every scene, Blender turntables and clay/wire/bake renders, every sound exported separately with mixes rebuilt from the animation data, every image asset (glyphs, logos, frames, textures, sprite sheets) exported separately, and a shareable exploration board with playable pieces rebuilt from the project's own assets. Triggers "case study", "showcase", "portfolio piece", "making-of", "breakdown", "how it's made", "decompose the scene", "take apart the landscape", "record the site", "capture footage", "turntable", "export the sounds", "extract the icons/assets". Use when a finished project needs to be shown, even if nobody says "case study"./ccSync cc-settings with Claude Code and Codex upstreams, update a local install, or migrate a project's CLAUDE.md to AGENTS.md. Triggers "sync with claude code", "update cc-settings", "migrate to agents.md"./codexClaude-to-Codex bridge to delegate bulk mechanical work, get an independent cross-model diff review, or ask a read-only question. Triggers only when the user names Codex, as in "use codex", "have codex review", "cross-check with codex", "ask codex".Other plugins' skills for the same job