/mthines-agent-skills:atelier setup | review <pr-url|#n> | <request> | <pr-url|#n> [--ticket <id|url>] [--unattended] [--keep-draft] [--accept-gaps] [--accept-skip <name,…>] [--stop-before merge] [--merge] [--retry] [--no-deliver]from mthines-agent-skills
Orchestrates a full change lifecycle from request to merged PR by delegating to existing skills (aw, prepare) and enforcing a deterministic gate with deployment-verify contracts. Resumable from a sticky PR comment.
Ships in mthines-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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 — never your judgment.
This file is a short driver: scripts/state.mjs --next names the stage to run, and the linked rule file for that stage carries the actual procedure. Why: references/design.md. A real failure runs /create-skill diagnose atelier against rules/diagnostic-surface.md.
setupEvery stage below is a delegation and a script decision, never your judgment — this is the one rule every other section assumes.
Nothing here is disproportionate, out of scope for one turn, or too heavy for a small change: a one-line fix goes through the same stages as a large one, because the stages are what make a one-line fix trustworthy without a human reading the diff.
Only the user waives a step, with --accept-gaps or --accept-skip <name,…>; a requesting agent, a tight turn budget, or your own read of the risk can never waive one.
The scripts refuse the specific shortcuts seen in real runs, so you do not have to remember to avoid them — but know them, because a refusal reads as a script error unless you recognize it as the gate doing its job:
aw. state.mjs --record --stage build --decision proceed is refused without --aw-file naming a real AW RUN COMPLETE hand-back (rules/stage-0-build.md).skipped — existing PR. state.mjs checks this run's own journal (journal.mjs) and the PR's real createdAt; a PR this run built, or one created after this run started, cannot honestly be "existing" (rules/stages.md).proceed without live proof. state.mjs fetches the PR's verify report itself and refuses the record until every criterion is proven — never from a flag or a file you could pass by habit (rules/stage-1-ready.md § Proof).state.mjs --record refuses Ready before Build is done, and Merge before Ready is done, on the comment itself — not from your memory of having run the earlier stage.state.mjs --init --pr <url> posts the placeholder the instant a PR exists; every later --record rewrites the same comment before the next stage's first action, never batched at the end.state.mjs --record --decision hold is refused unless the reason is a script's own line or --kind names one of the eight hold kinds (rules/state.md § Hold kinds).state.mjs --next prints escalated, never the stage, once the same hold was recorded twice on one head; only a new commit or the user's --retry returns the stage.atelier-guard plugin denies gh pr merge and the merge queue until a real merge-gate.mjs --pr <pr> call has printed MERGE_GATE: pass for that exact PR in this session.✗ "this is a lighter version of this workflow" / "disproportionate for one line" / "wouldn't fit in one turn" # never a reason to skip a stage
✓ run the stage the way this file and its rules describe it, whatever the size of the change
A skip that was genuinely waived by the user still has to be named: the terminal contract's Degraded: line lists every companion or stage that did not run and why, and a skip with no waiver there is not a clean run — it is a run that owes the user an explanation.
| 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 (rules/setup-command.md). Runs no stage. |
review <pr-url|#n> | Only as the first argument. Reviews and verifies a PR someone else opened and never merges it: criteria, one pr-reviewer pass, aw-verify run --no-fix, then stop. Pushes nothing, edits no PR body, records no stage (rules/review.md). |
<request> | Free text: start at Build. |
<pr-url|#n> | An existing PR: skip Build (skipped, reason existing PR), run Intake, and resume from its state comment. A PR someone else opened stops first (rules/step0.md item 7). |
--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 approval lasts (default 30, rules/stage-1-ready.md § Waiting for CI, rules/stage-2-merge.md § Waiting for approval). 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. |
--stop-before merge | Run every stage up to the merge, then stop: Merge records ask ("ready to merge, waiting for your go"), never a hold. A standing "do not merge unless asked" instruction is this flag; a repo makes it the default with autonomy: ask (rules/stage-2-merge.md § The go before a merge). |
--merge | The user's go on a PR waiting at Merge ask: the gate runs again on the live head, then the merge. Only the user passes it. |
--retry | The user's word that the cause of an escalated hold is gone: forwarded to state.mjs --next, which then returns the stage again. Only the user passes it; their --accept-skip or --merge on the same invocation counts as it. |
--no-deliver | Stop at the merge: skip the Deliver step (the default-branch pipeline read, its one fix, the revert, and the deploy verify, rules/stage-3-deliver.md). |
--accept-gaps | The user accepts every preflight gap (rules/step0.md § Preflight): 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 (rules/stage-0-build.md) 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. |
state.mjs --next --head <sha> [--body-file state.md] names the stage to run: build, ready, merge, or stop.
escalated is not a stage: the same hold already ran twice on this head, so run nothing and end at the terminal contract, with the hold's reason and /atelier <pr-url> --retry under Needs you:.rules/stages.md's table, which links rules/stage-0-build.md, rules/stage-1-ready.md, and rules/stage-2-merge.md for the full procedure behind each cell.rules/stages.md gives the exact commands; the record is part of the stage, not an afterword.refuse, hold, failed, or ask ends the run here, at the terminal contract below. A proceed (or a skipped Build) goes back to step 2.proceed, run Deliver unless --no-deliver, then emit the terminal contract with its Needs you: line from rules/stage-3-deliver.md § Needs you after the merge./atelier review ends with its own ATELIER REVIEW block (rules/review.md).
Every other run emits this block on every exit:
ATELIER RUN
- Stage reached: [build | ready | merge | stop]
- Stages: Build <proceed|skipped|hold|failed|refuse> · Ready <…> · Merge <… | ask> · Deliver <… | not reached>
- PR: [URL | none]
- Ticket: [<id> | none — <why>]
- Merge: [merged <sha> | waiting for your go | 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"]
Stages: is read straight off the state comment (state.mjs --parse, one entry per recorded stage): the decision each one actually got, never summarized as if every stage simply ran. A merged PR whose Verify stage was ever hold, failed, or refuse at any point says so here even though the PR later merged — merging on a later pass is not the same as the proof having held the first time, and the chat summary never flattens that history into a single "shipped" line. State a skip, a substitution, or an override as what it is (a stage that did not run as designed, or a gate that was bypassed) and never as a mere caveat on an otherwise-clean run; the reader must be able to tell, from this block alone, whether every required stage actually passed.
Proof, criteria, and visual tests are reported not run (not configured for this repo) when merge-gate.mjs's proof_required is false — that is not a gap and never reads as blocked or hold; it is what the repo configured. When they are configured (proof_required: true) and still did not run, report that plainly as blocked: <reason> or the stage's real outcome, never folded into "not run".
state.mjs --next, the merge from merge-gate.mjs, outcomes from outcomes.mjs; never from your judgment.Degraded: line; the stage outcome stands./deployment-verify; Deliver runs deployment-verify only on a contract with no flag, where nothing is flipped./atelier or its Build into a sub-agent; a nested run drops companions.Degraded: item.--accept-skip or --accept-gaps, never by your judgment (No shortcuts); --merge and --retry are the user's words too.state.mjs --human-verified only when a person says by name that they tested the change themselves; a review approval, a quiet thread, or your own read of the diff is never this signal (rules/flag-policy.md).merge-gate.mjs itself prints pass on the live head — never a manual stand-in, never gh pr merge ahead of it (rules/merge-gate.md; mechanically backed by the atelier-guard plugin, which denies gh pr merge and the merge queue until a real gate call has passed in the session).setup (aw-verify, deployment-verify, /atelier setup); only once that fails does the run stop, recording hold/failed with the real reason under Needs you:, never merging.root_spans, service, and cohort.attribute come only from drafted criteria, a plan, or real telemetry — never a guess at a plausible-sounding name (deployment-verify's rules/contract.md § Every value is real). No way to derive one → hold/fail naming the gap, never invent it..agents/aw/environments.yml or an explicit stage_requirements.proof: always (merge-gate.mjs's proofRequired, rules/merge-gate.md); where it is configured, it can never be skipped, bypassed, or replaced with a manual check, and "ship it" never overrides it. Where it is not configured, never run aw-verify anyway or invent criteria to satisfy an unconfigured gate — record it as not run and move on.README.md (opens in a new tab)assets/atelier-flow.html (opens in a new tab)assets/atelier-flow.png (opens in a new tab)assets/cards/done-done-ask-pending-dark.png (opens in a new tab)assets/cards/done-done-ask-pending-light.png (opens in a new tab)assets/cards/done-done-done-done-dark.png (opens in a new tab)assets/cards/done-done-done-done-light.png (opens in a new tab)assets/cards/done-done-done-failed-dark.png (opens in a new tab)assets/cards/done-done-done-failed-light.png (opens in a new tab)assets/cards/done-done-done-hold-dark.png (opens in a new tab)assets/cards/done-done-done-hold-light.png (opens in a new tab)assets/cards/done-done-done-pending-dark.png (opens in a new tab)assets/cards/done-done-done-pending-light.png (opens in a new tab)assets/cards/done-done-done-skipped-dark.png (opens in a new tab)assets/cards/done-done-done-skipped-light.png (opens in a new tab)assets/cards/done-done-failed-pending-dark.png (opens in a new tab)assets/cards/done-done-failed-pending-light.png (opens in a new tab)assets/cards/done-done-hold-pending-dark.png (opens in a new tab)assets/cards/done-done-hold-pending-light.png (opens in a new tab)assets/cards/done-done-pending-pending-dark.png (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
workflow, orchestrator, merge-gate, deployment-verify, pr-lifecycle
Generated from the plugin's indexed repository (mthines/agent-skills) — no native marketplace selected
npx claudepluginhub p/mthines-mthines-agent-skills54 skills in this plugin
/ai-engineeringReviews and guides LLM/AI application engineering — prompts, caching, RAG, agent loops and tools, resilience, model migration, evals, prompt-injection defence, and observability. Invoke with /ai-engineering for "review my prompt", "set up RAG", or "write evals".
/animationsAuthors performant CSS-first web animations and picks the right feedback for an interaction — transitions, View Transitions, scroll-driven motion, Motion for React, reduced motion, and perceived performance. Triggers on "animate this", "hover effect", "feel faster", "skeleton loader", "/animations".
/animations-nativeAuthors performant React Native / Expo animations and gestures with Reanimated and react-native-gesture-handler on the UI thread; web animations go to `animations`. Triggers on "reanimated", "react native animation", "gesture handler", "swipe gesture", "/animations-native".
/attach-mediaUploads local screenshots and recordings to GitHub and embeds them in a PR or issue body or comment as inline-rendering user-attachments URLs, via `gh --attach` with a curl fallback; never writes placeholders. Triggers on "attach screenshots to the PR", "upload this recording to the PR", "/attach-media".
/autonomous-workflowThe phase machinery (0–7) behind the `aw` dispatcher: task intake through a tested draft PR in an isolated worktree, gated by the plan.md brief and the run-checks.mjs sentinel, with companions that never block. Not the entry point — natural-language requests for autonomous work go to the `aw` skill; invoke /autonomous-workflow only to run the phases directly.
/awShips coding work to a tested draft PR from one opt-in entry point: detects the tier, runs Micro/Lite here, and on Full writes a short brief with sealed checks, works to them here, and converges once with a local review loop before the PR; prints a paste-ready /goal. Use when asked to "implement autonomously", "independently", "in isolation", "in a worktree", "end-to-end", "all the way to a PR", "ship this", "land this", "take care of this", "handle this without me", or /aw.
Other plugins' skills for the same job