qfai 1.0.6 → 1.0.7

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.
Files changed (36) hide show
  1. package/README.md +274 -253
  2. package/assets/init/.qfai/assistant/prompts/README.md +1 -1
  3. package/assets/init/.qfai/assistant/prompts/qfai-configure.md +174 -0
  4. package/assets/init/root/.claude/commands/qfai-configure.md +14 -0
  5. package/assets/init/root/.claude/commands/qfai-discuss.md +14 -0
  6. package/assets/init/root/.claude/commands/qfai-implement.md +14 -0
  7. package/assets/init/root/.claude/commands/qfai-require.md +14 -0
  8. package/assets/init/root/.claude/commands/qfai-scenario-test.md +14 -0
  9. package/assets/init/root/.claude/commands/qfai-spec.md +14 -0
  10. package/assets/init/root/.claude/commands/qfai-unit-test.md +14 -0
  11. package/assets/init/root/.claude/commands/qfai-verify.md +14 -0
  12. package/assets/init/root/.codex/README.md +16 -0
  13. package/assets/init/root/.codex/skills/qfai-configure/SKILL.md +18 -0
  14. package/assets/init/root/.codex/skills/qfai-discuss/SKILL.md +18 -0
  15. package/assets/init/root/.codex/skills/qfai-implement/SKILL.md +18 -0
  16. package/assets/init/root/.codex/skills/qfai-require/SKILL.md +18 -0
  17. package/assets/init/root/.codex/skills/qfai-scenario-test/SKILL.md +18 -0
  18. package/assets/init/root/.codex/skills/qfai-spec/SKILL.md +18 -0
  19. package/assets/init/root/.codex/skills/qfai-unit-test/SKILL.md +18 -0
  20. package/assets/init/root/.codex/skills/qfai-verify/SKILL.md +18 -0
  21. package/assets/init/root/.github/copilot-instructions.md +14 -0
  22. package/assets/init/root/.github/prompts/qfai-configure.prompt.md +17 -0
  23. package/assets/init/root/.github/prompts/qfai-discuss.prompt.md +17 -0
  24. package/assets/init/root/.github/prompts/qfai-implement.prompt.md +17 -0
  25. package/assets/init/root/.github/prompts/qfai-require.prompt.md +17 -0
  26. package/assets/init/root/.github/prompts/qfai-scenario-test.prompt.md +17 -0
  27. package/assets/init/root/.github/prompts/qfai-spec.prompt.md +17 -0
  28. package/assets/init/root/.github/prompts/qfai-unit-test.prompt.md +17 -0
  29. package/assets/init/root/.github/prompts/qfai-verify.prompt.md +17 -0
  30. package/dist/cli/index.cjs +10 -4
  31. package/dist/cli/index.cjs.map +1 -1
  32. package/dist/cli/index.mjs +10 -4
  33. package/dist/cli/index.mjs.map +1 -1
  34. package/dist/index.cjs +2 -2
  35. package/dist/index.mjs +2 -2
  36. package/package.json +1 -1
