Agent Skillsmrgoonie/claudekit-skills › Simplification Cascades

Simplification Cascades

GitHub

指导通过寻找统一原理消除多个组件,实现系统简化。适用于识别重复实现、特殊案例过多及复杂规则等场景,旨在通过抽象共性模式大幅降低复杂度并减少冗余代码。

.claude/skills/problem-solving/simplification-cascades/SKILL.md mrgoonie/claudekit-skills

Trigger Scenarios

存在多个类似概念的不同实现 特殊案例处理分散在各处 需要处理多种不同情况的复杂规则 配置选项过多

Install

npx skills add mrgoonie/claudekit-skills --skill Simplification Cascades -g -y
More Options

Non-standard path

npx skills add https://github.com/mrgoonie/claudekit-skills/tree/main/.claude/skills/problem-solving/simplification-cascades -g -y

Use without installing

npx skills use mrgoonie/claudekit-skills@Simplification Cascades

指定 Agent (Claude Code)

npx skills add mrgoonie/claudekit-skills --skill Simplification Cascades -a claude-code -g -y

安装 repo 全部 skill

npx skills add mrgoonie/claudekit-skills --all -g -y

预览 repo 内 skill

npx skills add mrgoonie/claudekit-skills --list

SKILL.md

Frontmatter
{
    "name": "Simplification Cascades",
    "version": "1.1.0",
    "description": "Find one insight that eliminates multiple components - \"if this is true, we don't need X, Y, or Z\"",
    "when_to_use": "when implementing the same concept multiple ways, accumulating special cases, or complexity is spiraling"
}

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 exceptions Find the rule that has no exceptions
Excessive config options Find defaults that work for 95%

The Pattern

Look for:

  • Multiple implementations of similar concepts
  • Special case handling everywhere
  • "We need to handle A, B, C, D differently..."
  • Complex rules with many exceptions

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

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

  • "We just need to add one more case..." (repeating forever)
  • "These are all similar but different" (maybe they're the same?)
  • Refactoring feels like whack-a-mole (fix one, break another)
  • Growing configuration file
  • "Don't touch that, it's complicated" (complexity hiding pattern)

Remember

  • Simplification cascades = 10x wins, not 10% improvements
  • One powerful abstraction > ten clever hacks
  • The pattern is usually already there, just needs recognition
  • Measure in "how many things can we delete?"

Version History

  • 80113d8 Current 2026-08-20 08:14

Same Skill Collection

.claude/skills/chrome-devtools/SKILL.md
.claude/skills/databases/SKILL.md
.claude/skills/debugging/defense-in-depth/SKILL.md
.claude/skills/debugging/root-cause-tracing/SKILL.md
.claude/skills/debugging/SKILL.md
.claude/skills/debugging/systematic-debugging/SKILL.md
.claude/skills/debugging/verification-before-completion/SKILL.md
.claude/skills/devops/SKILL.md
.claude/skills/docs-seeker/SKILL.md
.claude/skills/document-skills/docx/SKILL.md
.claude/skills/document-skills/pdf/SKILL.md
.claude/skills/document-skills/pptx/SKILL.md
.claude/skills/document-skills/xlsx/SKILL.md
.claude/skills/frontend-design/SKILL.md
.claude/skills/frontend-development/SKILL.md
.claude/skills/mcp-builder/SKILL.md
.claude/skills/mcp-management/SKILL.md
.claude/skills/mermaidjs-v11/SKILL.md
.claude/skills/payment-integration/SKILL.md
.claude/skills/problem-solving/collision-zone-thinking/SKILL.md
.claude/skills/problem-solving/inversion-exercise/SKILL.md
.claude/skills/problem-solving/meta-pattern-recognition/SKILL.md
.claude/skills/problem-solving/scale-game/SKILL.md
.claude/skills/problem-solving/SKILL.md
.claude/skills/problem-solving/when-stuck/SKILL.md
.claude/skills/sequential-thinking/SKILL.md
.claude/skills/skill-creator/SKILL.md
.claude/skills/threejs/SKILL.md
.claude/skills/ui-styling/SKILL.md
.claude/skills/web-testing/SKILL.md
.claude/skills/aesthetic/SKILL.md
.claude/skills/ai-multimodal/SKILL.md
.claude/skills/backend-development/SKILL.md
.claude/skills/better-auth/SKILL.md
.claude/skills/code-review/SKILL.md
.claude/skills/context-engineering/SKILL.md
.claude/skills/media-processing/SKILL.md
.claude/skills/repomix/SKILL.md
.claude/skills/shopify/SKILL.md
.claude/skills/web-frameworks/SKILL.md
.claude/skills/template-skill/SKILL.md

Metadata

Files
0
Version
80113d8
Hash
57417c2d
Indexed
2026-08-20 08:14

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 10:25
浙ICP备14020137号-1 $방문자$