ai-unified-process/marketplace/use-case-diagram

Claude Code and agent skill by ai-unified-process/marketplace

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Creates or updates PlantUML use case diagrams defining actors, use cases, and their relationships from requirements. Use when the user asks to "create a use case diagram", "draw a UML diagram", "map actors to use cases", "generate a .puml file", or mentions PlantUML, use case overview, actor diagram, or system use cases.

Install

npx vskill@latest install ai-unified-process/marketplace/use-case-diagram

SKILL.md

Use Case Diagram

Instructions

Create or update the PlantUML use case diagram at docs/use_cases.puml based on docs/requirements.md.

DO NOT

  • Create diagrams without reading the requirements first
  • Use non-standard PlantUML syntax
  • Include implementation details in use case names
  • Model technical steps such as validating, loading, or persisting data as separate use cases (see "Goal level")

Template

plantuml
@startuml Use Cases Overview
left to right direction
actor "User" as user
actor "Administrator" as admin
rectangle "System Name" {
usecase "UC-001\nDescription" as UC001
usecase "UC-002\nDescription" as UC002
usecase "UC-003\nDescription" as UC003
}
admin --> UC001
user --> UC002
user --> UC003
@enduml

Goal level

Every use case in the diagram is a user goal — what Cockburn calls the sea level: one actor, one sitting, a result the primary actor walks away with. Test each use case with one question:

Is this use case a complete goal that the primary actor would recognize as valuable?
  • Too low (subfunction): a step of a larger goal, often a technical one — "Validate METAR", "Load NOTAM",

"Persist Result". No dispatcher sits down to validate a METAR; they want to know whether an airport is suitable. Fold such steps into the user goal they serve ("Determine Airport Suitability"), where they become steps of its main success scenario. Keep a subfunction as its own use case only when several user goals share it, and then draw it with <<include>> from each of them.

  • Too high (summary): a whole area of work that spans many sittings — "Manage Flight Operations". Split it into

the user goals it is made of. A use case is a summary, too, when its flow hands the work over to another role, waits for an outside event or a deadline, or runs branches in parallel for different actors — "Process Insurance Claim" with a clerk, an assessor, and a payout after approval. Each role's part is a user goal of its own; the flow that connects them is a business process, modeled in BPMN in docs/processes/ by /business-process once the use cases are specified; its activities are those use cases, and /test-case BP-XXX derives the test cases from it. Do not describe the process inside a use case or attach a process model to it. "Manage <business object>" is the exception when it means one actor maintaining one business object in one sitting — adding, changing, and removing books in the catalog: that is a user goal (Cockburn's CRUD use case), with each operation a branch of its scenario. Split it only when the operations differ in actor or carry rules of their own.

A functional requirement that describes a step rather than a goal traces to the user goal use case that contains the step.

Modules

When docs/use_cases.puml is a @startuml Modules overview, the diagram is split by module, one docs/use_cases/<slug>/use_cases.puml per module. Keep that split: read references/modules.md before you add, move, or number a use case. Never introduce a split in a diagram that has none.

Conventions

  • Each use case has a unique id and a description
  • Use Case ID: UC-{3-digit} (UC-001, UC-002, ...)
  • Each use case should trace to at least one functional requirement
  • Secondary actors (supporting roles and external systems such as a payment or weather service) are drawn as

actors too and connected to the use cases they support; they appear as **Secondary Actors:** in the use case specification

  • Add notes sparingly, only where relationships need clarification

Workflow

  1. Read the requirements at docs/requirements.md
  2. Read existing diagram at docs/use_cases.puml (if exists); when it is a @startuml Modules overview, read the

module diagrams docs/use_cases/*/use_cases.puml too and follow "Modules"

  1. Identify actors and use cases from requirements
  2. Check every use case against the question in "Goal level": fold subfunctions into the user goal they serve,

split summary goals, and tell the user which use cases you merged or split and why

  1. Create/update the PlantUML use case diagram
  2. Validate the diagram:
  • Each use case is a user goal (see "Goal level"); a subfunction appears only as an <<include>> shared by

several use cases

  • Each use case traces to at least one functional requirement in docs/requirements.md
  • All actors are connected to at least one use case
  • Use case IDs follow the UC-{3-digit} convention
  • PlantUML syntax is valid (no missing @enduml, proper arrow syntax)
  • With modules: every use case is in exactly one module diagram, and the overview's packages match the module

folders

When a check fails, fix the diagram and run every check again; report the diagram only when all of them pass.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ai-unified-process/marketplace/use-case-diagram/badge)](https://verified-skill.com/skills/ai-unified-process/marketplace/use-case-diagram)

Something wrong with this skill or its page? Tell us.