Coding

thinking-theory-of-constraints

Try it

When throughput or latency is pipeline-limited, identify the single binding constraint and exploit, subordinate, elevate, then recheck—ignore non-constraints.

What it does

When throughput or latency is pipeline-limited, identify the single binding constraint and exploit, subordinate, elevate, then recheck—ignore non-constraints.

The skill document

Theory of Constraints

A throughput-limited system has one binding constraint. Improve only that constraint; local optimization of non-constraints wastes effort and often grows WIP.

When to Use

  • Latency or throughput goal where one stage dominates time or rate.
  • Work piles up before one stage; downstream idles.
  • Adding capacity/workers elsewhere does not raise end-to-end output.
  • Need ordered plan: exploit cheaply before spending to elevate.

When NOT to Use

  • Load is spread; no stage dominates—use systems for interactions.
  • Problem is correctness/fault, not flow rate—debug the fault.
  • Bottleneck hops every run due to coupling/contention without a stable stage—systems or concurrency design, not five focusing steps.
  • Constraint already known and a cheap fix is ready—apply it without ceremony.

Procedure

  1. Define the flow and goal. Name the unit of work (request, job, PR, record) and the metric that matters (end-to-end rate or latency).
  2. Identify the constraint with evidence. Compare stages on utilization, queue/wait, and throughput. Constraint signals: near-100% use, longest queue, lowest stage rate, work piles here, more input does not raise system output. Prefer measured rates over opinions. If two candidates tie, pick the one whose improvement would raise system throughput first.
  3. Exploit (no major spend). Maximize constraint output: cut idle, drop nonessential work on the constraint, reduce rework/setup, protect its time, improve quality at the constraint so output is not wasted. Estimate gain before spending.
  4. Subordinate non-constraints. Pace upstream to constraint rate; do not flood WIP. Make other stages serve the constraint (readiness, clarity, immediate pull). Reject local utilization targets that grow queues before the constraint.
  5. Elevate only if still short. After exploit is maxed, invest to raise constraint capacity (people, tooling, sharding, parallel path). Choose cheapest adequate elevation.
  6. Recheck (prevent inertia). After elevation or large exploit, remeasure all stages—the constraint often moves. Return to step 2. Do not keep optimizing the old constraint.

Stop when constraint, evidence, exploit plan, subordination rules, and elevate-or-not decision are explicit—or when no single stage binds (exit to systems).

Output

system_goal: 
flow: 
constraint: 
evidence: 
exploit: 
subordinate:
  - stage: 
    change: 
elevate: 
next_constraint_watch: 

Verification

  • Falsify: If raising the named stage cannot increase system throughput (another stage already caps), identification is wrong. If non-constraint optimizations change end-to-end rate, re-identify.
  • Stop: Do not elevate before exploit is exhausted. Do not optimize multiple stages “just in case.”
  • Over-application guard: One constraint at a time. Idle capacity upstream is not a problem to fill. Do not use TOC language for pure multi-loop emergence without a binding stage.

Related skills

Activate when: user says 'everyone is working hard but results are flat', 'where is our bottleneck', 'we keep adding capacity but throughput doesn't improve'...

3 stars

Use when search or investigation could run forever. Set an explicit good-enough threshold first, then stop at the first option that clears it.

1 installs

When provisioning, setting a limit, or committing an estimate under uncertainty, size a buffer to residual error and the cost of breach—not to the optimistic edge.

1 installs

When a constraint is treated as fixed, separate physics from convention, keep only independently supported primitives, and rebuild the simplest solution that satisfies real constraints.

3 installs

交互引导式运用TOC五大聚焦步骤(找出/挖尽/迁就/松绑/回头)识别系统约束并制定突破策略,强制交互锁保证分析真实,不替用户决策

1 installs