qfai 1.7.13 → 1.7.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -8
- package/assets/init/.qfai/assistant/agents/frontend-engineer.md +2 -2
- package/assets/init/.qfai/assistant/agents/product-experience-architect.md +2 -2
- package/assets/init/.qfai/assistant/agents/product-surface-reviewer.md +1 -1
- package/assets/init/.qfai/assistant/instructions/agent-selection.md +2 -0
- package/assets/init/.qfai/assistant/instructions/shared-skill-delegation-baseline.md +88 -0
- package/assets/init/.qfai/assistant/instructions/shared-skill-operating-baseline.md +49 -0
- package/assets/init/.qfai/assistant/skills/qfai-atdd/SKILL.md +28 -88
- package/assets/init/.qfai/assistant/skills/qfai-configure/SKILL.md +50 -114
- package/assets/init/.qfai/assistant/skills/qfai-discussion/SKILL.md +137 -208
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/design-md-brand-catalog.md +90 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/discussion-completion-matrix.md +26 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/discussion-coverage-checklist.md +20 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/example-mapping-guide.md +18 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/oq-and-deferred-rules.md +41 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/review-cycle-playbook.md +22 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui-bearing-playbook.md +50 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui_ux/platform_baselines.md +107 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui_ux/review_audit_playbook.md +104 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui_ux/trend_scan_playbook.md +76 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/references/ui_ux_best_practices.md +143 -1005
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/01_Context.md +9 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/03_Story-Workshop.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/04_Sources.md +83 -32
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/14_Review-Request.md +7 -7
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/prototyping.yaml +12 -4
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/review/Rxx_reviewer.md +2 -2
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/review/review_request.md +2 -2
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/uiux/10_implementation_strategy.md +31 -13
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/uiux/12_design_system.md +115 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/uiux/21_design_eval_trend_derived.md +86 -24
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/uiux/23_design_eval_aggregate.md +12 -0
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/uiux/40_screen_contracts.md +1 -1
- package/assets/init/.qfai/assistant/skills/qfai-discussion/templates/uiux/50_review_input_bundle.md +2 -0
- package/assets/init/.qfai/assistant/skills/qfai-implement/SKILL.md +27 -27
- package/assets/init/.qfai/assistant/skills/qfai-prototyping/SKILL.md +145 -155
- package/assets/init/.qfai/assistant/skills/qfai-sdd/SKILL.md +118 -355
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/review-cycle-playbook.md +30 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/sdd-execution-playbook.md +29 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/sdd-phase-checklists.md +37 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/sdd-quality-gate.md +32 -0
- package/assets/init/.qfai/assistant/skills/qfai-sdd/references/spec-traceability-rules.md +33 -0
- package/assets/init/.qfai/assistant/skills/qfai-verify/SKILL.md +50 -115
- package/assets/init/.qfai/assistant/steering/agent-catalog.yml +1 -1
- package/assets/init/.qfai/assistant/steering/agent-routing.yml +20 -8
- package/assets/init/.qfai/assistant/steering/manifest.md +4 -7
- package/assets/init/.qfai/assistant/steering/product.md +6 -6
- package/assets/init/.qfai/assistant/steering/review-profiles.yml +3 -0
- package/assets/init/.qfai/assistant/steering/ui-definition-protocol.md +7 -7
- package/assets/init/.qfai/contracts/README.md +15 -8
- package/assets/init/.qfai/contracts/ui/README.md +24 -26
- package/assets/init/.qfai/discussion/README.md +35 -32
- package/assets/init/.qfai/evidence/README.md +65 -181
- package/assets/init/.qfai/evidence/calibration.yaml +26 -0
- package/assets/init/.qfai/review/README.md +56 -11
- package/assets/init/.qfai/specs/README.md +2 -2
- package/assets/init/root/qfai.config.yaml +5 -6
- package/assets/scripts/capture-screenshots.js +128 -0
- package/assets/uix-rev/comparison-review.md +3 -15
- package/assets/uix-rev/contracts-review.md +5 -2
- package/assets/uix-rev/scoring-review.md +10 -2
- package/assets/uix-rev/strategy-review.md +11 -7
- package/dist/cli/index.cjs +8532 -4204
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +8599 -4271
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.cjs +9808 -5532
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +467 -277
- package/dist/index.d.ts +467 -277
- package/dist/index.mjs +8909 -4647
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/assets/uix-rev/migration-review.md +0 -17
|
@@ -29,25 +29,22 @@ QFAI Skill Body (SSOT)
|
|
|
29
29
|
|
|
30
30
|
## User Questions (AskUserQuestion Protocol)
|
|
31
31
|
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
The agent SHOULD preserve structured choice semantics (enumerated options, selection constraints).
|
|
39
|
-
The reason for unavailability MUST be stated.
|
|
32
|
+
Follow `.qfai/assistant/instructions/shared-skill-operating-baseline.md#user-questions-askuserquestion-protocol`.
|
|
33
|
+
|
|
34
|
+
Skill-specific examples:
|
|
35
|
+
|
|
36
|
+
- configuration decisions
|
|
37
|
+
- glob pattern confirmation
|
|
40
38
|
|
|
41
39
|
## FORMAT SSOT (Mandatory)
|
|
42
40
|
|
|
43
|
-
-
|
|
41
|
+
- Follow `.qfai/assistant/instructions/shared-skill-operating-baseline.md#format-ssot-mandatory`.
|
|
42
|
+
|
|
43
|
+
- Before writing or editing any `.qfai/**` artifact, read and follow the relevant directory README template and sample:
|
|
44
44
|
- `.qfai/discussion/README.md`
|
|
45
45
|
- `.qfai/specs/README.md`
|
|
46
46
|
- `.qfai/contracts/**/README.md`
|
|
47
47
|
- `.qfai/evidence/README.md`
|
|
48
|
-
- **Do NOT copy** templates/samples into this prompt or into other prompt markdown.
|
|
49
|
-
- The generated artifacts must match the README-defined structure (headings, ordering, table columns).
|
|
50
|
-
- Completion requires a **Format Self-Check** in the evidence: list each artifact and confirm “matches README template”.
|
|
51
48
|
|
|
52
49
|
## Inputs Priority (Preflight)
|
|
53
50
|
|
|
@@ -60,36 +57,24 @@ When unsure, read inputs in this order:
|
|
|
60
57
|
|
|
61
58
|
## Sub-agent Delegation (MANDATORY)
|
|
62
59
|
|
|
63
|
-
|
|
60
|
+
Follow `.qfai/assistant/instructions/shared-skill-delegation-baseline.md`.
|
|
64
61
|
|
|
65
62
|
### Orchestrator Protocol (MUST)
|
|
66
63
|
|
|
67
|
-
-
|
|
68
|
-
- Orchestrator MUST NOT generate the primary artifact first draft.
|
|
69
|
-
- Orchestrator MUST NOT serve as Reviewer or skip delegation for convenience.
|
|
64
|
+
- No additional overrides.
|
|
70
65
|
|
|
71
66
|
### Capability Probe (MUST)
|
|
72
67
|
|
|
73
|
-
|
|
74
|
-
2. If subagents are unavailable, explicitly ask the user for Simulation mode approval.
|
|
75
|
-
3. Without explicit approval, stop the stage and do not continue.
|
|
68
|
+
- No additional overrides.
|
|
76
69
|
|
|
77
|
-
###
|
|
70
|
+
### Delegation Failure (Hard Stop)
|
|
78
71
|
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
- `Subagents: simulated (reason: <why unavailable>)`
|
|
82
|
-
- `User approval: <quote or reference>`
|
|
72
|
+
- No additional overrides.
|
|
73
|
+
- Do not simulate roles. If the first required delegation fails, stop the stage and report remediation.
|
|
83
74
|
|
|
84
75
|
### Work Orders Summary (MANDATORY evidence)
|
|
85
76
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
| Step | Role (sub-agent) | Task title | Input (refs) | Output (refs) | Status (PASS/REVISE) |
|
|
89
|
-
| ---- | ---------------- | ---------- | ------------ | ------------- | -------------------- |
|
|
90
|
-
| 1 | <role> | <task> | <refs> | <refs> | PASS/REVISE |
|
|
91
|
-
|
|
92
|
-
- `Output (refs)` must point to in-file anchors or relative evidence file paths.
|
|
77
|
+
Use the shared schema.
|
|
93
78
|
|
|
94
79
|
### Stage Minimum Roles (MUST)
|
|
95
80
|
|
|
@@ -100,80 +85,37 @@ Every major artifact in this stage MUST include a `## Work Orders Summary` secti
|
|
|
100
85
|
|
|
101
86
|
### Reviewer Gate (MUST)
|
|
102
87
|
|
|
103
|
-
-
|
|
104
|
-
- Reviewer checks
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
- No upstream artifact edits were made without an explicit user-approved Change Request.
|
|
110
|
-
- If upstream changes exist, the correct owner skill was re-run after approval; downstream did not patch upstream directly.
|
|
111
|
-
- **Test-layer policy enforced**:
|
|
112
|
-
- E2E/API/Integration coverage aligns with `steering/test-layers.md` and the project’s plan.
|
|
113
|
-
- Do not use pyramid ratios as a gate; use floors/ratios only as signals. Coverage obligations are the gate.
|
|
88
|
+
- Follow `.qfai/assistant/instructions/shared-skill-delegation-baseline.md#reviewer-gate-baseline`.
|
|
89
|
+
- Reviewer checks:
|
|
90
|
+
- required roles were delegated;
|
|
91
|
+
- validate evidence exists: `qfai validate --fail-on error` completed with `error=0`;
|
|
92
|
+
- Drift Protocol enforced;
|
|
93
|
+
- test-layer policy enforced where applicable.
|
|
114
94
|
- Route specialist reviewers from `.qfai/assistant/steering/agent-routing.yml`.
|
|
115
95
|
- Default configure review set:
|
|
116
96
|
- `completion-reviewer`
|
|
117
97
|
- `qa-gatekeeper`
|
|
118
98
|
- Do not declare DONE or handoff until all routed blocking reviewers return `PASS`.
|
|
119
|
-
- Every reviewer MUST provide a concrete alternative or fix proposal when returning FAIL.
|
|
120
99
|
|
|
121
100
|
### Work order template (copy/paste)
|
|
122
101
|
|
|
123
|
-
|
|
124
|
-
Task title: <short>
|
|
125
|
-
Role: <sub-agent role>
|
|
126
|
-
Goal: <what to decide/produce>
|
|
127
|
-
Inputs (refs):
|
|
128
|
-
- <file/section>
|
|
129
|
-
Constraints:
|
|
130
|
-
- must: enforce Drift Protocol (no upstream edits without user approval + CR)
|
|
131
|
-
- must: verify plan/test-layer adherence (`steering/test-layers.md` + plan)
|
|
132
|
-
- must: check `qfai validate --fail-on error` passes with evidence (`error=0`)
|
|
133
|
-
- must: enforce `.qfai/assistant/steering/test-layers.md` hard gates
|
|
134
|
-
- must_not: accept test-volume ratios/floors as a hard gate
|
|
135
|
-
- must_not: accept upstream edits made directly by downstream phase
|
|
136
|
-
Output format:
|
|
137
|
-
- <headings / bullet schema>
|
|
138
|
-
Quality bar:
|
|
139
|
-
- PASS if ...
|
|
140
|
-
- REVISE if ...
|
|
141
|
-
```
|
|
102
|
+
Use the shared template.
|
|
142
103
|
|
|
143
104
|
### Reviewer response template
|
|
144
105
|
|
|
145
|
-
|
|
146
|
-
Result: PASS | REVISE
|
|
147
|
-
Findings:
|
|
148
|
-
- <issue>
|
|
149
|
-
Required fixes:
|
|
150
|
-
- <action>
|
|
151
|
-
Evidence checked:
|
|
152
|
-
- <refs>
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
## Stage 0 — Steering completion refresh (mandatory)
|
|
106
|
+
Use the shared template.
|
|
156
107
|
|
|
157
|
-
|
|
108
|
+
- Required field: `Status (PASS/REVISE)`.
|
|
158
109
|
|
|
159
|
-
|
|
160
|
-
- `.qfai/assistant/steering/product.md`
|
|
161
|
-
- `.qfai/assistant/steering/structure.md`
|
|
162
|
-
- `.qfai/assistant/steering/tech.md`
|
|
110
|
+
## Stage 0 — Steering completion refresh (mandatory)
|
|
163
111
|
|
|
164
|
-
|
|
112
|
+
Follow `.qfai/assistant/instructions/shared-skill-operating-baseline.md#stage-0---steering-completion-refresh-mandatory`.
|
|
165
113
|
|
|
166
|
-
-
|
|
167
|
-
- Fill what is verifiable from repository evidence (tree, docs, require/spec artifacts, package.json, CI definitions).
|
|
168
|
-
- If something cannot be verified, record it as an Open Question and ask the user.
|
|
169
|
-
- Even if steering is already complete, update it when new facts are discovered in this stage.
|
|
114
|
+
- Fill steering from verifiable repository evidence first; when evidence is missing, mark the field `TBD` and record the gap in the evidence file.
|
|
170
115
|
|
|
171
116
|
## Delta Rejected Guard (Mandatory)
|
|
172
117
|
|
|
173
|
-
-
|
|
174
|
-
- If a rejected option must be reconsidered, create a **[RE-OPEN]** Decision
|
|
175
|
-
Record in 09_delta.md that references the prior DR-ID, states what changed +
|
|
176
|
-
new criteria, and includes explicit approval (user or instructions/steering).
|
|
118
|
+
Follow `.qfai/assistant/instructions/shared-skill-operating-baseline.md#delta-rejected-guard-mandatory`.
|
|
177
119
|
|
|
178
120
|
## CRITICAL CONSTRAINTS (Read First)
|
|
179
121
|
|
|
@@ -187,19 +129,7 @@ Rules:
|
|
|
187
129
|
|
|
188
130
|
## Completion Contract (Shared)
|
|
189
131
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
- OQ / undefined resolution: detect undefined or ambiguous items; resolve them or explicitly defer them with documented rationale and (when required by this prompt) user approval.
|
|
193
|
-
- Deliverable completeness: verify every expected artifact listed in this prompt (and required README templates) exists and is fully populated; no missing required sections.
|
|
194
|
-
- OQ / placeholder scan: scan all generated artifacts (including evidence) for
|
|
195
|
-
placeholders such as "TBD", "TODO", "TBA", "TBC", "XXX", "???", "OQ",
|
|
196
|
-
"OPEN QUESTION", "UNDEFINED", "PLACEHOLDER", and localized equivalents in
|
|
197
|
-
the user's language. Resolve or explicitly defer; do not leave silent
|
|
198
|
-
placeholders.
|
|
199
|
-
- Smoke check (if applicable): when the prompt produces runnable code, tests,
|
|
200
|
-
or configs, execute the smallest command that proves basic run/start/operate
|
|
201
|
-
and record evidence. If not applicable, state "not applicable" with a short
|
|
202
|
-
rationale.
|
|
132
|
+
Follow `.qfai/assistant/instructions/shared-skill-operating-baseline.md#completion-contract-shared`.
|
|
203
133
|
|
|
204
134
|
## Goal
|
|
205
135
|
|
|
@@ -327,29 +257,35 @@ Do not edit any `.qfai/**/README.md` file; raise an Open Question instead.
|
|
|
327
257
|
|
|
328
258
|
## Multi-Role Orchestration (Subagents)
|
|
329
259
|
|
|
330
|
-
|
|
260
|
+
Use the platform's native sub-agent delegation mechanism for Claude Code, GitHub Copilot, and Codex.
|
|
331
261
|
|
|
332
|
-
###
|
|
262
|
+
### Delegation order
|
|
333
263
|
|
|
334
|
-
|
|
264
|
+
Use `.qfai/assistant/steering/agent-routing.yml` as the routing SSOT.
|
|
335
265
|
|
|
336
|
-
-
|
|
266
|
+
- First required delegation / Capability Probe: `delivery-planner` in the `analysis` phase.
|
|
267
|
+
- Then follow routed phases in order: `analysis` (`delivery-planner`, `qa-strategist`) -> `config` (`devops-ci-engineer`) -> `review` (`completion-reviewer`, `qa-gatekeeper`).
|
|
268
|
+
- Do not prepend non-routed roles before the first required delegation attempt.
|
|
337
269
|
|
|
338
|
-
|
|
270
|
+
### Delegation contract (tool-neutral)
|
|
339
271
|
|
|
340
272
|
```text
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
273
|
+
Role: delivery-planner
|
|
274
|
+
Task title: Analyze repo and propose testFileGlobs
|
|
275
|
+
Goal: Tune qfai.config.yaml with a minimal diff
|
|
276
|
+
Inputs:
|
|
277
|
+
- relevant steering and repo layout
|
|
278
|
+
Constraints:
|
|
279
|
+
- minimal diff
|
|
280
|
+
- evidence-first
|
|
281
|
+
Return:
|
|
282
|
+
- proposed globs + rationale + evidence refs
|
|
346
283
|
```
|
|
347
284
|
|
|
348
|
-
###
|
|
349
|
-
|
|
350
|
-
Only with explicit user approval (`Simulation mode allowed`), simulate roles by running the same sequence yourself:
|
|
285
|
+
### Failure rule
|
|
351
286
|
|
|
352
|
-
-
|
|
287
|
+
- The first required delegation attempt doubles as the capability check.
|
|
288
|
+
- If that delegation fails, stop immediately. Do not simulate roles or continue with self-execution.
|
|
353
289
|
|
|
354
290
|
## Completion Separation (mandatory)
|
|
355
291
|
|