.qfai/assistant/skills/qfai-configure/SKILL.md
Analyze the repository and tune qfai.config.yaml (testFileGlobs, exclude globs, optional specSections).
npx skillsauth add aganesy/qfai qfai-configureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
[DRIFT-PROTOCOL:MANDATORY]
.qfai/** artifact**, read and follow the relevant directory README template and sample:
.qfai/require/README.md.qfai/specs/README.md.qfai/contracts/**/README.md.qfai/evidence/README.mdWhen unsure, read inputs in this order:
.qfai/assistant/instructions/*.qfai/assistant/steering/*.qfai/specs/<spec-id>/09_delta.md (Decision Records; if no spec yet, state "not applicable")scenario.feature / coverage ledgers)This section is mandatory and overrides any conflicting fallback text in this file.
Simulation mode allowed.Subagents: simulated (reason: <why unavailable>)User approval: <quote or reference>Every major artifact in this stage MUST include a ## Work Orders Summary section with this fixed table schema:
| Step | Role (sub-agent) | Task title | Input (refs) | Output (refs) | Status (PASS/REVISE) | | ---- | ---------------- | ---------- | ------------ | ------------- | -------------------- | | 1 | <role> | <task> | <refs> | <refs> | PASS/REVISE |
Output (refs) must point to in-file anchors or relative evidence file paths.PASS or REVISE.completion-reviewer.qfai validate --fail-on error completed with error=0.steering/test-layers.md and the project’s plan..qfai/assistant/steering/agent-routing.yml.completion-reviewerqa-gatekeeperPASS.Task title: <short>
Role: <sub-agent role>
Goal: <what to decide/produce>
Inputs (refs):
- <file/section>
Constraints:
- must: enforce Drift Protocol (no upstream edits without user approval + CR)
- must: verify plan/test-layer adherence (`steering/test-layers.md` + plan)
- must: check `qfai validate --fail-on error` passes with evidence (`error=0`)
- must: enforce `.qfai/assistant/steering/test-layers.md` hard gates
- must_not: accept test-volume ratios/floors as a hard gate
- must_not: accept upstream edits made directly by downstream phase
Output format:
- <headings / bullet schema>
Quality bar:
- PASS if ...
- REVISE if ...
Result: PASS | REVISE
Findings:
- <issue>
Required fixes:
- <action>
Evidence checked:
- <refs>
Before moving forward in this stage, refresh these files:
.qfai/assistant/steering/manifest.md.qfai/assistant/steering/product.md.qfai/assistant/steering/structure.md.qfai/assistant/steering/tech.mdRules:
<...>, TBD, stale facts).qfai.config.yaml, .qfai/assistant/steering/*, and .qfai/evidence/configure-<run-id>.md unless explicitly asked..qfai/evidence/configure-<run-id>.md.
.qfai/evidence/ is intentionally NOT tracked by Git (it ships with a local .gitignore).Before declaring completion, you MUST:
Analyze the repository and update qfai.config.yaml so traceability checks are actionable, with a documented minimum runnable path.
Note: /qfai-sdd includes a preflight step that bootstraps missing config/steering when run directly after init.
/qfai-configure remains the recommended way to tune qfai.config.yaml early with a clean, minimal diff.
qfai.config.yaml is updated with a minimal diff focused on traceability globs.validation.traceability.testFileGlobs reflects the real test layout.validation.traceability.testFileExcludeGlobs is added only when needed.validation.require.specSections is updated with a minimal, evidence-based list.product.md, tech.md, structure.md, manifest.md) are filled or refreshed with evidence, or marked TBD when evidence is missing..qfai/evidence/configure-<run-id>.md.Create and update: .qfai/evidence/configure-<run-id>.md
Use <run-id> as a short date stamp (e.g., 2026-01-28) or a short slug for this run.
Evidence must include:
# Configure Evidence: <run-id>
## Objective
## Inputs reviewed (files/paths)
## Decisions made (with rationale)
## Work performed (what changed, where)
## Commands executed + key outputs
## Proposed globs
- include:
- exclude:
## Evidence samples (5-15)
## Tool selection (per layer)
## Minimum runnable path
## Files changed
- qfai.config.yaml:
- steering files:
## Gaps / Open risks
## Final status (PASS/FAIL) + who confirmed
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 edit any .qfai/**/README.md file; raise an Open Question instead.
All outputs MUST be written in the user's working language for this session.
This workflow assumes the environment may support subagents (e.g., Claude Code "Task" tool) or may not.
Delegate to multiple roles and then merge the results. Use a "real-world workflow" order:
Pseudo-invocation pattern (adjust to your tool):
Task(
subagent_type="planner",
description="Analyze repo and propose testFileGlobs",
prompt="Context: ...\nGoal: Tune qfai.config.yaml\nConstraints: minimal diff\nReturn: globs + evidence"
)
Only with explicit user approval (Simulation mode allowed), simulate roles by running the same sequence yourself:
devops-ci-engineer) and completion approval (completion-reviewer) must be separate.qa-gatekeeper must confirm evidence sampling before approval.Every 5 major actions, pause and restate:
qfai.config.yaml, .qfai/assistant/steering/*, and .qfai/evidence/configure-<run-id>.md unless explicitly asked.**/*).node_modules, .git, .qfai, dist, build, coverage, .next, out, etc.).validation.require.specSections unchanged unless the user explicitly requests strict required headings.Read relevant project steering (if present):
.qfai/assistant/steering/structure.md.qfai/assistant/steering/tech.md.qfai/assistant/steering/product.md.qfai/assistant/steering/Read project constitution / instructions (if present):
.qfai/assistant/instructions/constitution.md.qfai/assistant/instructions/workflow.md (or equivalent)Inspect repo conventions:
Inspect steering templates and placeholders:
.qfai/assistant/steering/product.md.qfai/assistant/steering/tech.md.qfai/assistant/steering/structure.md.qfai/assistant/steering/manifest.mdBefore editing config, thoroughly analyze the current project:
*.test.*, *.spec.*, *_test.*, etc.)If analysis cannot be performed (missing access), clearly state what could not be verified and proceed with minimal-risk assumptions.
package.json and config files (e.g., vitest.config.*, jest.config.*, playwright.config.*, pytest.ini, go.mod).tests/, src/, e2e/, integration/).01_Spec.md files and list H2 headings used.Provide 3-10 include globs that cover all known test locations:
src/**/*.test.ts, tests/**/*.spec.ts).Provide exclude globs only when necessary (beyond the default exclusions).
Fill steering templates with repo evidence.
TBD and record what is missing.steering/manifest.md, explicitly record Evidence and Assumptions (if evidence is missing).qfai.config.yaml (minimal diff)Edit:
validation.traceability.testFileGlobsvalidation.traceability.testFileExcludeGlobs (only if needed)validation.require.specSections (only if explicitly requested)Keep all other config keys unchanged.
Sample 5-15 actual test files that match the proposed globs.
TBD.TBD).qfai.config.yaml updated (minimal diff).Provide:
qfai.config.yaml (diff or full file, as appropriate).Suggest next step: /qfai-discussion (or rerun /qfai-configure if configuration is not ready).
When you declare DONE, include:
When this skill is complete, provide a final user-facing completion message and enumerate all actionable next steps.
/qfai-discussion.
Action: run it to formalize requirements from the configured project context./qfai-discussion.
Action: collect missing scope, constraints, and assumptions first./qfai-configure.
Action: provide additional include/exclude evidence and update qfai.config.yaml.testing
# /qfai-prototyping-full-harness [DRIFT-PROTOCOL:MANDATORY] Premium prototyping skill with planner/generator/evaluator iteration loop. Full-harness mode is an **explicit, non-default** path activated only via `qfai prototyping --mode full-harness` or discussion artifact recommendation. > This skill defines a real execution workflow — it is NOT a routing-only redirect. ## When to Use - Projects requiring L3–L5 fidelity evidence (production-ready prototypes). - Evaluation needs: weighted mult
testing
# /qfai-prototyping-full-harness [DRIFT-PROTOCOL:MANDATORY] Premium prototyping skill with planner/generator/evaluator iteration loop. Full-harness mode is an **explicit, non-default** path activated only via `qfai prototyping --mode full-harness` or discussion artifact recommendation. > This skill defines a real execution workflow — it is NOT a routing-only redirect. ## When to Use - Projects requiring L3–L5 fidelity evidence (production-ready prototypes). - Evaluation needs: weighted mult
testing
Run and document quality gates (repo + qfai validate/report), fix until PASS.
testing
Create and update layered SDD artifacts ( policies + spec-XXXX) in one workflow.