slot-machine
AGENTS.md31 starsChanged 8 months agoMITView on GitHub
This repository is a skill/plugin repo for Claude Code and Codex, not an application service. The primary artifacts are prompt specifications, packaging metadata, and their validation harness: Treat prompt wording, documented variables, status strings, and output contracts as code. Small text edits can break downstream parsing. When editing this repo, preserve these invariants:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- slot-machineSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
26 rules. About 0 are common, 14 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Treat prompt wording, documented variables, status strings, and output contracts as code.
- Distinctive: line 25
Keep Claude and Codex packaging aligned when discovery changes.
- Distinctive: line 43
Keep these aligned with actual workflow and test coverage when behavior changes.
- Distinctive: line 47
When editing this repo, preserve these invariants:
- Very specific: line 49
Keep status values synchronized across SKILL.md, profile prompts, and tests:
- Distinctive: line 54
Keep judge verdict values synchronized everywhere:
- Very specific: line 58
Every {{VARIABLE}} used in any profile prompt must be documented in SKILL.md.
- Distinctive: line 59
If you change slot configuration, artifact layout, profile loading, or Codex dispatch behavior, update both docs and contract tests in the …
- Very specific: line 61
Do not add workflow details to the SKILL.md frontmatter description.
- Distinctive: line 67
Follow the existing repo style: Markdown and shell first, minimal ceremony.
- Distinctive: line 68
Prefer focused edits. Avoid wholesale prompt rewrites unless the task requires a behavior change.
- Very specific: line 69
Use conventional branch type prefixes for repo work: feat/, fix/, docs/, style/ with a short kebab-case suffix.
- Distinctive: line 71
If you add a new built-in profile, include all five files:
- Very specific: line 77
If a change affects parsing assumptions, search broadly with rg for the relevant string before and after editing.
- Distinctive: line 81
Run these commands from the repo root:
- Very specific: line 89
Run ./tests/run-tests.sh for every change.
- Very specific: line 90
Use ./tests/run-tests.sh --changed when you want the runner to keep Tier 1 and add only the heavier checks matched to the files you changed.
- Very specific: line 91
Use ./tests/run-tests.sh --host claude or ./tests/run-tests.sh --host codex when local work only needs one host path.
- Very specific: line 92
Use ./tests/run-tests.sh --jobs auto or a fixed --jobs N value to parallelize independent shell tests.
- Very specific: line 93
Do not treat --smoke or --integration as default local-development commands.
- Distinctive: line 94
Prefer the smallest targeted headless check that matches the area you changed:
- Distinctive: line 105
If you change prompt flow, profile behavior, or orchestration logic and need broader confirmation, run the smallest additional tier that …
- Distinctive: line 115
Add at least the relevant targeted smoke or E2E tests for the surfaces changed in the release.
- Very specific: line 116
Run ./tests/run-tests.sh --smoke for host/harness changes or broad prompt-flow changes.
- Very specific: line 117
Run ./tests/run-tests.sh --integration when the release touches end-to-end orchestration, artifact generation, merge/finalization, or …
- Distinctive: line 123
Before finishing a change, verify:
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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
AGENTS.md
Purpose
This repository is a skill/plugin repo for Claude Code and Codex, not an application service. The primary artifacts are prompt specifications, packaging metadata, and their validation harness:
SKILL.mdis the host-agnostic orchestration engine..claude-plugin/and.codex-plugin/are first-class packaging/discovery targets.skills/slot-machine/SKILL.mdis the Codex-packaged mirror of the repo-rootSKILL.md.scripts/codex-slot-runner.pyis the supported Codex slot runtime helper; it invokescodex exec, captures raw logs, and normalizes Codex slot results into stable artifacts.scripts/install-claude-skill.shandscripts/update-claude-skill.shdefine the supported Claude install/update flow and keep~/.claude/skills/slot-machinepointed at the intended source checkout.scripts/build-codex-runtime-skill.sh,scripts/install-codex-skill.sh, andscripts/update-codex-skill.shdefine the supported Codex runtime install/update flow.scripts/install-codex-standalone-skill.shis a compatibility wrapper for materializing a plain bundle at an arbitrary destination.profiles/contains task-specific profile configs and agent prompts.tests/contains shell-based contract checks, real implementer/reviewer smoke tests, scaffolded higher-tier checks, fixtures, and benchmarks.
Treat prompt wording, documented variables, status strings, and output contracts as code. Small text edits can break downstream parsing.
Repo Map
SKILL.md- Frontmatter
descriptionmust describe trigger conditions only, not workflow details. - Defines the universal variable set, slot configuration rules, artifact paths, and orchestration behavior.
- Frontmatter
.claude-plugin/,.codex-plugin/, andskills/slot-machine/SKILL.md- Keep Claude and Codex packaging aligned when discovery changes.
skills/slot-machine/SKILL.mdmust remain byte-for-byte synchronized with the repo-rootSKILL.md.scripts/install-claude-skill.shmust create the stable~/.claude/skills/slot-machinelink for script-managed Claude installs.scripts/update-claude-skill.shmust refresh that Claude link while remaining compatible with legacy direct git checkouts in the Claude skill directory.scripts/build-codex-runtime-skill.shmust keep producing a standalone Codex skill directory with a realSKILL.md, linked built-in assets, and no.codex-pluginmetadata.- The standalone Codex runtime bundle must expose
scripts/codex-slot-runner.pyunderscripts/so installed Codex skills use the same runtime helper as the repo checkout. scripts/install-codex-skill.shmust rebuild that runtime bundle into the Codex runtime root and point the stable~/.agents/skills/slot-machinelink at it.scripts/update-codex-skill.shmust rebuild from install metadata so Codex updates do not depend on manual path reconstruction.
profiles/coding/andprofiles/writing/0-profile.mdholds frontmatter and approach hints.1-implementer.md,2-reviewer.md,3-judge.md,4-synthesizer.mdare the phase prompts.
tests/test-contracts.sh,test-skill-structure.sh, andtest-harness-integrity.share the fast checks that currently run in normal local validation.test-implementer-smoke.sh,test-reviewer-smoke.sh, andtest-judge-smoke.share real headless smoke tests for the implementer, reviewer, and judge phases.test-e2e-happy-path.shis a real headless happy-path E2E test.test-e2e-edge-cases.shandtest-reviewer-accuracy.shstill skip until their headlessclaude -passertions are wired in.benchmark/contains long-running benchmark scripts.
README.md,CONTRIBUTING.md,CLAUDE.md,AGENTS.md- Keep these aligned with actual workflow and test coverage when behavior changes.
Change Rules
When editing this repo, preserve these invariants:
- Keep status values synchronized across
SKILL.md, profile prompts, and tests:DONEDONE_WITH_CONCERNSBLOCKEDNEEDS_CONTEXT
- Keep judge verdict values synchronized everywhere:
PICKSYNTHESIZENONE_ADEQUATE
- Every
{{VARIABLE}}used in any profile prompt must be documented inSKILL.md. - If you change slot configuration, artifact layout, profile loading, or Codex dispatch behavior, update both docs and contract tests in the same change.
- Preserve the run artifact contract under
.slot-machine/runs/, including.slot-machine/runs/latest/result.jsonif you change result generation. - Do not add workflow details to the
SKILL.mdfrontmatter description. - Project config can live in
AGENTS.mdorCLAUDE.md; docs should treat both as first-class sources. - Describe harness routing host-relatively: native path on the active host, with Codex slots using the slot runtime helper in their slot workspace, which in turn runs
codex exec, and Claude-as-other-harness usingclaude -p.
Editing Guidance
- Follow the existing repo style: Markdown and shell first, minimal ceremony.
- Prefer focused edits. Avoid wholesale prompt rewrites unless the task requires a behavior change.
- 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.
- If you add a new built-in profile, include all five files:
0-profile.md1-implementer.md2-reviewer.md3-judge.md4-synthesizer.md
- If a change affects parsing assumptions, search broadly with
rgfor the relevant string before and after editing.
Validation
Run these commands from the repo root:
./tests/run-tests.shDefault development policy:
- Run
./tests/run-tests.shfor every change. This is the required fast gate for normal feature work. - Use
./tests/run-tests.sh --changedwhen you want the runner to keep Tier 1 and add only the heavier checks matched to the files you changed. - Use
./tests/run-tests.sh --host claudeor./tests/run-tests.sh --host codexwhen local work only needs one host path. - Use
./tests/run-tests.sh --jobs autoor a fixed--jobs Nvalue to parallelize independent shell tests. - Do not treat
--smokeor--integrationas default local-development commands. They are much more expensive and should be used selectively. - Prefer the smallest targeted headless check that matches the area you changed:
- Implementer prompt or implementer result-shape changes:
./tests/run-tests.sh --test test-implementer-smoke.sh - Reviewer prompt, seeded-bug expectations, or review formatting changes:
./tests/run-tests.sh --test test-reviewer-smoke.sh - Judge prompt, ranking/verdict parsing, or scorecard aggregation changes:
./tests/run-tests.sh --test test-judge-smoke.sh - Claude-host plus Codex-slot bridge changes:
./tests/run-tests.sh --test test-claude-host-codex-smoke.sh - Profile loading, inherited-profile resolution, or symlinked installed-skill layouts:
./tests/run-tests.sh --test test-claude-profile-inheritance-smoke.sh - Happy-path orchestration, merge/finalization, or run-artifact changes:
./tests/run-tests.sh --test test-e2e-happy-path.sh manual_handoff, preserved-worktree behavior, or handoff artifact changes:./tests/run-tests.sh --test test-e2e-manual-handoff.sh
- Implementer prompt or implementer result-shape changes:
- Reserve full smoke and integration sweeps for release prep, cross-host harness work, or broad orchestration refactors.
- Reserve benchmarks for performance work and regression investigation; they are not part of the default feature-development loop.
If you change prompt flow, profile behavior, or orchestration logic and need broader confirmation, run the smallest additional tier that matches the change:
./tests/run-tests.sh --smoke
./tests/run-tests.sh --integrationRecommended release bar:
- Always run
./tests/run-tests.sh. - Add at least the relevant targeted smoke or E2E tests for the surfaces changed in the release.
- Run
./tests/run-tests.sh --smokefor host/harness changes or broad prompt-flow changes. - Run
./tests/run-tests.sh --integrationwhen the release touches end-to-end orchestration, artifact generation, merge/finalization, or manual handoff behavior.
Important: today, higher-tier coverage is mixed and expensive. test-implementer-smoke.sh, test-reviewer-smoke.sh, and test-judge-smoke.sh run once per available host, while test-claude-host-codex-smoke.sh, test-claude-profile-inheritance-smoke.sh, test-e2e-happy-path.sh, and test-e2e-manual-handoff.sh each perform real headless orchestration runs. test-e2e-edge-cases.sh and test-reviewer-accuracy.sh still report explicit skips until their headless assertions are wired in. Read the output instead of assuming --smoke, --integration, or --all gives uniform coverage.
Practical Review Checklist
Before finishing a change, verify:
- Prompt variables still match
SKILL.md. - Section headers and scorecard/verdict wording still match what downstream phases expect.
- Claude and Codex packaging docs still match the repo layout.
- README and contributor docs still describe the real behavior.
- The fast contract suite passes.
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.

