Simplification Cascades by aaaaqwq/claude-code-skills
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill 'Simplification Cascades'有时一个洞见能消除十件事。寻找那个能让多个组件变得不必要的统一原则。
核心原则: "一切都是……的特例" 能显著地降低复杂性。
| 症状 | 可能的级联 |
|---|---|
| 同一件事有 5 种以上实现方式 | 抽象出通用模式 |
| 特殊情况的列表不断增长 | 找到一般情况 |
| 规则复杂且充满例外 | 找到没有例外的规则 |
| 配置选项过多 | 找到适用于 95% 场景的默认值 |
寻找:
提问: "如果它们在本质上都是同一件事呢?"
之前: 为批处理/实时/文件/网络数据分别设置处理器 洞见: "所有输入都是流——只是来源不同" 之后: 一个流处理器,多个流来源 消除: 4 个独立的实现
会话跟踪、速率限制、文件验证、连接池(全部独立) "所有这些都是针对每个实体的资源限制" 一个 ResourceGovernor,包含 4 种资源类型 4 个自定义的执行系统
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
之前: 防御性拷贝、锁定、缓存失效、时间耦合 洞见: "将所有事物都视为不可变数据 + 转换" 之后: 函数式编程模式 消除: 整个类别的同步问题
每周安装量
0
代码仓库
GitHub 星标数
11
首次出现
1970年1月1日
安全审计
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.
| 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% |
Look for:
Ask: "What if they're all the same thing underneath?"
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
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
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
Weekly Installs
0
Repository
GitHub Stars
11
First Seen
Jan 1, 1970
Security Audits
测试策略完整指南:单元/集成/E2E测试金字塔与自动化实践
11,200 周安装