atelier
Skill22 starsChanged 32 days agoMITView on GitHub
Takes one change from request to merged PR by sequencing existing skills — aw builds the draft PR, prepare gets it green, a deterministic gate allows the squash-merge only when a user-visible diff that needs a rollout ships behind a deployment-verify flag contract, or a small one carries a classed no-flag marker (and, in a repo with a hosted service, every diff carries a contract or an opt-out) — then reads the default-branch pipeline, fixes a red one once, verifies a no-flag change on the deploy with deployment-verify, and says what a human does next. Resumable from a sticky PR comment; invoke with /atelier.
16 other projects use a version of this.
Adopted by
Most recently taken up by
- Wexop/ateliertheir own version, first seen Nov 29, 2026
- koukekoukej-glitch/ateliertheir own version, first seen Nov 29, 2026
- JacopoMarini/ateliertheir own version, first seen Nov 22, 2026
- Mazalucas/El-DT-Lightweight-Armytheir own version, first seen Nov 13, 2026
- Caiollaz/ateliertheir own version, first seen Nov 8, 2026
- ksprashu/agent-skill-forgetheir own version, first seen Nov 1, 2026
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- simota/agent-skills★ 106same name
- ask-marcel/ask-marcel-office-cli★ 10same name
- Wondermonger-daydreaming/claude-skills-library★ 7same name
- mhxie/Atelier★ 5same name
- Mazalucas/El-DT-Lightweight-Army★ 4same name
- ksprashu/agent-skill-forge★ 3same name
- adamramadhn/atelier★ 2same name
- luminary19/atelier★ 2same name
- JacopoMarini/atelier★ 1same name
- koukekoukej-glitch/atelier★ 1same name
6 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.
In this repository53 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- skills/workflow/autonomous-workflow/CLAUDE.mdCLAUDE.md
- ideateSkill
- interviewSkill
- playwright-trace-analyzerSkill
- profile-optimizerSkill
- rum-trackingSkill
- screencastSkill
- video-analyserSkill
- youtube-transcriptSkill
- create-skillSkill
- docsSkill
- handoffSkill
- optimize-claude-mdSkill
- persistent-memorySkill
- attach-mediaSkill
- ci-auto-fixSkill
- create-prSkill
- github-actions-authorSkill
- prepareSkill
- resolve-conflictsSkill
- ticketSkill
- animations-nativeSkill
- animationsSkill
- behavioral-designSkill
- chartingSkill
- storybookSkill
- uxSkill
- visual-designSkill
- ai-engineeringSkill
- confidenceSkill
- criticalSkill
- fitSkill
- impact-mapSkill
- jev-assertSkill
- measurableSkill
- polishSkill
- pr-reviewSkill
- review-loopSkill
- tddSkill
- verify-behaviorSkill
- aw-verifySkill
- deployment-verifySkill
- e2e-testing-mobileSkill
- e2e-testingSkill
- telemetry-verifySkill
- ui-verifySkill
- autonomous-workflowSkill
- aw-create-planSkill
- aw-create-walkthroughSkill
- fix-bugSkill
- implement-suggestionSkill
- improveSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
30 rules. 0 are common, 5 are distinctive, and 25 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
25
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
- Very specific: line 80
Before: run node "$A/preflight.mjs" --setup --json > setup-before.json, then node "$A/preflight.mjs" --setup, and print its table and lines.
- Very specific: line 81
Run each SETUP: line's call, one at a time, in the printed order, at the top level of this session.
- Very specific: line 85
After: run node "$A/preflight.mjs" --compare setup-before.json and print its table, adding its MANUAL: pipeline line, when printed, to …
- Distinctive: line 86
Commit nothing: pass on the paths the setup skills printed for the user to review and commit.
- Very specific: line 106
Run /atelier at the top level of a session, never inside a dispatched sub-agent: a nested context runs short and drops companions …
- Very specific: line 121
GitHub path: Run from the target repo's checkout, then probe that repo, never gh auth status:
- Very specific: line 146
When the telemetry row is ok, call the telemetry tool it names once (a cheap list or query).
- Very specific: line 151
Run the outcome sweep in rules/decision-log.md § Outcomes once, before any stage.
- Very specific: line 155
No atelier comment yet: first run node "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/state.mjs" --resume-step --pr <pr-url> …
- Very specific: line 197
Run the stage --next named, then the ones after it, in order.
- Distinctive: line 198
After every stage decision, do both, in this order:
- Very specific: line 203
Write one bus event (rules/decision-log.md).
- Distinctive: line 207
Do the record before the next stage's first action, never batched at the end.
- Very specific: line 242
After the merge, read gh pr view <pr-url> --json headRefOid -q .headRefOid.
- Very specific: line 244
Never run the merge with a gate that exited 1 or 2, and never edit the PR body to make the gate pass: the contract is the author's …
- Very specific: line 277
Never write the report or tick a criterion by hand to pass it: only verify-comment.mjs writes the regions, from a run.
- Very specific: line 286
After prepare returns, re-read the head (prepare may have pushed a fix), read CI at that head with prepare's own helper, and keep its …
- Very specific: line 315
When preflight's ci row is a gap and ci-ran.mjs prints CI: not-run — CI not run at <sha>: no checks reported, skip the undraft wait and …
- Very specific: line 332
Run the CI evidence command before gh pr ready.
- Very specific: line 336
No new check within 5 minutes → Ready hold, reason CI not run: no checks started after undraft.
- Very specific: line 370
After the merge gate passes, atelier waits for the named checks to approve, up to --max-wait minutes, and merges only on an approval.
- Very specific: line 406
Only an approval of the head the gate judged counts (--head), so a push during the wait is never mistaken for an approval.
- Very specific: line 432
Never hold a merge for "a final look".
- Very specific: line 457
No block, or no PR URL in either form → Build failed, reason = its Needs you: line (or no AW RUN COMPLETE block).
- Very specific: line 507
Only once the PR state is MERGED, score the quality findings per autonomous-workflow's rules/finding-outcomes.md § When it runs, before any …
- Very specific: line 508
When .agents/aw/improve.yml has atelier_hook: true, Deliver also runs Improve once Verify has settled.
- Distinctive: line 525
No worktree for the branch, or no findings file → skip it and print nothing.
- Distinctive: line 527
Never run it on a merge that did not happen: a refused or held merge scores nothing.
- Very specific: line 537
After a merge, put the next human step under Needs you:, from the first row that matches:
- Very specific: line 569
Top level only: Never dispatch /atelier or its Build into a sub-agent.
“Common” is measured: kept by at least 6 in 10 of the 15 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
Atelier
Sequences existing skills from a request to a merged PR, checks the default-branch pipeline it started, then stops.
It owns no build, review, verify, or deploy logic: each stage is one delegation, and every decision between stages is a script.
Why: references/design.md.
Contents
- Arguments
setup- Step 0 — Setup
- Stages
- Step 4 — Stop
- Terminal contract
- Hard rules
Arguments
| Argument | Effect |
setup | Only as the sole argument (/atelier setup SSO for admins is a request). Ready the repo for runs: preflight, then each gap handed to the skill that fixes it, then a before/after table (setup). Runs no stage. |
<request> | Free text: start at Build. |
<pr-url|#n> | An existing PR: skip Build (skipped, reason existing PR) and resume from its state comment. |
--ticket <id|url> | The ticket this work belongs to; Step 0 links it instead of asking. |
--unattended | No human is present: Build forwards --no-confirm to aw and tells it to run interview with --non-interactive, so a blocking question ends the run as failed instead of waiting. |
--keep-draft | Ready leaves the PR a draft; when CI did not run on the draft (ci-ran.mjs prints CI: not-run), Ready records hold (reason CI not run: draft — <its reason>). |
--max-wait <minutes> | The longest one wait for CI or wait for approval lasts (default 30). 0 never waits: pending CI or a pending approval records a hold, as before. |
--improve <id> | The request ships an improve hypothesis: Build puts its <!-- improve:v1 id=<id> --> marker in the PR body (improve/rules/hook.md, § Ship). Set by /improve ship, never by hand. |
--no-deliver | Stop at the merge: skip the Deliver step (the default-branch pipeline read, its one fix, the revert, and the deploy verify). |
--accept-gaps | The user accepts every preflight gap: Build runs even when a gap leaves a stated criterion unprovable; the gaps ride into Degraded:. |
--accept-skip <name,…> | The user accepts that these companions did not run (review-loop, create-pr, quality-pass, aw-verify); only the user passes it, never an agent, and the decision event records it. |
setup
/atelier setup readies a repo for atelier runs: it reads preflight, hands each gap to the skill that owns the fix, and shows what changed.
It writes no config itself, records no stage, and starts no trace.
The setup skills it calls ask the user questions, so it runs interactively only: under --unattended, print Needs you: run /atelier setup interactively and stop.
preflight.mjs --setup prints the plan from this table, in this order (deployment-verify's setup reads the telemetry.yml that aw-verify's writes):
| Gap | --setup prints |
sign-in, telemetry | SETUP: Skill("aw-verify", "setup") — fixes <gaps> (one call for both) |
flag-provider, or release.yml without pipeline: | SETUP: Skill("deployment-verify", "setup") — fixes <what is missing> (one call for both) |
no memory/observability-profile/INDEX.md | SETUP: Skill("measurable", "setup") — fixes observability-profile (…); with telemetry.yml → backend: logs or none, DECIDED: observability-profile — … instead (no OpenTelemetry to profile) |
no .agents/aw/tracker.yml | SETUP: Skill("ticket", "setup") — fixes tracker (…) |
ci-on-draft | MANUAL: ci-on-draft — <the workflows that skip drafts> — <the fix> |
flag-provider with release.yml → providers: [] | DECIDED: flag-provider — …: an answer, not missing setup; never delegated, never under Needs you: |
merge.yml → protection: "<why>" | DECIDED: merge-protection — <why> …: the repo's answer on a merge queue and required checks (a user-owned repo cannot have a queue; a required-checks rule can block the release job's own push); never a gap, never delegated, and never a reason to propose one |
| the default branch requires no review | DECIDED: merge — …: atelier merges by itself once the gate passes; read from branch protection and rulesets, never delegated |
| the default branch requires an approving review | MANUAL: merge — …: atelier holds the merge for a person; add an auto-approval check in .agents/aw/merge.yml to let it wait for one |
✗ release.yml declares providers: [] → Skill("deployment-verify", "setup") on every /atelier setup # it cannot invent a provider
✓ release.yml declares providers: [] → DECIDED: flag-provider — … # printed, not re-asked- Resolve script paths and probe GitHub as Step 0 items 1–2, with
A="${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts".ACCESS_PATHismcpornone→ keepMANUAL: github — run gh auth login for <owner/repo>; the scripts' --pr, --fetch, and --upsert modes need ghfor the end, and continue: setup itself needs no GitHub. - Before: run
node "$A/preflight.mjs" --setup --json > setup-before.json, thennode "$A/preflight.mjs" --setup, and print its table and lines. - Run each
SETUP:line's call, one at a time, in the printed order, at the top level of this session. The called skill owns its questions, its files, and its validation; never write.agents/aw/*or the observability profile yourself, and never answer its questions for the user. A call that stops or that the user declines → note it forRan:and run the next one. - Print every
MANUAL:line, with the GitHub one from step 1, forNeeds you:; never edit.github/workflows/here. - After: run
node "$A/preflight.mjs" --compare setup-before.jsonand print its table, adding itsMANUAL: pipelineline, when printed, toNeeds you:; when thetelemetryrow isok, call the tool it names once, as Step 0 item 4 does. - Commit nothing: pass on the paths the setup skills printed for the user to review and commit.
✗ telemetry gap → write .agents/aw/telemetry.yml with backend: dash0-mcp # re-implements aw-verify setup and skips its smoke probe
✓ telemetry gap → Skill("aw-verify", "setup") → its Phase E smoke validates what it wroteEmit this block on every exit of setup, in place of the run's terminal contract:
ATELIER SETUP
- Before: [the PREFLIGHT line from step 2]
- After: [the PREFLIGHT line from step 5] · [its SETUP: <n> fixed, <m> remaining line]
- Ran: [each Skill call: done | stopped: <reason> | declined, or "nothing to delegate"]
- Files to review and commit: [the paths the setup skills printed, or "none"]
- Needs you: [the MANUAL: lines and each remaining gap with its fix, or "nothing"]Step 0 — Setup
Run /atelier at the top level of a session, never inside a dispatched sub-agent: a nested context runs short and drops companions (create-pr, the quality pass, the review) to save itself, and only says so in a Degraded: line.
✗ Agent(prompt: "run /atelier <request>") # nested: aw skips review-loop and create-pr, PR opened unreviewed
✓ /atelier <request> # top level: aw and its companions run in this contextScript paths.
CLAUDE_SKILL_DIRis the directory holding thisSKILL.md. A model that follows this file withoutSkill()(a sub-agent, or a parent that read it) has it unset, so every command below uses"${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}"; when this file was read from another path, exportCLAUDE_SKILL_DIRto its directory first.✗ node "$CLAUDE_SKILL_DIR/scripts/state.mjs" … # unset → /scripts/state.mjs ✓ node "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/state.mjs" …GitHub path. Run from the target repo's checkout, then probe that repo, never
gh auth status:TARGET_REPO="${TARGET_REPO:-$(git remote get-url origin 2>/dev/null | sed 's#\.git$##' | awk -F'[/:]' 'NF>1 {print $(NF-1)"/"$NF}')}" command -v gh >/dev/null 2>&1 && [ -n "$TARGET_REPO" ] && gh api "repos/$TARGET_REPO" --jq .full_name >/dev/null 2>&1 && echo GH_OKGH_OK→ACCESS_PATH=gh; no output withmcp__github__*tools present →mcp: read the PR and comments with the MCP tools, then pass files and bodies to the scripts' offline flags; neither →none: print the terminal contract withNeeds you: GitHub accessand stop. The scripts'--pr,--fetch, and--upsertmodes needgh.Ticket. Decide the run's ticket with the
ticketskill'sticket.mjs --decide, from the target repo's checkout (notracker.yml→ it only links a named ticket):TK="${TICKET_DIR:-$HOME/.claude/skills/ticket}/scripts/ticket.mjs" node "$TK" --decide --request "<the request>" [--ticket <id|url the user passed>] [--unattended under --unattended]Prints Do TICKET: link <id>TICKET=<id>TICKET: askAsk once: "Create a ticket for this?" — yes → Skill("ticket", "create \"<request>\""),TICKET=its id; no →TICKET=noneTICKET: createSkill("ticket", "create \"<request>\""),TICKET=its idTICKET: skip — <why>TICKET=none; arequire: askskip goes underNeeds you:(no ticket — <why>)A resumed PR keeps the ticket its PR body links; the script is absent or exits 1 →
TICKET=noneandDegraded: ticket — <reason>.- Preflight. From the target repo's checkout, run
node "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/preflight.mjs" --model "<your model id>" --ticket "$TICKET" --task "<request title, ≤ 120 chars>"(add--pr <pr-url>when resuming a PR; drop--ticketwhenTICKET=none), print its table, and keep its last line (PREFLIGHT: ok|limited — <n> gaps (…)) for the first--record(--preflight "<line>"). When thetelemetryrow isok, call the telemetry tool it names once (a cheap list or query); no tool or an error makestelemetrya gap, added to the line. Then decide with the preflight table. Preflight also starts the run's trace; the scripts below record every stage, andrules/telemetry.mdlists the three things you add (Why:references/telemetry.md). - Probe LoreKit:
memory.*tools present and one call answers. Absent or failing → one lineDegraded: lorekit unreachable — decision log and outcomes skipped, and every LoreKit step below is a no-op; no stage waits on it. - Run the outcome sweep in
rules/decision-log.md§ Outcomes once, before any stage. - With a PR: read its state (
node "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/state.mjs" --fetch --pr <pr-url> > state.md) and its head (gh pr view <pr-url> --json headRefOid -q .headRefOid), thennode "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/state.mjs" --next --head <sha> --body-file state.mdnames the stage to run. A merged PR makes--nextprintstop: run Deliver on it unless--no-deliver, so a session that died during the pipeline wait resumes there. Pass the PR URL, not a bare number:state.mjstakes owner/repo from the URL, and from cwd'soriginonly for a number. No atelier comment yet: first runnode "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/state.mjs" --resume-step --pr <pr-url> --head <sha> --aw-out aw.txt.RESUME: companions,sentinel,early-gate, orrecord→ an earlier run built this PR and died in the after-Build checklist: resume Build at that step with the storedaw.txt(recordis step 5), and never runawagain.RESUME: none→ record Build asskipped(reasonexisting PR) before--next, so it returnsreadyandawnever runs on a PR that exists. With a request: the stage isbuild.
Preflight
Preflight never blocks on its own; a gap blocks only when it leaves a criterion the request (or the existing PR's brief or intent spec) states unprovable.
A gap the repo accepts in its committed .agents/aw/preflight.yml (accept: { <check>: "<why>" }, a known check and a non-empty reason) is not counted: the line reads PREFLIGHT: ok — 0 gaps; 1 accepted (flag-provider), and its table row says accepted.
An accepted gap still blocks a stated criterion that needs it, since accepting a gap never makes the criterion provable; never name an accepted gap under Degraded:.
# .agents/aw/preflight.yml — committed, no secrets; written by a human, never by a run
version: 1
accept:
flag-provider: "no flag system; a human flips flags by hand"
ci: "a Homebrew tap: no workflow runs on PRs"✗ PREFLIGHT: limited — 1 gap (flag-provider) on every run → Degraded: flag-provider, 26 runs in a row # noise nobody acts on
✓ preflight.yml accepts flag-provider → PREFLIGHT: ok — 0 gaps; 1 accepted (flag-provider) # only a new gap shows| Preflight | A stated criterion needs the missing capability | --accept-gaps | Do |
ok | — | — | run Build |
limited | no | — | run Build; name each gap once under Degraded: |
limited | yes: a telemetry: criterion with no telemetry, a signed-in UI criterion with no sign-in, a rollout criterion with no flag-provider | no | stop before Build: no stage is recorded; end the trace with node "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/telemetry.mjs" finish --outcome stopped --reason "<gap>"; terminal contract with Needs you: <gap> — <its fix> (/atelier setup runs it), or re-run with --accept-gaps |
limited | yes | yes | run Build; the gap goes into the Build reason and Needs you: |
A row whose value reads unknown (could not parse …) is not a gap and decides nothing.
ci-on-draft: no decides nothing here: Ready undrafts to get CI (that notifies reviewers), and under --keep-draft Ready holds.
ci: none (no workflow runs on pull_request or push) decides nothing here either: Ready takes CI: not-run — … no checks reported as no CI instead of holding.
✗ PREFLIGHT: limited — 1 gap (flag-provider) → stop # no criterion is about the rollout; a human flips the flag
✓ PREFLIGHT: limited — 1 gap (telemetry), request "prove the span is emitted", no --accept-gaps → stop, Needs you:Stages
Run the stage --next named, then the ones after it, in order.
After every stage decision, do both, in this order:
- Record it:
S="${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/state.mjs"; node "$S" --record --stage <s> --decision <d> --head <sha> --reason "<r>" --pr <pr-url> --body-file state.md > next.md && node "$S" --upsert --pr <pr-url> --body-file next.md && mv next.md state.md(rules/state.md). Build's record also takes--memory "lorekit=<ok|unreachable>,lessons_used=<n>"(rules/telemetry.md§ What you add). Readyproceedalso takes--ci-file ci.jsonand--threads-file threads.json, the CI evidence below;state.mjsrefuses Readyproceedwithout green CI and clear review threads at--head(exit 2). - Write one
busevent (rules/decision-log.md). - On a
proceedwith a ticket:Skill("ticket", "move <TICKET> <stage>"); on Build alsoSkill("ticket", "link <TICKET> <pr-url>"). A tracker failure is oneDegraded:line, never a stage outcome.
The record is part of the stage, not an afterword: a stage is not finished until step 1 has written it, and the merge gate refuses a PR whose atelier comment has no live Ready proceed on the head it judges (refused_by = state).
Do the record before the next stage's first action, never batched at the end; a run that dies mid-way then resumes from the comment, and anyone reading the PR sees the run as it happens.
A run that picks up an existing PR writes the comment first: the Build skipped baseline of Step 0 item 7, before any other stage.
✗ gh pr ready; prepare; merge-gate; prepare --merge # the PR never shows the run, and the gate refuses at the merge
✓ record Build skipped → ready → record Ready proceed --ci-file ci.json --threads-file threads.json → merge-gate → merge → record Merge proceedRecording after the fact. A stage the run did but did not record (the session lost its place, a record call failed) is written afterwards with --record … --backfill: the entry reads reconstructed after the fact in Run details, carries only checkable facts (the head, ci.json, threads.json, the merge commit), and stays out of the run's telemetry.
The merge gate never accepts a backfilled Ready as the live record, so a backfill is for a merge that already happened, not a way past the gate.
Say so under Degraded: (state recorded after the fact: <stages>).
A decision of refuse, hold, or failed ends the run at Step 4.
A Build that fails before a PR exists has nowhere to record: skip step 1, write the bus event, end the trace (node "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/telemetry.mjs" finish --stage build --decision failed --reason "<r>"), and stop.
| Stage | Delegation | proceed when | Otherwise |
| build | Skill("aw", "<request> <build suffix>") (the suffix on its own paragraph), adding --no-confirm under --unattended; then the after-Build checklist | aw's AW RUN COMPLETE block names a PR URL, every required companion ran (or the user accepted its skip), the sentinel passes, and the early gate passes | hold (reason skipped: <companions>), failed (reason = aw's Needs you: line or the failing check IDs), or refuse after a second early-gate refusal |
| ready | unless --keep-draft: gh pr ready <pr-url> when the PR is a draft, then wait for the fresh CI run; then Skill("prepare", "<pr-url> --single"); then the CI evidence; then the proof | prepare printed Already green or fixed every PR it touched, ci-ran.mjs printed CI: green, threads.mjs printed THREADS: clear, and verify-comment.mjs --check --proven printed report complete | CI: not-run … no checks reported in a repo with no CI → No CI; any other CI: not-run → hold, reason = its CI not run … text (prefixed CI not run: draft — under --keep-draft); CI: pending → wait, then hold only when still pending after --max-wait; CI: red or prepare blocked → failed, reason = that line; THREADS: open after prepare → hold, reason = that line, Needs you: <thread links> (prepare left them for a human); proof still incomplete after one aw-verify run → failed, reason = proof: <first problem> |
| merge | gate first, on the live head: node "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/merge-gate.mjs" --pr <pr-url>; exit 0 → wait for approval on the same head; approved → Skill("prepare", "<pr-url> --merge --single") right away; merged → finding outcomes | the PR state is MERGED; reason = merged <squash sha>, plus the gate's warning: line when it printed one | gate exit 1 with the JSON's refused_by = ci and pending → wait for CI, then run the gate again once; any other ci refusal, or a wait that ended pending, records Ready (not Merge) hold (not-run, pending) or failed (red), reason = the MERGE_GATE: line, so --next runs Ready again; refused_by = threads → record Ready failed, reason = the MERGE_GATE: line, so --next runs Ready, whose prepare resolves the threads; refused_by = proof → record Ready failed, reason = the MERGE_GATE: line, so --next runs Ready, whose proof step runs aw-verify; refused_by = state → run the Ready record step on the live head (--record --stage ready --decision proceed --head <sha> --ci-file ci.json --threads-file threads.json), then run the gate again once; refused_by = contract → refuse, reason = the MERGE_GATE: line; approval manual or pending → Merge hold, reason = the APPROVAL_WAIT: line, Needs you: as the approval exit table says; approval moved → run the gate again on the new head once, then wait again; a second moved → Merge hold, reason = that line; prepare blocked → hold, reason = its line |
The build suffix, appended verbatim to every request:
Atelier merges this PR. A user-visible change that adds a surface or flow, changes behaviour users rely on, adds a route, touches a path in `flag_policy.always_flag`, or is large (over 150 changed UI lines or 2 new UI files, unless .agents/aw/merge.yml sets other limits) must sit behind a feature flag (reuse an existing flag when one fits), and the PR body must carry a deployment-verify:v1 contract naming it: draft it with `node <deployment-verify>/scripts/tick.mjs --draft-contract --pr <n>`, then fill "flag": {"key": "<flag>"}, adding "provider" and "cohort" only when .agents/aw/release.yml declares a provider, and no "cohort" for a `rollout: pr` provider (format: deployment-verify rules/contract.md). Unless `flag_policy` in .agents/aw/merge.yml sets `require_flag: always` (then every user-visible change takes a flag), any other user-visible change is small and needs no rollout: it takes no flag, and its PR body carries `<!-- atelier:no-flag — <class>: <why> -->` with the class one of bugfix, copy, style, a11y, refactor, internal, or `already-flagged <flag>` (the change sits inside a flag that already exists), or only those in `flag_policy.classes` when it narrows the list; never pick a class to avoid a flag the rule above requires, because the gate counts those triggers itself ([`rules/flag-policy.md`](./rules/flag-policy.md)). When .agents/aw/release.yml's production environment detects deploys (its `deploy.detect` is not `manual`), every other change carries a contract too: the same draft with "service" and "root_spans" and no "flag", measured before and after its deploy; a change that deploys nothing carries `<!-- deployment-verify:none — <why nothing deployed can change> -->` instead.
The PR must also carry its acceptance criteria and a verify report proving each one: atelier's gate right after this Build refuses a PR until `verify-comment.mjs --pr <n> --check` prints `report complete` (aw-verify writes it; never by hand).Under --unattended add the line No human is present: run interview with --non-interactive; a blocking question ends the run.
With a ticket, add the line Link ticket <TICKET>: put "<node "$TK" --pr-line --ticket <TICKET>>" in the PR body.
With --improve <id>, add the line Put <!-- improve:v1 id=<id> --> on its own line in the PR body.
- Ready records the head it ran on and the CI evidence;
--nextreturnsreadywhen the head moved, or when the Readyproceedcarries no green evidence for this head (a comment written before evidence existed, or by hand). - The merge gate reads CI again at the head, right before the merge: a Ready
proceednever stands in for CI that is not green now. - The gate judges one head,
GATED; prepare can still push a fix before it merges. After the merge, readgh pr view <pr-url> --json headRefOid -q .headRefOid; when it differs fromGATED, run the gate again on the merged PR, and a refusal goes into the merge reason and underNeeds you:(merged unchecked head <sha>: <MERGE_GATE line> — add the contract or revert). --singlekeeps atelier to its one PR; prepare's stack walk would merge PRs atelier never built.- Never run the merge with a gate that exited 1 or 2, and never edit the PR body to make the gate pass: the contract is the author's (
rules/merge-gate.md).
✗ MERGE_GATE: refuse — … → add a placeholder flag to the contract, re-run the gate, merge
✓ MERGE_GATE: refuse — … → record refuse, print the gate's how-to under Needs you:, stop✗ prepare: Already green (draft, 16 of 18 checks skipped) → record ready proceed
✓ gh pr ready <pr-url> → prepare watches the real CI → proceed; under --keep-draft → hold "CI not run: draft"Proof
We no longer read every line of an autonomous PR; we read what it claims and the proof that the claim holds.
So a PR merges only when its verify report lists every acceptance criterion with a final status and proof, none failed, under a ✅ or ⚠️ verdict (aw-verify's --check --proven gate, also the merge gate's proof half; --proven refuses the ❌ Not verified or ⛔ Blocked report plain --check accepts as complete):
VC="${AW_VERIFY_DIR:-$HOME/.claude/skills/aw-verify}/scripts/verify-comment.mjs"
node "$VC" --pr <pr-url> --check --proven [--ui] # --ui when the gate's user_visible is true; last line: report completeThen ask the repo's path rules which environment proves this PR (aw-verify's rules/config.md § verify), from the PR's checkout:
node "${AW_VERIFY_DIR:-$HOME/.claude/skills/aw-verify}/scripts/verify-env.mjs" --base origin/<base> # last line: VERIFY_ENV: …VERIFY_ENV: preview … → add --browser to the check: a checks-only or local report, or a preview run on an older commit, is not a browser report for this head.
Exit 0 → Ready continues.
Exit 1 → run the proof the rule names, then check again: preview (or --browser refused) → Skill("aw-verify", "run preview <pr-url>"); local → run local <pr-url>; checks, or none on a non-UI diff → run checks <pr-url> (recorded test runs prove each criterion; no browser); none on a UI diff → run preview <pr-url>.
A stale preview session signs in through aw-verify's login hook, never by asking the user; LOGIN: no-hook or LOGIN: failed → Ready hold, reason proof: sign-in — <its line>, Needs you: the ! command it prints.
Still exit 1 → Ready failed, reason proof: <first problem it printed>.
Never write the report or tick a criterion by hand to pass it: only verify-comment.mjs writes the regions, from a run.
✗ Windows-only fix, tests green, no verify report → Ready proceed → merge
✓ verify-comment --check → "no intent region" → aw-verify run checks <pr> → report complete → Ready proceedCI evidence
After prepare returns, re-read the head (prepare may have pushed a fix), read CI at that head with prepare's own helper, and keep its output as the Ready evidence:
SHA=$(gh pr view <pr-url> --json headRefOid -q .headRefOid)
node "${PREPARE_DIR:-$HOME/.claude/skills/prepare}/scripts/ci-ran.mjs" --pr <pr-url> --head "$SHA" > ci.json; tail -1 ci.json
node "${PREPARE_DIR:-$HOME/.claude/skills/prepare}/scripts/threads.mjs" --pr <pr-url> --head "$SHA" > threads.json; tail -1 threads.jsonprepare always runs, even when CI is already green: it is what applies and resolves review threads.
THREADS: clear is the only line that allows Ready proceed; a thread prepare left open needs a human, so Ready records hold with Needs you: <thread links>, never proceed.
✗ CI green, 2 Cursor threads open → Ready proceed --ci-file ci.json
✓ threads.mjs → THREADS: open — 2 unresolved at 5c786a5: cursor card.tsx:45, … → Ready hold, Needs you: the 2 threadsCI: pending here goes to Waiting for CI, which rewrites ci.json when the wait ends.
CI: green is the only CI line that allows Ready proceed, recorded with --head "$SHA" --ci-file ci.json --threads-file threads.json.
"CI ran" is the helper's rule, the same one prepare uses: a required check, or with none required a GitHub Actions check run, completed without being skipped; an external status (Vercel) counts only when the repo marks it required.
✗ 16 checks SKIPPED, 2 Vercel statuses SUCCESS → prepare "Already green" → Ready proceed
✓ ci-ran.mjs → CI: not-run — CI not run at b56dfb5: every required check skipped (4) → Ready holdNo CI
A repo with no workflow that runs on pull_request or push (a Homebrew tap, a docs repo) reports no checks on any PR, so "CI ran green" can never be shown and Ready would hold forever.
When preflight's ci row is a gap and ci-ran.mjs prints CI: not-run — CI not run at <sha>: no checks reported, skip the undraft wait and record Ready proceed with --no-ci:
node "$S" --record --stage ready --decision proceed --head "$SHA" --ci-file ci.json --threads-file threads.json --no-ci --reason "no CI in this repo" --pr <pr-url> --body-file state.md > next.mdstate.mjs checks the claim itself: --no-ci exits 2 when the repo (cwd, or --repo-dir) has a workflow on pull_request or push, or is not a clone of the PR's repo, and it never turns skipped checks into evidence.
The merge gate applies the same rule on its own, so the proof half still decides the merge.
✗ no workflow in the repo, ci-ran: no checks reported → Ready hold "CI not run: the tap has no CI" → stuck
✓ no workflow in the repo, ci-ran: no checks reported → Ready proceed --no-ci → merge gate: CI half passes, proof decides
✗ repo has ci.yml filtered to src/**, a docs-only PR reports no checks → --no-ci # exit 2: the repo has CIAfter undrafting
Run the CI evidence command before gh pr ready.
CI: green, red, or pending → CI already ran on the draft (and a workflow without a ready_for_review trigger will not run again): go straight to prepare.
CI: not-run → CI has not run on this head: the checks listed right after gh pr ready are none or the draft's skipped ones, which prepare would read as green.
Re-read gh pr checks <pr-url> --json name,state,startedAt until at least one check started after the undraft, then wait for CI, then call prepare.
No new check within 5 minutes → Ready hold, reason CI not run: no checks started after undraft.
✗ gh pr ready <pr-url>; Skill("prepare", …) # reads 2 passed + 16 skipped from the draft → Already green
✓ gh pr ready <pr-url>; a check started after the undraft; wait for CI; Skill("prepare", …)Waiting for CI
A run that stops at CI: pending leaves the user to resume it, so atelier waits for the checks itself, up to --max-wait minutes per wait, and carries on.
ci-wait.mjs polls ci-ran.mjs (the same "CI ran" rule as everywhere else) every 30 seconds; run it through the telemetry wrapper so the trace books the time as waiting:
T="${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/telemetry.mjs"
W="${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/ci-wait.mjs"
node "$T" wait ci -- node "$W" --pr <pr-url> --head "$SHA" --max-wait <minutes> --out ci.json; tail -1 ci.json| Exit | Last line | Do |
| 0 | CI_WAIT: green | carry on: Ready proceed with --ci-file ci.json --threads-file threads.json, or the gate again before a merge |
| 1 | CI_WAIT: red | Ready failed, reason = that line; prepare fixes it on the next Ready |
| 1 | CI_WAIT: not-run | no check started within 5 minutes: Ready hold, reason = its CI not run … text |
| 3 | CI_WAIT: pending | still running after --max-wait: Ready hold, reason = that line, Needs you: re-run /atelier <pr-url> when CI finishes |
| 4 | CI_WAIT: moved | the head changed while waiting: read it again, then re-run the stage on the new head |
| 2 | stderr | failed, reason = stderr |
--head is the sha the evidence is for, so a push during the wait is never mistaken for green.
Deliver has its own bounded wait (pipeline.mjs --wait); this one covers PR CI.
Waiting for approval
A repo can block the merge on a required review that something other than a person gives: an auto-approval app, a policy check.
Which one is the repo's choice, so it is configuration, not something atelier knows.
After the merge gate passes, atelier waits for the named checks to approve, up to --max-wait minutes, and merges only on an approval; otherwise the merge is a person's job and the run says so.
The repo names them in .agents/aw/merge.yml (committed, no secrets; every field optional), or a run passes --check <regex> (repeatable), which wins:
version: 1
approval:
wait_for: ["Darkplane auto-approval"] # regexes, case-insensitive, on check-run or status names; all must pass
max_wait_minutes: 30 # default for --max-wait
start_grace_minutes: 5 # how long a named check may take to show up
manual_merge_paths: ["infra/**", "**/*.pem", ".github/workflows/"] # globs; a PR changing any is never merged by ateliermanual_merge_paths is checked first, before any review or approval: a PR whose changed files match (** crosses folders, * and ? stay in one; a pattern with no / matches at any depth; a trailing / is a folder) ends APPROVAL_WAIT: manual, even with the review decision APPROVED, so a person merges it.
gh lists at most the first 100 changed files of a PR.
No merge.yml and no --check → a required review is a person's job at once (manual), with no wait; nothing about the repo is assumed.
A named check that passes is not yet the review: the wait ends approved only when the review decision itself is APPROVED (a person's review counts too), because prepare --merge is refused until then.
Pass --max-wait only when the user gave it, so approval.max_wait_minutes applies otherwise.
approval-wait.mjs reads the live PR every 30 seconds; run it through the telemetry wrapper so the trace books the time as waiting:
T="${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/telemetry.mjs"
W="${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/approval-wait.mjs"
node "$T" wait review -- node "$W" --pr <pr-url> --head "$GATED" [--max-wait <minutes>] [--check <regex>]...| Exit | Last line | Do |
| 0 | APPROVAL_WAIT: approved | the review decision is APPROVED, or no review is required: run Skill("prepare", "<pr-url> --merge --single") right away |
| 0 | APPROVAL_WAIT: merged | already merged: carry on with After the merge |
| 1 | APPROVAL_WAIT: manual | a named check finished without approving or did not appear, its review never landed, changes were requested, or a review is required and none is configured: Merge hold, reason = that line, Needs you: review and approve <pr-url>; never use --admin or --force |
| 3 | APPROVAL_WAIT: pending | a named check was still running, had not started, or its review had not landed when --max-wait ended: Merge hold, reason = that line, Needs you: re-run /atelier <pr-url> once the approval check has finished, or review and approve it |
| 4 | APPROVAL_WAIT: moved | the head changed while waiting: run the merge gate again on the new head |
| 2 | stderr | failed, reason = stderr |
Only an approval of the head the gate judged counts (--head), so a push during the wait is never mistaken for an approval.
Atelier never approves a PR itself and never asks a bot to; it only waits for the repo's own automatic approval; merging after the approval is prepare's job, which enqueues on a repo with a merge queue.
/atelier setup does not write merge.yml: add it by hand when the repo has an auto-approval to wait for.
✗ gate passed, reviewDecision REVIEW_REQUIRED → gh pr merge --admin # skips the review the repo requires
✗ approval-wait names one vendor's check in the script itself # another repo has a different bot, or none
✗ the named check already finished NEUTRAL → wait the full 30 minutes # it did not approve, and will not change
✓ gate passed → approval-wait (merge.yml names the check) → approved → prepare --merge
✓ gate passed → approval-wait (nothing named) → manual → Merge hold, "Needs you: review <pr>"When a person is needed
Atelier merges on its own, and a person is needed only where one cannot be replaced:
| Needed | Why | Where it shows |
The default branch requires an approving review and no approval.wait_for check gives it | atelier never approves a PR or bypasses the rule | APPROVAL_WAIT: manual, MANUAL: merge in setup |
The PR changes a manual_merge_paths glob in .agents/aw/merge.yml | the repo marked it as never auto-merged | APPROVAL_WAIT: manual |
| A reviewer requested changes | a human's objection is not the agent review's to overrule | APPROVAL_WAIT: manual |
Build's review-loop ended flagged, checks-red or NOT REVIEWED, or aw skipped a companion | the agent review did not pass | Build hold |
| The merge gate refused the contract, the proof or CI | the change is not shown to work | Ready/Merge hold, failed or refuse |
A --max-wait ended with CI or an approval check still pending | nothing to act on yet | hold with the APPROVAL_WAIT: pending line |
Everything else proceeds without asking: a PR the gate passes, whose review converged, and whose repo requires no review merges at once.
Never hold a merge for "a final look"; a hold names one row above and prints its Needs you:.
/atelier setup reports which side of the first row a repo is on, so you know before a run.
✗ gate passed, no review required, review converged → "ready to merge, shall I?" # nothing in the table applies
✓ gate passed, no review required, review converged → prepare --merge --single → mergedAfter Build returns
aw can run for hours in this context; do these in order before anything else, and re-read this section when unsure where the run is:
Checkpoint each of steps 2–4 the moment it passes, so a run that dies here resumes at the next step instead of rebuilding (--resume-step, Step 0 item 7):
node "${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts/state.mjs" --checkpoint --pr <pr-url> --step <companions|sentinel|early-gate> --head <sha> [--aw-file aw.txt] # companions stores aw.txt✗ session ends after the sentinel → /atelier <pr-url> → Build skipped (existing PR) → the early gate never ran
✓ session ends after the sentinel → /atelier <pr-url> → RESUME: early-gate → run step 4, then record- Hand-back. Find aw's terminal block, the hand-back marker
AW RUN COMPLETE. Take the PR URL from the block'sDelivered:line, or from the one-line form Micro and Lite may print (AW RUN COMPLETE — Lite, PR <url>, …). No block, or no PR URL in either form → Buildfailed, reason = itsNeeds you:line (orno AW RUN COMPLETE block); bindPRand its head sha otherwise. Companions. Save aw's hand-back block to
aw.txt, run the early gate once (step 4 judges the same output and exit code), then check the companions:A="${CLAUDE_SKILL_DIR:-$HOME/.claude/skills/atelier}/scripts" node "$A/merge-gate.mjs" --pr <pr-url> --early > gate.json; echo $? > gate.exit node "$A/state.mjs" --companions --aw-file aw.txt [--accept-skip <the user's names>]COMPANIONS: proceed→ checkpointcompanions(with--aw-file aw.txt) and continue;COMPANIONS: hold — skipped: <names>→ Buildholdwith that reason, andNeeds you: run <names> on <pr-url>, or re-run /atelier <pr-url> --accept-skip <names>. Required:review-loopandcreate-pron every tier, plusquality-passon Lite and Full, plusaw-verifyon every Lite or Full diff (the runverify-env.mjs --tiernames: the local stack, the preview, or checks only).✗ Degraded: review-loop skipped (context budget) → Build proceed # an unreviewed PR walks to the merge ✓ Degraded: review-loop skipped (context budget) → Build hold "skipped: review-loop"Sentinel. In the PR branch's worktree (
git worktree listnames it), when.agent/<branch>/checks.yamlexists (Full tier), run the checks fresh; Micro and Lite have none: checkpointsentineland skip this:AW_SKILL_DIR="${AW_SKILL_DIR:-$HOME/.claude/skills/autonomous-workflow}" D=".agent/$(git branch --show-current)" node "$AW_SKILL_DIR/scripts/run-checks.mjs" "$D/checks.yaml" --no-write | tail -1 # the sentinel node "$AW_SKILL_DIR/scripts/run-checks.mjs" "$D/checks.yaml" --statuses # each check's stored statusSentinel Build CHECKS M/M PASScheckpoint sentinel; continueCHECKS p/M FAIL: <ids>, every listed idunsatisfiablein--statusescontinue; carry each id into the final Needs you:(AC-4 unsatisfiable: <why>) and into the Build reasonany other FAILfailed, reason = the sentinel lineEarly gate. Judge step 2's
merge-gate.mjs --earlyresult: the contract, and a verify report in its template shape; not CI (a fresh draft has none yet) and not--proven(Ready decides the verdict on its final head). On a resumed Build, or when the head moved since step 2, run that gate command again first. Exit 0 → checkpointearly-gate; continue. Exit 1 withrefused_by=proof→ the report is missing now, not first at Merge: runSkill("aw-verify", "run checks <pr-url>")(orrun preview <pr-url>when the JSON'suser_visibleis true) once, then the gate again; a second proof refusal → Buildfailed, reasonproof: <the first problem>. Exit 1 withrefused_by=contract→ send Build back once, for that fix only:Skill("aw", "<pr-url>: make the merge gate pass — <MERGE_GATE line> <the gate's how-to lines> <build suffix>")(one paragraph each), then run the gate again; a second exit 1 → Buildrefuse, reason = theMERGE_GATE:line. Exit 2 → Buildfailed, reason = its stderr.✗ early gate --contract-only passes a PR with no verify report → 5 h later, Ready fails "no intent region" ✓ early gate --early → refused_by proof → aw-verify run checks <pr> → gate passes → Ready- Record Build
proceed(or the decision above) on the PR, passing--preflight "<PREFLIGHT line>", write the bus event with this gate JSON'suser_visibleandhas_flag_contract, then run Ready.
A resumed build on a PR that exists (the state comment shows Build refuse or failed after a PR URL was bound) skips aw and starts at step 4, so a contract a human added is gated, not rebuilt.
A resumed Build hold whose reason starts skipped: continues at step 3 only when the user's --accept-skip names every listed companion (reason accepted skip: <names> (user)); otherwise it records the same hold again.
After the merge
Only once the PR state is MERGED, score the quality findings per autonomous-workflow's rules/finding-outcomes.md § When it runs, before any worktree is removed:
When .agents/aw/improve.yml has atelier_hook: true, Deliver also runs Improve once Verify has settled; with no file, or atelier_hook false or unset, nothing about it appears.
AW_SKILL_DIR="${AW_SKILL_DIR:-$HOME/.claude/skills/autonomous-workflow}"
F="<the PR branch's worktree>/.agent/<head-branch>/quality-findings.jsonl"
HEAD_SHA=$(gh pr view <pr-url> --json headRefOid -q .headRefOid)
OPENED_SHA=$(gh pr view <pr-url> --json createdAt,commits \
-q '.createdAt as $c | [.commits[] | select(.committedDate <= $c)] | last | .oid')
git fetch -q origin "pull/<n>/head"
if [ -z "$OPENED_SHA" ] || [ "$OPENED_SHA" = null ]; then
echo "Degraded: quality finding outcomes — not recorded (opening head not found: PR rebased)"
elif test -s "$F"; then
node "$AW_SKILL_DIR/scripts/finding-outcomes.mjs" --record --findings "$F" \
--since "$OPENED_SHA" --later "$HEAD_SHA" --repo <owner/repo> --pr <n> --model "<your model id>"
fi- No worktree for the branch, or no findings file → skip it and print nothing.
- Exit 2, or no LoreKit →
Degraded: quality finding outcomes — not recorded (<stderr or lorekit unreachable>); the merge decision stands. - Never run it on a merge that did not happen: a refused or held merge scores nothing.
Then run Deliver (rules/deliver.md) unless --no-deliver: the merge is not the end while the default-branch pipeline is red, or while the deploy of a no-flag change is unverified (Verify).
Under --no-deliver, still record Deliver skipped (reason --no-deliver) on a merged PR, so the comment does not stay on "Next: Deliver checks…".
Record Deliver's result on the state comment with --record --stage deliver (same command as Stages step 1, --head the merge commit): proceed for green (and verified, when Verify ran), hold while a fix PR is open or the verify is still running, failed for red, reverted, or a failed verify, skipped with its reason.
It is display-only: --next stops at the merge, so Deliver also reports through a bus event and the terminal contract's Deliver: line.
Step 4 — Stop
Atelier never flips a flag: Deliver runs deployment-verify only for a contract with no flag (Verify), and a flag rollout stays with a human.
After a merge, put the next human step under Needs you:, from the first row that matches:
| The merged PR | Needs you: |
has a contract whose provider release.yml declares rollout: pr | open a follow-up PR that only flips <flag> in <the provider's flip>, with a contract that has no flag, then run /deployment-verify <flip-pr> to measure it before/after |
has a contract whose flag provider release.yml declares | run /deployment-verify <pr> to roll <flag> out; when release.yml sets hold_after, the rollout waits there for /deployment-verify approve <pr> (tick.mjs --approve) or override <pr> (--override) |
| has a contract the gate passed with the no-provider warning | flip <flag> on by hand — deployment-verify cannot step it here (no provider) |
Deliver's verify ended hold or failed | the VERIFY: line and what Verify puts under Needs you: for it |
has an atelier:no-flag marker (a user-visible diff the gate passed with no flag) | nothing — no rollout (<class>); verified <outcome> after Verify passed, or nothing — no rollout (<class>); no deploy verify runs here when the gate passed it with that warning |
| has no user-visible diff | nothing — not user-visible, or nothing — verified <outcome> after Verify passed |
Terminal contract
Emit this block on every exit:
ATELIER RUN
- Stage reached: [build | ready | merge | stop]
- PR: [URL | none]
- Ticket: [<id> | none — <why>]
- Merge: [merged <sha> | refused: <reason> | not reached]
- Deliver: [green <run url> | verified PASS <run url> | verifying: <reason> | verify failed: <reason> | red: <reason> | fix PR <url> | revert PR <url> | reverted <revert PR url> | skipped: <reason> | not reached]
- Degraded: [steps skipped and why, or "none"]
- Needs you: [the next human step, or "nothing"]Hard rules
- Delegate, never re-implement. A stage that needs build, fix, review, verify, or merge logic calls the owning skill.
- Scripts decide. The next stage comes from
state.mjs --next, the merge frommerge-gate.mjs, outcomes fromoutcomes.mjs; never from your judgment. - LoreKit is evidence, never a gate. A failed write is one
Degraded:line; the stage outcome stands. - No flag flips, no deploys. Those belong to a human or
/deployment-verify; Deliver runsdeployment-verifyonly on a contract with no flag, where nothing is flipped. - Top level only. Never dispatch
/atelieror its Build into a sub-agent; a nested run drops companions. - Telemetry never decides. The trace records stages; no stage reads it, and a failed export is never a
Degraded:item. - Only the user waives. A skipped companion or a blocking preflight gap is overridden only by the user's
--accept-skipor--accept-gaps, never by your judgment.
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.

