Skip to content
Back to skills

Qfai Prototyping

ASecurity

Use when invoked by name or handed a QFAI work order to settle a visual or interaction decision by prototyping UI contracts under the root DESIGN.md.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
designbash

Works with

  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add aganesy/QFAI --skill qfai-prototyping --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Qfai Prototyping?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Qfai Prototyping
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aganesy-qfai-prototyping/badge)](https://www.skillsdirectory.com/skills/aganesy-qfai-prototyping)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qfai-prototyping
title: QFAI Prototyping (DESIGN.md-driven UX Loop)
description: "Use when invoked by name or handed a QFAI work order to settle a visual or interaction decision by prototyping UI contracts under the root DESIGN.md."
argument-hint: ""
allowed-tools: [Read, Glob, Write, TodoWrite, Task, Agent, Bash]
steps: [prototyping-grill, prototyping-preflight, prototyping-loop, prototyping-handoff]
requires: [common-review-cycle]
mode: execution-focused
---

## /qfai-prototyping

Run the entry check of
`.qfai/assistant/rule/shared-skill-operating-baseline.md#workflow-run-entry-check`
first.

The loop is static-first and file-based by default. Supported surfaces: web,
mobile, desktop, mixed. cli surface is rejected. Only UI contracts declaring a
full `UI-NNNN` ID and a non-empty `screens[]` enter the prototyping scope;
`prototyping-grill` § Scope says which of them one invocation covers. The
primary contract comes from the request, or from
`qfai.config.yaml#prototyping.primaryUiContract`; the request wins. Both take
only a full `UI-NNNN` ID. A value in another form is refused, naming the
`UI-NNNN` shape and the value received, and is never normalised. When the
configured value is refused and the request names no contract, the run stops
before writing anything, naming the key and the value; it does not pick another
contract.

The skill runs the build and review loop with the user. The `qfai` command has
no `prototyping` command group, and no command or check certifies the result:
prototyping completes when the user confirms the prototype.

Every file the loop writes stays under `.qfai/prototype/`: the session record,
each iteration and its reviews, and the handoff. A `restyle` loop also edits
the project's stylesheet and motion entry points its handoff names. No `qfai`
command writes any of these files. A command reads the handoff record
`.qfai/prototype/final/handoff.json`, which
`npx qfai validate --profile saas-package` checks against the CLI-HANDOFF schema, and the plain text of the
current `index.html` pages, which `npx qfai validate` checks.

## Inputs Priority

When unsure, read inputs in this order:

- P1: `.qfai/assistant/rule/*`, and `.qfai/assistant/skill/qfai-grilling/SKILL.md` before either session — the one before the loop and the one each reviewed prototype resumes
- P2: `.qfai/assistant/rule/agent-selection.md`, the cards under `.qfai/assistant/agent/`, and project context in the story tree
- P3: root `DESIGN.md` — the brand identity every iteration is built and reviewed against
- P4: the UI contracts under `<contractsDir>/ui/**/*.{yaml,yml}` and the references each step lists
- P5: earlier iterations and their reviews under `.qfai/prototype/`

Prototyping takes its direction from P3 and P4, and opens no file under
`paths.deliberationDir`.

## Steps

| Step                    | Runs                                                                                                      |
| ----------------------- | --------------------------------------------------------------------------------------------------------- |
| `prototyping-grill`     | Always, first: fixes the scope and settles by talking what the prototype is for                           |
| `prototyping-preflight` | Always: checks the UI contracts, root `DESIGN.md` and the Playwright environment                          |
| `prototyping-loop`      | Always: build, review, and put each reviewed prototype to the user until they accept                      |
| `prototyping-handoff`   | Only after the user confirmed the prototype: copy it and write the handoff (restyle: `handoff.json` only) |

A step's gate that ends the run ends the invocation: zero UI-bearing contracts
at preflight, an escalated decision before the first iteration, or a stop or a
no-question mode when the prototype is put to the user.

Read `.qfai/assistant/step/<step>/STEP.md` for the current step only, run it,
then move to the next.

Inside an `npx qfai workflow` run, the work order lists the steps to run and
this file adds nothing to it.
Select roles by `.qfai/assistant/rule/shared-skill-delegation-baseline.md`.

Questions to the user follow
`.qfai/assistant/rule/shared-skill-operating-baseline.md#user-questions-askuserquestion-protocol`.
This skill's own are whether a reviewed prototype is done and a missing brand
intent.

### Reviewer Gate

After the last step, run one review through `common-review-cycle`: the code
review, by `implementation-reviewer` and `product-surface-reviewer`. The
reviewers judge the rendered
prototype, never the code alone. Their findings inform the user; they do not
decide completion.

## Completion

The invocation completes when the user confirms the prototype and
`prototyping-handoff` has written the handoff. A blocking finding the latest
review still lists at that point is named in the final report. Every decision
a session adopted is an Agent decisions row of the run's deliberation record,
and the final report does not list it. Ask about the actions under Next
only when proceeding requires the user's answer, as
`.agents/rules/user-questions.md` § 6 sets out. A completion-only report needs
no question. Under a no-question mode, list any remaining actions instead.

## Next

- `/qfai-implement` / `/qfai-verify`

## Default Autopilot Policy

- ask-user:
  - whether a reviewed prototype is done — this skill's own operation, because
    look and feel are the user's judgement

project_memory:

- Prototyping completes on the user's confirmation; no command certifies it.
- Every file the loop writes is under `.qfai/prototype/`, except the stylesheet and motion entry points a `restyle` loop edits; a `qfai` command reads only `final/handoff.json` and the plain text of the current `index.html` pages.

Files in this skill

  • SKILL.md5.7 KB
  • references/design-md-spec.md4.6 KB
  • references/generator-prompt.md18.5 KB
  • references/handoff.md6.9 KB
  • references/iteration-loop.md5.1 KB
  • references/review-payload-schema.md10.3 KB
  • references/reviewer-prompt.md21.8 KB
  • templates/DESIGN.md.sample2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.