/aiup-core:use-case-specfrom AI Unified Process Core
Creates detailed use case specification documents with actors, triggers, preconditions, scenarios, postconditions, and business rules. Validates files with a bundled script.
Ships in AI Unified Process Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create or update use case specification documents for $ARGUMENTS in docs/use_cases/. Each use case describes a complete interaction between an actor and the system to achieve a goal.
One file per use case, written to docs/use_cases/UC-XXX-<kebab-case-name>.md where:
UC-XXX is the use case's three-digit ID (e.g. UC-001).<kebab-case-name> is the use case name taken verbatim from the use case
diagram (docs/use_cases.puml), lowercased with spaces replaced by hyphens.
Do not paraphrase, expand, or reorder the words.docs/use_cases.puml is a @startuml Modules overview), the file goes into the
folder of the module whose diagram holds the use case: a use case of docs/use_cases/billing/use_cases.puml is
written to docs/use_cases/billing/UC-XXX-<kebab-case-name>.md.| Use case name in diagram | Correct filename |
|---|---|
Register Account | docs/use_cases/UC-001-register-account.md |
Check In Guest | docs/use_cases/UC-002-check-in-guest.md (never checkin-guest) |
Place Order | docs/use_cases/UC-001-place-order.md |
UC-XXX IDs come from the diagram and never repeat.BR-XXX business-rule IDs are unique within their own file only and
restart at BR-001 in every file — the use case is the namespace. When
referring to a rule of another use case, qualify it with the use case id
(e.g. "UC-005 BR-002"), never by the bare rule id.The rules for each section are in the workflow step that writes it.
Use references/use-case.md as the document structure, and see references/example.md for a complete worked example — actor-focused steps, alternative flows that reference specific step numbers, and success postconditions paired with failure postconditions written as minimum guarantees. These paths are relative to the folder containing this SKILL.md, not to the project root.
The normative definition of the format — including the German variant and the tolerances of the AI Unified Process Studio structured editor — is references/format-spec.md; what goes into the Overview lines and the failure postconditions is in references/overview-and-postconditions.md. A machine check of both the structure and the rules of this skill is bundled as scripts/validate_use_case.py.
| Do | Don't |
|---|---|
| "User saves the reservation" | "User clicks the blue Save button" |
| "System displays error message" | "System throws ValidationException" |
| "System stores the reservation" | "System executes INSERT INTO reservations..." |
| "System sends a confirmation email" | "System opens an SMTP connection to sendmail" |
| "System securely stores the password" | "System hashes the password with bcrypt/SHA + salt" |
| "System signs the user in" | "System issues a JWT / signs a token with expiry" |
Steps describe what the actor and system achieve, never how it is implemented. Keep out protocol and infrastructure terms (SMTP, JWT, bcrypt, hashing, SQL/INSERT/SELECT, HTTP verbs, class and exception names) — those belong in the implementation, not the specification.
Read the docs/requirements.md and docs/use_cases.puml — with modules, also the module diagrams
docs/use_cases/*/use_cases.puml — and docs/glossary.md when it exists. Use the
glossary's terms for actors, business objects, and states, and never a synonym listed in its Avoid column; a new
domain term the use case needs goes into the glossary (see /requirements).
Determine the set of use cases to document (one, several, or all in the
diagram — see "Scope" above). Take each UC-XXX ID and name from the diagram.
Before writing, ask of each one: is this use case a complete goal that the primary
actor would recognize as valuable? A subfunction ("Validate METAR", "Load NOTAM",
"Persist Result") is a step of a larger user goal ("Determine Airport Suitability"),
and a summary ("Manage Flight Operations") spans several; one actor adding, changing,
and removing one business object ("Manage Catalog") is a user goal, not a summary. A scenario that hands the
work over to another role, waits for an outside event or a deadline, or runs branches
in parallel for different actors is a summary, too: its parts are separate user goals,
and the flow between them is a business process in BPMN (docs/processes/, written by
/business-process), not a
section of the use case. Do not rename, merge, or
split use cases yourself — the ids belong to the diagram. Write the specification,
then tell the user which use case looks like a subfunction or a summary, name the
user goal it belongs to, and hand off to /use-case-diagram. A subfunction that the
diagram draws as an <<include>> shared by several use cases is intended; leave it.
Clarify before writing. Scan the sources for each use case with
references/clarify-checklist.md and ask the user the questions whose answer
changes the specification and has no reasonable default — at most five per use case, the most important first, each
with a recommended option. Write the answers into the steps, flows, and rules they affect, never into a questions
section. Decide everything else with the best default and report it as an assumption (step 16). When no one can
answer — a pipeline run, a host without a way to ask, or the user said not to ask — take the recommended option for
every question and report it as an assumption as well. Never ask about implementation choices; they do not belong in
a use case. For the questions of docs/open_questions.md on the use case — resolving the answered ones, asking the
open ones, recording your assumptions, withdrawing the ones that no longer apply — follow the section "In the Clarify
Step of a Specification Skill" of /open-questions — locate it with a glob for **/*open-questions/SKILL.md; the
folder may carry a host prefix such as tessl__open-questions. It is the only file under docs/ besides the
specifications and the glossary that this skill writes.
Use TodoWrite to track progress — one item per use case file.
For each use case, derive the filename with the rule in "File naming" above.
Write the Overview section — Use Case ID, primary actors, secondary actors, goal, trigger, and a Status from
the status values of references/format-spec.md, then the Requirements line and,
when the use case is not offered through every entry point, the Layers line, then the Mockup line when the user
named a mockup or the document already has one, then the API line when the user named the operation of an agreed
API contract or the document already has one. Read
references/overview-and-postconditions.md first: it defines who
is a primary or secondary actor, what makes a trigger an event rather than a precondition, how the
Requirements line links the catalog, which values the Layers line takes, and what the Mockup and API lines hold.
Define preconditions — verifiable facts that must be true before the use case starts. They are
states the system has already established (often by another use case), never events or actor
actions, and the use case does not check them again. A precondition must not describe a
condition that is established or evaluated during the use case: when the fact depends on input
the actor gives in a step ("a room is available for the requested dates"), when a step checks
it, or when an alternative flow handles its violation, it is not a precondition but a condition
to handle in the Main Success Scenario and its alternative flow. Keep the stable state it rests
on instead (Room inventory is configured).
Write the Main Success Scenario as numbered steps (start at 1, no gaps), alternating actor action and system response, ending with the goal achieved.
Analyze every Main Success Scenario step for meaningful alternative or exception conditions — can the actor decide differently, can the input be invalid, can a check fail, can an external system refuse or not answer? Document every extension you identify (error conditions, optional paths, exceptional situations); most real use cases have two or more. Each one must:
(step N) (e.g. Payment is declined (step 7)); andUse case continues at step N. or Use case ends.Document only conditions that are realistic for the business: a domain expert would recognize them and expect the system to handle them (a declined payment, a sold-out room, a duplicate email). An exotic or purely technical failure — a database outage, a full disk, a network partition, an improbable combination of events — is not an alternative flow of a use case: the architecture handles it once for the whole system. When you are not sure whether a condition matters to the business, record it as an open question instead of writing a flow for it.
Do not invent an alternative flow solely to satisfy the template. When the analysis finds
no meaningful alternative, replace the template flow with an italic placeholder that states the
result, e.g. _None — no step of the main success scenario can fail or branch._ The validator
accepts the placeholder as a deliberate statement and warns only when the section is left empty.
Define postconditions for both success and failure (both subsections non-empty). Success Postconditions
state what is true when the goal is achieved. Failure Postconditions are the minimum guarantees for every
unsuccessful end — what the system protects, not how it reacts; a use case that changes no data gets the
placeholder _None — the use case changes no data._. The rules are in
references/overview-and-postconditions.md.
Document applicable business rules with BR-XXX IDs, numbered as "Scope" says.
Write each use case to its own file completely before moving to the next — never merge two use cases into one file, and never leave a planned file unwritten.
Check each file against steps 6–11 and "Step writing guidelines" — the definition of done; the validator in step 14 checks most of it mechanically. Fix anything that fails.
Final verification (do this before declaring done): list the contents of
docs/use_cases/ (with modules, the module folders) and confirm every UC-XXX from your scope has exactly one
file present, named as "File naming" says. Rename any mismatch. Then run the bundled validator over every file you wrote (the script
path is relative to this skill's directory):
python3 scripts/validate_use_case.py --strict <the files you wrote>
Fix every reported problem and re-run until it exits cleanly. Errors mean the
Studio structured editor cannot read the file; warnings mean a rule of this
skill is violated — e.g. an implementation term in a step, which "Step writing guidelines" shows how to rewrite.
When you wrote to docs/open_questions.md, check it as section "Checking the File" of /open-questions says
(spec_lint.py --questions) and fix every finding on a section you wrote.
Mark todo complete.
Quality gate — hand off, do not self-review. The validator checks structure; it cannot judge
whether a use case is a user goal, whether its actors are right, whether the scenario reaches the
goal, whether every failing step has a flow, or whether rules and postconditions are testable.
That semantic review is /spec-review. Tell the user which files you wrote, list what step 3
clarified, assumed, and left open with the ids of the open questions (the report format is in the clarification
checklist), and offer
/spec-review UC-XXX for each of them (or /spec-review for the whole project after writing all
use cases) before a use case moves to Reviewed. Do not run it yourself and do not restate its
checklist here — one review, in one place.
What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/acceptance-protocolWrites the protocol of a user acceptance round in docs/acceptance/: a checklist per test case (TC-XXX) from its Flow table and validations, and per use case that no test case covers from its scenario, alternative flows, and business rules, each row with columns for result, tester, date, and remark. Records the results a tester reports, then closes the round: every use case at Tested whose rows all passed and that no blocking question holds is proposed for Done, and set to Done after the user confirms. Use when the user asks to "prepare the acceptance test", "create the UAT checklist", "write the acceptance protocol", "record the acceptance results", "TC-002 step 4 failed", "close the acceptance round", "which use cases can go to Done", or mentions user acceptance testing, UAT, sign-off, or the Transition phase. It never changes a use case other than its Status line, and never sets a status without the user's word.
/architecture-decisionRecords architecture decision records (ADR-XXX) in docs/architecture/decisions/, each one linked to the non-functional requirements (NFR-) and constraints (C-) of docs/requirements.md it serves: drafts an ADR from a decision stated in plain words (Context, Decision, Consequences), checks it against the accepted ADRs for contradictions and overlaps, supersedes an earlier ADR, adds a missing requirement link (ADR-003 link NFR-002), changes an ADR's status, and lists the ADRs filtered by requirement or status. Use when the user asks to "record an ADR", "write an architecture decision", "document why we chose X", "we decided to use jOOQ instead of JPA", "supersede ADR-002", "accept ADR-005", "list the ADRs", "which ADRs depend on C-005", or mentions architecture decision records, ADRs, or docs/architecture/decisions. Also trigger when the user states a technology or structure decision in conversation that the project should remember. A question about the specification is /open-questions, not an ADR.
/business-processCreates or updates BPMN 2.0 business process models (docs/processes/BP-XXX-*.bpmn) from the requirements catalog and the use case diagram: one pool per process, one lane per actor, every activity one use case, gateways for the decisions between them, and a diagram layout a modeler such as bpmn.io can open. Every process gets a BP-XXX id for communication and traceability; run it with that id (e.g. /business-process BP-001) to update one process. Use when the user asks to "model the business process", "create a BPMN", "draw the process", "connect the use cases into a process", "update BP-001", or mentions a business process, process model, BPMN, swimlanes, or a .bpmn file. Also trigger when a review or the use case skills report a summary use case whose parts hand over to another role, wait for an event or deadline, or run in parallel — that flow is a business process. The resulting model is what /test-case BP-XXX derives end-to-end test cases from.
/entity-modelCreates entity model documents with Mermaid.js ER diagrams and attribute tables defining entities, relationships, data types, and validation rules. Use when the user asks to "create an entity model", "design a data model", "draw an ERD", "define database schema", "model entities", or mentions entity-relationship diagram, ER diagram, database design, or data modeling. Also trigger whenever the task is to produce, write, or design an entity model or data model document (e.g. docs/entity_model.md) from a requirements catalog — including phrasings like "data model design", "the team needs an entity model before development", or a request to document entities with attributes, data types, precision, and validation or cross-attribute constraints.
/nextReads the state of an AI Unified Process project and names the next command with its reason: which documents are missing, which blocking questions wait for an answer, which use cases wait for a review, the stack file, implementation, tests, acceptance, the user guide, or the release notes. Shows a short state table (use cases and test cases per status, open and blocking questions, stack file, spec lint, last Git tag) and one or two Next lines. Use when the user asks "what next", "what should I do now", "where are we", "which command comes next", "what is the state of the project", "what is missing before the release", or is new to the AI Unified Process and does not know which skill to run. It is read-only: it never runs the next command and never writes a file.
/open-questionsKeeps the log of open questions about the specification in docs/open_questions.md: records a question on a use case step, alternative flow, business rule, requirement, glossary term, or entity with the next OQ-XXX id, lists the questions filtered by use case, status, or blocking, records a person's answer, and withdraws a question that no longer applies. Owns the format every other skill appends in. Use when the user asks to "record an open question", "add a question for the product owner", "list the open questions", "which questions block UC-003", "answer OQ-002", "withdraw OQ-004", or mentions open questions, specification gaps, or docs/open_questions.md. It never resolves a question: putting the answer into the specification is /use-case-spec, /requirements, or /entity-model.
npx claudepluginhub ai-unified-process/marketplace --plugin aiup-coreOther plugins' skills for the same job