New in 2.3.0 · Step 01 of 04 The workflow

Use case specs for coding agents. Start with the spec, then design the screens.

In artisign, a use case spec describes one flow a person goes through in your app: who acts, with which data, step by step. Your agent writes it through MCP before it designs, you review and edit it in the browser, and your coding agent later builds and tests against it.

npm install -g artisign
Next: screen design

Open source. Local. Plain files in your repo. Any MCP agent. No account.

v2.3.0 · AGPL-3.0 · macOS, Linux, Windows · Node ≥ 22.4

artisign Use Cases tab: the use case spec “Present a ticket's screens on the Board” with its personas, trigger, goal, outcome and world
A use case spec in artisign’s own project: personas, trigger, goal, outcome and the world it plays in.

What a use case spec contains.
Who, what, with which data.

Each part is data your agent writes with set_use_cases and you can edit in the Use Cases tab (beta). A missing trait means any value.

artisign Use Cases tab: the flow of a use case spec with three steps, a branch, and the data before and after each step
  • Personas and dimensions

    Dimensions such as role or project size; personas pick their values. generate_personas fills the gaps pairwise.

  • Trigger and starting state

    An action of a persona, with the interface it uses, or a state or a point in time. The state says what holds before the case starts.

  • Steps

    The main flow, step by step. Each step can point at a screen and an element.

  • Data objects

    The data the case reads and writes, with fields, types and example values.

  • Variants

    The same case for another persona or another world. suggest_use_case_variants lists the trait values no variant covers yet.

  • Branches

    Alternative paths that fork when a condition holds, then rejoin the flow or end the case.

The world it plays in.
Optional.

When the situation matters, a use case spec names its world: entities with identity, the relationships between them, and constellations, the fixed starting worlds a case can begin in.

artisign Use Cases tab, World: entities, relationship types and constellations of a project
artisign Use Cases tab, Personas: the user pool with dimensions such as actor type and project size, and persona cards with goals

World and Personas in the Use Cases tab of artisign’s own project.

From a use case spec
to screen design.

Map each step to a screen and an element. Show on screens puts the flow next to the mapped screens, and the Screens tab lists the use cases that touch a screen.

  • Step targets

    A step points at a screen, or at one element with an authored id.

  • Stale mappings

    A mapping to a node that no longer exists comes back as a warning.

Read about screen design →
artisign mapping view: each step of a use case spec next to the screen it is mapped to

One call for the coding agent.
Tests and code from the same spec.

get_use_case returns the use case, its personas, its data objects, the mapped screens with their nodes and, when it has one, its world. Your coding agent builds the app and writes its tests from that bundle.

Write the use case specs for the Board before you design it
artisign · generate_personas
└ pairwise from the dimensions
artisign · set_use_cases
└ personas, data objects, use cases
artisign · suggest_use_case_variants
└ trait values no variant covers yet
›
Write tests for the use case present-ticket-on-board
artisign · get_use_case
└ steps, branch 1A, personas, data objects, mapped screens
agent · write tests
└ main flow, then branch 1A
agent · run tests
└ red until the Board filter exists
›
  • get_use_case

    The variant-resolved case plus everything it references, in one response.

  • list_use_cases

    Filter by persona, screen, node, tag, status, text or constellation, with facet counts.

  • Warnings, not blocks

    A reference problem in a spec is a warning. Writes still succeed.

Review the spec.
Edit it in the browser.

The Use Cases tab (beta) lists every case with search and filters. Dialogs create and edit use cases, personas, entities and data objects. Your edits and the agent’s writes land in the same files.

artisign Use Cases tab, Data objects: each object with its fields, types and example values

Plain files.

Use case specs live in a usecases/ folder next to your screens. A project without it works as before.

acme/
├── screens/
└── usecases/
    ├── cases/
    ├── personas.json
    ├── data-objects.json
    └── world.json

Written by your agent.

Five MCP tools cover use case specs: list_use_cases, get_use_case, suggest_use_case_variants, set_use_cases and generate_personas.

  • set_use_cases
  • generate_personas
  • get_use_case
  • list_use_cases
  • suggest_use_case_variants

Next: screen design.

The agent designs the screens on a shared design system and maps each step onto them.

Screen design →

Start with
a use case spec.

npm install -g artisign
Read the README

Then run artisign and ask: “Write the use case specs for ~/work/acme, then design the screens”