explain-business-process
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "explain-business-process":https://skillpi.com/zh/skills/deepskill-172ced34d9a958bc7547bb7ff153b0174554339368fd4f5db5f75f8417736e3e。安装前核对上游来源和版本:https://github.com/dykyi-roman/awesome-claude-code。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
识别包含参与者、步骤、前置条件和结果的业务工作流。将方法链或程序逻辑转换为自然语言的业务过程描述,例如“当客户下单时,系统验证库存...”
介绍来源: third_party · dykyi-roman · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 减记
- 实测状态
- 未测试
文件浏览
Frontmatter
name: explain-business-process
description: Identifies business workflows with actors, steps, preconditions, and outcomes. Translates method chains into natural language business processes like "When customer places order, system validates inventory..."Business Process Explainer
Overview
Identifies and documents business processes implemented in code. Translates technical method chains, event flows, and service orchestrations into natural language descriptions with actors, steps, preconditions, and outcomes.
Process Detection
Use Case / Command Handler Analysis
# Find use cases and command handlers (primary business operations)
Grep: "class.*UseCase|class.*Handler" --glob "**/Application/**/*.php"
Grep: "function (execute|handle|__invoke)" --glob "**/Application/**/*.php"
# Read the handler to trace the full process
# Each handler method = one business process
Service Orchestration
# Application services that orchestrate domain operations
Grep: "class.*Service" --glob "**/Application/**/*.php"
Grep: "function (create|update|delete|process|execute|handle)" --glob "**/Application/**/*.php"
# Domain services with business logic
Grep: "class.*Service" --glob "**/Domain/**/*.php"
Event-Driven Processes
# Events that trigger subsequent processes
Grep: "class.*Event" --glob "**/Domain/**/*.php"
Grep: "dispatch|publish|raise|record" --glob "**/*.php"
# Event handlers (reaction to events)
Grep: "#\\[AsMessageHandler\\]|implements.*Handler" --glob "**/*.php"
Grep: "function.*handle.*Event" --glob "**/*.php"
Analysis Process
Step 1: Identify the Process
For each Use Case / Command Handler:
- Read the handler — understand the sequence of operations
- Identify the actor — who initiates this process (User, Admin, System, Scheduler)
- Identify preconditions — what must be true before the process starts
- Trace the steps — follow method calls through the layers
- Identify outcomes — what changes after the process completes
- Find side effects — events dispatched, notifications sent, logs written
Step 2: Trace Method Chains
Handler::handle(Command)
→ Repository::find(id) // Load data
→ Entity::performAction(args) // Domain logic
→ Repository::save(entity) // Persist changes
→ EventBus::dispatch(event) // Side effects
Translate to:
"When [actor] performs [action], the system [step 1], then [step 2], and finally [step 3]."
Step 3: Map to Business Language
| Technical Term | Business Term |
|---|---|
CreateOrderHandler |
"Place an order" |
Repository::find() |
"Look up the [entity]" |
Entity::validate() |
"Verify that [conditions]" |
Repository::save() |
"Record the [entity]" |
EventBus::dispatch() |
"Notify relevant parties" |
throw InvalidArgumentException |
"Reject if [condition]" |
Transaction::begin/commit |
"Ensure all-or-nothing" |
Process Documentation Template
For each identified process:
### Process: [Business Name]
**Trigger:** [What starts this process]
**Actor:** [Who initiates — Customer, Admin, System, Scheduler]
**Preconditions:**
- [What must be true before starting]
- [Required state/permissions]
**Steps:**
1. **[Actor]** [initiates action] (e.g., "submits order form")
2. **System** [validates/checks] (e.g., "validates order data")
3. **System** [performs domain logic] (e.g., "calculates total with discounts")
4. **System** [persists changes] (e.g., "saves the new order")
5. **System** [triggers side effects] (e.g., "sends confirmation email")
**Outcomes:**
- **Success:** [What happens on success]
- **Failure:** [What happens on failure — specific error scenarios]
**Side Effects:**
- [Events dispatched]
- [Notifications sent]
- [External systems called]
**Business Rules Applied:**
- [Rule references from extract-business-rules]
Output Format
## Business Processes
### Overview
| # | Process | Actor | Trigger | Domain |
|---|---------|-------|---------|--------|
| 1 | Place Order | Customer | Submit order form | Order |
| 2 | Process Payment | System | Order confirmed | Payment |
| 3 | Ship Order | Warehouse | Payment received | Shipping |
| 4 | Cancel Order | Customer/Admin | User request | Order |
### Process 1: Place Order
**Trigger:** Customer submits order through API or web form
**Actor:** Customer (authenticated)
**Preconditions:**
- Customer is authenticated
- Shopping cart is not empty
- All items are in stock
**Steps:**
1. **Customer** submits order with items and delivery address
2. **System** validates order data (items exist, quantities available)
3. **System** checks customer's eligibility (account active, no blocks)
4. **System** calculates total price including taxes and shipping
5. **System** applies available discounts (loyalty, promotional)
6. **System** reserves inventory for ordered items
7. **System** creates the order record with "pending" status
8. **System** initiates payment process
**Outcomes:**
- **Success:** Order created with status "pending", confirmation sent
- **Failure (validation):** Error returned with specific field errors
- **Failure (stock):** "Items out of stock" with affected items listed
- **Failure (payment):** Order created but marked "payment_failed"
**Side Effects:**
- OrderCreated event → triggers confirmation email
- OrderCreated event → triggers inventory reservation
- OrderCreated event → triggers analytics tracking
**Business Rules:**
- INV-1: Order amount must be positive
- INV-2: Order must have at least one item
- POL-1: Free shipping for orders over $100
### Process Interaction Map
[Place Order] ──triggers──→ [Process Payment] │ success ←──┘──→ failure │ │ v v [Ship Order] [Cancel Order] │ v [Deliver Order]
Process Complexity Indicators
| Indicator | Simple | Medium | Complex |
|---|---|---|---|
| Steps | 1-3 | 4-7 | 8+ |
| Actors | 1 | 2 | 3+ |
| Branches | 0-1 | 2-3 | 4+ |
| Side effects | 0-1 | 2-3 | 4+ |
| Domain events | 0 | 1-2 | 3+ |
Integration
This skill is used by:
business-logic-analyst— documents all business processesextract-business-rules— references rules in processestrace-request-lifecycle— technical trace for each process
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决代码与业务语言脱节的核心痛点
- 面向开发人员与业务分析师的通用工具
- 覆盖 Use Case、Service、Event-Driven 多种业务流模式
亮点
- 触发描述精准完整,边界清晰
- 覆盖多种业务过程变体场景
- 不易与其他 Skill 重叠
亮点
- 结构完整,Phase/步骤清晰
- 含端到端 Place Order 完整示例
- frontmatter 完整,文档长度适中
亮点
- Grep 命令参数正确,工具来源明确
- 覆盖 validation/stock/payment 等主要异常场景
- 体现事务处理与确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。