用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/xenoterracide/agent-skills --skill use-case-creator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | use-case-creator |
| description | Use when writing use cases, specifying requirements, or documenting system behavior in AsciiDoc. |
| license | CC-BY-NC-SA-4.0 |
| metadata | {"copyright":"Caleb Cushing"} |
Creates business-readable use cases that serve both human stakeholders and AI implementation.
Always create AsciiDoc (.adoc) files in /docs/use-cases/.
DO:
DON'T:
Each step gets an anchor with the full step text as reftext:
. [[step-validate,System validates identity is new]] *System validates identity is new* +
_System queries whether <<IdentityProviderUser,identity>> already exists_
Extensions reference by anchor:
=== During <<step-validate>>: User Already Exists
Benefits:
step-validate identifierLink domain terms to definitions:
<<User>> - authentication entity<<Person>> - human being<<Account>> - resource/billing container<<IdentityProviderUser>> - external identity linkFirst create or reference the ubiquitous language in /docs/ubiquitous-language/.
= UC-XXX: {Name}
== Metadata
| Primary Actor | <<Person>> with {credentials}
| Scope | {Bounded Context}
| Level | User Goal
== Stakeholders and Interests
*{Stakeholder}*:: {What they want}
== Preconditions
* <<Person>> has {prerequisite}
== Postconditions
=== Success Guarantee
* <<User>> created
* <<DomainEvent>> published
== Main Success Scenario
. [[step-initiate,{Actor} initiates {action}]] *{Actor} initiates {action}* +
_{Business result}_
. [[step-validate,System validates {condition}]] *System validates {condition}* +
_{Validation logic}_
. [[step-create,System creates {entity}]] *System creates {entity}* +
_{Creation outcome}_
== Extensions (Alternative Flows)
=== During <<step-validate>>: {Condition}
*Condition:* {When this happens}
*Steps:*
. {Alternative action}
. *Resume:* Continue at <<step-create>>
=== During <<step-validate>>: {Failure}
*Condition:* {Failure condition}
*Steps:*
. {Failure handling}
. *ENDS* (failed)
== Technology and Data Variations
* {Technical options}
== Special Requirements
* {Business constraints}
== Open Issues
* [[issue-xxx]] {Question to resolve}
== Related Use Cases
* xref:uc-xxx.adoc[UC-XXX: Name]
| Pattern | Use When | Example |
|---|---|---|
| During <> | Extension interrupts step | During <<step-validate>>: Invalid Input |
| After <> | Extension follows step | After <<step-create>>: Send Notification |
| Resume at <> | Return to main flow | Resume at <<step-complete>> |
| ENDS | Flow terminates | *ENDS* (success) or *ENDS* (failed) |
uc-{kebab-case}.adoc for use casesuc-{name}-contract.adoc for implementation contracts (if needed)See assets/uc-registration-example.adoc for a complete example.
<<Term>> references