Skill站外收录 @skilllib/skill-2117939930272414803
breakdown
将大型功能或史诗任务拆解为具体、可并行的子任务,合理规划依赖关系与文件协作冲突,按波次组织开发流程,确保工作粒度适中且具备可实施性,提升团队协作效率与项目可控性。
商业与营销 AI 技能
Skills.MD
# Breakdown - Epic Decomposition
Patterns for breaking down large features into concrete, parallelizable tasks.
## Decomposition Patterns
### New Feature Pattern
```
1. Infrastructure
└── Types, contexts, schemas, state management
2. Core Implementation
└── Main components, business logic
3. Integration
└── Connect pieces, wire up routes
4. Polish
└── Edge cases, error handling, UX improvements
5. Validation
└── Tests, documentation updates
```
**Example: Dark Mode**
1. Infrastructure: Theme context, CSS variables
2. Core: Theme toggle component, styled components
3. Integration: Apply to all pages
4. Polish: System preference detection, smooth transitions
5. Validation: Visual regression tests
### Refactor Pattern
```
1. Create New
└── Build new pattern alongside old
2. Migrate
└── Move components one at a time
3. Cleanup
└── Remove old pattern, dead code
4. Verify
└── Update tests, ensure no regressions
```
**Example: Move to React Query**
1. Create: Set up React Query provider
2. Migrate: Convert hooks one by one
3. Cleanup: Remove old fetch utilities
4. Verify: Update tests for new patterns
### Bug Fix Pattern
```
1. Investigate (if complex)
└── Reproduce, identify root cause
2. Fix
└── Implement the solution
3. Verify
└── Add regression test
```
**Most bugs don't need decomposition** - only create subtasks for complex bugs requiring investigation.
## Task Sizing
| Size | Lines Changed | Files | Time | Example |
|------|---------------|-------|------|---------|
| XS | <20 | 1 | Minutes | Fix typo, add import |
| S | 20-100 | 1-2 | <1hr | Add helper function |
| M | 100-300 | 2-5 | Hours | Add component |
| L | 300+ | 5+ | Day | Feature module |
| XL | 1000+ | 10+ | Days | Architecture change |
**Target: S-M tasks.** XS is too granular, L-XL should be broken down.
## Dependency Patterns
### Sequential (A → B → C)
```
A: Create database schema
B: Implement API endpoint (blocked by A)
C: Add frontend form (blocked by B)
```
### Fan-out (A → B, C, D in parallel)
```
A: Create shared context
B: Use in Header (blocked by A)
C: Use in Footer (blocked by A)
D: Use in Sidebar (blocked by A)
```
### Fan-in (B, C, D → E)
```
B, C, D: Independent features
E: Integration testing (blocked by B, C, D)
```
### File Conflict Sequencing
```
B: Update styles.css for Header
C: Update styles.css for Footer (blocked by B)
```
Even though B and C are conceptually parallel, they touch the same file.
## Identifying File Overlaps
Common conflict points:
- Shared styles (`styles.css`, `theme.ts`)
- Route configuration (`routes.tsx`, `App.tsx`)
- State management (`store.ts`, `context.tsx`)
- Shared types (`types.ts`, `interfaces.ts`)
- Test utilities (`testUtils.ts`, `fixtures.ts`)
**When detected**: Add dependency between tasks to sequence them.
## Wave Planning
Group tasks into waves:
```markdown
## Wave 1 (Ready Now)
Tasks with no blockers - start immediately
## Wave 2 (After Wave 1)
Tasks blocked by Wave 1 - becomes ready when Wave 1 completes
## Wave 3 (After Wave 2)
Final integration, polish tasks
```
**Max 3-5 tasks per wave** for manageability.
## Quality Checks
Before finalizing breakdown:
1. **Is each task concrete?** Should be implementable without further planning
2. **Are dependencies correct?** No circular deps, no unnecessary sequencing
3. **Are file conflicts handled?** Same-file tasks sequenced
4. **Is it parallelizable?** Maximize concurrent work
5. **Is it right-sized?** No XS or XL tasks
## References
- [dependencies.md](references/dependencies.md) - Dependency patterns
- [epics.md](references/epics.md) - Epic management
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「breakdown」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次