@@ -0,0 +1,174 @@
1
+ <!--
2
+ QFAI Prompt Body (SSOT)
3
+ - This file is intended to be referenced by tool-specific custom prompt definitions (e.g., Copilot .prompt.md, Claude Code slash commands).
4
+ - Keep tool-specific wrappers thin: "Read this file and follow it."
5
+ -->
6
+
7
+ ---
8
+
9
+ id: qfai-configure
10
+ title: QFAI Configure (Tune qfai.config.yaml)
11
+ description: "Analyze the repository and tune qfai.config.yaml (testFileGlobs, exclude globs)."
12
+ argument-hint: "[--auto]"
13
+ allowed-tools: [Read, Glob, Write, TodoWrite, Task]
14
+ roles: [DevOpsCIEngineer, QAEngineer, CodeReviewer, Planner]
15
+ mode: evidence-focused
16
+
17
+ ---
18
+
19
+ # /qfai-configure - Configure QFAI for this repository
20
+
21
+ ## Purpose
22
+
23
+ Analyze the repository and update `qfai.config.yaml` so QFAI traceability checks (especially SC->Test) are actionable without manual tuning.
24
+
25
+ ## Success Criteria (Definition of Done)
26
+
27
+ - `qfai.config.yaml` is updated with a **minimal diff** focused on traceability globs.
28
+ - `validation.traceability.testFileGlobs` reflects the real test layout.
29
+ - `validation.traceability.testFileExcludeGlobs` is added only when needed.
30
+ - A validation checklist with evidence (sample matched files) is produced.
31
+
32
+ ## Non-Negotiable Principles (QFAI Articles)
33
+
34
+ These principles are inspired by "constitution / articles" patterns used by other agent frameworks, but tailored to QFAI.
35
+
36
+ 1. **SDD First (Specification is the source of truth)**
37
+ 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.
38
+
39
+ 2. **Traceability is mandatory**
40
+ Every meaningful change must be traceable: **Require -> Spec -> Scenario -> Tests -> Code -> Verification evidence**.
41
+
42
+ 3. **Evidence over confidence**
43
+ Prefer observable proof (logs, commands, file diffs, test results). If you cannot verify, say so and record it.
44
+
45
+ 4. **Minimize scope, but never hide gaps**
46
+ Keep changes minimal, but do not "paper over" missing decisions. If something blocks correctness, stop and ask.
47
+
48
+ 5. **Quality gates are the decision mechanism**
49
+ Use tests/lint/typecheck/build/pack verification (whatever the repo defines) as the primary guardrail. Fix until PASS.
50
+
51
+ 6. **Make it runnable**
52
+ Outputs must be executable in terminal/CI. Provide copy-paste commands.
53
+
54
+ 7. **User time is expensive**
55
+ Ask only the questions that are truly blocking. Everything else: make reasonable assumptions and label them clearly.
56
+
57
+ ## Absolute Rule - Output Language
58
+
59
+ **All outputs MUST be written in the user's working language for this session.**
60
+
61
+ - If the user writes in Japanese, output Japanese.
62
+ - If the user writes in English, output English.
63
+ - If the user mixes languages, prefer the dominant language unless explicitly instructed otherwise.
64
+ This rule overrides all other stylistic preferences.
65
+
66
+ ## Multi-Role Orchestration (Subagents)
67
+
68
+ This workflow assumes the environment _may_ support subagents (e.g., Claude Code "Task" tool) or may not.
69
+
70
+ ### If subagents are supported
71
+
72
+ Delegate to multiple roles and then merge the results. Use a "real-world workflow" order:
73
+
74
+ - Facilitator -> Interviewer -> Requirements Analyst -> Planner -> Architect -> (Contract Designer) -> Test Engineer -> QA Engineer -> Code Reviewer -> DevOps/CI Engineer
75
+
76
+ **Pseudo-invocation pattern** (adjust to your tool):
77
+
78
+ ```text
79
+ Task(
80
+ subagent_type="planner",
81
+ description="Analyze repo and propose testFileGlobs",
82
+ prompt="Context: ...\nGoal: Tune qfai.config.yaml\nConstraints: minimal diff\nReturn: globs + evidence"
83
+ )
84
+ ```
85
+
86
+ ### If subagents are NOT supported
87
+
88
+ Simulate roles by running the same sequence yourself:
89
+
90
+ - Write a short "role output" section per role, then consolidate into the final deliverable(s).
91
+
92
+ ## Constraints
93
+
94
+ - Only update `qfai.config.yaml` unless explicitly asked.
95
+ - Do **not** modify tests or source code.
96
+ - Avoid overly broad globs (e.g., `**/*`).
97
+ - Exclude generated/output directories (`node_modules`, `.git`, `.qfai`, `dist`, `build`, `coverage`, `.next`, `out`, etc.).
98
+
99
+ ## Step 0 - Load Context (always)
100
+
101
+ 1. Read relevant **project steering** (if present):
102
+ - `.qfai/assistant/steering/structure.md`
103
+ - `.qfai/assistant/steering/tech.md`
104
+ - `.qfai/assistant/steering/product.md`
105
+ - any additional files under `.qfai/assistant/steering/`
106
+
107
+ 2. Read **project constitution / instructions** (if present):
108
+ - `.qfai/assistant/instructions/constitution.md`
109
+ - `.qfai/assistant/instructions/workflow.md` (or equivalent)
110
+
111
+ 3. Inspect repo conventions:
112
+ - package manager (pnpm/npm/yarn), test runner, lint/typecheck scripts, CI definitions
113
+ - existing test patterns (unit/integration/e2e)
114
+
115
+ ## Step 0 - Project Analysis (mandatory)
116
+
117
+ Before editing config, **thoroughly analyze the current project**:
118
+
119
+ - background and goals
120
+ - directory structure and conventions
121
+ - chosen technologies and versions (runtime, package manager, test runner)
122
+ - test locations (unit/integration/e2e)
123
+ - existing test naming rules (`*.test.*`, `*.spec.*`, `*_test.*`, etc.)
124
+
125
+ If analysis cannot be performed (missing access), clearly state what could not be verified and proceed with minimal-risk assumptions.
126
+
127
+ ## Step 1 - Identify test frameworks and locations
128
+
129
+ 1. Inspect `package.json` and config files (e.g., `vitest.config.*`, `jest.config.*`, `playwright.config.*`, `pytest.ini`, `go.mod`).
130
+ 2. Enumerate directories that contain tests (e.g., `tests/`, `src/`, `e2e/`, `integration/`).
131
+ 3. Note naming rules and extensions that indicate test files.
132
+
133
+ ## Step 2 - Propose glob patterns
134
+
135
+ Provide 3-10 **include globs** that cover all known test locations:
136
+
137
+ - Prefer explicit patterns (e.g., `src/**/*.test.ts`, `tests/**/*.spec.ts`).
138
+ - Include src-colocated tests if they exist.
139
+
140
+ Provide **exclude globs** only when necessary (beyond the default exclusions).
141
+
142
+ ## Step 3 - Update `qfai.config.yaml` (minimal diff)
143
+
144
+ Edit:
145
+
146
+ - `validation.traceability.testFileGlobs`
147
+ - `validation.traceability.testFileExcludeGlobs` (only if needed)
148
+
149
+ Keep all other config keys unchanged.
150
+
151
+ ## Step 4 - Evidence sampling
152
+
153
+ Sample 5-15 actual test files that match the proposed globs.
154
+
155
+ - If zero matches exist, stop and ask for clarification.
156
+ - If some directories are ambiguous, list them as Open Questions.
157
+
158
+ ## Checkpoints
159
+
160
+ - [ ] Repository analysis completed (frameworks, test layout, naming rules).
161
+ - [ ] Proposed include/exclude globs with rationale.
162
+ - [ ] `qfai.config.yaml` updated (minimal diff).
163
+ - [ ] Evidence: sample matched files listed.
164
+
165
+ ## Output
166
+
167
+ Provide:
168
+
169
+ 1. Updated `qfai.config.yaml` (diff or full file, as appropriate).
170
+ 2. A short summary of changes and rationale.
171
+ 3. Validation checklist with sampled files.
172
+ 4. Open questions (blocking vs non-blocking).
173
+
174
+ Suggest next step: `/qfai-require` (or `/qfai-discuss` if requirements are not ready).
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: "QFAI: Configure qfai.config.yaml based on the repository"
3
+ argument-hint: "[optional notes]"
4
+ ---
5
+
6
+ Follow the canonical QFAI prompt exactly:
7
+ @.qfai/assistant/prompts/qfai-configure.md
8
+
9
+ Follow the DoD/Checkpoints in the prompt.
10
+ Use the repository as the source of truth.
11
+
12
+ Additional user notes: $ARGUMENTS
13
+
14
+ Critical: output must match the user's language.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: "QFAI: Discuss an idea and clarify requirements"
3
+ argument-hint: "[optional notes]"
4
+ ---
5
+
6
+ Follow the canonical QFAI prompt exactly:
7
+ @.qfai/assistant/prompts/qfai-discuss.md
8
+
9
+ Follow the DoD/Checkpoints in the prompt.
10
+ Use the repository as the source of truth.
11
+
12
+ Additional user notes: $ARGUMENTS
13
+
14
+ Critical: output must match the user's language.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: "QFAI: Implement code changes with tests"
3
+ argument-hint: "[optional notes]"
4
+ ---
5
+
6
+ Follow the canonical QFAI prompt exactly:
7
+ @.qfai/assistant/prompts/qfai-implement.md
8
+
9
+ Follow the DoD/Checkpoints in the prompt.
10
+ Use the repository as the source of truth.
11
+
12
+ Additional user notes: $ARGUMENTS
13
+
14
+ Critical: output must match the user's language.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: "QFAI: Create requirements artifacts"
3
+ argument-hint: "[optional notes]"
4
+ ---
5
+
6
+ Follow the canonical QFAI prompt exactly:
7
+ @.qfai/assistant/prompts/qfai-require.md
8
+
9
+ Follow the DoD/Checkpoints in the prompt.
10
+ Use the repository as the source of truth.
11
+
12
+ Additional user notes: $ARGUMENTS
13
+
14
+ Critical: output must match the user's language.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: "QFAI: Implement acceptance tests from scenarios"
3
+ argument-hint: "[optional notes]"
4
+ ---
5
+
6
+ Follow the canonical QFAI prompt exactly:
7
+ @.qfai/assistant/prompts/qfai-scenario-test.md
8
+
9
+ Follow the DoD/Checkpoints in the prompt.
10
+ Use the repository as the source of truth.
11
+
12
+ Additional user notes: $ARGUMENTS
13
+
14
+ Critical: output must match the user's language.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: "QFAI: Create specs, contracts, and scenarios"
3
+ argument-hint: "[optional notes]"
4
+ ---
5
+
6
+ Follow the canonical QFAI prompt exactly:
7
+ @.qfai/assistant/prompts/qfai-spec.md
8
+
9
+ Follow the DoD/Checkpoints in the prompt.
10
+ Use the repository as the source of truth.
11
+
12
+ Additional user notes: $ARGUMENTS
13
+
14
+ Critical: output must match the user's language.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: "QFAI: Implement unit tests from specs/scenarios"
3
+ argument-hint: "[optional notes]"
4
+ ---
5
+
6
+ Follow the canonical QFAI prompt exactly:
7
+ @.qfai/assistant/prompts/qfai-unit-test.md
8
+
9
+ Follow the DoD/Checkpoints in the prompt.
10
+ Use the repository as the source of truth.
11
+
12
+ Additional user notes: $ARGUMENTS
13
+
14
+ Critical: output must match the user's language.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: "QFAI: Run quality gates and produce evidence"
3
+ argument-hint: "[optional notes]"
4
+ ---
5
+
6
+ Follow the canonical QFAI prompt exactly:
7
+ @.qfai/assistant/prompts/qfai-verify.md
8
+
9
+ Follow the DoD/Checkpoints in the prompt.
10
+ Use the repository as the source of truth.
11
+
12
+ Additional user notes: $ARGUMENTS
13
+
14
+ Critical: output must match the user's language.
@@ -0,0 +1,16 @@
1
+ # QFAI Codex skills
2
+
3
+ This directory provides thin Codex skill wrappers for QFAI prompts.
4
+
5
+ ## Canonical prompts
6
+
7
+ The source of truth is always the prompt body under:
8
+
9
+ - .qfai/assistant/prompts/
10
+
11
+ If there is any mismatch, the canonical `.qfai` prompt wins.
12
+
13
+ ## Usage
14
+
15
+ In Codex CLI, select a skill by name (e.g., `qfai-configure`) and provide your request.
16
+ All outputs must match the user's language.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: qfai-configure
3
+ description: QFAI: Configure qfai.config.yaml based on the repository
4
+ ---
5
+
6
+ This skill is a thin wrapper that forwards to the canonical QFAI prompt in this repository:
7
+
8
+ - .qfai/assistant/prompts/qfai-configure.md
9
+
10
+ How to invoke (Codex CLI):
11
+
12
+ - Select the `qfai-configure` skill, or reference it by name and provide your request.
13
+
14
+ Instructions:
15
+
16
+ 1. Read the prompt above and follow it precisely.
17
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
18
+ 3. Ensure all outputs match the user's language.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: qfai-discuss
3
+ description: QFAI: Discuss an idea and clarify requirements
4
+ ---
5
+
6
+ This skill is a thin wrapper that forwards to the canonical QFAI prompt in this repository:
7
+
8
+ - .qfai/assistant/prompts/qfai-discuss.md
9
+
10
+ How to invoke (Codex CLI):
11
+
12
+ - Select the `qfai-discuss` skill, or reference it by name and provide your request.
13
+
14
+ Instructions:
15
+
16
+ 1. Read the prompt above and follow it precisely.
17
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
18
+ 3. Ensure all outputs match the user's language.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: qfai-implement
3
+ description: QFAI: Implement code changes with tests
4
+ ---
5
+
6
+ This skill is a thin wrapper that forwards to the canonical QFAI prompt in this repository:
7
+
8
+ - .qfai/assistant/prompts/qfai-implement.md
9
+
10
+ How to invoke (Codex CLI):
11
+
12
+ - Select the `qfai-implement` skill, or reference it by name and provide your request.
13
+
14
+ Instructions:
15
+
16
+ 1. Read the prompt above and follow it precisely.
17
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
18
+ 3. Ensure all outputs match the user's language.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: qfai-require
3
+ description: QFAI: Create requirements artifacts
4
+ ---
5
+
6
+ This skill is a thin wrapper that forwards to the canonical QFAI prompt in this repository:
7
+
8
+ - .qfai/assistant/prompts/qfai-require.md
9
+
10
+ How to invoke (Codex CLI):
11
+
12
+ - Select the `qfai-require` skill, or reference it by name and provide your request.
13
+
14
+ Instructions:
15
+
16
+ 1. Read the prompt above and follow it precisely.
17
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
18
+ 3. Ensure all outputs match the user's language.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: qfai-scenario-test
3
+ description: QFAI: Implement acceptance tests from scenarios
4
+ ---
5
+
6
+ This skill is a thin wrapper that forwards to the canonical QFAI prompt in this repository:
7
+
8
+ - .qfai/assistant/prompts/qfai-scenario-test.md
9
+
10
+ How to invoke (Codex CLI):
11
+
12
+ - Select the `qfai-scenario-test` skill, or reference it by name and provide your request.
13
+
14
+ Instructions:
15
+
16
+ 1. Read the prompt above and follow it precisely.
17
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
18
+ 3. Ensure all outputs match the user's language.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: qfai-spec
3
+ description: QFAI: Create specs, contracts, and scenarios
4
+ ---
5
+
6
+ This skill is a thin wrapper that forwards to the canonical QFAI prompt in this repository:
7
+
8
+ - .qfai/assistant/prompts/qfai-spec.md
9
+
10
+ How to invoke (Codex CLI):
11
+
12
+ - Select the `qfai-spec` skill, or reference it by name and provide your request.
13
+
14
+ Instructions:
15
+
16
+ 1. Read the prompt above and follow it precisely.
17
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
18
+ 3. Ensure all outputs match the user's language.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: qfai-unit-test
3
+ description: QFAI: Implement unit tests from specs/scenarios
4
+ ---
5
+
6
+ This skill is a thin wrapper that forwards to the canonical QFAI prompt in this repository:
7
+
8
+ - .qfai/assistant/prompts/qfai-unit-test.md
9
+
10
+ How to invoke (Codex CLI):
11
+
12
+ - Select the `qfai-unit-test` skill, or reference it by name and provide your request.
13
+
14
+ Instructions:
15
+
16
+ 1. Read the prompt above and follow it precisely.
17
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
18
+ 3. Ensure all outputs match the user's language.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: qfai-verify
3
+ description: QFAI: Run quality gates and produce evidence
4
+ ---
5
+
6
+ This skill is a thin wrapper that forwards to the canonical QFAI prompt in this repository:
7
+
8
+ - .qfai/assistant/prompts/qfai-verify.md
9
+
10
+ How to invoke (Codex CLI):
11
+
12
+ - Select the `qfai-verify` skill, or reference it by name and provide your request.
13
+
14
+ Instructions:
15
+
16
+ 1. Read the prompt above and follow it precisely.
17
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
18
+ 3. Ensure all outputs match the user's language.
@@ -0,0 +1,14 @@
1
+ # QFAI repository instructions (Copilot)
2
+
3
+ This repository uses QFAI (Quality-First AI) to improve the quality and consistency of AI-assisted development.
4
+
5
+ ## Golden rules
6
+
7
+ - Always match the user’s language in your outputs.
8
+ - Treat `.qfai/` as the canonical source of truth for the QFAI workflow:
9
+ - Prompts: `.qfai/assistant/prompts/`
10
+ - Instructions: `.qfai/assistant/instructions/`
11
+ - Project steering: `.qfai/assistant/steering/`
12
+ - When asked to perform QFAI workflow tasks, prefer using the QFAI prompt wrappers in `.github/prompts/` (e.g., `/qfai-spec`) which forward to the canonical prompts.
13
+ - Do not invent repository structure, tools, or frameworks. Inspect the repo first and align with what is already used.
14
+ - Keep changes minimal and targeted. Update tests and docs when behavior changes.
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Configure qfai.config.yaml based on the repository"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-configure.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Discuss an idea and clarify requirements"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-discuss.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Implement code changes with tests"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-implement.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Create requirements artifacts"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-require.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Implement acceptance tests from scenarios"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-scenario-test.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Create specs, contracts, and scenarios"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-spec.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Implement unit tests from specs/scenarios"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-unit-test.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -0,0 +1,17 @@
1
+ ---
2
+ agent: "agent"
3
+ description: "QFAI: Run quality gates and produce evidence"
4
+ ---
5
+
6
+ You are operating in a repository that uses QFAI.
7
+
8
+ 1. Open and follow the canonical QFAI prompt:
9
+
10
+ - .qfai/assistant/prompts/qfai-verify.md
11
+
12
+ 2. Use the repository as the source of truth (tools, frameworks, directory structure).
13
+ 3. Ask the user for missing inputs only when necessary.
14
+ 4. Do not modify files not required by the canonical prompt.
15
+ 5. All outputs must match the user's language.
16
+
17
+ User notes: ${input:notes:Optional}
@@ -1075,8 +1075,8 @@ var import_promises7 = require("fs/promises");
1075
1075
  var import_node_path9 = __toESM(require("path"), 1);
