一键导入
qfai-verify
Run and document quality gates (repo + qfai validate/report), fix until PASS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run and document quality gates (repo + qfai validate/report), fix until PASS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Triage incoming requirements against existing specs, then create or update layered SDD artifacts (_policies + spec-*) in one workflow.
Implement automated acceptance tests (E2E/API/Integration) aligned with US/TC/CON-API obligations from specs and contracts.
Analyze the repository and tune qfai.config.yaml (testFileGlobs, exclude globs, optional specSections).
Run structured discussion that defines exploration conditions, evaluation rubric, and anti-goals for downstream prototyping.
Unified implementation skill that orchestrates the full TDD micro-cycle (Red/Green/Refactor) one test at a time using test-list.md as the execution ledger.
Iterate one prototype through up to 10 cycles of generate-capture-review against a frozen DESIGN.md, focusing on information architecture, navigation flow, usability, and functionality.
| name | qfai-verify |
| title | QFAI Verify (Quality Gates + Evidence) |
| description | Run and document quality gates (repo + qfai validate/report), fix until PASS. |
| argument-hint | [--auto] |
| allowed-tools | ["Read","Glob","Bash","Write","TodoWrite","Task"] |
| roles | ["orchestrator","delivery-planner","qa-strategist","devops-ci-engineer","completion-reviewer","qa-gatekeeper","implementation-reviewer"] |
| routing-profile | runtime-heavy |
| mode | evidence-focused |
[DRIFT-PROTOCOL:MANDATORY]
Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#user-questions-askuserquestion-protocol.
Skill-specific examples:
Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#format-ssot-mandatory.
Before writing or editing any .qfai/** artifact, read the relevant skill-local reference or template:
.qfai/assistant/skills/qfai-discussion/references/discussion-artifact-rules.md.qfai/assistant/skills/qfai-sdd/references/spec-traceability-rules.md.qfai/assistant/skills/qfai-sdd/references/contract-artifact-rules.md.qfai/assistant/skills/qfai-prototyping/references/iteration-loop.mdWhen unsure, read inputs in this order:
.qfai/assistant/constitution/*.qfai/assistant/manifest/* + .qfai/assistant/catalog/*.qfai/specs/<spec-id>/09_delta.md (Decision Records; if no spec yet, state "not applicable")scenario.feature / coverage ledgers)/qfai-verify MUST always run full-scan verification.Follow .qfai/assistant/constitution/shared-skill-delegation-baseline.md.
Use the shared schema.
PASS or REVISE..qfai/assistant/constitution/shared-skill-delegation-baseline.md#reviewer-gate-baseline.qfai validate --profile verify --fail-on error completed with error=0;.qfai/evidence/prototyping/iter-NN/, and the recorded final iteration in .qfai/evidence/prototyping/prototyping.json#iterations[] has both screenshot and HTML on disk. The completion-certificate is NOT a verify-gate input — qfai prototyping certify runs AFTER /qfai-verify (it requires a passing verify.json). Cert digest validation belongs to certify --check, run during the prototyping handoff or after edits to brand assets, not here;test-layers.md..qfai/assistant/manifest/agent-routing.yml.qa-gatekeepercompletion-reviewerimplementation-reviewer only when code fixes are in scope.PASS.Use the shared template.
Use the shared template.
Status (PASS/REVISE).Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#stage-0---steering-completion-refresh-mandatory.
Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#delta-rejected-guard-mandatory.
.qfai/evidence/verify-<spec-id>.md.
.qfai/evidence/ is intentionally NOT tracked by Git (it ships with a local .gitignore).qfai validate --profile verify --fail-on error or default qfai validate --fail-on error). Do NOT use partial profiles.warning / info findings. If a waiver attempts to suppress an error, treat it as a failure and fix the root cause.Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#completion-contract-shared.
Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#gate-failure-autorepair-protocol for validate, doctor, and quality-gate failures.
Run quality gates and produce evidence that the change is correct and safe.
qfai validate --profile verify, and optionally qfai report)..qfai/assistant/constitution/change-classification.md..qfai/evidence/verify-<spec-id>.md..qfai/assistant/constitution/drift-protocol.md exists..qfai/assistant/catalog/test-layers.md exists..qfai/assistant/skills/*/SKILL.md include [DRIFT-PROTOCOL:MANDATORY].These principles are inspired by “constitution / articles” patterns used by other agent frameworks, but tailored to QFAI.
SDD First (Specification is the source of truth)
If there is a conflict between code and spec, treat the spec as authoritative and either (a) fix code or (b) raise an explicit Open Question to change the spec.
Traceability is mandatory
Every meaningful change must be traceable: Require → Spec → Scenario → Tests → Code → Verification evidence.
Evidence over confidence
Prefer observable proof (logs, commands, file diffs, test results). If you cannot verify, say so and record it.
Minimize scope, but never hide gaps
Keep changes minimal, but do not “paper over” missing decisions. If something blocks correctness, stop and ask.
Quality gates are the decision mechanism
Use tests/lint/typecheck/build/pack verification (whatever the repo defines) as the primary guardrail. Fix until PASS.
Make it runnable
Outputs must be executable in terminal/CI. Provide copy‑paste commands.
User time is expensive
Ask only the questions that are truly blocking. Everything else: make reasonable assumptions and label them clearly.
Do not create .qfai/**/README.md files as scaffold or format documentation; keep artifact guidance in skill references/templates.
All outputs MUST be written in the user’s working language for this session.
Use the platform's native sub-agent delegation mechanism for Claude Code, GitHub Copilot, and Codex.
Use .qfai/assistant/manifest/agent-routing.yml as the routing SSOT.
delivery-planner in the plan phase.plan (delivery-planner, qa-strategist) -> execution (devops-ci-engineer) -> review (qa-gatekeeper, completion-reviewer, optional implementation-reviewer when code fixes are in scope).Role: delivery-planner
Task title: Create an execution plan and DoD
Goal: sequence quality gates and evidence work
Inputs:
- current change context
- required gates
Constraints:
- evidence-first
- no self-approval
Return:
- phases + risks + DoD
devops-ci-engineer) and completion approval (completion-reviewer) must be separate.qa-gatekeeper must confirm gate coverage before approval.Every 5 major actions, pause and restate:
Read relevant project steering (if present):
.qfai/assistant/catalog/structure.md.qfai/assistant/catalog/tech.md.qfai/assistant/catalog/product.md.qfai/assistant/{manifest,catalog}/Read project constitution / instructions (if present):
.qfai/assistant/constitution/constitution.md.qfai/assistant/constitution/workflow.md (or equivalent)Read existing artifacts for the current work item (if present):
.qfai/specs/spec-*/.qfai/contracts/.qfai/evidence/Do not use discussion-pack artifacts as verification inputs. Verify reads normalized specs, contracts, and evidence only.
Before producing any deliverable, thoroughly analyze the current project (background/goals, directory structure, runtime/tooling versions, architecture boundaries, existing test/doc/CI patterns) so your outputs fit the repo.
.qfai/ layout and existing SDD/ATDD/TDD artifacts (if present)packages/qfai structure (CLI entrypoints, core modules, validators, assets/init)If analysis cannot be performed, clearly state what could not be verified and proceed with minimal-risk assumptions.
QFAI expects assistant/steering/ to contain project‑specific facts so all subsequent design/test/implementation fits this repository.
.qfai/assistant/catalog/product.md.qfai/assistant/catalog/tech.md.qfai/assistant/catalog/structure.md-
only), populate them by analyzing the current repository:TBD + what evidence is missing, orPrefer existing scripts:
If unknown, propose defaults and mark assumptions.
Run (adjust as needed):
qfai validate --profile verify --fail-on errorqfai report (if used in this repo)Notes:
QFAI-WAIVER-002 appears, remove the invalid waiver and resolve the underlying error finding.Capture:
Run the repo’s standard pipeline in a stable order:
If anything fails:
Output this format:
Change classification (SSOT: .qfai/assistant/constitution/change-classification.md):
QFAI:
Repo gates:
Notes:
Create and update: .qfai/evidence/verify-<spec-id>.md
Evidence must include:
# Verify Evidence: <spec-id>
## Objective
## Inputs reviewed (files/paths)
## Decisions made (with rationale)
## Work performed (what changed, where)
## Commands executed + key outputs
- command:
- result:
## QFAI gates
- command:
- result:
## Repo gates
- command:
- result:
## Next actions (if any)
## Gaps / Open risks
## Final status (PASS/FAIL) + who confirmed
All of the following must be verified and PASS:
QFAI validation:
qfai validate --profile verify --fail-on error
Repository standard gates (discover from package.json/CI/docs):
Record the exact commands and results.
If you cannot run these commands (environment limitation):
When you declare DONE, include:
When this skill is complete, provide a final user-facing completion message and enumerate all actionable next steps.
/qfai-verify.qfai report after validation outputs are up to date.The skill collapses avoidable per-session prompts to 0-1 by classifying every decision into one of three named buckets:
package.json#version, branch pin)companyNameprimarySpecId (when absent from inputs)A skill MAY narrow the auto-decide bucket (drop entries) but MUST NOT widen it. Widening triggers a Reviewer-Gate finding.
project_memory: