task-decomposition

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Task Decomposition

任务分解

Overview

概述

Task decomposition breaks complex tasks into manageable, well-defined subtasks with clear dependencies, effort estimates, and parallelization opportunities. It covers hierarchical work breakdown structures (WBS), dependency graph construction, critical path analysis, task sizing, and identification of concurrent execution opportunities. Essential for planning multi-step implementations, project estimation, and autonomous loop task selection.
Announce at start: "I'm using the task-decomposition skill to break this work into a structured hierarchy with dependencies and estimates."
任务分解将复杂任务拆分为可管理、定义清晰的子任务,附带明确的依赖关系、工作量估算和并行执行空间。覆盖分层工作分解结构(WBS)、依赖图构建、关键路径分析、任务规模评估以及并发执行机会识别,是多步骤实现规划、项目估算、自治循环任务选择的核心能力。
启动时宣告: "我将使用task-decomposition技能将这项工作拆分为带有依赖关系和估算值的结构化层级。"

Trigger Conditions

触发条件

  • Complex task needs to be broken into subtasks
  • Dependency mapping is needed between work items
  • Effort estimation is required for planning
  • Parallelization opportunities need to be identified
  • /decompose
    command invoked
  • Transition from planning skill for complex plans
  • Autonomous loop needs task selection guidance

  • 复杂任务需要拆分为子任务
  • 工作项之间需要做依赖映射
  • 规划需要工作量估算支撑
  • 需要识别可并行执行的机会
  • 触发了
    /decompose
    命令
  • 从planning技能流转过来的复杂规划需求
  • 自治循环需要任务选择指引

Phase 1: Scope Definition

阶段1:范围定义

Goal: Define clear boundaries for the decomposition.
  1. Define the overall deliverable and acceptance criteria
  2. Identify the boundaries (what is in scope, what is not)
  3. Determine the decomposition granularity level
  4. Identify stakeholders and their requirements
  5. Establish constraints (time, resources, dependencies)
目标: 明确任务分解的边界。
  1. 定义整体交付物和验收标准
  2. 识别边界(范围内、范围外的内容)
  3. 确定分解的粒度级别
  4. 识别利益相关方及其需求
  5. 明确约束条件(时间、资源、依赖)

Granularity Decision Table

粒度决策表

ContextTarget LevelTypical DurationRationale
Autonomous loop (Ralph)L3-L4 (Task/Subtask)15 min - 4 hoursONE task per loop iteration
Sprint planningL2-L3 (Story/Task)0.5-2 daysSprint-sized work items
Roadmap planningL0-L1 (Epic/Feature)2-8 weeksHigh-level milestone tracking
Bug fixL3-L4 (Task/Subtask)15 min - 2 hoursFocused, specific fixes
场景目标级别典型时长逻辑
自治循环(Ralph)L3-L4(任务/子任务)15分钟 - 4小时每个循环迭代处理1个任务
Sprint规划L2-L3(用户故事/任务)0.5-2天符合Sprint规模的工作项
路线图规划L0-L1(史诗/特性)2-8周高层级里程碑追踪
Bug修复L3-L4(任务/子任务)15分钟 - 2小时聚焦的针对性修复

Granularity Levels

粒度级别定义

LevelNameTypical DurationExample
L0Epic2-8 weeks"User authentication system"
L1Feature2-5 days"OAuth2 login flow"
L2Story0.5-2 days"Google OAuth provider integration"
L3Task1-4 hours"Implement Google callback handler"
L4Subtask15-60 minutes"Parse OAuth token response"
STOP — Do NOT proceed to Phase 2 until:
  • Deliverable and acceptance criteria are defined
  • Scope boundaries are clear (in/out)
  • Target granularity level is chosen
  • Constraints are identified

级别名称典型时长示例
L0史诗(Epic)2-8周"用户认证系统"
L1特性(Feature)2-5天"OAuth2登录流程"
L2用户故事(Story)0.5-2天"Google OAuth提供商集成"
L3任务(Task)1-4小时"实现Google回调处理逻辑"
L4子任务(Subtask)15-60分钟"解析OAuth令牌响应"
停止检查 — 满足以下条件后才可进入阶段2:
  • 已定义交付物和验收标准
  • 范围边界清晰(明确范围内外内容)
  • 已选定目标粒度级别
  • 已识别约束条件

Phase 2: Hierarchical Breakdown

阶段2:分层拆解

Goal: Decompose the work into a tree structure meeting the INVEST criteria.
  1. Identify top-level work streams (epics or major components)
  2. Break each work stream into features or milestones
  3. Decompose features into implementable tasks
  4. Apply the "2-hour rule" — no task should exceed 2 hours of focused work
  5. Ensure each task has a clear definition of done
  6. Verify MECE (Mutually Exclusive, Collectively Exhaustive) coverage
目标: 将工作拆分为符合INVEST标准的树状结构。
  1. 识别顶层工作流(史诗或核心组件)
  2. 将每个工作流拆分为特性或里程碑
  3. 将特性拆解为可落地的任务
  4. 遵守「2小时规则」—— 任何任务的专注工作时长不应超过2小时
  5. 确保每个任务有清晰的完成定义
  6. 验证MECE(相互独立、完全穷尽)覆盖度

The INVEST Criteria for Tasks

任务的INVEST标准

CriterionQuestionBad ExampleGood Example
IndependentCan this be done without waiting for others?"Implement auth after DB is ready""Implement auth with mock DB"
NegotiableIs the approach flexible?"Use Redis for caching""Add caching layer for user sessions"
ValuableDoes completing this deliver value?"Set up folder structure""Create user registration endpoint"
EstimableCan you estimate the effort?"Improve performance""Add database index for user lookup query"
SmallCan one person finish it in < 2 hours?"Build the dashboard""Create dashboard chart component for revenue data"
TestableCan you verify it is done?"Make it better""Response time < 200ms for /api/users"
标准校验问题反面示例正面示例
Independent(独立)该任务无需等待其他任务即可完成吗?"数据库就绪后实现认证功能""基于Mock DB实现认证功能"
Negotiable(可协商)实现方式是否灵活?"必须使用Redis做缓存""为用户会话添加缓存层"
Valuable(有价值)完成该任务能交付价值吗?"搭建文件夹结构""开发用户注册接口"
Estimable(可估算)可以估算工作量吗?"提升性能""为用户查询请求添加数据库索引"
Small(小体量)单人可以在2小时内完成吗?"搭建整个看板""开发营收数据的看板图表组件"
Testable(可测试)可以验证是否完成吗?"优化体验"
/api/users
接口响应时间<200ms

MECE Verification

MECE校验

CheckQuestion
Mutually ExclusiveDoes any task overlap with another? (Should not)
Collectively ExhaustiveDo all tasks together cover the full deliverable? (Should)
No orphansDoes every task contribute to the deliverable?
No gapsIs there any work needed that has no task?
STOP — Do NOT proceed to Phase 3 until:
  • All work streams are identified
  • Tasks meet INVEST criteria
  • MECE coverage is verified
  • No task exceeds 2 hours

校验项校验问题
相互独立是否存在任务重叠?(不应存在)
完全穷尽所有任务加起来是否覆盖了完整的交付物?(应该覆盖)
无孤立任务每个任务都对交付物有贡献吗?
无缺口是否有需要完成但未对应任务的工作?
停止检查 — 满足以下条件后才可进入阶段3:
  • 已识别所有工作流
  • 所有任务符合INVEST标准
  • 已验证MECE覆盖度
  • 无超过2小时的任务

Phase 3: Dependency Mapping

阶段3:依赖映射

Goal: Build a directed acyclic graph (DAG) of task dependencies.
  1. Identify input/output dependencies between tasks
  2. Classify dependency types
  3. Build a directed acyclic graph (DAG)
  4. Identify the critical path (longest dependency chain)
  5. Flag circular dependencies as errors to resolve
  6. Mark external dependencies (API access, approvals, third-party)
目标: 构建任务依赖的有向无环图(DAG)。
  1. 识别任务之间的输入/输出依赖
  2. 对依赖类型进行分类
  3. 构建有向无环图(DAG)
  4. 识别关键路径(最长的依赖链)
  5. 将循环依赖标记为待解决的错误
  6. 标记外部依赖(API访问、审批、第三方服务等)

Dependency Types

依赖类型

TypeSymbolMeaningExample
Finish-to-Start (FS)A -> BB cannot start until A finishes"Deploy" after "Build passes"
Start-to-Start (SS)A => BB can start when A starts"Write docs" when "Write code" starts
Finish-to-Finish (FF)A =>> BB cannot finish until A finishes"Testing" finishes after "Development"
Start-to-Finish (SF)A ~> BB cannot finish until A startsRare — shift handoff scenarios
类型符号含义示例
完成-开始(FS)A -> BA完成前B无法启动"构建通过"后才能"部署"
开始-开始(SS)A => BA启动后B即可启动"写代码"启动后即可开始"写文档"
完成-完成(FF)A =>> BA完成前B无法完成"测试"需在"开发"完成后结束
开始-完成(SF)A ~> BA启动前B无法完成罕见 — 换班交接场景

Dependency Notation Format

依赖标注格式

Task 1: Set up database schema
Task 2: Create data access layer         [depends: 1]
Task 3: Implement API endpoints          [depends: 2]
Task 4: Write unit tests for DAL         [depends: 2]
Task 5: Write API integration tests      [depends: 3, 4]
Task 6: Create frontend components       [depends: none]
Task 7: Connect frontend to API          [depends: 3, 6]
Task 8: End-to-end testing               [depends: 5, 7]

Parallel tracks:
  Track A: 1 -> 2 -> 3 -> 5 -> 8
  Track B: 1 -> 2 -> 4 -> 5 -> 8
  Track C: 6 -> 7 -> 8
  Critical path: 1 -> 2 -> 3 -> 7 -> 8
Task 1: Set up database schema
Task 2: Create data access layer         [depends: 1]
Task 3: Implement API endpoints          [depends: 2]
Task 4: Write unit tests for DAL         [depends: 2]
Task 5: Write API integration tests      [depends: 3, 4]
Task 6: Create frontend components       [depends: none]
Task 7: Connect frontend to API          [depends: 3, 6]
Task 8: End-to-end testing               [depends: 5, 7]

Parallel tracks:
  Track A: 1 -> 2 -> 3 -> 5 -> 8
  Track B: 1 -> 2 -> 4 -> 5 -> 8
  Track C: 6 -> 7 -> 8
  Critical path: 1 -> 2 -> 3 -> 7 -> 8

Circular Dependency Resolution

循环依赖解决方法

DetectionResolution
A depends on B, B depends on ABreak into smaller tasks that remove the cycle
A depends on B's interface, B depends on A's interfaceDefine interfaces first as a separate task
Tight coupling between componentsIntroduce an abstraction layer task
STOP — Do NOT proceed to Phase 4 until:
  • All dependencies are mapped
  • No circular dependencies exist
  • Critical path is identified
  • External dependencies are flagged

检测场景解决方案
A依赖B,B依赖A拆分为更小的任务消除循环
A依赖B的接口,B依赖A的接口新增单独的接口定义任务
组件间紧耦合新增抽象层开发任务
停止检查 — 满足以下条件后才可进入阶段4:
  • 已映射所有依赖
  • 无循环依赖
  • 已识别关键路径
  • 已标记所有外部依赖

Phase 4: Parallelization Planning

阶段4:并行规划

Goal: Identify independent task clusters that can run concurrently.
  1. Identify independent task clusters (no dependencies between them)
  2. Group tasks by resource type (read, write, build, test)
  3. Determine maximum parallelism based on resource constraints
  4. Sequence tasks within each parallel track
  5. Plan synchronization points (merge gates)
目标: 识别可并发执行的独立任务集群。
  1. 识别独立任务集群(相互无依赖)
  2. 按资源类型(读、写、构建、测试)分组任务
  3. 根据资源约束确定最大并行度
  4. 为每个并行轨道内的任务排序
  5. 规划同步点(合并关口)

Resource-Based Parallelism Limits

基于资源的并行上限

Resource TypeMax ParallelRationale
Code reading / analysisUnlimitedNo side effects
File creation / editing3-5Avoid merge conflicts
Build / compile1Resource contention
Test execution1-2Shared state, ports
Database migrations1Sequential by nature
DocumentationUnlimitedIndependent files
资源类型最大并行度逻辑
代码阅读/分析无限制无副作用
文件创建/编辑3-5避免合并冲突
构建/编译1资源争抢
测试执行1-2共享状态、端口冲突
数据库迁移1天然需要串行
文档编写无限制独立文件

Parallelization Pattern Decision Table

并行模式决策表

PatternWhen to UseExample
Independent ClustersWork streams with no shared stateBackend, Frontend, Infra
By LayerLayers touch different filesAPI, Service, Data
By Feature AreaIndependent vertical slicesAuth, Profile, Billing
By Task TypeCode, tests, docs touch different filesImplement, Test, Document
模式使用场景示例
独立集群无共享状态的工作流后端、前端、基础设施
按层级拆分不同层级对应不同文件API层、服务层、数据层
按功能域拆分独立的垂直切片认证、个人中心、计费
按任务类型拆分代码、测试、文档对应不同文件实现、测试、文档编写

Synchronization Points

同步点示例

  +------+     +------+     +------+
  |Task A|     |Task B|     |Task C|
  +--+---+     +--+---+     +--+---+
     |            |            |
     v            v            v
  ======================================
     SYNC GATE: All Complete
     Verify: no conflicts, tests pass
  ======================================
                 |
                 v
          +----------+
          |Next Phase|
          +----------+
STOP — Do NOT proceed to Phase 5 until:
  • Independent clusters are identified
  • Resource constraints are considered
  • Synchronization points are defined
  • Maximum parallelism is determined

  +------+     +------+     +------+
  |Task A|     |Task B|     |Task C|
  +--+---+     +--+---+     +--+---+
     |            |            |
     v            v            v
  ======================================
     SYNC GATE: All Complete
     Verify: no conflicts, tests pass
  ======================================
                 |
                 v
          +----------+
          |Next Phase|
          +----------+
停止检查 — 满足以下条件后才可进入阶段5:
  • 已识别独立集群
  • 已考虑资源约束
  • 已定义同步点
  • 已确定最大并行度

Phase 5: Estimation and Prioritization

阶段5:估算与优先级排序

Goal: Estimate effort for each task and create an execution timeline.
目标: 估算每个任务的工作量,制定执行 timeline。

T-Shirt Sizing to Hours

T恤尺码与时长对应表

SizeHoursConfidenceExample
XS0.5-1hHighRename a variable, fix a typo
S1-2hHighAdd a simple endpoint, write a test
M2-4hMediumImplement a feature with known pattern
L4-8hLowNew feature with research needed
XL8h+Very LowMust be decomposed further
尺码时长置信度示例
XS0.5-1小时重命名变量、修复拼写错误
S1-2小时新增简单接口、编写测试用例
M2-4小时实现有已知模式的功能
L4-8小时需要调研的新功能
XL8小时以上极低必须进一步拆解

Estimation Heuristics

估算启发规则

ScenarioMultiplierRationale
Known pattern1.2x base estimate20% buffer for unknowns
Unknown pattern2x base estimateAdd research spike task first
Integration work1.5x sum of componentsIntegration is harder than parts
First-time technology3x "if I knew how" estimateLearning curve
Bug fixesTime-box 2h investigationThen re-estimate
场景乘数逻辑
已知实现模式基础估算 * 1.2预留20%的未知风险缓冲
未知实现模式基础估算 * 2先新增调研任务
集成工作组件估算总和 * 1.5集成难度高于单个组件
首次使用的技术「熟悉技术的估算值」 * 3学习曲线成本
Bug修复2小时时间盒调研调研后重新估算

Three-Point Estimation

三点估算法

Expected = (Optimistic + 4 * Most Likely + Pessimistic) / 6

Example:
  Optimistic:  2 hours (everything goes smoothly)
  Most Likely: 4 hours (normal development pace)
  Pessimistic: 10 hours (major unexpected issues)
  Expected:    (2 + 16 + 10) / 6 = 4.7 hours
Expected = (Optimistic + 4 * Most Likely + Pessimistic) / 6

Example:
  Optimistic:  2 hours (everything goes smoothly)
  Most Likely: 4 hours (normal development pace)
  Pessimistic: 10 hours (major unexpected issues)
  Expected:    (2 + 16 + 10) / 6 = 4.7 hours

Prioritization Decision Table

优先级决策表

FactorWeightHow to Evaluate
On critical pathHighestDelays here delay everything
Blocks other tasksHighUnblocking multiplies throughput
Business valueHighUser-facing impact
Risk reductionMediumDe-risks unknowns early
Quick winMediumLow effort, high morale
Nice to haveLowOnly after core work is done

因素权重评估方式
属于关键路径最高此处延迟会导致整体延期
阻塞其他任务解除阻塞可大幅提升吞吐量
业务价值对用户的影响程度
风险降低提前消除未知风险
快速胜利低投入、高士气价值
锦上添花核心工作完成后再处理

Work Breakdown Structure Template

工作分解结构模板

markdown
undefined
markdown
undefined

WBS: [Project Name]

WBS: [Project Name]

1. [Work Stream A]

1. [Work Stream A]

1.1 [Feature]

1.1 [Feature]

  • 1.1.1 [Task] — Est: 2h — Deps: none — Priority: P0
  • 1.1.2 [Task] — Est: 1h — Deps: 1.1.1 — Priority: P0
  • 1.1.3 [Task] — Est: 3h — Deps: 1.1.1 — Priority: P1
  • 1.1.1 [Task] — Est: 2h — Deps: none — Priority: P0
  • 1.1.2 [Task] — Est: 1h — Deps: 1.1.1 — Priority: P0
  • 1.1.3 [Task] — Est: 3h — Deps: 1.1.1 — Priority: P1

1.2 [Feature]

1.2 [Feature]

  • 1.2.1 [Task] — Est: 1h — Deps: none — Priority: P0
  • 1.2.2 [Task] — Est: 2h — Deps: 1.2.1, 1.1.2 — Priority: P1
  • 1.2.1 [Task] — Est: 1h — Deps: none — Priority: P0
  • 1.2.2 [Task] — Est: 2h — Deps: 1.2.1, 1.1.2 — Priority: P1

2. [Work Stream B]

2. [Work Stream B]

2.1 [Feature]

2.1 [Feature]

  • 2.1.1 [Task] — Est: 1h — Deps: none — Priority: P0
  • 2.1.2 [Task] — Est: 4h — Deps: 2.1.1 — Priority: P0
  • 2.1.1 [Task] — Est: 1h — Deps: none — Priority: P0
  • 2.1.2 [Task] — Est: 4h — Deps: 2.1.1 — Priority: P0

Summary

Summary

  • Total tasks: N
  • Estimated total effort: Xh
  • Critical path duration: Yh
  • Max parallelism: Z tracks
  • External dependencies: [list]

---
  • Total tasks: N
  • Estimated total effort: Xh
  • Critical path duration: Yh
  • Max parallelism: Z tracks
  • External dependencies: [list]

---

Critical Path Analysis

关键路径分析

How to Find the Critical Path

如何找到关键路径

  1. List all tasks with durations and dependencies
  2. Forward pass: calculate earliest start (ES) and earliest finish (EF)
  3. Backward pass: calculate latest start (LS) and latest finish (LF)
  4. Float = LS - ES (tasks with zero float are on the critical path)
  5. The critical path is the longest chain through the dependency graph
  1. 列出所有任务的时长和依赖
  2. 正向推演:计算最早开始时间(ES)和最早完成时间(EF)
  3. 反向推演:计算最晚开始时间(LS)和最晚完成时间(LF)
  4. 浮动时间 = LS - ES(浮动时间为0的任务属于关键路径)
  5. 关键路径是依赖图中最长的任务链

Optimization Strategies

优化策略

StrategyWhenEffectRisk
ParallelizeIndependent tasks on critical pathReduces calendar timeLow
Fast-trackOverlap sequential tasksReduces durationMedium — may cause rework
CrashAdd resources to critical tasksReduces durationMedium — coordination cost
Scope reductionRemove non-essential tasksReduces total workLow — if non-essential is correct
Spike firstUnknown tasks blocking the pathDe-risks estimatesLow

策略适用场景效果风险
并行化关键路径上的独立任务减少日历时长
快速跟进重叠串行任务缩短周期中 — 可能导致返工
赶工为关键路径任务增加资源缩短周期中 — 协调成本上升
范围缩减移除非核心任务减少总工作量低 — 确认非核心判断正确
先行调研阻塞路径的未知任务降低估算风险

Anti-Patterns / Common Mistakes

反模式/常见错误

Anti-PatternWhy It FailsCorrect Approach
Tasks too large to estimate"Build the backend" is not a taskDecompose until estimable (< 2h)
Missing dependenciesSurface during implementation, cause reworkMap ALL dependencies upfront
Circular dependenciesIndicate unclear architectureBreak the cycle with interface tasks
All tasks sequentialNo parallelism possibleIdentify independent clusters
Estimation without decompositionGuessing at L0 level, always wrongEstimate at leaf level, sum up
Ignoring external dependenciesBlock progress unexpectedlyFlag and plan for them
Over-decompositionNoise, not signal (50 subtasks for a form)Stop at meaningful, testable units
Ignoring critical pathPriorities work on non-critical tasksAlways prioritize critical path
Not re-estimatingEstimates drift as you learnRe-estimate after each phase
Tasks without acceptance criteriaCannot verify completionEvery task has definition of done

反模式失效原因正确做法
任务过大无法估算"搭建后端"不是一个合格任务拆解到可估算的粒度(<2小时)
遗漏依赖执行阶段才暴露,导致返工提前映射所有依赖
循环依赖说明架构不清晰通过接口定义任务打破循环
所有任务串行无法利用并行能力识别独立任务集群
未拆解就估算在L0级别猜测,几乎必然错误对叶子节点估算后汇总
忽略外部依赖意外阻塞进度提前标记并规划应对
过度拆解产生噪音无实际价值(一个表单拆50个子任务)停在有意义、可测试的单元粒度
忽略关键路径优先处理非关键任务始终优先处理关键路径任务
不重新估算随着信息增加估算偏差变大每个阶段结束后重新估算
任务无验收标准无法验证是否完成每个任务都要有完成定义

Anti-Rationalization Guards

反侥幸守卫规则

<HARD-GATE> Do NOT skip dependency mapping. Do NOT leave tasks larger than 2 hours. Do NOT estimate without decomposing first. Every task must have dependencies, estimates, and acceptance criteria. </HARD-GATE>
If you catch yourself thinking:
  • "I can estimate the whole thing without breaking it down..." — No. Decompose first.
  • "Dependencies are obvious, I don't need to map them..." — Map them. Hidden dependencies cause failures.
  • "This task is fine at 8 hours..." — Decompose it. XL tasks must be broken down.
  • "The critical path doesn't matter for small projects..." — It does. It tells you what to prioritize.

<HARD-GATE> 不得跳过依赖映射。不得保留超过2小时的任务。不得未拆解就进行估算。每个任务必须有依赖、估算值和验收标准。 </HARD-GATE>
如果你发现自己有以下想法:
  • "我不用拆解就能估算整个项目的工作量..." — 不行,先拆解。
  • "依赖很明显,我不用专门映射..." — 必须映射,隐藏依赖是失败的主要原因。
  • "这个8小时的任务没问题..." — 必须拆解,XL级任务必须拆分。
  • "小项目不用考虑关键路径..." — 有必要,关键路径告诉你优先级最高的任务。

Subagent Dispatch Opportunities

子Agent调度机会

Task PatternDispatch ToWhen
Parallelizable leaf tasks identified during decompositionParallel subagents via
Agent
tool
When tasks have no shared dependencies
Architecture analysis of task boundaries
planner
agent
When decomposition reveals cross-cutting concerns
Validation of decomposition completeness
spec-reviewer
agent
When task tree is complete but unverified
Mark each decomposed task with a
parallelizable: yes/no
flag in the output table. Follow the
dispatching-parallel-agents
skill protocol when dispatching.

任务模式调度对象触发时机
拆解过程中识别到的可并行叶子任务通过
Agent
工具调度并行子Agent
任务无共享依赖时
任务边界的架构分析
planner
agent
拆解过程中发现跨领域问题时
拆解完整性校验
spec-reviewer
agent
任务树已完成但未验证时
在输出表格中为每个拆解后的任务标记
parallelizable: yes/no
标识。调度时遵循
dispatching-parallel-agents
技能协议。

Integration Points

集成点

