/quay:routinesfrom quay
Evaluates standing routine tracks from .quay/config.yml loop section: schedules due probes, dispatches background agents, gates findings, and verifies FILE-ONLY invariant.
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.
Evaluate the standing routine track: read .quay/config.yml loop: section (legacy: .quay/loop.yml) routines config, schedule
due probes, dispatch them as background agents with instrument-awareness, gate
their findings through the routine-file-gate, and verify the FILE-ONLY invariant
(no product/method code touched).
λ(workspaceRoot, tasksDir, milestoneCounter=0) → {fired, filed, rejected, fileOnlyViolation}
schedule :: Config → [{name, probe, trigger?}]
dispatch :: [{name, probe}] → [{probe, candidates, filed}]
gate :: [CandidatePath] → [{candidate, accepted}]
verify :: WorkspaceRoot → {violation, detail?}
⚠️ 两个通道,先读这条再照下面做(gap-productize-deep-semantic-dedup-scan-routine,2026-09-13): 本文件描述的是手工/agent 通道——由一段 LLM 执行的散文把 last-run 写回、由它调
routine-file-gate立案。它可用的前提是调用者本身是一个会话(inner tick / 手工驱动)。两层 driver 架构下的机械通道(
SPEC-capability-planes-and-mechanism-lifecycle§5.2)把同一 轨道收进了常驻 driver:${CLAUDE_PLUGIN_ROOT}/scripts/dist/probe-routine.js把.quay/config.ymlloop.routines:里带probe:且 trigger 为interval:<N>m的声明装进 quality driver 的 Layer-1b 例程表, 由 driver 自己跑 readProbeSpec → 派 fresh-context 探针 → FILE-ONLY 守卫 → 结构化 finding 落<root>/.quay/routine-findings.jsonl,last-run 由 driver 持久化写回(不再靠 agent 记得写)。 ⛔ 那条通道不是 fan-in/scoped-gate 的一部分(热路径反例见gap-fan-in-remove-archguard-gate)。 本文件下面的步骤保留给没有该 driver 的用法(generic loop-driver skill / 手工一次性驱动); 两条通道不要同时驱动同一条 routine(会双跑),跑之前先看 quality driver 是否已在跑。
routines: from .quay/config.yml loop: section (legacy fallback: .quay/loop.yml).{name, trigger, probe?, dispatch?}).gap-probe-mechanism-dead-15-days-rewire-to-two-layer):
node "${CLAUDE_PLUGIN_ROOT}/scripts/dist/routine-scheduler.js" --now <epoch-ms> --last-run <workspaceRoot>/.quay/routine-last-run.json [--event <event>] --plugin-root "${CLAUDE_PLUGIN_ROOT}" /tmp/routines-<tick>.json.
--now is the current wall-clock epoch-ms; --last-run is the per-routine last-run map
({ "<name>": <epoch-ms> }, absent = never ran → due) that interval:<N>m triggers consult.
Exit 0 + lists DUE routines (one per line: DUE: <name> (<trigger>) -> probe <name>);
exit 3 = none due.{fired: 0} — rest is no-op.{ "<name>": <now-epoch-ms> } back into <workspaceRoot>/.quay/routine-last-run.json
(merge, don't clobber) so interval:<N>m routines do not re-fire within their window.For each DUE routine:
readProbeSpec("<probe>", CLAUDE_PLUGIN_ROOT) from
${CLAUDE_PLUGIN_ROOT}/scripts/dist/read-probe-spec.js to get
{instrument, fallback, output_routing, objective}. FAIL-CLOSED: if
readProbeSpec throws, skip this routine — never crash the track.instrument !== "none", verify the
named MCP server (e.g. meta-cc, archguard, chrome-devtools,
playwright) is available in the current session. If unavailable and
fallback === "none", skip and return {filed: false} — the routine will
fire again on its next trigger.WORKSPACE: <workspaceRoot>\n to the probe objective so the
dispatched agent can resolve workspace-relative paths.subagent_type:
tool-capable) with the combined objective prompt. The agent explores the
workspace, finds real defects/gaps, and writes findings as candidate task
files.{probe, routine, candidates: [<paths>], filed: true}.For each candidate finding file:
node "${CLAUDE_PLUGIN_ROOT}/scripts/dist/routine-file-gate.js" --board <tasksDir> --recent 3 --k 3 <candidate-path>.<tasksDir>/) and label it per the probe's
output_routing[type] (default "milestone-candidate").git -C <workspaceRoot> status --porcelain.<tasksDir>/ (routine-filed findings).<tasksDir>/. If violation found: git checkout -- <offending files> to
discard.{violation: true|false, detail: <what was discarded>}.${CLAUDE_PLUGIN_ROOT}/scripts/
for routine-scheduler.ts, read-probe-spec.ts, routine-file-gate.ts —
never look for workspace-local copies.fallback: "none" are skipped cleanly (not
errors). Probes with instrument: "none" always dispatch.<tasksDir>/<candidate>.md). Any change to product code, method docs,
scripts, config, or anything outside the board directory is a violation and
MUST be discarded.chrome-devtools or playwright
MCP is available, the browser-explorer probe can dispatch. When unavailable,
it skips cleanly with filed: 0.every(N) (LEGACY iteration-count, back-compat),
interval:<N>m (two-layer TIME — fires N minutes after last run; never-ran = due),
on(<event>) (event-based, e.g. on(checkpoint)) — the scheduler evaluates trigger
conditions; the skill only fires what is DUE. Two-layer mode configures
interval:<N>m / on(<event>) — not every(N) (no iteration counter exists).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 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`)./extension-point-refactorRun a refactor slice with the extension-point criteria four-piece set — generate the AC/DoD skeleton (正臂 / 负臂 / 注入泄漏 / 红线基线) from the centre file and the extension point, fill the four arms with real counted assertions, judge them with the checker, then land the AC through the Provider ABI. Use when a task is a design slice/refactor (R1/R2) whose acceptance must say WHERE the next feature lands, not merely that the existing code was split./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.npx claudepluginhub yaleh/quay --plugin quayOther plugins' skills for the same job