/petri-dish:petri-dishfrom petri-dish
Use when authoring a petri-dish culture (Claude Code experiment), designing an A/B variant, picking a baseline cell, or shaping a probe prompt. Triggers on "write a culture", "petri-dish culture", "author a probe", "design an experiment for Claude Code", "A/B variant of <culture>", "baseline cell for <question>", or any task that produces a `config.yml` + `prompt.md` pair under `cultures/`. Also use when reasoning about whether a probe is well-shaped: multi-run discipline, structured result blocks, sequential-not-batched wording, preamble selection. Skip for running existing cultures (`petri-dish run`) and gem-internal code changes.
Ships in petri-dish. 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.
A culture is one petri-dish experiment: a directory under cultures/ (or whatever --cultures-dir points at) containing config.yml and prompt.md. This skill is for shaping new cultures so they generate clean signal, not muddy prose.
The deep reference is references/authoring-cultures.md in the gem repo. Read it for the schema, full prompt-shape guidance, preamble inventory, cell discipline, and gotchas. The summary below is what to keep loaded while authoring.
cultures/my-culture/
config.yml # environment, settings, runtime
prompt.md # what Claude is asked to do
config.yml minimum:
name: my-culture
description: "One-line summary"
environment:
name: test-my-culture
plugins: [] # or [{marketplace: ..., plugin: ...}]
settings: # passed through to Claude Code settings.json
sandbox: { enabled: true }
permissions: { allow: [Read, Write, Bash] }
runtime:
work_dir: /tmp/my-culture # default "."
preamble: lib/preambles/sandbox.md # optional; null for no preamble
prepare: [] # shell commands run before Claude launches
timeout: 300 # seconds
prompt_mode: accept # "accept" or "deny"
The schema is validated by lib/petri_dish/config.rb in the gem. environment.settings is pass-through and unvalidated; it accepts the full Claude Code settings surface.
Prompts are two parts: an optional preamble (resolved via runtime.preamble) and the body in prompt.md. Petri appends **SIGNAL_FILE: <path>** to the bottom; the body has to tell Claude to write "done" to that file when finished.
Two patterns that make prompts measurable:
Structured Q-block format when asking multiple questions:
## Q<N>: <short name>
Answer: <path:line>
Confidence: <high|medium|low>
Notes: <how you found it, which tool you used>
Sequential-not-batched wording:
Work through them in order, one at a time, appending the block to RESULTS.md
immediately after you have the answer. Do not batch.
Without that wording, Claude tends to run all calls in parallel and write at the end, which makes the hook log hard to map back to questions.
| Preamble | Use when |
|---|---|
sandbox.md | Probing what the sandbox blocks/allows; dictates commands |
permissions.md | Probing permission-prompt behavior under different settings |
escape-hatch.md | Probing the dangerouslyDisableSandbox reflex; records both attempts |
guidance.md | Probing tool/path choice; free-form "complete the task naturally" |
Free tool choice for activation probes (does Claude reach for the LSP?). Dictated commands for capability probes (does this command succeed under this setting?). Match the preamble shape to the question.
A cell is one specific configuration. To get findings out of a probe rather than vibes:
CLAUDE.md cell ranged 2-5 (mean 3.6).API Error: 401 or /login in the transcript. Fix: cenv login <env-name>, re-run./plugin list shows it missing. Confirm with a /plugin list check in the transcript for any plugin-dependent probe.prepare step fails with "Config files are not trusted," prefix with mise trust . 2>/dev/null;. The cenv re-trusts after prepare..claude/agents/*, .claude/commands/*, .vscode/*, .mcp.json, .gitmodules, and shell dotfiles are blocked regardless of allowWrite. Scope writes narrowly or accept the EPERM as the finding.examples/ shaped like what you want, copy the directory, edit.config.yml and prompt.md together.sandbox-07-escape-hatch vs sandbox-07b-escape-hatch-disabled).When in doubt about a field, check lib/petri_dish/config.rb in the gem (it's the schema source of truth) or look at how three existing cultures use that field.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
petri-dish@pickled-claude-plugins is listed by technicalpickles/pickled-claude-plugins — review the source before installing
npx claudepluginhub technicalpickles/pickled-claude-plugins --plugin petri-dish