Simplification cascades

From DangQuangSE/team-development-skills · View interactive version

Simplification cascades is an AI agent skill from the GitHub repository DangQuangSE/team-development-skills. Find one insight that eliminates multiple components - "if this is true, we don't need X, Y, or Z

How to use this skill

Skill file

Simplification Cascades

Overview

Sometimes one insight eliminates 10 things. Look for the unifying principle that makes multiple components unnecessary.

Core principle: "Everything is a special case of..." collapses complexity dramatically.

Quick Reference

| Symptom | Likely Cascade |

|---------|----------------|

| Same thing implemented 5+ ways | Abstract the common pattern |

| Growing special case list | Find the general case |

| Complex rules with many exceptions | Find the rule that has no exceptions |

| Excessive config options | Find defaults that work for 95% |

| Refactoring feels like whack-a-mole | A deeper unifying model is missing |

The Pattern

Look for:

Ask: "What if they're all the same thing underneath?"

Examples

Cascade 1: Stream Abstraction

Before: Separate handlers for batch/real-time/file/network data

Insight: "All inputs are streams — just different sources"

After: One stream processor, multiple stream sources

Eliminated: 4 separate implementations

Cascade 2: Resource Governance

Before: Session tracking, rate limiting, file validation, connection pooling (all separate)

Insight: "All are per-entity resource limits"

After: One ResourceGovernor with 4 resource types

Eliminated: 4 custom enforcement systems

Cascade 3: Immutability

Before: Defensive copying, locking, cache invalidation, temporal coupling

Insight: "Treat everything as immutable data + transformations"

After: Functional programming patterns

Eliminated: Entire classes of synchronization problems

Cascade 4: Event Sourcing

Before: Audit log, undo history, cache invalidation, notification triggers (all wired separately)

Insight: "Everything is an event — store events, derive state"

After: Event store + projections replace all 4 systems

Process

  1. List the variations — What's implemented multiple ways?
  2. Find the essence — What's the same underneath?
  3. Extract abstraction — What's the domain-independent pattern?
  4. Test it — Do all cases fit cleanly?
  5. Measure cascade — How many things become unnecessary?

Red Flags You're Missing a Cascade

Remember

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.