| name | qfai-discussion |
| title | QFAI Discussion (Exploration Planner) |
| description | Run structured discussion that defines exploration conditions, evaluation rubric, and anti-goals for downstream prototyping. |
| argument-hint | <idea-or-problem> [--auto] |
| allowed-tools | ["Read","Glob","Write","TodoWrite","Task","Bash"] |
| roles | ["orchestrator","delivery-planner","discovery-analyst","requirements-analyst","solution-architect","product-experience-architect","completion-reviewer","requirements-reviewer","architecture-reviewer","product-surface-reviewer"] |
| routing-profile | requirements-heavy |
| mode | interactive-by-default |
/qfai-discussion - Exploration Planner
[DRIFT-PROTOCOL:MANDATORY]
Goal
Produce a unified 15-file discussion pack plus exploration-first UI sidecars so /qfai-sdd and /qfai-prototyping can operate without forcing an early visual direction decision.
CRITICAL CONSTRAINTS (Read First)
- Output path is fixed:
.qfai/discussion/discussion-YYYYMMDDhhmmssSSS/.
- All 15 mandatory fixed files remain unchanged.
- UI-bearing discussion packs may include
prototyping.yaml as an optional recommendation artifact; non-ui discussion packs typically omit it.
- Completion requires
Disposition: open count to be zero in 11_OQ-Register.md.
- If UI requirements exist, behavior obligations are primary and HTML+CSS mock is optional fallback only.
- When an HTML+CSS mock includes links, author them in anchor-form (
<a href="#name">); external http(s):// links are also allowed. Do NOT use same-origin absolute paths (/orders/) — a static mock cannot serve them and the validator rejects them (QFAI-MOCK-010).
- Discussion is planner-first: do not select a single visual winner and do not finalize the design system here.
- Use artifact files, not conversational summaries, as the downstream handoff.
UI-bearing Canonical Sidecar Family
UI-bearing packs must produce, as primary truth: uiux/40_screen_contracts.md, uiux/50_review_input_bundle.md. They MUST also emit a draft brand SSOT at the consuming-project root:
<consuming-project-root>/DESIGN.md — brand SSOT consumed by /qfai-sdd (freezes its sha256 in .qfai/contracts/design/DESIGN.md.lock.yaml) and by /qfai-prototyping (iterates against locked tokens). Brand intent (product intent, brand signals, anti-goals, reference pool framed as deviate-from inputs) lives in front-matter + # Brand Philosophy body — no separate per-aspect sidecar.
Required Process
- Run the core interview for concept, scope, stakeholders, and constraints.
- Run Inception Deck and include at least one Mermaid diagram.
- Run Story Workshop, capture user stories and user flows; HTML+CSS mock is optional fallback only.
- Register source traceability and reference research in
04_Sources.md.
- Capture scope, REQ, NFR, glossary, constraints, and policies.
- Run Example Mapping and capture
Example Seeds.
- Update
11_OQ-Register.md, resolve OQs until open count is zero, and move deferred items to 13_Deferred.md.
- Generate the exploration-first sidecar family for UI-bearing targets.
- Emit root
DESIGN.md draft for UI-bearing targets per references/design-dna-intake.md. Required when UI-bearing; skip otherwise.
- Generate
prototyping.yaml only when the latest discussion pack is UI-bearing and an explicit prototyping recommendation is useful.
- Request review and record the Reviewer result.
For UI-bearing targets, follow references/design-dna-intake.md while authoring the UI/UX sidecars. Keep this SKILL.md compact; put detailed interview prompts and examples in the reference file.
UI-bearing Authoring Requirements
- Root
DESIGN.md front-matter must define brand (name, archetype, voice), audience (emotion, do_not_look_like), and the full visual.* token tree (colors, typography, spacing, radius, shadow).
# Brand Philosophy body documents do/don't, brand signals, and exploration references framed as deviate-from inputs (not imitate-this) for the downstream /qfai-prototyping reviewer.
40_screen_contracts.md defines each screen contract per the template schema; 50_review_input_bundle.md documents review inputs for downstream skills.
- Evaluation axes are global constants (4-step ordinal: weak / acceptable / strong / exceptional) and are not authored as discussion sidecars.
Completion Contract (Shared)
Follow .qfai/assistant/constitution/shared-skill-operating-baseline.md#gate-failure-autorepair-protocol for validate, doctor, and quality-gate failures.
Before declaring completion, you MUST:
- verify all 15 mandatory output files exist and are populated;
- ensure
Disposition: open count is zero in 11_OQ-Register.md;
- ensure every deferred item has full metadata in
13_Deferred.md;
- ensure
02_Inception-Deck.md and 03_Story-Workshop.md include Mermaid diagrams;
- ensure the UI-bearing sidecar family is complete and the root
DESIGN.md draft exists at the consuming-project root and parses as valid front-matter;
- run
qfai validate --profile discussion --fail-on error and fix discussion-owned findings;
- avoid selecting a single visual winner in discussion artifacts.
Reviewer Gate (MUST)
Reviewer checks must confirm:
- the 15-file discussion pack is complete;
Disposition: open count is zero in 11_OQ-Register.md;
- the UI-bearing sidecar family is complete when the pack is UI-bearing;
- discussion stayed planner-first and did not choose a single visual winner;
- Drift Protocol is enforced; review policy is checked against
.qfai/assistant/catalog/test-layers.md;
- planning and coverage heuristics are signals, not gates;
- review findings end with
Status (PASS/REVISE) and Reviewer result is explicit as PASS or REVISE.
Sub-agent Delegation (MANDATORY)
Follow .qfai/assistant/constitution/shared-skill-delegation-baseline.md.
Orchestrator Protocol (MUST)
- do not self-approve; use artifact files as the handoff surface; integrate delegated outputs only after checking pack completeness.
Capability Probe (MUST)
Delegation Failure (Hard Stop)
- No additional overrides.
- Do not simulate roles. If the first required delegation fails, stop the stage and report remediation.
Work Orders Summary
Use the shared schema (per-row Status (PASS/REVISE) column, reviewer response Result: PASS | REVISE).
Completion Message & Next Actions (MUST)
You MUST end the user-facing output with a handoff sentence to /qfai-sdd in the active user language.
- Japanese output (use this exact sentence):
ディスカッションが完了しました。他に要望などがあればご提示ください。問題なければ『/qfai-sdd』と入力してください。
Default Autopilot Policy
The skill collapses avoidable per-session prompts to 0-1 by classifying every decision into one of three named buckets:
- auto-decide:
- output formatting
- ID / sequence numbering
- append-vs-create on subject overlap
- equivalent-option pick
- ask-user:
- CREATE / DELETE / SPLIT / MERGE / SUPERSEDE / UPDATE:REMOVE triage operations (each with a prompt template that names the target and rationale)
- destructive operations (rm / overwrite / force-push)
- version-pin changes (
package.json#version, branch pin)
- scope expansions outside the active envelope
- hard-required:
companyName
- brand intent
primarySpecId (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:
- 15-file mandatory output set is fixed; the UI-bearing sidecar family (40_screen_contracts.md + 50_review_input_bundle.md + root DESIGN.md) is required only when the target is UI-bearing.
- Discussion is planner-first: never pick a single visual winner; carry exploration references as deviate-from inputs, not imitate-this.
- Completion requires Disposition: open count = 0 in 11_OQ-Register.md; deferred items must move to 13_Deferred.md with full metadata.