explain-business-process

Identify business workflows that include participants, steps, preconditions, and outcomes. Convert method chains or program logic into natural-language business process descriptions, e.g., “when a customer places an order, the system verifies inventory...”

Last repository push
GitHub Stars
109
Forks
26
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "explain-business-process" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-172ced34d9a958bc7547bb7ff153b0174554339368fd4f5db5f75f8417736e3e. Verify the upstream source and version against https://github.com/dykyi-roman/awesome-claude-code before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Identify business workflows that include participants, steps, preconditions, and outcomes. Convert method chains or program logic into natural-language business process descriptions, e.g., “when a customer places an order, the system verifies inventory...”

0 Downloads

Introduction source: third_party · dykyi-roman · 0.0.1 Reference

SkillPi interpretation

Tasks
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...
Inputs and outputs
```markdown
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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:

  1. Read the handler — understand the sequence of operations
  2. Identify the actor — who initiates this process (User, Admin, System, Scheduler)
  3. Identify preconditions — what must be true before the process starts
  4. Trace the steps — follow method calls through the layers
  5. Identify outcomes — what changes after the process completes
  6. 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 processes
  • extract-business-rules — references rules in processes
  • trace-request-lifecycle — technical trace for each process

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决代码与业务语言脱节的核心痛点
  • 面向开发人员与业务分析师的通用工具
  • 覆盖 Use Case、Service、Event-Driven 多种业务流模式
Trigger Precision90/100

Highlights

  • 触发描述精准完整,边界清晰
  • 覆盖多种业务过程变体场景
  • 不易与其他 Skill 重叠
Structure and Standards95/100

Highlights

  • 结构完整,Phase/步骤清晰
  • 含端到端 Place Order 完整示例
  • frontmatter 完整,文档长度适中
Execution Reliability90/100

Highlights

  • Grep 命令参数正确,工具来源明确
  • 覆盖 validation/stock/payment 等主要异常场景
  • 体现事务处理与确认机制
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.