with one click
extract-flows
当需要理解模块的业务流程、状态转换、时序关系、或异常处理方式时使用。读取结构地图,逐模块提取流程文档。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
当需要理解模块的业务流程、状态转换、时序关系、或异常处理方式时使用。读取结构地图,逐模块提取流程文档。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Use when executing implementation plans with independent tasks in the current session
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Use when you have a spec or requirements for a multi-step task, before touching code
| name | extract-flows |
| description | 当需要理解模块的业务流程、状态转换、时序关系、或异常处理方式时使用。读取结构地图,逐模块提取流程文档。 |
读取结构地图,逐模块提取流程文档。
`{KB_DATA_ROOT}/raw//_map.md` 必须存在(由 scan 技能产出)。如果没有,先调用 scan 技能。| 参数 | 必填 | 默认值 | 说明 |
|---|---|---|---|
--target <path> | 是 | - | 目标代码库路径 |
--project <name> | 是 | - | 项目名称 |
--module <name> | 否 | 全量 | 只分析指定模块 |
--kb-data-root <path> | 否 | 插件 data 目录绝对路径 | 数据根目录 |
{KB_DATA_ROOT}/raw/<project>/_map.md 必须存在{KB_DATA_ROOT}/raw/<project>/flows/_index.md(带 frontmatter 的索引){KB_DATA_ROOT}/raw/<project>/flows/modules/<module>.md(每个模块一份流程文档)| 想法 | 问题 |
|---|---|
| "只画正常路径就够了" | 异常路径是流程分析的核心价值。缺少异常处理文档 = 上线后靠猜排障 |
| "状态转换用文字描述就行" | 文字无法表达分支和并发。状态图是状态机的唯一可靠表达方式 |
| "超时和重试是运维关心的事" | 超时和重试是流程设计的一部分,影响数据一致性和用户体验,必须从代码中提取 |
| "一个流程一张图就够了" | 复杂流程需要流程图 + 序列图 + 状态图互补,单一视角必然遗漏关键信息 |
_map.md,获取模块清单和流程入口点--module,只分析该模块;否则分析所有模块flows/modules/<module>.mdflows/_index.md(流程清单 + 跨模块流程总图 + frontmatter)_index.md frontmatter---
project: <project>
dimension: flows
date: YYYY-MM-DD
status: unprocessed
tags: [...]
---
每份流程文档必须包含以下章节:流程概述(触发条件 + 参与者 + 分类)、流程清单(表格:流程名 | 类型 | 触发方式 | 关键性)、流程详情(Mermaid 图 + 异常路径 + 后置状态)、状态机(转换表 + Mermaid 状态图)。
交付前逐项勾选,P0 未满足必须补充: