AgentSkillsCN

simplification-cascades

找到一个关键洞见,一举消除多个冗余组件——“如果这一点成立,我们就不再需要 X、Y 或 Z。”

SKILL.md
--- frontmatter
name: simplification-cascades
description: "Find one insight that eliminates multiple components - 'if this is true, we don't need X, Y, or Z'"
last_updated: 2026-01-10
tools_required: []
agent_type: main_agent

Simplification Cascades

One insight that eliminates 10 things.

[GOAL]

Find the unifying principle that makes multiple components unnecessary.

[CONTEXT]

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

Use when:

  • Same thing implemented 5+ ways
  • Growing special case list
  • Complexity is spiraling
  • "We just need to add one more case..." (repeating forever)

[PROCESS]

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

[EXAMPLES]

Stream Abstraction

Before: Separate handlers for batch/real-time/file/network data Insight: "All inputs are streams - just different sources" Eliminated: 4 separate implementations

Resource Governance

Before: Session tracking, rate limiting, file validation, connection pooling Insight: "All are per-entity resource limits" Eliminated: 4 custom enforcement systems

Immutability

Before: Defensive copying, locking, cache invalidation Insight: "Treat everything as immutable data + transformations" Eliminated: Entire classes of synchronization problems

[RED FLAGS]

  • "We just need to add one more case..."
  • "These are all similar but different"
  • Refactoring feels like whack-a-mole
  • "Don't touch that, it's complicated"

[IMPORTANT]

  • Simplification cascades = 10x wins, not 10% improvements
  • One powerful abstraction > ten clever hacks
  • Measure in "how many things can we delete?"

See Also

  • [[when-stuck]] - Dispatch to right technique
  • [[meta-pattern-recognition]] - Spot recurring patterns