スキル一覧に戻る
mixomat

writing-use-cases

by mixomat

Marketplace with plugins for claude-code.

0🍴 0📅 2025年12月10日
GitHubで見るManusで実行

SKILL.md


name: writing-use-cases description: Create structured use case documentation with sequence diagrams for backend systems. Use when documenting API endpoints, service interactions, event flows, or system behaviors. Triggers on requests like "document this use case", "create use case for X endpoint", "write flow documentation", or "explain how X feature works".

Writing Use Cases

Create use case markdown files that document backend flows with mermaid sequence diagrams.

Discovery Workflow

  1. Identify entry point - Find the controller/handler for the endpoint
  2. Trace the flow - Follow method calls, service interactions, external calls
  3. Find events - Look for message publishing (SNS, Kafka, RabbitMQ, etc.)
  4. Map state transitions - Identify entity state changes
  5. Note validations - Document validation rules and constraints

Output Structure

# {Feature Name} Use Case

## Overview
{1-2 sentences: what this use case does and when it's triggered}

## Flow

{mermaid sequence diagram - see references/mermaid-patterns.md}

## Key Points

- **Entry Point:** `{HTTP method} {path}` ([`{ControllerName}`]({relative-path}))
- **Request Model:** [`{DtoName}`]({relative-path})
- **State Transition:** {from} → {to}
- **Event:** `{EventName}` published to {destination}
- **Validation:** {key validation rules}

Output File

  • Use the docs/{use case name}-use-case.md as output file location (DEFAULT).
  • Ask the User, if the default is fine or another location should be used.

Writing Guidelines

  • Keep overview concise (1-2 sentences)
  • Use relative links to source files
  • Include all actors and systems in the diagram
  • Group related operations with Note over blocks
  • Use alt/else for conditional flows
  • Document both success and error paths when relevant

Mermaid Patterns

See references/mermaid-patterns.md for sequence diagram syntax and examples.

スコア

総合スコア

55/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です