Skip to content
Back to skills

Process Mapper

ASecurity

Map, measure and improve business processes — SIPOC and swimlane capture, cycle-time and bottleneck analysis, handoff diagnosis, and a payback-ranked improvement backlog. Use when a process is slow, error-prone, or crosses too many teams, when you have step timings in a JSON file, or before automating a step.

  • 1,271 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 6, 2026
ai-agentspythongobashgitsecuritydocumentation

Works with

  • terminal

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill process-mapper --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Process Mapper?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Process Mapper
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-process-mapper/badge)](https://www.skillsdirectory.com/skills/borghei-process-mapper)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: process-mapper
description: >
  Map, measure and improve business processes — SIPOC and swimlane capture,
  cycle-time and bottleneck analysis, handoff diagnosis, and a payback-ranked
  improvement backlog. Use when a process is slow, error-prone, or crosses too
  many teams, when you have step timings in a JSON file, or before automating a step.
license: MIT + Commons Clause
metadata:
  version: 1.0.0
  author: borghei
  category: business-operations
  domain: process-improvement
  updated: 2026-07-21
  tags: [process-mapping, lean, cycle-time, bottleneck, continuous-improvement]
---

# Process Mapper

Turns "this takes forever and nobody knows why" into a measured map with a
ranked backlog. Most process work fails on two things: it maps what people
describe rather than what runs, and it costs wait-time savings as if they were
labour savings. This skill is built to prevent both.

## When to use this skill

- **A process is slow** and nobody can say which step is responsible
- **Work bounces between teams** and the handoffs are suspected but not measured
- **Rework is high** — submissions get returned, tickets get reopened, orders get corrected
- **Before automating anything** — to check the step should exist at all
- **Onboarding a new team** onto an inherited process nobody has documented
- **An improvement programme needs a backlog** ranked by payback rather than by volume of complaint

## Inputs the skill expects

- Process boundaries: trigger event, terminal state, and the unit that flows through
- Step list with owner (role, not person), touch time, and wait time per step
- Wait times from system timestamps rather than self-report where possible
- Rework rate per step and the step each loop returns to
- System of record per step, to detect re-keying points
- Monthly volume and a loaded hourly cost, for valuing improvements

## Clarify First

Before generating, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

- **Which variant are we mapping, and what share of volume is it?:** mapping every exception produces an unreadable map; mapping a 20% path optimises the wrong process.
- **Where do the wait times come from — timestamps or memory?:** self-reported queue time is understated, which moves the constraint to the wrong step.
- **Is the goal lead time, labour cost, or quality?:** these have different constraints and often opposite fixes.
- **Has the business quantified what faster is worth?:** without their number, cycle-time gains cannot be costed and must be argued separately.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

## Workflows

### Workflow 1 — Capture and measure the process

1. Scope first: agree trigger, terminal, unit, and variant on one page before any detail. Use the SIPOC frame in `assets/process-map-template.md`.
2. Observe the work happening before running a workshop. Observation finds the workaround spreadsheet and the chase email; workshops do not.
3. Pull wait times from system timestamps. Use median and 85th percentile, never mean — process-time distributions have long right tails.
4. Classify each step as value-added, business-value-added, or non-value-added. Test approvals by their rejection rate: below 5% and it is a queue with a job title.
5. Run the analyser and check the modelled lead time against measured end-to-end lead time. A gap above 20% means missing steps or, more often, missing wait.

```bash
python3 business-operations/process-mapper/scripts/process_analyzer.py \
  business-operations/process-mapper/assets/flawed_process.json \
  --format text
```

### Workflow 2 — Diagnose handoffs and rework loops

1. Run the handoff analyser on the same process file — no separate input needed.
2. Read handoff density first. Above 0.5 owner changes per step, consolidating ownership beats optimising any individual step.
3. Check what share of total wait sits at handoffs. Above 60%, the problem is between teams and no amount of internal team improvement will move it.
4. Treat every system switch as a re-keying and data-loss point, and every cross-team rework loop as a check that belongs upstream of where it fires.
5. Look at ping-pong: an owner visited three or more separate times should own their segment end to end.

```bash
python3 business-operations/process-mapper/scripts/handoff_analyzer.py \
  business-operations/process-mapper/assets/flawed_process.json \
  --format text
```

### Workflow 3 — Build the improvement backlog

1. Generate opportunities from the findings, applying the improvement hierarchy in order: eliminate, consolidate, parallelise, standardise, automate.
2. Split every saving into `touch_minutes_saved_per_unit` (labour, costed) and `lead_minutes_saved_per_unit` (elapsed, not costed). This split is the discipline that keeps the business case survivable.
3. Supply `annual_cycle_time_value` only when the business has quantified it — that figure is theirs, not the analyst's.
4. Run the scorer and read the tiers. Anything above 20 days of effort is a project needing its own sponsor, not a backlog item.
5. Override payback order in one case: if first-pass yield is below 85%, sequence the rework fixes first regardless of their payback. Flow improvements cannot hold on a process that reworks half its units.

```bash
python3 business-operations/process-mapper/scripts/improvement_scorer.py \
  business-operations/process-mapper/assets/flawed_opportunities.json \
  --format json
```

## Run it and read the output

All three tools take the JSON file as a positional argument or `--input`, and `--format text|json`
(`--json` is a legacy alias). Run from the repository root:

```bash
python3 business-operations/process-mapper/scripts/process_analyzer.py \
  business-operations/process-mapper/assets/flawed_process.json
```

Real output (excerpt):

```
## Flow metrics
- Lead time: 5855 min (12.2 working days at 8h)
- Process cycle efficiency: 5.5% [BELOW AVERAGE] 5-15%: queues still control lead time (heuristic bands)
- First-pass yield: 41.9%; expected rework 717 min/unit

FINDINGS
1. [rework] 'Deal desk checks pricing + terms' rework_rate 22% (threshold above 10%, heuristic), 104 min expected per unit
   Fix: Add the check that catches the failure before 'Deal desk checks pricing + terms' starts (at 's1') and bring the rate from 22% to 10%: saves 57 min per unit.
...
FIX 8 issues
```

Every field the tools need must be in your file (step: `id`, `owner`, `value_type`,
`process_time_min`, `wait_time_min`, `rework_rate`; opportunities also need `hourly_cost`, `type`,
`confidence`, `risk`). Missing fields are an error, never assumed to be zero. Each finding quotes your
values, names the rule and threshold, and gives a fix; at most three next actions are listed.

### Exit codes

| Code | Meaning |
|------|---------|
| 0 | No findings (`PASS`) |
| 1 | Findings to act on (`FIX n issues`) |
| 2 | Unusable input: missing, empty, invalid JSON, wrong shape or missing required field (one-line `ERROR:` on stderr) |

Samples: `assets/sample_*.json` exit 0, `assets/flawed_*.json` exit 1, `assets/malformed_*.json` exit 2.
`assets/contract.json` lists the runs checked by `scripts/skill_contract_check.py`.

## Decision frameworks

### Diagnostic thresholds [HEURISTIC]

Internal rules of thumb of this skill, not published benchmarks; tune them to your process.

| Signal | Threshold | What it means |
|--------|-----------|---------------|
| Step share of lead time | 35% or more, with 60+ min wait | This is the constraint |
| Wait/touch ratio on a step | Above 3x, with 60+ min wait | A queue, not work |
| Wait/touch ratio | Above 10x | Batch-and-queue scheduling; fix policy, not capacity |
| Rework rate per step | Above 10% | Fix before any speed work |
| First-pass yield end to end | Below 75% | Rework is the dominant cost |
| Handoff density | Above 0.5/step | Fragmented ownership |
| Wait sitting at handoffs | Above 60% | Optimise between teams, not inside them |
| Non-value-added touch time | Above 25% | Eliminate before automating |
| Approval rejection rate | Below 5% | The approval is theatre |

### Process cycle efficiency bands [HEURISTIC]

PCE = value-added time / lead time, for transactional processes:

| PCE | Band | Situation |
|-----|------|-----------|
| Below 5% | Low | Wait time dominates lead time. |
| 5-15% | Below average | Some flow; queues still control lead time. |
| 15-25% | Average | Reasonable across several teams. |
| 25% and above | High | Strong flow; check the timestamps are real. |

Manufacturing benchmarks do not transfer. Judge PCE against your own
baseline and the previous run, not an external number.

### The improvement hierarchy [HEURISTIC]

Applied to the same step, earlier verbs beat later ones:

| Rank | Verb | Question | Typical gain |
|------|------|----------|-------------|
| 1 | Eliminate | Does this need to happen at all? | 100% of the step |
| 2 | Consolidate | Can one owner do this and the next step? | Removes a handoff and its queue |
| 3 | Parallelise | Must this wait for the previous step? | Up to the shorter branch |
| 4 | Standardise | Can the variation be removed? | 20-40%, plus rework reduction |
| 5 | Automate | Can a system do it? | 60-90% of touch time |

**Automate last.** Automating a step you should have eliminated makes the waste
permanent and expensive to remove, because every future change now needs a
development cycle. Parallelisation is the most under-used lever in
approval-heavy processes — sequential credit, legal, and security reviews
usually have no real dependency and are sequential only because someone drew the
process as a line.

### Valuing a saving [HEURISTIC]

| Saving | Currency | Costable? |
|--------|----------|-----------|
| Touch time removed | Labour hours | Yes — hours x loaded rate |
| Wait time removed | Lead time | Only with a number from the business |

Removing a queue frees nobody's hours. It may be worth far more than the labour
saving through faster revenue or better win rates — but that value comes from
the business owner, not from the analyst's spreadsheet.

## Anti-Patterns

### Costing wait time as labour
**Mistake:** Multiplying total lead-time reduction by a loaded hourly rate — "we cut 25 hours per order at $72/hour, so we save $1,800 per order."
**Why it happens:** It produces a spectacular number from data already in hand, and the arithmetic looks identical to the legitimate touch-time calculation.
**Instead:** Cost only touch time as labour. Report lead-time reduction separately in its own units and ask the business owner what it is worth to them. Finance will find the inflated figure in the first review, and the credibility loss contaminates the genuine savings sitting in the same document.

### Mapping the described process
**Mistake:** Building the map from a workshop, an existing SOP, or interviews with managers, then analysing it as fact.
**Why it happens:** It is fast, it is comfortable, and everyone in the room believes their description is accurate. Nobody is lying — they are describing the process as designed, because the workarounds have become invisible through repetition.
**Instead:** Observe the work happening, and pull wait times from system timestamps. Then validate by reading the map back to the people who do it, asking "what did I get wrong?" rather than "does this look right?" If your modelled lead time is more than 20% below the measured figure, you are missing steps or missing wait — usually the chase emails and batch delays nobody thinks to mention.

### Optimising a non-constraint
**Mistake:** Running an improvement programme that makes six steps faster, then finding end-to-end lead time unchanged.
**Why it happens:** Improvement effort goes where the team is willing rather than where the constraint is, and every local gain is real and measurable — it just does not reach the customer.
**Instead:** Find the constraint, exploit and subordinate before spending anything, and only then add capacity. Improving a non-constraint step provably changes nothing at the process level. Re-measure after each fix, because the constraint moves once relieved.

### Automating before eliminating
**Mistake:** Commissioning software to speed up a step that should not exist — the classic being an automated approval workflow for an approval that rejects 2% of submissions.
**Why it happens:** Automation has a budget line, a vendor, and a visible deliverable. Eliminating a step requires persuading whoever owns it that their control is unnecessary, which is a political problem with no budget code.
**Instead:** Run the first four verbs of the improvement hierarchy before writing any code. Automation encodes the current process in software and makes every subsequent change a development project — so the cost of automating waste is not the build, it is the decade of paying to work around it.

## Files

| File | Purpose |
|------|---------|
| `scripts/process_analyzer.py` | Cycle time, PCE, value-added ratio, first-pass yield, rework cost, and constraint identification |
| `scripts/handoff_analyzer.py` | Handoff scoring, ping-pong detection, cross-team rework loops, system-switch mapping |
| `scripts/improvement_scorer.py` | Payback-tiered backlog separating labour savings from lead-time savings, with dependency sequencing checks |
| `references/lean-process-analysis.md` | Core metrics, PCE benchmarks, waste taxonomy, diagnostic thresholds, Little's Law, constraint sequence, honest valuation |
| `references/process-capture-methods.md` | Scoping, SIPOC, capture techniques ranked, per-step data fields, time-data rules, validation checks, engagement sequence |
| `assets/process-map-template.md` | Full map deliverable: SIPOC, swimlane, step detail, metrics, handoffs, backlog, validation checklist |
| `scripts/common.py` | Shared input loading, validation, findings and exit-code helpers (library, not a command) |
| `assets/sample_process.json`, `assets/sample_opportunities.json` | Sound inputs (exit 0) |
| `assets/flawed_process.json` | Twelve-step order-to-activation process across seven owners with rework loops and system switches (exit 1) |
| `assets/flawed_opportunities.json` | Eight opportunities across all five improvement verbs, including ones that correctly fail scoring (exit 1) |
| `assets/malformed_*.json` | Unusable inputs (exit 2) |
| `assets/contract.json` | Contract runs for the checker |

## Scope & Limitations

**In Scope:**
- Process capture on one page with a SIPOC frame and swimlane map, using `assets/process-map-template.md`.
- Lead time, process cycle efficiency, value-added ratio, first-pass yield, rework cost and constraint identification with `process_analyzer.py`.
- Handoff density, ping-pong owners, cross-team rework loops and system switches with `handoff_analyzer.py`.
- A payback-tiered improvement backlog with `improvement_scorer.py`, ordered by the eliminate, consolidate, parallelise, standardise, automate hierarchy.
- Labour savings costed from touch time only, reported separately from lead-time savings.

**Out of Scope:**
- Headcount and delivery-capacity planning (see `business-operations/capacity-planner/`).
- Flow metrics for software delivery teams, such as WIP, throughput and aging work (see `project-management/execution/cycle-time-analyzer/`).
- Rolling out the redesigned process and managing resistance to it (see `c-level-advisor/change-management/`).
- Keeping process documentation current in an internal knowledge base (see `business-operations/knowledge-ops/`).
- Building the automation itself. The skill decides whether a step should be automated, not how to build it.

**Important Caveats:**
- The scripts read a process JSON file written by hand. They do not connect to workflow, ticketing or ERP systems and do not pull timestamps.
- Results are only as good as the step data. Self-reported wait times are usually understated, which can move the constraint to the wrong step.
- The diagnostic thresholds and PCE bands are heuristics for transactional processes. Manufacturing benchmarks do not transfer.
- The tools do not value a shorter lead time. `annual_cycle_time_value` has to come from the business owner.

Files in this skill

  • SKILL.md12.2 KB
  • assets/process-map-template.md3.4 KB
  • assets/sample_opportunities.json3.5 KB
  • assets/sample_process.json3.5 KB
  • references/lean-process-analysis.md11.3 KB
  • references/process-capture-methods.md9.5 KB
  • scripts/handoff_analyzer.py11.3 KB
  • scripts/improvement_scorer.py11.2 KB
  • scripts/process_analyzer.py12.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.