c_agri_trade/process/.agents/skills/up-use-case-author/SKILL.md

3.2 KiB

name description
up-use-case-author Author ONE use case as a single, self-contained requirements artifact — narrative plus its embedded child functional requirements (FR-xxx). Use this whenever a new use case needs to be documented or an existing use case needs its functional requirements filled in. This is Stage 5 (Elaboration) of the UP-AI v1.0 Process (process/AI_Native_Unified_Process_v1.md).

up-use-case-author — Stage 5 (Elaboration)

Objective

Author each use case as the single, atomic, requirements-owning artifact — functional requirements are children of the use case, authored together with it, not a separate document reconciled after the fact.

When to invoke

  • Authoring a brand-new use case from Inception-phase inputs.
  • Filling in functional requirements for a use case that currently has narrative only.
  • Never invoke to author FRs in isolation from a use case — if you find yourself writing a functional requirement with no parent use case in view, stop and identify or create the owning use case first.

Read first

  • 04_generated_documentation/01_source_inventories/brd_inventory.md (BRD-FR-xxx)
  • Relevant 04_generated_documentation/02_legacy_analysis/ files (if Brownfield)
  • process/AI_Native_Unified_Process_v1.md §5 "Stage 5"

Procedure

You are authoring ONE use case as a single, self-contained requirements artifact. Do not treat functional requirements as a separate document to be reconciled later — they are children of this use case and are authored here, now, together.

For use case UC-xxx (<name>):

  1. Write the use case narrative: actors, preconditions, trigger, main success flow, alternate flows, exception flows, postconditions.
  2. Immediately below, list every functional requirement this use case creates. Each FR-xxx MUST declare:
    • parent_uc: UC-xxx (this use case, always)
    • source_brd_fr: one or more BRD-FR-xxx IDs, or "new — not in BRD"
    • statement, priority (Must/Should/Could), acceptance criteria
    • referenced screen(s) / routes
    • business rules invoked
  3. If any part of this use case cannot be resolved from the inputs, record it as AMB-xxx in ambiguity_register.md — do not silently invent behavior.
  4. A use case with zero FR-xxx children is not a valid output. If you cannot identify at least one functional requirement, flag the use case itself as ambiguous rather than emitting an empty shell.

Output expected

04_generated_documentation/03_requirements/use_cases/uc-xxx_<slug>/use-case.md and functional-reqs.md, each carrying front-matter id, version, status.

Exit criteria

Do not consider a use case done until up-traceability-gate (Gate 5.1) passes for it — i.e., it has ≥1 FR-xxx child, and every FR-xxx resolves to a real UC-xxx.

Sample invocation

"Run up-use-case-author for UC-001 (User Identity and Role Governance), using brd_inventory.md as input. Embed the FR-xxx children directly under 04_generated_documentation/03_requirements/use_cases/uc-001_user-identity/."

Previous: up-brd-extract (Stage 1) or up-legacy-gap-analysis (Stages 2-4). Next: up-traceability-gate (Gate 5.1), once Gate 5.1 passes across the full use-case set in scope.