dot_agents/skills/documenting-business-processes/SKILL.md
Document business processes and workflows that a system implements. Describes end-to-end flows like user registration, order fulfillment, or payment processing — how domain entities move through the system. Use when (1) business workflows are undocumented, (2) a flow spans multiple components and no single component's docs tell the full story, (3) agents need to understand end-to-end behavior to implement changes, or (4) stakeholders need visibility into how the system handles a business process. NOT for development processes — those belong in skills and contribution guidelines.
npx skillsauth add MrPointer/dotfiles documenting-business-processesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Document the business processes and workflows a system implements: how domain entities move through the system, what triggers each step, what the outcomes are, and what can go wrong. Business process docs tell the end-to-end story that no single component's documentation can tell on its own.
Domain ← Defines the entities involved in processes
↓
Architecture ← Defines the system structure processes traverse
↓
Business Processes ← You are here (end-to-end flows across the system)
↓
Components ← Implements individual steps of processes
Before writing anything:
Follow the targeted process through the codebase:
Stay within the requested scope. Document one process at a time.
Follow the project's existing doc style. If none exists, use this structure:
# <Process Name>
## Overview
<What this process accomplishes from a business perspective — 2-3 sentences>
## Trigger
<What initiates this process — user action, system event, schedule, external call>
## Actors
<Who or what is involved — users, services, external systems>
- <Actor>: <role in this process>
## Diagram
<Mermaid diagram visualizing the process flow — see diagram guidance below>
## Flow
### Happy Path
1. <Step 1> — <what happens, which component handles it>
2. <Step 2> — <what happens, which component handles it>
3. ...
<Result: what state changes when the process completes successfully>
### Failure Scenarios
#### <Failure Scenario 1>
- **Trigger**: <What causes this failure>
- **At step**: <Where in the flow it occurs>
- **Handling**: <How the system responds — rollback, retry, partial completion, error state>
- **User impact**: <What the user experiences>
#### <Failure Scenario 2>
...
## State Changes
<What entities are created, modified, or deleted when this process completes>
- <Entity>: <from state> → <to state>
## Dependencies
<External systems, services, or conditions this process relies on>
Every process doc should include a mermaid diagram placed before the textual flow description. The diagram gives humans an instant visual overview; the text provides the detail.
Choose the diagram type based on the process shape:
flowchart TD): Best for most processes — decision branches, parallel paths, error terminals. Use subgraphs to group related phases.sequenceDiagram): Best when the process is a back-and-forth between distinct actors or systems (e.g., sourcing chain, API handshakes).Guidelines:
When tracing a process, some steps may be complex enough to warrant their own dedicated process doc. Decompose a step into a sub-process when:
When you identify a sub-process:
3. **[Check system compatibility][compat-check]** — Verify the system meets minimum requirements
When NOT to decompose:
If new documentation files were created, propose adding a pointer in AGENTS.md:
## Business Processes
See `docs/processes/<process>.md` for <brief description>.
Never put process details into AGENTS.md itself — only add a pointer.
[text][ref] with [ref]: path at the bottom of the file) rather than inline links. They read better in source and are easier to maintain.testing
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
testing
Create implementation plans from a reviewed RFC. Uses the RFC as the approved design baseline, decomposes it into executable sub-plans, and runs RFC-specific plan review.
tools
Create implementation plans directly from user requirements when no reviewed RFC is available or the user explicitly declines RFC-first planning. Decomposes work into self-contained sub-plans with full iterative multi-agent plan review.
content-media
Decompose a reviewed RFC into sequenced features for a single project. Uses the RFC as the approved design baseline and produces a persistent epic plan reviewed for RFC fidelity and feature decomposition.