Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mthinesv0.3.0MITIn 1 marketplace
Stops /atelier sessions from merging or recording Ready while review threads are open or no merge gate passed. Hooks run on prompts, Bash and Stop events and need the prepare skill and an authenticated gh.
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
atelier, review-threads, merge-gate, pull-request, ci-checks, amp-plugin, hooks, amp
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Keeps an /atelier session from moving past unresolved review threads or a merge gate that has
not itself passed, and flags a session that drifts: opens a PR by hand and never records a stage
with state.mjs.
The hard gate lives in atelier's scripts (state.mjs refuses Ready proceed without clear thread
evidence or a real aw hand-back for Build proceed, merge-gate.mjs refuses open threads, no
proof, or no contract); this plugin steers the session, catches a merge or merge-queue command run
with no passing gate call in the session at all — the exact gap gh pr merge fell through on
dash0hq/dash0#31309 — catches threads that open after Ready, and catches a session that stops
without ever writing the PR's atelier state. These are the failure modes a hard gate inside the
scripts cannot see, because the scripts only fire when they are called at all; this plugin is the
mechanical backstop for the case where they were not.
Ships for two hosts from one shared decision layer, bin/core.mjs:
hooks/hooks.json → bin/guard.mjs).index.ts), see § Amp install and
§ Event mapping below.Both hosts call the same core.mjs functions for every decision (what a command does, whether to
deny it, what to inject, when to block a stop), so a change to the rule only needs one file, and
the two hosts cannot drift apart on what counts as a violation.
claude plugin marketplace add mthines/agent-skills
claude plugin install atelier-guard@agent-skills-plugins
It needs the prepare skill installed (PREPARE_DIR, ~/.claude/skills/prepare, or
~/.agents/skills/prepare) with scripts/threads.mjs, and an authenticated gh.
Without either, every hook stays silent (fails open).
Every hook acts only in a session that started /atelier: a prompt that starts with /atelier
(not /atelier setup), or the Skill tool running atelier, writes a marker at
${ATELIER_GUARD_DIR:-~/.claude/state/atelier-guard}/<session_id>.json.
Markers older than 7 days are pruned.
| Event | Does |
|---|---|
UserPromptSubmit | /atelier [<pr-url>] → writes the marker and adds the PR's THREADS:/CI: lines, the rule "never record Ready proceed with open threads", and the rule "nothing merges until merge-gate.mjs itself prints MERGE_GATE: pass" to context |
PreToolUse on Skill | atelier → writes the marker |
PreToolUse on Bash | gh pr merge or the REST merge route with no real (non---early, non---contract-only) merge-gate.mjs --pr <pr> call having printed MERGE_GATE: pass for the exact PR this command targets yet in this session → denied, naming the gate and the PR; a merge while threads are open (gate already passed for this PR) → denied with the threads named; state.mjs --record --stage ready --decision proceed while threads are open → denied the same way. A pass recorded for a different PR (the session moved on with a later /atelier <other-pr>) never covers this one, whichever form named the PR — a full URL or the bare number SKILL.md's own `<pr-url |
PostToolUse on Bash | gh pr create → reads the new PR's URL from the command's output, so a session that opens a PR by hand (not through state.mjs) is still tracked for the drift check below. A real merge-gate.mjs --pr <pr> call → reads its own MERGE_GATE: pass/refuse line, scoped to the PR the command itself named (a URL or a bare number alike): a pass sets the merge guard's unlock to that exact PR, a refusal clears it outright (whichever PR it was for), and a pass with no PR the command named at all unlocks nothing; --early and --contract-only calls are never read as unlocking it |
Stop | the session allowed a Ready proceed or a merge and threads are open now → blocks once; or the session has a known PR and never recorded any stage after real work → blocks once, naming the PR and /atelier <pr> as the way to resume |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub mthines/agent-skills --plugin atelier-guardPlugins from other owners that cover similar ground