1076
1076
  var import_node_url2 = require("url");
1077
1077
  async function resolveToolVersion() {
1078
- if ("1.0.6".length > 0) {
1079
- return "1.0.6";
1078
+ if ("1.0.7".length > 0) {
1079
+ return "1.0.7";
1080
1080
  }
1081
1081
  try {
1082
1082
  const packagePath = resolvePackageJsonPath();
@@ -1658,16 +1658,22 @@ async function runInit(options) {
1658
1658
  [...rootResult.copied, ...qfaiResult.copied, ...promptsResult.copied],
1659
1659
  [...rootResult.skipped, ...qfaiResult.skipped, ...promptsResult.skipped],
1660
1660
  options.dryRun,
1661
- "init"
1661
+ "init",
1662
+ destRoot
1662
1663
  );
1663
1664
  }
1664
- function report(copied, skipped, dryRun, label) {
1665
+ function report(copied, skipped, dryRun, label, baseDir) {
1665
1666
  info(`qfai ${label}: ${dryRun ? "dry-run" : "done"}`);
1666
1667
  if (copied.length > 0) {
1667
1668
  info(` created: ${copied.length}`);
1668
1669
  }
1669
1670
  if (skipped.length > 0) {
1670
1671
  info(` skipped: ${skipped.length}`);
1672
+ info(" skipped paths:");
1673
+ for (const skippedPath of skipped) {
1674
+ const relative = import_node_path13.default.relative(baseDir, skippedPath);
1675
+ info(` - ${relative}`);
1676
+ }
1671
1677
  }
1672
1678
  }
1673
1679