# Quality kit workflows

The Quality kit covers business analysis and quality assurance. It takes a
product idea through reviewed requirements and designed tests to a release
recommendation. You use it by typing skills in your coding agent, in the
project folder that holds the product. Each recipe below lists the skills in
order, what each step produces and where it lands, and a prompt you can copy.
The prompts use the Claude Code form, a slash and the skill's name; other
runtimes start skills their own way.

New to ezi? Start with [Getting started](https://ezikit.dev/docs/getting-started/). When no recipe
fits, ask `/ezi-guide` which skill does.

## How the kit keeps work traceable

Every artifact gets a stable ID that is never reused, and each one names the
ID it comes from. Stories name their requirement, test cases name the
criterion they check, and defects name the case they break. So at any time
you can ask what has no test, or what a change touches.

| Prefix | Artifact |
|---|---|
| `REQ-` | Functional requirement |
| `NFR-` | Non-functional requirement |
| `BR-` | Business rule |
| `US-` | User story |
| `AC-` | Acceptance criterion, numbered within its story (`AC-US-001-2`) |
| `TC-` | Test case |
| `CH-` | Exploratory charter |
| `DEF-` | Defect |
| `RF-` | Requirement review finding |

Requirements land under `docs/requirements/`, test artifacts under
`docs/testing/`, and reviews, defects and gate reports under
`plans/reports/`. The matrix that links them all is
`docs/testing/traceability.md`. A project with its own locations keeps them.

The kit reports and recommends. A review finding goes to the person who can
answer it, and the release decision is made by a person you name. The agent
never approves its own work or signs off for you.

## Frame a new product

| Step | Skill | What you get |
|---|---|---|
| 1 | `/ezi-product-brief` | `docs/requirements/product-brief.md`: problem, users, goals, scope, non-goals and open questions with owners |
| 2 | `/ezi-requirements-elicitation` | An interview plan and `docs/requirements/elicitation-log.md`, with each need, its source and its date |
| 3 | `/ezi-prd` | `docs/requirements/prd.md`: `REQ-` items with priorities and sources |

```text
/ezi-product-brief Online reservations for a city library
```

The brief asks one question at a time and never fills a gap with a guess: an
unknown stays an open question with the person who can answer it.

## Write requirements you can test

| Step | Skill | What you get |
|---|---|---|
| 1 | `/ezi-user-stories` | One file per story under `docs/requirements/stories/`, with Given/When/Then criteria |
| 2 | `/ezi-business-rules` | `docs/requirements/business-rules.md`: `BR-` decision tables with worked examples |
| 3 | `/ezi-nfr-spec` | `docs/requirements/nfr.md`: measurable performance, security, accessibility and reliability needs |
| 4 | `/ezi-process-model` | Mermaid process and data-flow diagrams under `docs/requirements/processes/` |

```text
/ezi-user-stories docs/requirements/prd.md
```

A small change can start here: one story with its criteria is enough.

## Review before anyone builds

| Step | Skill | What you get |
|---|---|---|
| 1 | `/ezi-requirement-review` | A review report under `plans/reports/` with `RF-` findings, each quoting the text, asking a question and naming who answers |
| 2 | `/ezi-traceability` | The matrix in `docs/testing/traceability.md` and a gap report of uncovered items and orphan IDs |

```text
/ezi-requirement-review docs/requirements/
```

When the same session wrote the requirements, the result is labelled a
self-check, not an approval; the `requirements-reviewer` agent or a person
does the real review.

## Plan and design the tests

| Step | Skill | What you get |
|---|---|---|
| 1 | `/ezi-test-strategy` | `docs/testing/test-strategy.md`: levels, types, risks, environments, entry and exit criteria |
| 2 | `/ezi-test-plan` | `docs/testing/test-plan-<release>.md`: scope by ID, schedule, owners, data and risks |
| 3 | `/ezi-test-design` | Test cases under `docs/testing/test-cases/`, each with its technique, an expected result backed by a criterion or rule, and the ID it covers |
| 4 | `/ezi-api-test-design` | Contract, negative and authorization cases from an OpenAPI or endpoint spec |
| 5 | `/ezi-automation-plan` | Which cases to automate and at which layer, handed to `/ezi-test` to write and run |

```text
/ezi-test-design US-001
```

`/ezi-test-design` names its techniques (equivalence partitions, boundary
values, decision tables, state transitions, pairwise, error guessing) and
adds the new `TC-` rows to the matrix.

## Run, report and retest

| Step | Skill | What you get |
|---|---|---|
| 1 | `/ezi-exploratory-testing` | A charter under `docs/testing/charters/` and session notes with what was covered and found |
| 2 | `/ezi-defect-report` | A reproducible `DEF-` report with severity, evidence and the IDs it breaks |
| 3 | `/ezi-regression-scope` | After a change or fix, the retests and regression set picked from the matrix |

```text
/ezi-regression-scope The fix for DEF-004 and the new renewal limit
```

Only observed results are reported, with the build, environment and date. A
test that was not run is "not run", never "passed".

## Decide on a release

| Step | Skill | What you get |
|---|---|---|
| 1 | `/ezi-quality-gate` | A report under `plans/reports/` with coverage, open defects, non-functional evidence, remaining risk and a recommendation |

```text
/ezi-quality-gate Release 1.4
```

The decision fields stay blank for the person who decides.

## Use the Quality kit with other kits

A project can hold the Quality kit next to the Development kit, so the
requirements and tests live beside the code. Buy each kit; one sign-in covers
all your licenses. Install the first kit as usual, then add the next as a
Claude Code plugin:

```bash
ezi kit install development --yes
ezi kit install quality --target claude-code --switch-to-plugin --yes
```

`/ezi-automation-plan` hands cases to `/ezi-test`, which every kit includes.
With the Development kit installed too, `/ezi-edge-cases` brainstorms edge
cases for a feature, while `/ezi-test-design` produces traced cases for
reviewed criteria.

### Many kits in one project

Claude Code shows the model a listing of every installed skill with a short
description, and that listing has a size budget. With the Development, Growth
and Quality kits all in one project the listing passes that budget, and Claude
Code then drops the descriptions of the skills you use least, so the agent may
not pick them on its own. Typing a skill by name always works.

To give the listing more room, raise `skillListingBudgetFraction` in your
Claude Code settings (`~/.claude/settings.json`, or the project's
`.claude/settings.json`), for example:

```json
{
  "skillListingBudgetFraction": 0.02
}
```

The default is `0.01`. A higher value keeps every description but costs more
context in every session. ezi never changes this setting for you.