SkillRelationshipWhen
planning
Upstream — provides the plan to decomposeComplex plans need WBS
task-management
Downstream — receives decomposed tasksFor execution tracking
dispatching-parallel-agents
Downstream — receives parallelizable clustersFor concurrent execution
autonomous-loop
Downstream — task selection from WBSRalph task selection
executing-plans
Downstream — batch creation from WBSPlan execution
subagent-driven-development
Downstream — independent tasks for subagentsDelegated implementation
spec-writing
Complementary — specs inform decompositionUnderstanding requirements

技能关系触发时机
planning
上游 — 提供待拆解的规划复杂规划需要生成WBS时
task-management
下游 — 接收拆解后的任务用于执行追踪时
dispatching-parallel-agents
下游 — 接收可并行的任务集群用于并发执行时
autonomous-loop
下游 — 从WBS中选择任务Ralph选择任务时
executing-plans
下游 — 从WBS生成批量任务计划执行时
subagent-driven-development
下游 — 接收子Agent可处理的独立任务委托实现时
spec-writing
互补 — 规格说明支撑拆解理解需求时

Concrete Examples

具体示例

Example: Decomposition of "Add User Authentication"

示例:"新增用户认证"功能拆解

undefined
undefined

WBS: User Authentication

WBS: User Authentication

1. Core Auth

1. Core Auth

1.1 Token Management

1.1 Token Management

  • 1.1.1 Implement JWT generation — Est: 1h — Deps: none — P0
  • 1.1.2 Implement JWT validation — Est: 1h — Deps: 1.1.1 — P0
  • 1.1.3 Implement refresh token rotation — Est: 2h — Deps: 1.1.2 — P1
  • 1.1.1 Implement JWT generation — Est: 1h — Deps: none — P0
  • 1.1.2 Implement JWT validation — Est: 1h — Deps: 1.1.1 — P0
  • 1.1.3 Implement refresh token rotation — Est: 2h — Deps: 1.1.2 — P1

1.2 Auth Middleware

1.2 Auth Middleware

  • 1.2.1 Create auth middleware — Est: 1h — Deps: 1.1.2 — P0
  • 1.2.2 Add role-based access control — Est: 2h — Deps: 1.2.1 — P1
  • 1.2.1 Create auth middleware — Est: 1h — Deps: 1.1.2 — P0
  • 1.2.2 Add role-based access control — Est: 2h — Deps: 1.2.1 — P1

2. Auth Endpoints

2. Auth Endpoints

2.1 Registration

2.1 Registration

  • 2.1.1 POST /auth/register endpoint — Est: 1h — Deps: 1.1.1 — P0
  • 2.1.2 Email validation — Est: 30m — Deps: none — P0
  • 2.1.1 POST /auth/register endpoint — Est: 1h — Deps: 1.1.1 — P0
  • 2.1.2 Email validation — Est: 30m — Deps: none — P0

2.2 Login

2.2 Login

  • 2.2.1 POST /auth/login endpoint — Est: 1h — Deps: 1.1.1, 1.2.1 — P0
  • 2.2.2 POST /auth/refresh endpoint — Est: 1h — Deps: 1.1.3 — P1
  • 2.2.1 POST /auth/login endpoint — Est: 1h — Deps: 1.1.1, 1.2.1 — P0
  • 2.2.2 POST /auth/refresh endpoint — Est: 1h — Deps: 1.1.3 — P1

Summary

Summary

  • Total tasks: 8
  • Estimated total effort: 10.5h
  • Critical path: 1.1.1 -> 1.1.2 -> 1.2.1 -> 2.2.1 (4h)
  • Max parallelism: 3 tracks (Token, Middleware, Endpoints)
  • External dependencies: none

---
  • Total tasks: 8
  • Estimated total effort: 10.5h
  • Critical path: 1.1.1 -> 1.1.2 -> 1.2.1 -> 2.2.1 (4h)
  • Max parallelism: 3 tracks (Token, Middleware, Endpoints)
  • External dependencies: none

---

Skill Type

技能类型

RIGID — Follow the decomposition phases in order. Every task must meet the INVEST criteria and have explicit dependencies, estimates, and acceptance criteria. The dependency graph and critical path analysis are mandatory for multi-day work.
严格型(RIGID) — 按顺序遵循拆解阶段。每个任务必须符合INVEST标准,且有明确的依赖、估算值和验收标准。多天工作量的任务必须完成依赖图和关键路径分析。