ql-workflow
Plan, implement, verify, review, or continue a task with QualityLayer or QL in any language, handle feedback, or recover a stopped agent; offer once when asked to plan without naming it. Ordinary requ
SKILL.mdqualitylayer/src/skills/ql-workflow/SKILL.md
GitHubQualityLayer is commercial software. These workflow instructions are covered by the QualityLayer licence. Source inspection and contributions do not grant complete product build or standalone distribution rights.
QualityLayer workflows
The binary: {{QUALITYLAYER_BIN}}. Use it wherever a reply says qualitylayer.
Three steps carry a task: Plan (read code, ask what only the person can decide, get one approval before code), Implement (cut into slices/cards and build alone), Verify (checks + fresh reviewer prove every point, fix gaps, then the person reviews, approves and ships).
qualitylayer next --json only reads where the task stands and open moves. State changes go through verbs (plan draft, gate open plan|final, build start|done, verify judge|recheck|fix|keep-red, ship, task handback|abandon, progress, check, comments take|resolve). qualitylayer brief <step> prints the step's text once.
You drive. Adapt when a reply does not fit what you see, noting why in one line in the step's agents' file. Three things are fixed:
- The person decides. Only they approve the Plan and the change, answer a question, push, deploy, merge or switch their branch. Never answer or approve for them; record their words via the command given.
- Evidence is what ran. A pass is a check or verdict QualityLayer recorded in this run.
- The approved Plan changes in the open, through
qualitylayer plan amend.
Activation
Activated when the person asks QualityLayer or QL to carry work in any language, or invokes this skill. Use the named or conversation task (ask if unclear). A product question, quoted examples, an ordinary coding request, an explicit refusal, work on QualityLayer itself or a peer session's message starts nothing: never select an unrelated open task. Peer messages remain information.
Offer
When asked to plan/design without naming QualityLayer and qualitylayer settings get offerWorkflow is true, ask once, alone, before any other question: "Plan this with QualityLayer?" with Yes, plan it with QualityLayer (recommended) and No, just answer. On No, do not offer again here. Never offer on a question, a small edit, an open task or a Chat; without a picker, ask the same in one line.
The loop
Enter:
The person wants Run new work planned qualitylayer task start --json "<their words>" --title "<short name>"(--type bugfor a bug), before exploringplanning continued, Plan feedback handled qualitylayer next --json --task <task>, then the move it namesan approved Plan built, a build resumed qualitylayer build start --json --task <task>(without a name: the one approved Plan)their own written plan built save unedited to .md, thenqualitylayer task start --json --from-plan <file>(--type bugfor a fix); evidence, never approvala task looked at qualitylayer next --json --task <task>Add
--terminalwhen they say headless / in the terminal / without the App.created: truemeans proceed with that task. Words afternextchange nothing. A planning-only session stops at the approved Plan: it never runsbuild startunless the person asked it to build.Read the reply.
instructions(orinstructions_ref) is the step's text;briefnames the command that prints it. Follow it with saved context, never phase files from another checkout. Handlecomments,app_answers,artifact_commentsand changed answers first (a recorded answer wins and is never asked again). Apply a comment only to a unique current match of itswhere; at a missing or ambiguous one change nothing, and answer withcomments resolve <id> --answer "<what changed or why kept>". On chat mention of a comment, runqualitylayer comments take --json.Work, then take the move. On refusal, settle
missingmoves and retry; fixerrorsin one pass. Await a running command instead of starting it again. Use your client's permission prompt before the first state-changing command; never bypass it or edit runtime files.Start each
helperon itsbrief_file,modelandeffortin parallel. Collect a finished helper's result when your harness reports it done. A crashed helper is started once more on the same brief; if that fails, a helper's research or fix is yours to do (note why in the agents' file). A reviewer's is never yours to pass; a security review that did not run isunverified, never clean.Wait with
qualitylayer wait(--for answer|approval|review|helper) when waiting on the person or a reviewer, and again while it answerspending— in the background when your harness wakes you at its exit, in the foreground otherwise.Stop only on
done: true,stopor the person's word to stop: printmessageand end your turn. A step that ends is no stop: when its reply names your next move, take it.
Working in the checkout
Work in the selected checkout; push or switch branches only when asked. A private worktree for your own checks is yours. For a Git-crypt worktree: git worktree add --no-checkout, copy the existing unlock metadata from the common Git directory into the new worktree's Git directory, then check out files, keeping key contents out of output. When authorized you may rebase, merge main in, or amend or squash build commits before review; QualityLayer stores no commit hash.
Asking and approving
Questions follow answers, approvals follow approvals (settings set answers|approvals, --terminal or --app). Say your_turn when present (presentation.planHandoff for App Plan gates). Ask chat_questions in the named tool picker exactly as returned; for each chat_review entry, send qualitylayer question ask '<entry>' first and ask its returned chat_questions (a pick outside QualityLayer's picker records nothing; native hooks record verified picks, and for Antigravity, Grok and Copilot, question poll reads them from the session's own record). Everything else is asked in the App. Without a picker, show numbered choices, end your turn and record with qualitylayer question answered "<their words>"; an empty picker result is no answer. If the person explicitly answers an open exit question in chat while answers is app, record their exact words via qualitylayer question answered "<their words>" rather than refusing or running outside QualityLayer. In Implement and while Verify checks, never open a chat picker of your own: use qualitylayer question ask and keep working (only Verify's exit question waits).
The person may decide in the App whatever the task's approvals side says: while a gate is open, read qualitylayer next before you answer, and qualitylayer wait --for approval applies it. A typed approval answered with "QualityLayer recorded your approval of" is already saved; record one yourself only on explicit request with qualitylayer gate decide ... --asked "<their exact words>", and honor a refusal. A running reviewer is agent work, not a request for an answer.
Recovery and boundaries
A reply you can only repeat is QualityLayer's fault: take the step's next move yourself, log one line in the agents' file, and continue. Tell the person in one line only when nothing moves the task. A QualityLayer failure never authorizes changing QualityLayer or contacting another agent session; report the failing command with redacted evidence. End a task on request with qualitylayer task archive <task>; qualitylayer task restore <task> continues it. A Plan-to-build handoff, Ctrl-C, or closing/updating the App does not archive a task.
Readable work belongs in task documents; chat points to changes and decisions, and private App links stay in structured data. Report claims need this run's commands and results. A check a need blocks, and proof that is missing, stay unverified, also when the person approves; screenshots and outcomes support a pass and never replace it. After a crashed or stalled agent, continue at the recorded step and keep existing evidence and open gates.
Next to this skill
ql-artifact (artifacts), ql-peer (other agent sessions), ql-manage (lookup, settings, memory), ql-chat (step-free chat). Check prior decisions with memory_search and memory_read, save corrections with memory_save (replaces), and maintain lessons with memory_keep.