From zworkflow
Autonomous z-pipeline driver. Triggered by `autoz` or `$autoz`. Builds SSOT-LIST + SSOT-TASK-TREE first (per `local:using-ssot`), reproduces the user's instruction/issue as a RED test, confirms RED, then drives the full local:using-z / local:z procedure end-to-end without asking the user any questions. Open decisions are resolved by mutual agreement between you and codex (mcp__llm__chat model=codex). PR approval runs via `gh pr review --approve` from the gh CLI's authenticated account. After approval, proves success against the SSOT (using-ssot Hook 4) and posts that proof to the source issue as the evidence record of why the PR resolved it.
How this skill is triggered — by the user, by Claude, or both
Slash command
/zworkflow:autozThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Explicit: `$autoz`, `autoz`, or `autoz <issue-url|prompt>`.
$autoz, autoz, or autoz <issue-url|prompt>.SSOT contract. Apply local:using-ssot at every lifecycle hook (Intake / Drift / Resume / Report). autoz-specific overrides:
ssot-task count == 1 AND depth == 1.added-only AND adds ≤ 1 node AND no changed/removed.
Otherwise call mcp__llm__chat model: codex (use gemini as tiebreaker), log the transcript reference in the PR body. Report uses the ztrace single-pass result mandated by Hook 4.RED-first. After SSOT is captured, before any implementation, reproduce the user's intent (or the issue's described behavior) as a failing test.
ls/cat/lint command that fails because the artifact does not yet exist or does not yet conform. Log it.ssot-task IDs — record the mapping.No user questions. Never call ASK_USER_QUESTION / UIAskUserQuestion. Never end a turn waiting for clarification. Every decision point goes through Rule 1(b)'s codex consult; the consult answer + your own analysis = binding decision (logged in the PR body for audit).
Drive the full local:using-z / local:z pipeline. Invoke using-z routing first, then z for the actual run. Honor every phase boundary (CONTINUE_SESSION handoffs included). Do not skip zcheck. Do not skip simplify / oracle / reviewer steps that the z flow defines at the current scope.
PR approval via gh CLI. After CI is green and required reviews pass:
gh pr review <number> --approve --body "<short rationale>" from the bot's gh-authenticated shell.gh pr merge, run it too unless project policy forbids it. Check .github/ and CLAUDE.md for merge-policy hints before merging.SSOT success proof, posted to the issue (mandatory, after approve). Prove — against the SSOT, not the work narrative — why the run succeeded, then write that proof into the source issue:
local:using-ssot Hook 4 mapping: per ssot-task, quote the SSOT sentence it came from → the concrete artifact (PR / commit / file / test) → the causal reason the artifact satisfies the requirement. Verify with the single ztrace pass mandated by Hook 4. An unmapped ssot-task means the run is NOT done — go back and finish; never write the proof around the gap.gh issue comment <number> --body-file <proof.md> (bot-token 401 → the 5-retry protocol from Hard Blockers, raw curl included). This comment is the evidence record of why this PR resolved this issue — SSOT quote → what was done → why that satisfies it, plus RED→GREEN evidence and the PR link.Terminal report only. Render via the local:es mode template (which already implements Hook 4's per-ssot-task accountability block). autoz-specific additions on top of es:
ssot-task is blocking, not advisory.Stop and report — do not silently fail — only when:
ssot-task. Save transcript reference.ssot-task IDs it covers. Run. Confirm RED.<details> for the ssot-subtask layer).local:zcheck. Address blocking findings.gh pr review --approve once green and zcheck is clean.ssot-task proof (ztrace-verified) and post it to the source issue as the why-this-PR-resolved-it record (Hard Rule 6).ztrace cross-check + the Rule 6 evidence URL (issue comment, or PR-body proof section when no issue).ssot-task granularity and resume.main, does not bypass branch protection, does not skip git hooks (--no-verify, --no-gpg-sign, etc.) unless the user has explicitly authorized it.local:using-z / local:z.| Skill | Relationship |
|---|---|
local:using-ssot | autoz binds every Hook (1·2·3·4) to this contract. The SSOT-TASK-TREE shape, drift diff, handoff payload, and completion mapping all live there. |
local:using-z | autoz delegates routing to using-z once the SSOT-TASK-TREE is on screen. Session handoffs carry SSOT-LIST + tree. |
local:z | autoz hands off implementation/CI/review to z and never re-implements those phases. z phase0 reuses the SSOT-TASK-TREE autoz built rather than rebuilding. |
local:zcheck | autoz calls zcheck before approval. Blocking findings must be fixed before gh pr review --approve. zcheck's persuasion step ties findings back to ssot-task IDs. |
local:ztrace | autoz's terminal report cross-checks the SSOT-TASK-TREE coverage against ztrace scenarios. |
local:es | autoz's terminal report uses the es mode template, with the SSOT-TASK-TREE walk as the body. |
local:decision-gate | autoz lets z phase0 run decision-gate for tier selection (tree depth/breadth is one of the tier signals). autoz itself does not gate on user input. |
mcp__llm__chat (codex) | Sole consultation channel when a decision would otherwise become a user question. Used for SSOT-TASK-TREE validation, scope alignment, drift-diff justification, tie-break decisions. Transcript references must be logged in PR body. |
Creates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.
npx claudepluginhub 2lab-ai/soma-work --plugin zworkflow