Token导航 LogoToken导航TokenDH.com
待分类只读github未标认证来源可访问许可证需确认审计通过

use-case-documentation用例文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

5,980

周安装

240

GitHub Stars

公开资料未说明

下载量

1,598
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:use-case-documentation(用例文档)
来源仓库:https://github.com/danhvb/my-ba-skills
仓库路径:skills/use-case-documentation
安装命令:
npx skills add https://github.com/danhvb/my-ba-skills --skill 'Use Case Documentation'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/danhvb/my-ba-skills --skill 'Use Case Documentation'

简介

该技能用于辅助文档、README、Markdown 和内容稿件的整理与改写。

  • 适合提炼结构、补齐章节、统一术语或检查链接。
  • 可在 Codex、Claude、Cursor、Gemini CLI 等宿主环境中使用。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装。
  • 使用时应保留项目已有事实,避免写成确定结论。

SKILL.md

Use Case Documentation Skill

Purpose

Describe how a user interactions with a system to achieve a specific goal. Use cases capture functional requirements from a user-centric perspective, often used in Waterfall or Hybrid environments where detailed specification is needed before implementation.

When to Use

  • Complex transactional systems (banking, healthcare).
  • When specific alternate flows and error handling must be rigorously defined.
  • Regulatory compliance requires detailed documentation.
  • Bridging gap between business needs and technical functional specs.

Anatomy of a Use Case

Key Elements

  1. Use Case Name: Verb-Noun phrase (e.g., "Withdraw Cash").
  2. ID: Unique identifier (e.g., UC-ATM-01).
  3. Actor(s): Who interacts? (Primary: Initiates; Secondary: External systems).
  4. Description: Brief summary of goal.
  5. Preconditions: What must be true BEFORE this starts? (e.g., "User is logged in").
  6. Trigger: What starts the use case? (e.g., "User clicks Withdraw").
  7. Main Success Scenario (Basic Flow): The "Happy Path" steps.
  8. Alternative Flows (Extensions): Variations or error paths.
  9. Postconditions: What is true AFTER reliable completion? (e.g., "Balance updated").
  10. Business Rules: Logic links.

Use Case Template

Example: Withdraw Cash at ATM

ID: UC-ATM-01 Name: Withdraw Cash Primary Actor: Bank Customer Secondary Actor: Bank System (Backend)

Description: Customer withdraws physical cash from their checking account via ATM.

Preconditions:

  1. ATM has sufficient cash.
  2. ATM is online.
  3. Customer has valid card and PIN.

Trigger: Customer inserts card.

Main Success Scenario (Happy Path):

  1. Customer inserts debit card.
  2. System validates card readability.
  3. System prompts for PIN.
  4. Customer enters PIN.
  5. System validates PIN with Bank System.
  6. System displays Application Menu.
  7. Customer selects "Withdraw Cash".
  8. System prompts for Amount.
  9. Customer enters Amount (e.g., $100).
  10. System checks daily limit and account balance.
  11. System authorizes transaction.
  12. System dispenses Cash.
  13. System prints Receipt.
  14. System ejects Card.
  15. Use case ends.

Alternative Flows:

  • A1: Invalid PIN (at Step 5)

1. System displays "Invalid PIN" message. 2. System prompts to re-enter PIN. 3. Customer re-enters PIN. 4. Resume at Step 5. - *Constraint*: If PIN invalid 3 times, perform A2 (Lock Card).

  • A2: Lock Card (from A1)

1. System displays "Card Locked due to attempts". 2. System retains card. 3. Use case ends.

  • A3: Insufficient Funds (at Step 10)

1. System determines account balance < requested amount. 2. System displays "Insufficient Funds". 3. System prompts to enter lower amount or cancel. 4. Customer enters new amount. 5. Resume at Step 10.

  • A4: ATM Out of Cash (at Step 10)

1. System checks internal cash dispenser > requested amount. 2. System detects low cash. 3. System displays "Unable to dispense full amount". 4. Use case ends.

Postconditions:

  • User account debited by withdrawal amount.
  • Transaction log created.
  • Cash inventory updated.

Use Case vs. User Story

FeatureUse CaseUser Story
FocusSystem interaction stepsUser value/goal
DetailHigh (Flows, Errors)Low (Conversation starter)
FormatDocument/Structured Textcard/Post-it (Who, What, Why)
LifecycleUpdate/Maintain over timeDone and discarded/archived
ContextWaterfall/Hybrid/ComplexAgile/Scrum

Best Practices

  • Write in Active Voice: "System validates PIN" (not "PIN is validated").
  • Keep it System-Neutral UI: Don't say "User clicks blue button at top right". Say "User selects Option".
  • Focus on Goal: Don't get lost in technical details (e.g., "System sends JSON packet").
  • Link Exceptions: Ensure every error path is handled.

Tools

  • Lark Docs / MS Word: Standard formatting.
  • Visual Paradigm / UML Tools: For Use Case Diagrams.
  • Gherkin: Can translate Use Case flows into Gherkin scenarios for testing.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.36%
按下载量换算533

Claude

30.11%
按下载量换算481

Cursor

18.57%
按下载量换算297

Gemini CLI

9.13%
按下载量换算146

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills