"Use when the user asks for a change, a fix, an investigation of the codebase or a question about the project in plain words and names no stage skill. A question that one command or one file read answers needs no plan. Plans the request with `npx qfai workflow plan` and runs the plan's steps in order to its end."
Resources
1Install
npx skillscat add aganesy/qfai/qfai-run Install via the SkillsCat registry.
/qfai-run - Change request entry
[DRIFT-PROTOCOL:REQUIRED]
The CLI plans; this skill follows its steps in order.
- Read
references/extraction.mdto extract a request. - Plan command and format:
references/plan.md. - Screens and questions:
references/operator-screens.md. - Release, decision and branch points:
references/stage-points.md. - Run preflight before planning, as
.qfai/assistant/rule/shared-skill-operating-baseline.md#canonical-qfai-launcher-mandatorysays.
If the launcher is missing or preflight fails, readreferences/operator-screens.mdfor recovery.
What this skill never does
- Choose a route, which the CLI's decision rules take from the extraction, or
name one, a stage kind or an internal identifier to the user. - Put request text on a command line.
planreads only the extraction. - Add, drop or reorder a step the plan names, or run a stage outside the scope.
- Push, open a pull request, merge, deploy, migrate production or spend
money without the user's own instruction or a project policy naming it.
Mode
Read workflow.mode in qfai.config.yaml first. No key means active; any
value but the three below plans nothing.
| Mode | What this skill does |
|---|---|
active |
The work below |
shadow |
State what the request asks and why. Write nothing, and say that nothing was written |
off |
Plan nothing. The user invokes the stage skills by name |
Request kinds
- For independent targets under one goal, read
references/operator-screens.md
before planning or switching during a wait. - A change, a question, a proposal to decide or a report to close is planned.
A question plans a route that answers it and changes nothing. Text that is
not a request is not planned. - A reply with a requested answer or result resumes the same step without a new
invocation, including failure. An independent new request is planned. Readreferences/operator-screens.mdfor replies. stop: end the work at once and list every open decision as open.- A request naming a stage skill: invoke that skill by name.
The work
- Extract. Read the request into an extraction as
references/extraction.mdsets out, using its definition of acceptance.
Pass the extraction tonpx qfai workflow plan --in <file>, or--in -on standard input. - Candidates. When
planreturnscandidates, put one single-select
question, each option saying in the user's words what that route will do,
then runnpx qfai workflow plan --route <route>for the chosen one. - Scope. With two or more scopes, ask which to run as
references/operator-screens.mdsays, and run only its stages.
With one scope, no scopes, or a branch destination's plan, ask nothing and
run every stage. - Announce. Before the first stage, give the goal, the chosen stages in
order in plain words, and the files the work may change. Ask nothing. Then runcommon-policy-checkonce. On a route that changes no file, one that
closes, answers or asks, it reads and reports and writes nothing. - Run the stages. Run each stage in plan order, and each of its steps in
order, as.qfai/assistant/rule/shared-skill-operating-baseline.md#running-steps-mandatorysays.
When a step is short or passes without edits, readreferences/operator-screens.md.
Write artifacts yourself or delegate independent parallel work or review.
At each step, follow its plan's points inreferences/stage-points.md:- Release point. Ask the user to approve the release before the step
releasePointnames. - Decision point. Put each critical decision at a step
decisionPointsnames to the user. - Branch point. Move to the destination a step
branchPointsnames, and plan it at once.
- Release point. Ask the user to approve the release before the step
- Review. After a stage whose
reviewisspec,requirements-reviewer
reviews, witharchitecture-reviewerwhen a contract changed; after one
whosereviewiscode,implementation-reviewer.product-surface-reviewerjoins both where a UI contract with screens
serves the flow. No agent reviews its own work, and no step adds a review.
Each review returns PASS or REVISE, and each finding is fixed or answered
once, with no re-review. A step that would go beyond the request stops. - Approvals. Each approval of a specification change, a critical decision
or a release is onedecisions.mdrow: what was approved, who approved it,
when, and the chosen option's label. A decision you took appends no row. - A finding no stage serves. Stop, and name the finding, its owner and the stage skill to invoke by name.
- Commit.
verify-commitruns last, after any release point; never pushes.
Under a no-question mode
Nothing is asked. The plan's narrowest scope, or the first candidate and its narrowest scope, is taken and reported as an assumption.
An uncovered question-only move to tracked-file repair instead stops that target
with a report and no tracked open question, as references/stage-points.md says.
A critical decision or a release point becomes one open-questions.md row,
the step stops before the change that depends on it, and the report lists the
decision as open. A third branch move, or one from a scope that leaves stages out, stops the work.
User Questions (AskUserQuestion Protocol)
Follow .qfai/assistant/rule/shared-skill-operating-baseline.md#user-questions-askuserquestion-protocol.
Inputs Priority
- P1:
.qfai/assistant/rule/* - P2: the plan
npx qfai workflow planreturns - P3: the story tree under
<paths.specsDir>and the contracts under<paths.contractsDir> - P4: the user's request
Sub-agent Delegation (MANDATORY)
Follow .qfai/assistant/rule/shared-skill-delegation-baseline.md.
Work Orders Summary
When parts ran in parallel, use the summary in references/operator-screens.md.
Default Autopilot Policy
- auto-decide:
- output formatting
- equivalent-option pick
- ask-user:
- each critical decision at a decision point, and each release point
- the candidate question, the scope question, a third branch move, and any branch move from a narrower scope
- hard-required:
- change request (the user's own words; an empty request is asked for, never guessed)
Completion Contract (Shared)
Follow .qfai/assistant/rule/shared-skill-operating-baseline.md#completion-contract-shared. Smallest applicable smoke check (this skill's override): the gates of the verify-qfai-gate and verify-repo-gate steps the chosen scope holds; a scope holding none runs no gate, and the report says so. A gate that cannot run is UNRUN, not a pass.
project_memory:
- The user names no stage after the first request.
- The plan is fixed by its route; the session runs every step of the chosen scope.