qfai 1.2.6 → 1.2.12
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 +8 -2
- package/assets/init/.qfai/README.md +84 -44
- package/assets/init/.qfai/assistant/agents/option-explorer.md +45 -0
- package/assets/init/.qfai/assistant/agents/option-reviewer.md +41 -0
- package/assets/init/.qfai/assistant/agents/oq-harvester.md +44 -0
- package/assets/init/.qfai/assistant/agents/oq-reviewer.md +45 -0
- package/assets/init/.qfai/assistant/agents/researcher.md +42 -0
- package/assets/init/.qfai/assistant/agents/ui-ux-reviewer.md +46 -0
- package/assets/init/.qfai/assistant/instructions/agent-selection.md +6 -0
- package/assets/init/.qfai/assistant/prompts/qfai-atdd.md +20 -0
- package/assets/init/.qfai/assistant/prompts/qfai-configure.md +20 -0
- package/assets/init/.qfai/assistant/prompts/qfai-discuss.md +91 -12
- package/assets/init/.qfai/assistant/prompts/qfai-prototyping.md +201 -0
- package/assets/init/.qfai/assistant/prompts/qfai-require.md +85 -5
- package/assets/init/.qfai/assistant/prompts/qfai-spec.md +131 -46
- package/assets/init/.qfai/assistant/prompts/qfai-tdd-green.md +46 -4
- package/assets/init/.qfai/assistant/prompts/qfai-tdd-red.md +20 -0
- package/assets/init/.qfai/assistant/prompts/qfai-tdd-refactor.md +20 -0
- package/assets/init/.qfai/assistant/prompts/qfai-verify.md +20 -0
- package/assets/init/.qfai/assistant/prompts.local/README.md +7 -16
- package/assets/init/.qfai/contracts/README.md +31 -24
- package/assets/init/.qfai/contracts/api/README.md +50 -11
- package/assets/init/.qfai/contracts/db/README.md +16 -13
- package/assets/init/.qfai/contracts/ui/README.md +19 -14
- package/assets/init/.qfai/evidence/README.md +50 -14
- package/assets/init/.qfai/require/README.md +109 -10
- package/assets/init/.qfai/specs/README.md +372 -51
- package/assets/init/root/.claude/agents/option-explorer.md +17 -0
- package/assets/init/root/.claude/agents/option-reviewer.md +17 -0
- package/assets/init/root/.claude/agents/oq-harvester.md +17 -0
- package/assets/init/root/.claude/agents/oq-reviewer.md +17 -0
- package/assets/init/root/.claude/agents/ui-ux-reviewer.md +17 -0
- package/assets/init/root/.claude/commands/qfai-prototyping.md +14 -0
- package/assets/init/root/.codex/skills/qfai-prototyping/SKILL.md +18 -0
- package/assets/init/root/.github/agents/option-explorer.agent.md +17 -0
- package/assets/init/root/.github/agents/option-reviewer.agent.md +17 -0
- package/assets/init/root/.github/agents/oq-harvester.agent.md +17 -0
- package/assets/init/root/.github/agents/oq-reviewer.agent.md +17 -0
- package/assets/init/root/.github/agents/ui-ux-reviewer.agent.md +17 -0
- package/assets/init/root/.github/prompts/qfai-prototyping.prompt.md +17 -0
- package/dist/cli/index.cjs +2 -2
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +2 -2
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,10 +58,11 @@ The agent reads QFAI assets under `.qfai/assistant/` and produces or updates SDD
|
|
|
58
58
|
QFAI includes a small set of custom prompts (stored under `.qfai/assistant/prompts/`) designed to keep the workflow opinionated and repeatable.
|
|
59
59
|
|
|
60
60
|
- **qfai-configure**: Analyze the repository (language, frameworks, test layout, directory structure) and update steering (`product.md`, `tech.md`, `structure.md`, `manifest.md`) plus `qfai.config.yaml` with a minimal diff (especially `testFileGlobs`, and optionally `validation.require.specSections` when you want strict headings). Run this once right after `npx qfai init`, and re-run it when the repository structure changes or when you want to enforce required spec headings. Output: updated steering + YAML + validation checklist.
|
|
61
|
-
- **qfai-discuss**: Turn an idea into clear requirements
|
|
61
|
+
- **qfai-discuss**: Turn an idea into clear requirements via pre-knowledge research, a full question draft, and one-question-at-a-time discussion of scope, constraints, risks, and open questions.
|
|
62
62
|
- **qfai-require**: Produce `require.md` in the requirements directory from your idea or discussion output.
|
|
63
63
|
- **qfai-spec**: Produce `.qfai/specs/*` and `.qfai/contracts/*` from the requirements, including traceability scaffolding.
|
|
64
64
|
- Includes a preflight step that bootstraps missing `qfai.config.yaml` and `assistant/steering/*` when run directly after init.
|
|
65
|
+
- **qfai-prototyping**: Implement a minimal runnable skeleton (UI + API + DB) from contracts before test automation. Run after `/qfai-spec` to ensure the app is runnable with `pnpm dev` (or equivalent) before writing tests.
|
|
65
66
|
- **qfai-atdd**: Implement acceptance tests (E2E/API/Integration) and drive Scenario Coverage to 100% using a Coverage Ledger.
|
|
66
67
|
- **qfai-tdd-red**: Implement fast tests first (unit/component) and drive Unit/Component Scenario Coverage to 100% using a Coverage Ledger.
|
|
67
68
|
- **qfai-tdd-green**: Implement production code to make the tests pass.
|
|
@@ -104,6 +105,11 @@ AG->>Q: Read .qfai/assistant/prompts/qfai-spec.md
|
|
|
104
105
|
AG->>R: Create specs + contracts + scenario.feature
|
|
105
106
|
AG-->>U: SDD artifacts ready
|
|
106
107
|
|
|
108
|
+
U->>AG: Run /qfai-prototyping
|
|
109
|
+
AG->>Q: Read .qfai/assistant/prompts/qfai-prototyping.md
|
|
110
|
+
AG->>R: Implement minimal runnable skeleton (UI + API + DB)
|
|
111
|
+
AG-->>U: Runnable prototype ready (dev server starts)
|
|
112
|
+
|
|
107
113
|
U->>AG: Run /qfai-atdd
|
|
108
114
|
AG->>Q: Read .qfai/assistant/prompts/qfai-atdd.md
|
|
109
115
|
AG->>R: Implement acceptance tests
|
|
@@ -136,7 +142,7 @@ Operational notes.
|
|
|
136
142
|
|
|
137
143
|
- Each custom prompt must output in the user’s language (absolute requirement).
|
|
138
144
|
- Except `qfai-discuss`, each prompt must analyze the project context (architecture, tech stack, test framework, repo structure) before generating artifacts or code.
|
|
139
|
-
- Prompts should delegate work to multiple role-based sub-agents (Planner, Architect, Contract Designer, QA, Code Reviewer, etc.) to emulate a real delivery flow.
|
|
145
|
+
- Prompts should delegate work to multiple role-based sub-agents (Researcher, Planner, Architect, Contract Designer, QA, Code Reviewer, etc.) to emulate a real delivery flow.
|
|
140
146
|
- /qfai-atdd and /qfai-tdd-red must maintain a Coverage Ledger and do not declare completion until missing=0 (exceptions documented).
|
|
141
147
|
|
|
142
148
|
## Configuration
|
|
@@ -1,60 +1,100 @@
|
|
|
1
|
-
# .qfai
|
|
1
|
+
# .qfai (QFAI Workspace)
|
|
2
2
|
|
|
3
3
|
## Purpose
|
|
4
4
|
|
|
5
|
-
`.qfai
|
|
5
|
+
`.qfai/` is the **single workspace** for QFAI artifacts so that requirements, contracts, spec packs, and automation stay aligned and traceable.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
This folder is generated by `qfai init`. It is designed to be:
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
- Spec packs (spec.md, delta.md, scenario.feature)
|
|
13
|
-
- Evidence files (prompt completion records)
|
|
14
|
-
- Generated reports (validate/report/doctor outputs)
|
|
9
|
+
- **predictable** (stable file layout),
|
|
10
|
+
- **reviewable** (human-readable Markdown/YAML/SQL),
|
|
11
|
+
- **machine-checkable** (validators enforce minimal structural rules).
|
|
15
12
|
|
|
16
|
-
##
|
|
13
|
+
## Recommended QFAI sequence (project)
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
-
|
|
15
|
+
```mermaid
|
|
16
|
+
flowchart TD
|
|
17
|
+
A[/qfai-discuss/] --> B[/qfai-require/]
|
|
18
|
+
B --> C[/qfai-spec/]
|
|
19
|
+
C --> D[/qfai-prototyping/]
|
|
20
|
+
D --> E[/qfai-atdd/]
|
|
21
|
+
E --> F[/qfai-tdd-red/]
|
|
22
|
+
F --> G[/qfai-tdd-green/]
|
|
23
|
+
G --> H[/qfai-tdd-refactor/]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
> Formatting MUST follow the templates in each directory README.
|
|
27
|
+
> Do not invent per-file formats.
|
|
21
28
|
|
|
22
|
-
##
|
|
29
|
+
## Directory map
|
|
23
30
|
|
|
24
31
|
```text
|
|
25
32
|
.qfai/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
├── README.md
|
|
34
|
+
├── assistant/
|
|
35
|
+
│ ├── prompts/ # canonical prompts (SSOT)
|
|
36
|
+
│ ├── prompts.local/ # minimal overrides (project-specific)
|
|
37
|
+
│ ├── agents/ # sub-agent missions / guardrails
|
|
38
|
+
│ ├── steering/ # project steering (inputs for prompts)
|
|
39
|
+
│ └── instructions/ # tool/integration instructions
|
|
40
|
+
├── require/
|
|
41
|
+
│ ├── README.md
|
|
42
|
+
│ └── require.md # single requirements document
|
|
43
|
+
├── contracts/
|
|
44
|
+
│ ├── README.md
|
|
45
|
+
│ ├── api/README.md # OpenAPI YAML style guide
|
|
46
|
+
│ ├── db/README.md # SQL contracts style guide
|
|
47
|
+
│ └── ui/README.md # UI contract YAML style guide
|
|
48
|
+
├── specs/
|
|
49
|
+
│ ├── README.md
|
|
50
|
+
│ └── spec-0001/
|
|
51
|
+
│ ├── spec.md
|
|
52
|
+
│ ├── delta.md
|
|
53
|
+
│ ├── scenario.feature
|
|
54
|
+
│ ├── case-catalogue.md
|
|
55
|
+
│ └── traceability-matrix.md
|
|
56
|
+
└── evidence/
|
|
57
|
+
├── README.md
|
|
58
|
+
└── <prompt>-<run>.md # completion evidence (gitignored by default)
|
|
48
59
|
```
|
|
49
60
|
|
|
50
|
-
##
|
|
61
|
+
## Rules (global)
|
|
62
|
+
|
|
63
|
+
### R1. README-as-SSOT for formatting
|
|
64
|
+
|
|
65
|
+
Each directory `README.md` defines:
|
|
66
|
+
|
|
67
|
+
- required files,
|
|
68
|
+
- canonical **template**,
|
|
69
|
+
- realistic **sample**,
|
|
70
|
+
- quality checklist,
|
|
71
|
+
- anti-patterns.
|
|
72
|
+
|
|
73
|
+
All custom prompts must:
|
|
74
|
+
|
|
75
|
+
1. read the relevant directory README(s),
|
|
76
|
+
2. generate artifacts matching their templates,
|
|
77
|
+
3. run a self-check before declaring completion.
|
|
78
|
+
|
|
79
|
+
### R2. Evidence is not versioned by default
|
|
80
|
+
|
|
81
|
+
Evidence under `.qfai/evidence/` is **gitignored by default** (see repository `.gitignore` and/or project `.git/info/exclude`).
|
|
82
|
+
|
|
83
|
+
- Evidence is still useful locally and in PR review (attach or paste snippets), but it should not pollute version control.
|
|
84
|
+
|
|
85
|
+
### R3. Keep artifacts atomic
|
|
86
|
+
|
|
87
|
+
- Prefer many small, stable identifiers (REQ/BR/AC/CASE/SC) over long paragraphs that hide multiple rules.
|
|
88
|
+
- If a statement contains multiple independent “must” clauses, split it.
|
|
89
|
+
|
|
90
|
+
### R4. Do not put templates in prompts
|
|
51
91
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
- Always run the repo's gates before declaring completion.
|
|
92
|
+
Templates/samples MUST live only in `.qfai/**/README.md`.
|
|
93
|
+
Prompts only **reference** them to avoid double maintenance.
|
|
55
94
|
|
|
56
|
-
##
|
|
95
|
+
## Where to look next
|
|
57
96
|
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
97
|
+
- Requirements format: `require/README.md`
|
|
98
|
+
- Contracts format: `contracts/README.md` and sub-READMEs
|
|
99
|
+
- Spec pack format: `specs/README.md`
|
|
100
|
+
- Evidence rules: `evidence/README.md`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Option Explorer
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
- Produce multiple solution options with trade-offs and a recommendation for delta.md.
|
|
6
|
+
|
|
7
|
+
## Inputs you must read
|
|
8
|
+
|
|
9
|
+
- .qfai/assistant/instructions/\*
|
|
10
|
+
- .qfai/assistant/steering/\*
|
|
11
|
+
- .qfai/require/require.md (if present)
|
|
12
|
+
- .qfai/specs/spec-\*/spec.md
|
|
13
|
+
- .qfai/specs/spec-\*/delta.md (draft)
|
|
14
|
+
- .qfai/contracts/\*\*
|
|
15
|
+
- Existing discussion records under `.qfai/discussions/`
|
|
16
|
+
|
|
17
|
+
## Deliverables (MANDATORY)
|
|
18
|
+
|
|
19
|
+
- Options table (A/B/C) with pros/cons/trade-offs
|
|
20
|
+
- Selection criteria with priorities (P0/P1) + rationale
|
|
21
|
+
- Recommended option with reasoning
|
|
22
|
+
- Contract impact mapping (QFAI-CONTRACT-REF)
|
|
23
|
+
- Evidence summary for `.qfai/evidence/` (gitignored; do not commit)
|
|
24
|
+
|
|
25
|
+
## Stop conditions (Blockers)
|
|
26
|
+
|
|
27
|
+
- Spec/contract scope is missing or inconsistent
|
|
28
|
+
- Options cannot be compared safely due to missing requirements
|
|
29
|
+
- Evidence is missing or incomplete
|
|
30
|
+
|
|
31
|
+
## Sign-off checklist (Check Last)
|
|
32
|
+
|
|
33
|
+
- [ ] Deliverables are complete
|
|
34
|
+
- [ ] Criteria and trade-offs are explicit
|
|
35
|
+
- [ ] Recommendation is justified
|
|
36
|
+
- [ ] Contract impacts are mapped
|
|
37
|
+
|
|
38
|
+
## Output format (structured)
|
|
39
|
+
|
|
40
|
+
- Findings
|
|
41
|
+
- Options table
|
|
42
|
+
- Selection criteria + recommendation
|
|
43
|
+
- Contract trace
|
|
44
|
+
- Risks / Open Questions
|
|
45
|
+
- Confidence (High/Medium/Low + reason)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Option Reviewer
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
- Review option set for bias, missing alternatives, and unsafe deferrals.
|
|
6
|
+
|
|
7
|
+
## Inputs you must read
|
|
8
|
+
|
|
9
|
+
- Option Explorer output (options table + criteria)
|
|
10
|
+
- .qfai/specs/spec-\*/spec.md
|
|
11
|
+
- .qfai/specs/spec-\*/delta.md (draft)
|
|
12
|
+
- .qfai/contracts/\*\*
|
|
13
|
+
- Evidence summaries under `.qfai/evidence/` (gitignored)
|
|
14
|
+
|
|
15
|
+
## Deliverables (MANDATORY)
|
|
16
|
+
|
|
17
|
+
- Review decision: Approve / Needs changes
|
|
18
|
+
- Gaps or bias findings with concrete fixes
|
|
19
|
+
- Risk notes for rejected/deferred options
|
|
20
|
+
- Evidence check summary (presence and gaps)
|
|
21
|
+
|
|
22
|
+
## Stop conditions (Blockers)
|
|
23
|
+
|
|
24
|
+
- Option set lacks minimum alternatives (2-3)
|
|
25
|
+
- Criteria are missing or not prioritized
|
|
26
|
+
- Evidence is missing or incomplete
|
|
27
|
+
|
|
28
|
+
## Sign-off checklist (Check Last)
|
|
29
|
+
|
|
30
|
+
- [ ] Deliverables are complete
|
|
31
|
+
- [ ] Bias/gaps are explicitly called out
|
|
32
|
+
- [ ] Required changes are actionable
|
|
33
|
+
|
|
34
|
+
## Output format (structured)
|
|
35
|
+
|
|
36
|
+
- Decision (Approve / Needs changes)
|
|
37
|
+
- Findings
|
|
38
|
+
- Required changes
|
|
39
|
+
- Evidence summary
|
|
40
|
+
- Open Questions / Risks
|
|
41
|
+
- Confidence (High/Medium/Low + reason)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# OQ Harvester
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
- Identify undefined or ambiguous decisions and draft actionable questions.
|
|
6
|
+
|
|
7
|
+
## Inputs you must read
|
|
8
|
+
|
|
9
|
+
- .qfai/assistant/instructions/\*
|
|
10
|
+
- .qfai/assistant/steering/\*
|
|
11
|
+
- .qfai/require/require.md (if present)
|
|
12
|
+
- .qfai/require/open-questions.md (if present)
|
|
13
|
+
- .qfai/specs/spec-\*/spec.md
|
|
14
|
+
- .qfai/specs/spec-\*/delta.md
|
|
15
|
+
- .qfai/contracts/\*\*
|
|
16
|
+
- Existing discussion records under `.qfai/discussions/`
|
|
17
|
+
|
|
18
|
+
## Deliverables (MANDATORY)
|
|
19
|
+
|
|
20
|
+
- OQ candidate list with ID, category, question, recommended options, impact, and priority
|
|
21
|
+
- Proposed status (Open/Answered/Deferred) and next step
|
|
22
|
+
- Evidence summary for `.qfai/evidence/` (gitignored; do not commit)
|
|
23
|
+
|
|
24
|
+
## Stop conditions (Blockers)
|
|
25
|
+
|
|
26
|
+
- Draft artifacts are missing or inconsistent
|
|
27
|
+
- Conflicting requirements block safe questioning
|
|
28
|
+
- Evidence is missing or incomplete
|
|
29
|
+
|
|
30
|
+
## Sign-off checklist (Check Last)
|
|
31
|
+
|
|
32
|
+
- [ ] Deliverables are complete
|
|
33
|
+
- [ ] Evidence is present (gitignored)
|
|
34
|
+
- [ ] No silent gaps remain
|
|
35
|
+
- [ ] Candidate list is deduplicated and prioritized
|
|
36
|
+
|
|
37
|
+
## Output format (structured)
|
|
38
|
+
|
|
39
|
+
- Findings
|
|
40
|
+
- OQ candidate list
|
|
41
|
+
- Risks / impacts
|
|
42
|
+
- Evidence summary
|
|
43
|
+
- Open Questions / Risks
|
|
44
|
+
- Confidence (High/Medium/Low + reason)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# OQ Reviewer
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
- Review OQ candidates for completeness, neutrality, and safe deferral.
|
|
6
|
+
|
|
7
|
+
## Inputs you must read
|
|
8
|
+
|
|
9
|
+
- .qfai/assistant/instructions/\*
|
|
10
|
+
- .qfai/assistant/steering/\*
|
|
11
|
+
- OQ candidate list from OQ Harvester
|
|
12
|
+
- .qfai/require/require.md (if present)
|
|
13
|
+
- .qfai/require/open-questions.md (if present)
|
|
14
|
+
- .qfai/specs/spec-\*/spec.md
|
|
15
|
+
- .qfai/specs/spec-\*/delta.md
|
|
16
|
+
- .qfai/contracts/\*\*
|
|
17
|
+
|
|
18
|
+
## Deliverables (MANDATORY)
|
|
19
|
+
|
|
20
|
+
- Review notes (missing OQs, duplicates, overly leading questions)
|
|
21
|
+
- Deferral risk assessment and recommendations
|
|
22
|
+
- Evidence summary for `.qfai/evidence/` (gitignored; do not commit)
|
|
23
|
+
|
|
24
|
+
## Stop conditions (Blockers)
|
|
25
|
+
|
|
26
|
+
- OQ list lacks critical domains (security, data, error handling, UX)
|
|
27
|
+
- Deferral would cause correctness risk without user approval
|
|
28
|
+
- Evidence is missing or incomplete
|
|
29
|
+
|
|
30
|
+
## Sign-off checklist (Check Last)
|
|
31
|
+
|
|
32
|
+
- [ ] Deliverables are complete
|
|
33
|
+
- [ ] Evidence is present (gitignored)
|
|
34
|
+
- [ ] No silent gaps remain
|
|
35
|
+
- [ ] Recommendations include rationale
|
|
36
|
+
|
|
37
|
+
## Output format (structured)
|
|
38
|
+
|
|
39
|
+
- Findings
|
|
40
|
+
- Review notes
|
|
41
|
+
- Deferral risk assessment
|
|
42
|
+
- Proposed edits
|
|
43
|
+
- Evidence summary
|
|
44
|
+
- Open Questions / Risks
|
|
45
|
+
- Confidence (High/Medium/Low + reason)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Researcher
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
- Collect pre-knowledge from English sources to inform discussion and question design.
|
|
6
|
+
|
|
7
|
+
## Inputs you must read
|
|
8
|
+
|
|
9
|
+
- .qfai/assistant/instructions/\*
|
|
10
|
+
- .qfai/assistant/steering/\*
|
|
11
|
+
- User-provided idea/problem statement
|
|
12
|
+
- Existing discussion records under `.qfai/discussions/`
|
|
13
|
+
|
|
14
|
+
## Deliverables (MANDATORY)
|
|
15
|
+
|
|
16
|
+
- Research memo (English sources summarized in the user's language)
|
|
17
|
+
- Glossary of key terms
|
|
18
|
+
- Risk/constraint notes and candidate question angles
|
|
19
|
+
- Evidence summary for `.qfai/evidence/` (gitignored; do not commit)
|
|
20
|
+
|
|
21
|
+
## Stop conditions (Blockers)
|
|
22
|
+
|
|
23
|
+
- External research is not possible and the impact is unclear
|
|
24
|
+
- Domain risk/compliance uncertainty blocks safe guidance
|
|
25
|
+
- Evidence is missing or incomplete
|
|
26
|
+
|
|
27
|
+
## Sign-off checklist (Check Last)
|
|
28
|
+
|
|
29
|
+
- [ ] Deliverables are complete
|
|
30
|
+
- [ ] Evidence is present (gitignored)
|
|
31
|
+
- [ ] No silent gaps remain
|
|
32
|
+
- [ ] Question angles map to Required Coverage
|
|
33
|
+
|
|
34
|
+
## Output format (structured)
|
|
35
|
+
|
|
36
|
+
- Research summary
|
|
37
|
+
- Glossary
|
|
38
|
+
- Risk/constraint notes
|
|
39
|
+
- Question angles
|
|
40
|
+
- Evidence summary
|
|
41
|
+
- Open Questions / Risks
|
|
42
|
+
- Confidence (High/Medium/Low + reason)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# UI/UX Reviewer
|
|
2
|
+
|
|
3
|
+
## Mission
|
|
4
|
+
|
|
5
|
+
- Validate UI layout sanity and interaction usability against guardrails.
|
|
6
|
+
|
|
7
|
+
## Inputs you must read
|
|
8
|
+
|
|
9
|
+
- UI contract files under `.qfai/contracts/ui/`
|
|
10
|
+
- Runtime evidence logs/screenshots (if any)
|
|
11
|
+
- Relevant implementation diffs (UI components, styles)
|
|
12
|
+
- .qfai/specs/spec-\*/spec.md (UI expectations)
|
|
13
|
+
|
|
14
|
+
## Deliverables (MANDATORY)
|
|
15
|
+
|
|
16
|
+
- Layout sanity check result (pass/fail + notes)
|
|
17
|
+
- Findings and required changes (actionable)
|
|
18
|
+
- Evidence check summary (presence and gaps)
|
|
19
|
+
|
|
20
|
+
## Guardrail checklist (minimum)
|
|
21
|
+
|
|
22
|
+
- Primary buttons are NOT full-width by default (block variant only when needed)
|
|
23
|
+
- Header rows keep title + primary action on one line
|
|
24
|
+
- Search rows keep input width (flex-grow) and buttons fixed (shrink-0)
|
|
25
|
+
- Tailwind/@apply uses `@layer components`; base button classes avoid width
|
|
26
|
+
- Empty/error states are readable
|
|
27
|
+
|
|
28
|
+
## Stop conditions (Blockers)
|
|
29
|
+
|
|
30
|
+
- UI cannot be run or verified
|
|
31
|
+
- Evidence is missing or incomplete
|
|
32
|
+
|
|
33
|
+
## Sign-off checklist (Check Last)
|
|
34
|
+
|
|
35
|
+
- [ ] Deliverables are complete
|
|
36
|
+
- [ ] Guardrail checklist is evaluated
|
|
37
|
+
- [ ] Required changes are explicit
|
|
38
|
+
|
|
39
|
+
## Output format (structured)
|
|
40
|
+
|
|
41
|
+
- Decision (Pass / Needs changes)
|
|
42
|
+
- Findings
|
|
43
|
+
- Required changes
|
|
44
|
+
- Evidence summary
|
|
45
|
+
- Open Questions / Risks
|
|
46
|
+
- Confidence (High/Medium/Low + reason)
|
|
@@ -12,6 +12,11 @@ Delegate work to specialized roles to reduce blind spots and improve quality.
|
|
|
12
12
|
|
|
13
13
|
## Default delegation map
|
|
14
14
|
|
|
15
|
+
- **Researcher**: collect pre-knowledge (English sources), glossary, risks, and question angles
|
|
16
|
+
- **OQ Harvester**: extract undefined/ambiguous decisions and draft question candidates
|
|
17
|
+
- **OQ Reviewer**: review OQ candidates for completeness, neutrality, and safe deferral
|
|
18
|
+
- **Option Explorer**: propose multiple solution options + trade-offs + recommendation for delta.md
|
|
19
|
+
- **Option Reviewer**: review options for bias, missing alternatives, and unsafe deferrals
|
|
15
20
|
- **Requirements Analyst**: clarify intent, scope, acceptance criteria, open questions
|
|
16
21
|
- **Planner**: plan phases, risks, gating, rollback strategy
|
|
17
22
|
- **Architect**: design, boundaries, compatibility considerations
|
|
@@ -19,6 +24,7 @@ Delegate work to specialized roles to reduce blind spots and improve quality.
|
|
|
19
24
|
- **QA Engineer**: risk-based checks, regression scope, quality gate review
|
|
20
25
|
- **Test Engineer**: scenario.feature and test scaffolding strategy
|
|
21
26
|
- **Front-end / Back-end Engineer**: implementation within repo conventions
|
|
27
|
+
- **UI/UX Reviewer**: layout sanity, interaction usability, and UI guardrail checks
|
|
22
28
|
- **DevOps/CI Engineer**: verify-pack/CI impacts
|
|
23
29
|
- **Code Reviewer**: style, maintainability, correctness
|
|
24
30
|
|
|
@@ -18,6 +18,17 @@ mode: execution-focused
|
|
|
18
18
|
|
|
19
19
|
# /qfai-atdd — Implement Automated Acceptance Tests (ATDD)
|
|
20
20
|
|
|
21
|
+
## FORMAT SSOT (Mandatory)
|
|
22
|
+
|
|
23
|
+
- **Before writing or editing any `.qfai/**` artifact\*\*, read and follow the relevant directory README template and sample:
|
|
24
|
+
- `.qfai/require/README.md`
|
|
25
|
+
- `.qfai/specs/README.md`
|
|
26
|
+
- `.qfai/contracts/**/README.md`
|
|
27
|
+
- `.qfai/evidence/README.md`
|
|
28
|
+
- **Do NOT copy** templates/samples into this prompt or into other prompt markdown.
|
|
29
|
+
- The generated artifacts must match the README-defined structure (headings, ordering, table columns).
|
|
30
|
+
- Completion requires a **Format Self-Check** in the evidence: list each artifact and confirm “matches README template”.
|
|
31
|
+
|
|
21
32
|
## CRITICAL CONSTRAINTS (Read First)
|
|
22
33
|
|
|
23
34
|
- Do NOT declare completion based on unit/component tests.
|
|
@@ -29,6 +40,15 @@ mode: execution-focused
|
|
|
29
40
|
- You MUST stop and escalate if scenarios are left unimplemented without explicit exclusions.
|
|
30
41
|
- Completion must be approved by a reviewer who did not implement the tests.
|
|
31
42
|
|
|
43
|
+
## Completion Contract (Shared)
|
|
44
|
+
|
|
45
|
+
Before declaring completion, you MUST:
|
|
46
|
+
|
|
47
|
+
- 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.
|
|
48
|
+
- Deliverable completeness: verify every expected artifact listed in this prompt (and required README templates) exists and is fully populated; no missing required sections.
|
|
49
|
+
- OQ / placeholder scan: scan all generated artifacts (including evidence) for placeholders such as "TBD", "TODO", "TBA", "TBC", "XXX", "???", "OQ", "OPEN QUESTION", "UNDEFINED", "PLACEHOLDER", and localized equivalents in the user's language. Resolve or explicitly defer; do not leave silent placeholders.
|
|
50
|
+
- Smoke check (if applicable): when the prompt produces runnable code/tests/configs, execute the smallest command that proves basic run/start/operate and record evidence. If not applicable, state "not applicable" with a short rationale.
|
|
51
|
+
|
|
32
52
|
## Goal
|
|
33
53
|
|
|
34
54
|
Turn `.qfai/specs/spec-XXXX/scenario.feature` into runnable acceptance tests (E2E/API/Integration) in this repository (terminal + CI).
|
|
@@ -18,6 +18,17 @@ mode: evidence-focused
|
|
|
18
18
|
|
|
19
19
|
# /qfai-configure - Configure QFAI for this repository
|
|
20
20
|
|
|
21
|
+
## FORMAT SSOT (Mandatory)
|
|
22
|
+
|
|
23
|
+
- **Before writing or editing any `.qfai/**` artifact\*\*, read and follow the relevant directory README template and sample:
|
|
24
|
+
- `.qfai/require/README.md`
|
|
25
|
+
- `.qfai/specs/README.md`
|
|
26
|
+
- `.qfai/contracts/**/README.md`
|
|
27
|
+
- `.qfai/evidence/README.md`
|
|
28
|
+
- **Do NOT copy** templates/samples into this prompt or into other prompt markdown.
|
|
29
|
+
- The generated artifacts must match the README-defined structure (headings, ordering, table columns).
|
|
30
|
+
- Completion requires a **Format Self-Check** in the evidence: list each artifact and confirm “matches README template”.
|
|
31
|
+
|
|
21
32
|
## CRITICAL CONSTRAINTS (Read First)
|
|
22
33
|
|
|
23
34
|
- Only update `qfai.config.yaml`, `.qfai/assistant/steering/*`, and `.qfai/evidence/configure-<run-id>.md` unless explicitly asked.
|
|
@@ -28,6 +39,15 @@ mode: evidence-focused
|
|
|
28
39
|
- You MUST stop and escalate if tooling choices or runnable path remain ambiguous.
|
|
29
40
|
- Completion must be approved by a reviewer who did not modify the config.
|
|
30
41
|
|
|
42
|
+
## Completion Contract (Shared)
|
|
43
|
+
|
|
44
|
+
Before declaring completion, you MUST:
|
|
45
|
+
|
|
46
|
+
- 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.
|
|
47
|
+
- Deliverable completeness: verify every expected artifact listed in this prompt (and required README templates) exists and is fully populated; no missing required sections.
|
|
48
|
+
- OQ / placeholder scan: scan all generated artifacts (including evidence) for placeholders such as "TBD", "TODO", "TBA", "TBC", "XXX", "???", "OQ", "OPEN QUESTION", "UNDEFINED", "PLACEHOLDER", and localized equivalents in the user's language. Resolve or explicitly defer; do not leave silent placeholders.
|
|
49
|
+
- Smoke check (if applicable): when the prompt produces runnable code/tests/configs, execute the smallest command that proves basic run/start/operate and record evidence. If not applicable, state "not applicable" with a short rationale.
|
|
50
|
+
|
|
31
51
|
## Goal
|
|
32
52
|
|
|
33
53
|
Analyze the repository and update `qfai.config.yaml` so traceability checks are actionable, with a documented minimum runnable path.
|