/quay:extension-point-refactorfrom quay
Generates a four-arm acceptance criteria skeleton for refactor slices that introduce extension points. Scaffolds positive/negative/injection-leak/red-line-baseline assertions, fills them with counted checks, and lands the AC through the Provider ABI.
Ships in quay. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A refactor slice "split the file" is not the same as "built the extension point" (methodology §13 / DIR-133 裁定 2). This skill turns the four-arm criterion set into one repeatable call instead of hand-copying it per slice:
scaffold(central, outside, taskId) → four-arm AC skeleton
fill(skeleton) → real counted assertions for THIS slice
check(taskId) → satisfied / missing-arms / not-applicable / NOT-EVALUATED
land(taskId) → task_write the AC section (ABI, never a hand edit)
Definition of done for the slice: the checker returns satisfied before the boxes are ticked, and the
positive arm's assertion was RED before the change (that is the falsifiability, not the file size).
docs/references/ownership-first-refactoring-methodology.md §13.5)| Arm | Assertion | Red when | Liveness? |
|---|---|---|---|
| 正臂 positive | a handler registered OUTSIDE the centre is triggered — the count triggered=1, never "the handler exists" | the registration/wiring is removed ⇒ triggered=0 | yes (this IS the liveness check) |
| 负臂 negative | unregistered ⇒ triggered=0 (recommended companion: handlerRegistered=false) | the dispatcher leaks / always fires | no — it is vacuous green on its own |
| 注入泄漏 injection leak | replace the dispatcher with a leaking implementation; the SAME assertions must go red | still green ⇒ the arm never tested the dispatcher | no — it proves the NEGATIVE arm is not vacuous |
| 红线基线 red-line baseline | wc -l <centre> is RED before the change | running it before the baseline is green | no — and it is a single-shot AC, NOT a standing ratchet (never re-evaluated after the task is done) |
⛔ Only a negative arm is not a criterion. "Unregistered ⇒ not triggered" is green for the wrong reason when
the wiring is broken (triggered=0 at both ends too). The checker therefore reports missing-arms and names 正臂.
node ${CLAUDE_PLUGIN_ROOT}/scripts/dist/extension-point-criteria.js \
--scaffold --task-id <task-id> --central <centre file> --outside <extension-point module>
It prints the AC block, the triggered=1 count form, and the "single-shot AC, not a standing ratchet" note.
It never touches the task store — the task body is written only through the ABI in Phase 4.
Replace each placeholder with a real, runnable assertion. Non-negotiables:
triggered=1, or triggeredN == 1, …), not an existence check.handlerRegistered=false as well: it separates "unregister really gated it" from "unregister
did nothing but the positive arm happened to catch it".wc -l <centre> value and asserts the post-change value is below it.
Say explicitly that it is a single acceptance check, not a standing ratchet.node ${CLAUDE_PLUGIN_ROOT}/scripts/dist/extension-point-criteria-check.js --task-id <task-id> --json
satisfied — all four arms present; proceed.missing-arms — missingLabels / missingArms name every absent arm; weak[] flags an arm written in the
wrong form (e.g. 正臂 written as "handler 存在"). Fix the AC text, do not weaken the checker.not-applicable — not a design slice (no refactor-slice label and no 拆分/切片/重构 semantics in title/labels).NOT-EVALUATED — the task file or its ## Acceptance Criteria section could not be read. This is not
missing-arms and must never be treated as a pass.Reading a whole board (the production reading, not a fixture):
node ${CLAUDE_PLUGIN_ROOT}/scripts/dist/extension-point-criteria-check.js --scan --json
Read the task with task_get, rewrite its ## Acceptance Criteria with task_write (satisfied items as - [x],
with the evidence appended after ——), and confirm with task_check. Never hand-edit the - [ ] / - [x]
characters — the ABI commit is what reaches fan-in's ac-precheck.
${CLAUDE_PLUGIN_ROOT}/scripts/dist/design-evolution-readings.js.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yaleh/quay --plugin quay14 skills in this plugin
/cold-startCold-start the two-layer loop in a project `/quay:init` has already prepared: re-create the 20-minute outer cron, EXPLICITLY drive the inner session to start fast mode and dispatch the first task, then PROVE the loop is live by reading a real --task-start telemetry record in .workflow-events/. One slash command; the inner start is DRIVEN here, never assumed as a side effect./driversStart the promotion + worker drivers and the web server in ONE idempotent in-session call — wraps `quay driver start --kind promotion|worker` + `quay serve` via ${CLAUDE_PLUGIN_ROOT}/scripts/dist/start-drivers.js, relaying (never swallowing) the halted / worktree-root failure paths. Use after `/quay:init` to bring a project's drivers and Web UI into the running state without hand-typing three CLI commands./executeUse when driving a task at status `ready` toward `done` — implements the plan, self-audits against AC/DoD, and asserts the `ready -> done` gate via `quay task check`. Takes the epic branch (drive children to done, then integration-accept) when the task's derived role is `compound`. Invoke with a task id and, optionally, a provider id (default `native`)./initInitialize a workspace as a quay project — write the six-file config surface (.quay/config.yml, .quay/profiles.yml, tasks/, .gitignore, .claude/launch.settings.json, .claude/settings.json) and print the explicit quay plugin install steps. Idempotent./loop-driverDrive a workspace's quay task board through a single `iterate` cycle (or iterate* until Stop): select a ready task, isolate it in a dependency-ready worktree, build+test it, gate it, record evidence, and land. Parameterised by `.quay/config.yml` (loop: section) — the same skill, different params, for any workspace. Runner-agnostic and workspace-portable./managerThe manager layer — the THIRD layer above outer/inner: cross-project planning, prioritization, and trend-watching. One per network/host, started by the human (or an OS anchor), NEVER by a project's cold start. Crystallizes the daily-review cadence (per orchestration/REVIEW-cadence.md), the three functions (planning / prioritization / trend), and the two verified rules (§1.5 ask-vs-act, §1.6 event triage, extracted from orchestration/manager-loop-tick.md). Installable — ships under plugin/, not quay-local. Use when a network runs more than one quay loop and someone must coordinate between them (the human's job otherwise).Other plugins' skills for the same job