slot-machine
CLAUDE.md31 starsChanged 8 months agoMITView on GitHub
You are working on the slot-machine skill/plugin repo for best-of-N parallel implementation across Claude Code and Codex. Use this policy for normal repo work:
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- slot-machineSkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 26
Treat Claude and Codex packaging as first-class.
- Very specific: line 30
Use conventional branch type prefixes for repo work: feat/, fix/, docs/, style/ with a short kebab-case suffix
- Very specific: line 32
Run ./tests/run-tests.sh before committing
- Distinctive: line 44
Use this policy for normal repo work:
- Very specific: line 46
Always run ./tests/run-tests.sh before committing.
- Distinctive: line 47
Prefer targeted headless tests over full sweeps during feature work:
- Very specific: line 54
Do not run --smoke, --integration, or --all by default for routine feature development.
- Very specific: line 55
Use --smoke for host/harness changes, prompt-flow changes that span phases, or release prep.
- Very specific: line 56
Use --integration for end-to-end orchestration changes, run-artifact changes, merge/finalization changes, or manual_handoff changes.
- Very specific: line 57
Use --benchmark only for performance work or regression investigation.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Slot Machine Development
You are working on the slot-machine skill/plugin repo for best-of-N parallel implementation across Claude Code and Codex.
Structure
SKILL.md— Host-agnostic orchestration engine (shared across task types).claude-plugin/— Claude packaging and marketplace metadata.codex-plugin/— Codex plugin metadataskills/slot-machine/SKILL.md— Must stay byte-for-byte in sync with the repo-rootSKILL.mdscripts/codex-slot-runner.py— Supported Codex slot runtime helper; invokescodex exec, captures raw logs, and normalizes Codex slot reportsscripts/install-claude-skill.sh,scripts/update-claude-skill.sh— Supported Claude install/update scripts for keeping~/.claude/skills/slot-machinealigned with a chosen source checkoutprofiles/— Task-specific profiles (one folder per profile)coding/— Built-in: code implementation tasks0-profile.md— Config: frontmatter + approach hints1-implementer.md,2-reviewer.md,3-judge.md,4-synthesizer.md— Agent prompts
writing/— Built-in: writing/drafting tasks- Same structure as coding, adapted for prose
tests/— Tiered test suitetests/benchmark/— Speed and variability benchmarks
docs/— Plans, notes, brainstorms, E2E test results
Key Rules
- SKILL.md description must ONLY describe when to trigger, never the workflow
- All {{VARIABLES}} in profile prompts must be from the universal variable set in SKILL.md
- Status/verdict values must match across SKILL.md and all profiles
- Treat Claude and Codex packaging as first-class; if discovery changes, update both packaging docs/metadata paths together
- Project config may live in
AGENTS.mdorCLAUDE.md - Describe harness routing host-relatively: native path on the active host, with Codex slots using the slot runtime helper in their slot workspace, which runs
codex exec, and Claude-as-other-harness usingclaude -p - Explicit
claudeharness slots should run throughclaude -pdirectly; do not silently fall back if the external Claude execution fails - Use conventional branch type prefixes for repo work:
feat/,fix/,docs/,style/with a short kebab-case suffix - Open PRs as ready for review by default. Use draft only when there is an explicit reason or the user asks for it.
- Run
./tests/run-tests.shbefore committing
Testing
./tests/run-tests.sh— Fast suite: contracts, skill structure, harness integrity./tests/run-tests.sh --changed— Fast suite plus the heavier checks matched to local changes./tests/run-tests.sh --host claude|codex|all— Restrict headless tests to one host or run the full matrix./tests/run-tests.sh --jobs N|auto— Run independent tests in parallel./tests/run-tests.sh --smoke— Real implementer/reviewer/judge smoke tests on each available host./tests/run-tests.sh --integration— Smoke tier plus the heavier E2E tests./tests/run-tests.sh --benchmark— Speed benchmarks./tests/run-tests.sh --all— Full suite, with edge-case E2E and reviewer-accuracy still skipping explicitly
Use this policy for normal repo work:
- Always run
./tests/run-tests.shbefore committing. This is the default development gate. - Prefer targeted headless tests over full sweeps during feature work:
./tests/run-tests.sh --test test-implementer-smoke.sh./tests/run-tests.sh --test test-reviewer-smoke.sh./tests/run-tests.sh --test test-judge-smoke.sh./tests/run-tests.sh --test test-claude-host-codex-smoke.sh./tests/run-tests.sh --test test-e2e-happy-path.sh./tests/run-tests.sh --test test-e2e-manual-handoff.sh
- Do not run
--smoke,--integration, or--allby default for routine feature development. Use them when the change is broad enough to justify the cost. - Use
--smokefor host/harness changes, prompt-flow changes that span phases, or release prep. - Use
--integrationfor end-to-end orchestration changes, run-artifact changes, merge/finalization changes, ormanual_handoffchanges. - Use
--benchmarkonly for performance work or regression investigation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

