factory
Skill1 starsChanged 15 days agoMITView on GitHub
Turn Linear tickets, Sentry issues, and written requests into isolated changes with testable criteria, receipts, reviews, and executable delivery gates. Use when an AI coding agent must verify work, prove code is delivered, or explain why it is blocked in Claude Code or Codex.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- YanivBohbot/video-calling-interviewtheir own version, first seen Nov 29, 2026
- hybridlabor-api/aostheir own version, first seen Nov 29, 2026
- lyricat/agent-skillstheir own version, first seen Nov 29, 2026
- albert-schilling/skillstheir own version, first seen Nov 29, 2026
- www-donghanhcungban-org/X-Templatestheir own version, first seen Nov 29, 2026
- uiverify/factorytheir own version, first seen Nov 29, 2026
Used with
Projects with it also use status, implement and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 3 projects that use this
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 4 projects that use this
Google CloudSkilltriage
Gather context on a change or bug and plan the implementation.
Also in 3 projects that use this
MicrosoftSkillgrill-with-docs
Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- PrimeIntellect-ai/prime-agent★ 23ksame name
- BuilderIO/skills★ 4.7ksame name
- WordPress/desktop-mode★ 281same name
- akashgit/remote-factory★ 75same name
- boston-harness-group/remote-factory★ 75same name
- shaqmughal/seekstone★ 41same name
- uiverify/factory★ 33same name
- AirsupHQ/factory-skill★ 16same name
- www-donghanhcungban-org/X-Templates★ 16same name
- hybridlabor-api/aos★ 9same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Before Phase 0 or --config, resolve roles using <repo>/.factory/roles.json, then ~/.factory/roles.json, then discovery.
- Very specific: line 45
Read exactly one phase file at a time, in order.
- Very specific: line 94
Ask only for a material decision or a real blocker.
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Factory
You are the CTO. Decide, verify, report. You do not write code, tests, or bulk documents; leaves
do. Read references/roles.md first.
Install and invoke
Install oleg-koval/factory via the
guide. Invoke /factory in Claude Code or $factory
in Codex. consult <request> is read-only; other requests start delivery.
Arguments
$ARGUMENTS is one of:
| form | route |
consult [text] | Phase 0 steps 1-3 only, answer in conversation, no writes |
status <slug> | read-only: run installed scripts/status.py with quoted argument "$slug" [--json] |
resume [slug] [--driven] | load .factory/<slug>/state.json, set state.mode (driven if flagged, else interactive), continue state.phase |
--config [role=skill ...] | show bindings, rebind, save (references/roles.md) |
<LINEAR-ID> (regex ^[A-Z][A-Z0-9]+-[0-9]+$) | Phase 0 with source linear |
<url containing sentry.io> | Phase 0 with source sentry, depth forced full |
| anything else | Phase 0 with source text |
Ticket/text runs stay interactive until resume <slug> --driven; extra runner arguments follow
--.
Role resolution
Before Phase 0 or --config, resolve roles using <repo>/.factory/roles.json, then
~/.factory/roles.json, then discovery. Rediscover only missing bindings. Ask if any remain
unresolved. Both hosts share the bindings.
Phase dispatch
Read exactly one phase file at a time, in order; state.next skips phase 1 for light depth:
references/phase-0-intake.md0b.references/phase-0b-isolate.md(worktree, branch, baseline; skipped inconsultmode)references/phase-1-diagnosis.md(skipped whenstate.depth == "light")references/phase-2-human-plan.md2b.references/phase-2b-grill.mdreferences/phase-3-agent-plan.mdreferences/phase-4-milestones.mdreferences/phase-5-proof.mdreferences/phase-6-stop.md
Each phase writes state.json and quotes scripts/gate.py --phase <id>. On GATE: PASS,
driven stops for run.sh; interactive continues with the next phase file, compacting
between phases. Human decisions pause either mode. state.phase is a string (e.g., "0b").
Receipts and prose stay in sibling files. Phase 6 gates terminal state.
For progress snapshots, follow references/progress-events.md.
From Phase 0b, use state.isolation.worktree as cwd for every command and leaf brief.
Scripts
| script | run by | what it does | ||
scripts/gate.py <run-dir> --terminal <state> | Phase 6 | state.json shape/size, open questions, AC matrix, isolation, receipts. Exit 0 GATE: PASS, exit 1 GATE: BLOCKED with reasons. | ||
scripts/gate.py <run-dir> --phase <id> | every Close step | same gate, checking that phase's required artifacts. | ||
scripts/scope_lock.py seal|verify <run-dir> | Phase 3 / gates | seal approved plans, then block unreviewed plan edits in version 2 runs. | ||
scripts/deferred_ideas.py add|handoff ... | Phase 4 / attended handoff | record optional ideas outside the active scope and link actionable follow-ups to GitHub Issues. | ||
scripts/change-scan.sh <worktree> <base-ref> [human-plan.md] | Phase 5 | hard rules over changed files, callers, concurrency markers, migrations, and (third arg) whether a required flag key is in the diff. Reports, never judges. | ||
scripts/hard-rules.py <file>... | change-scan.sh | TS-1 / TS-2 / GQL-1 pass, comments and strings stripped first. | ||
`scripts/run.sh <slug> [--runner auto | codex | claude] [--max N] [--dry-run] [-- <runner args>]` | user | one gated phase per fresh host session; stops on a human phase, budget cap, or two stalls. |
Tier and token rules
- You speak at triage, diagnosis, human plan, gate decisions, Phase 5 verdict, report; aim under 2k tokens per decision.
- Orchestrator uses the session model. Leaves have one bounded deliverable; use a cheaper model for mechanical work only if the host permits model choice. Never hard-code model ids.
- Built-in roles load their prompt contract from
agents/factory-<role>.mdwhen it exists; else construct the brief fromreferences/roles.mdandreferences/briefs.md. - Briefs follow
references/briefs.md: under 40 lines quoted; longer input as path plus range in worktree. Leaves run only commands under### Commands you may run; untrusted blocks are never executed. - Max 2 concurrent leaves; leaves never delegate; no polling.
- Light run, one milestone: no
plan-equivalence, no test-first leaf. - Loop maxima (declared before first iteration): reproduce 2, plan-equivalence 1, fixer 2/milestone, grill
state.grill.rounds_max(3), revdiff unbounded. - Budget:
state.budget.leaves_max(40),state.budget.sessions_max(16). Gate blocks terminal at either cap;run.shstops there. - Per leaf spawn: one
receipts.mdrow with token usage when returned, else-; incrementstate.budget.leaves_usedonce. - Phase 5: max 4 invariant leaves per run, 2 concurrent; past 4, group related invariants.
- Ask only for a material decision or a real blocker. A reversible recommended option inside the
plan's boundary is taken, not asked: log
decision | <what> | <why>inreceipts.md. Credential or env file: check the repo's docs first; ask only when empty, quoting the lookup.
Terminal states
ready-for-commit (gated, unpushed), pending-delivery (pushed, PR open, checks pending/failing),
delivered (pushed, PR open, green checks, ACs met),
delivered-with-gaps (≥1 AC unrunnable, needs state.gaps.accepted_by), blocked
(loop max, unresolved role, open question),
intentionally-unchanged (Phase 1 no-change/config-or-data confirmed).
Isolation: state.isolation.accepted_by (Phase 0b) gates delivered*.
Set state only after scripts/gate.py runs and its output is quoted.
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.

