flow
Documents workflow diagrams and process flows with Mermaid diagram support.
- License 许可
- MIT
- 所属仓库
- goffity/dev-km
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- flow
- description
- Documents workflow diagrams and process flows with Mermaid diagram support.
- argument-hint
- [name]
- user-invocable
- true
02 资源文件 3
- 资产文件assets/example_asset.txt866 B
- 参考文档references/api_reference.md978 B
- 脚本scripts/example.py612 B
03 SKILL.md 正文
Flow - Process Flow Documentation
Document workflows, sequences, and state machines with Mermaid diagrams.
Usage
/flow [name]
/flow pr-review
/flow deployment
Output: $PROJECT_ROOT/kb/02-patterns/flows/[name].md
Instructions
Language Setting
Check
LANGUAGEindocs/current.md. Ifth, translate output perreferences/language-guide.md. Seereferences/bash-helpers.mdfor detection snippet.
- Parse name → kebab-case filename
- Ask user about the flow:
- What type? (process/sequence/state)
- What actors/components are involved?
- What are the main steps?
- Generate flow document with Mermaid diagram
- Save to
kb/02-patterns/flows/[name].md
Template
# [Flow Name]
| Field | Value |
|-------|-------|
| Type | Process / Sequence / State |
| Actors | [list of actors] |
| Created | YYYY-MM-DD |
## Overview
> One sentence description of what this flow does.
## Diagram
```mermaid
sequenceDiagram
participant A as Actor1
participant B as Actor2
A->>B: Action
B-->>A: Response
Steps
- Step 1: Description
- Step 2: Description
- Step 3: Description
Error Handling
| Error | Handling |
|---|---|
| [error case] | [how to handle] |
Related
- [related flows or docs]
## Diagram Types
### Sequence Diagram
```mermaid
sequenceDiagram
participant U as User
participant S as System
U->>S: Request
S-->>U: Response
Flowchart
flowchart TD
A[Start] --> B{Decision}
B -->|Yes| C[Action]
B -->|No| D[Other]
State Diagram
stateDiagram-v2
[*] --> Idle
Idle --> Processing: start
Processing --> Done: complete
Processing --> Error: fail
Related Commands
| Command | Purpose |
|---|---|
/mem |
Capture insights about flows |
/flow |
Document flows (you are here) |
/pattern |
Document reusable patterns |
04 同仓库更多 Skills
wait-what
Stop. That last message did not land: re-pitch it.
tdd
Test-driven development loop (red-green-refactor) with commit-based phase state and Jira traceability. Use when the user wants to build a feature or fix a bug test-first, mentions "tdd", "red-green-refactor", or "test-first". Replaces the tdg plugin — combines its commit/phase discipline with seam-based test quality rules from kb Testing Standards.
td
Creates post-task retrospectives with Before/After context and session documentation.
summary
Generates weekly or monthly session summaries from retrospectives and activity logs.
share
Shares knowledge across projects by copying to shared-knowledge directory with cross-project metadata.
session-analyzer
Analyzes git changes and creates retrospective drafts with Before/After context.