Skip to content
Back to skills

Atelier

ASecurity

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 de...

  • 23 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 26, 2026
ai-agentsrustgogit

Works with

  • terminal

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add mthines/agent-skills --skill atelier --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Atelier?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Atelier
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mthines-atelier/badge)](https://www.skillsdirectory.com/skills/mthines-atelier)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: atelier
description: >
  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.
argument-hint: 'setup | review <pr-url|#n> | <request> | <pr-url|#n> [--ticket <id|url>] [--unattended] [--keep-draft] [--accept-gaps] [--accept-skip <name,…>] [--no-deliver]'
license: MIT
disable-model-invocation: true
metadata:
  author: mthines
  version: '0.10.0'
  workflow_type: orchestrator
  tags: [workflow, orchestrator, merge, gate, deployment-verify, lorekit, resumable, telemetry, orb-preview]
---

# 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 — 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`](./references/design.md).

## Contents

- [No shortcuts](#no-shortcuts)
- [Arguments](#arguments)
- [`setup`](./rules/setup-command.md)
- [Step 0 — Setup](./rules/step0.md)
- [Stages](./rules/stages.md) ([Build](./rules/build.md) · [Ready](./rules/ready.md) · [Merge](./rules/merge.md) · [Deliver](./rules/deliver.md))
- [Terminal contract](#terminal-contract)
- [Hard rules](#hard-rules)

## No shortcuts

Every 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:

- **Hand-building instead of delegating Build to `aw`.** `state.mjs --record --stage build --decision proceed` is refused without `--aw-file` naming a real `AW RUN COMPLETE` hand-back ([`rules/build.md`](./rules/build.md)).
- **Recording a PR you just built as `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`](./rules/stages.md)).
- **Recording Ready `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/ready.md` § Proof](./rules/ready.md#proof)).
- **Recording a stage before the one before it.** `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.
- **Letting the sticky comment go stale.** `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.
- **Merging ahead of a passing gate, or treating "ship it" as a waiver.** The `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.

```text
✗ "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.

## 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 ([`rules/setup-command.md`](./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`](./rules/review.md)). |
| `<request>` | Free text: start at Build. |
| `<pr-url\|#n>` | An existing PR: skip Build (`skipped`, reason `existing PR`), run [Intake](./rules/intake.md), and resume from its state comment. A PR someone else opened stops first ([`rules/step0.md`](./rules/step0.md) item 7). |
| `--ticket <id\|url>` | The ticket this work belongs to; [Step 0](./rules/step0.md) 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/ready.md` § Waiting for CI](./rules/ready.md#waiting-for-ci), [`rules/merge.md` § Waiting for approval](./rules/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. |
| `--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/deliver.md`](./rules/deliver.md)). |
| `--accept-gaps` | The user accepts every preflight gap ([`rules/step0.md` § Preflight](./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/build.md`](./rules/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. |

## Running a request

1. Run [Step 0](./rules/step0.md) at the top level of a session, never inside a dispatched sub-agent (its own first line explains why). It resolves script paths and the GitHub access path, decides the ticket, runs preflight, probes LoreKit, and — with an existing PR — runs the author guard and reads its state.
2. `state.mjs --next --head <sha> [--body-file state.md]` names the stage to run: `build`, `ready`, `merge`, or `stop`.
3. Run that stage from [`rules/stages.md`](./rules/stages.md)'s table, which links [`rules/build.md`](./rules/build.md), [`rules/ready.md`](./rules/ready.md), and [`rules/merge.md`](./rules/merge.md) for the full procedure behind each cell.
4. After every stage decision, record it and write the bus event, in that order — [`rules/stages.md`](./rules/stages.md) gives the exact commands; the record is part of the stage, not an afterword.
5. A decision of `refuse`, `hold`, or `failed` ends the run here, at the terminal contract below. A `proceed` (or a skipped Build) goes back to step 2.
6. Once Merge records `proceed`, run [Deliver](./rules/deliver.md) unless `--no-deliver`, then emit the terminal contract with its `Needs you:` line from [`rules/deliver.md` § Needs you after the merge](./rules/deliver.md#needs-you-after-the-merge).

## Terminal contract

`/atelier review` ends with its own `ATELIER REVIEW` block ([`rules/review.md`](./rules/review.md)).
Every other run emits this block on every exit:

```text
ATELIER RUN
- Stage reached: [build | ready | merge | stop]
- Stages: Build <proceed|skipped|hold|failed|refuse> · Ready <…> · Merge <…> · Deliver <… | not reached>
- 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"]
```

`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".

## 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 from `merge-gate.mjs`, outcomes from `outcomes.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 runs `deployment-verify` only on a contract with no flag, where nothing is flipped.
- **Top level only.** Never dispatch `/atelier` or 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-skip` or `--accept-gaps`, never by your judgment ([No shortcuts](#no-shortcuts)).
- **Human-verified is explicit, never inferred.** Record it with `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`](./rules/flag-policy.md)).
- **"Ship it" finishes stages, never skips them.** It never waives a stage, a companion, the merge gate, or Verify: run whatever stage is still open, in order, and merge only once `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`](./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).
- **A blocked stage is reported blocked, never routed around.** First try the owning skill's own `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.
- **A contract's fields are measured, or the stage stops.** `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.
- **A requirement is enforced only where it is configured, and never invented.** Proof (acceptance criteria and a verify report, including visual tests) applies only when this repo has `.agents/aw/environments.yml` or an explicit `stage_requirements.proof: always` (`merge-gate.mjs`'s `proofRequired`, [`rules/merge-gate.md`](./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.

Files in this skill

  • README.md6.5 KB
  • SKILL.md44.4 KB
  • assets/atelier-flow.html11.6 KB
  • assets/cards/done-done-done-done-dark.png56.7 KB
  • assets/cards/done-done-done-done-light.png52.1 KB
  • assets/cards/done-done-done-failed-dark.png62 KB
  • assets/cards/done-done-done-failed-light.png59.6 KB
  • assets/cards/done-done-done-hold-dark.png64.8 KB
  • assets/cards/done-done-done-hold-light.png60.5 KB
  • assets/cards/done-done-done-pending-dark.png65.8 KB
  • assets/cards/done-done-done-pending-light.png63.2 KB
  • assets/cards/done-done-done-skipped-dark.png67.6 KB
  • assets/cards/done-done-done-skipped-light.png65.3 KB
  • assets/cards/done-done-failed-pending-dark.png66.7 KB
  • assets/cards/done-done-failed-pending-light.png63.7 KB
  • assets/cards/done-done-hold-pending-dark.png69.1 KB
  • assets/cards/done-done-hold-pending-light.png64.7 KB
  • assets/cards/done-done-pending-pending-dark.png68.1 KB
  • assets/cards/done-done-pending-pending-light.png64.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.