task-decomposition by jwynia/agent-skills
npx skills add https://github.com/jwynia/agent-skills --skill task-decomposition通过尊重认知极限、创建清晰边界并支持并行工作,将令人望而生畏的开发任务转化为可管理的单元。经过适当分解的任务,其完成率可提高 3 倍,缺陷减少 60%。
在以下情况使用此技能:
在以下情况不要使用此技能:
目标不是任务越多越好,而是任务要恰当。 任务要小到足以完全理解,大到足以交付价值,独立到足以避免阻塞。
| 限制 | 阈值 | 含义 |
|---|---|---|
| 工作记忆 | 7±2 个项目 | 每个任务的最大概念数 |
| 上下文切换恢复 | 23 分钟 | 尽量减少任务切换 |
| 检查的文件数 | 最多 15-20 个 | 限制任务范围 |
| 完成率开始下降的天数 | 2-3 天 | 保持任务在此期限内 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 时长 | 完成率 |
|---|---|
| < 2 小时 | 95% |
| 2-4 小时 | 90% |
| 4-8 小时(1 天) | 80% |
| 2-3 天 | 60% |
| 1 周 | 35% |
| > 2 周 | <10% |
症状: 估算值差异巨大,无法记住所有需求,需要跟踪的概念超过 7 个
干预措施:
症状: 多个有效的起点,陷入瘫痪,所有事情似乎都相互关联
干预措施:
症状: "被 X 阻塞",菱形依赖,协调开销大
干预措施:
症状: 永远"几乎完成",无法验证完成情况
干预措施:
症状: 任务持续增长,不断添加"既然我们在这里"的内容
干预措施:
症状: 估算差异 > 4 倍,使用新技术,存在多种方法
干预措施:
Feature: User Profile Management
Slice 1: View basic profile (4h)
- UI: Profile display
- API: GET /profile
- DB: Read profile
Slice 2: Edit profile name (6h)
- UI: Edit dialog
- API: PATCH /profile/name
- DB: Update profile
Each slice is independently deployable
Minimal end-to-end first:
1. Hello World page
2. One GET endpoint
3. Single table
4. Basic deploy
Then flesh out incrementally
Step 1: Minimal Service A (1h) - Hardcoded response
Step 2: Minimal Service B (1h) - Simple transformation
Step 3: Integrate (2h) - Prove they communicate
Total: 4 hours to decision point
| 点数 | 含义 |
|---|---|
| 1 | 琐碎的,< 1 小时 |
| 2 | 简单的,1-2 小时 |
| 3 | 标准的,2-4 小时 |
| 5 | 中等的,4-8 小时 |
| 8 | 复杂的,1-2 天 |
| 13 | 非常复杂的,2-3 天 |
| 21 | 过于庞大,必须分解 |
O = Optimistic (everything perfect)
L = Likely (normal case)
P = Pessimistic (major issues)
PERT estimate: (O + 4L + P) / 6
在交付任何东西之前构建完整的系统。修复方法: 垂直切片,增量交付价值。
"设置数据库","创建服务层"。修复方法: 包含在特性任务中:"用户可以查看产品(包括数据库)"。
无限制的调查。修复方法: 有时间限制的探索,并明确交付物。
在开始前过度分析。修复方法: 分解接下来两周的工作。后续工作的细节会逐渐显现。
在开始任何任务之前:
如果任何答案为"否" → 需要进一步分解。
每周安装次数
222
代码仓库
GitHub 星标数
37
首次出现
Jan 20, 2026
安全审计
安装于
opencode191
gemini-cli183
codex180
cursor168
github-copilot167
claude-code150
Transform overwhelming development tasks into manageable units by respecting cognitive limits, creating clear boundaries, and enabling parallel work. Tasks properly decomposed achieve 3x higher completion rates and 60% fewer defects.
Use this skill when:
Do NOT use this skill when:
The goal isn't more tasks—it's the right tasks. Tasks small enough to understand completely, large enough to deliver value, independent enough to avoid blocking.
| Limit | Threshold | Implication |
|---|---|---|
| Working memory | 7±2 items | Max concepts per task |
| Context switch recovery | 23 minutes | Minimize task switching |
| Files examined | 15-20 max | Bound task scope |
| Days before completion drops | 2-3 days | Keep tasks under this |
| Duration | Completion Rate |
|---|---|
| < 2 hours | 95% |
| 2-4 hours | 90% |
| 4-8 hours (1 day) | 80% |
| 2-3 days | 60% |
| 1 week | 35% |
2 weeks | <10%
Symptoms: Estimates range wildly, can't hold all requirements in mind, more than 7 concepts to track
Interventions:
Symptoms: Multiple valid starting points, paralysis, everything seems connected
Interventions:
Symptoms: "Blocked on X", diamond dependencies, coordination overhead
Interventions:
Symptoms: "Almost done" forever, no way to verify completion
Interventions:
Symptoms: Task keeps growing, "while we're here" additions
Interventions:
Symptoms: Estimate variance > 4x, new technology, multiple approaches
Interventions:
Feature: User Profile Management
Slice 1: View basic profile (4h)
- UI: Profile display
- API: GET /profile
- DB: Read profile
Slice 2: Edit profile name (6h)
- UI: Edit dialog
- API: PATCH /profile/name
- DB: Update profile
Each slice is independently deployable
Minimal end-to-end first:
1. Hello World page
2. One GET endpoint
3. Single table
4. Basic deploy
Then flesh out incrementally
Step 1: Minimal Service A (1h) - Hardcoded response
Step 2: Minimal Service B (1h) - Simple transformation
Step 3: Integrate (2h) - Prove they communicate
Total: 4 hours to decision point
| Points | Meaning |
|---|---|
| 1 | Trivial, < 1 hour |
| 2 | Simple, 1-2 hours |
| 3 | Standard, 2-4 hours |
| 5 | Moderate, 4-8 hours |
| 8 | Complex, 1-2 days |
| 13 | Very complex, 2-3 days |
| 21 | Too large, must decompose |
O = Optimistic (everything perfect)
L = Likely (normal case)
P = Pessimistic (major issues)
PERT estimate: (O + 4L + P) / 6
Building complete system before any delivery. Fix: Vertical slices, incremental value.
"Set up database," "Create service layer." Fix: Include in feature tasks: "User can view products (includes DB)."
Unbounded investigation. Fix: Time-boxed spikes with deliverables.
Over-analyzing before starting. Fix: Decompose next 2 weeks. Details for later work emerge.
Before starting any task:
If any "no" → further decomposition needed.
Weekly Installs
222
Repository
GitHub Stars
37
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode191
gemini-cli183
codex180
cursor168
github-copilot167
claude-code150
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
107,800 周安装