โ† All Techniques
๐Ÿงฉ

Task Decomposition โ€” Prompting Guide & Examples

IntermediateReasoning & Logic

Task decomposition breaks a complex problem into smaller, manageable sub-tasks that the AI can handle individually. Unlike prompt chaining (which is about workflow), decomposition is about problem structure โ€” identifying the right sub-problems to solve.

How It Works

Present the complex task and ask the model to first identify all sub-tasks needed, then solve each one independently. The model can determine the optimal breakdown itself, or you can specify the decomposition structure.

When to Use

Use decomposition for any overwhelming or complex task: large writing projects, complex analysis, system design, research questions, and planning. If a task feels too big for one prompt, decompose it.

Model-Specific Tips

ChatGPT / GPT-4

GPT-4 excels at decomposition. Ask it to 'break this into sub-tasks' and it will identify logical components. Use follow-up messages to tackle each sub-task.

Claude

Claude is excellent at structured decomposition. Ask for numbered sub-tasks with dependencies. Claude tends to be thorough in identifying edge cases and prerequisites.

Gemini

Gemini handles decomposition well. Ask for hierarchical breakdowns. Gemini can also estimate complexity for each sub-task.

Pros & Cons

Pros

  • โœ“ Makes overwhelming tasks manageable
  • โœ“ Reveals hidden sub-problems and dependencies
  • โœ“ Each sub-task gets focused attention
  • โœ“ Great for planning and project management

Cons

  • โœ— Can over-decompose simple tasks
  • โœ— Sub-task interactions may be missed
  • โœ— Requires good problem understanding
  • โœ— Reassembly of sub-solutions can be tricky

Example Prompts

I need to migrate our monolith to microservices. Break this into all the sub-tasks I need to complete, in the right order, with dependencies noted. Then tackle the first sub-task in detail.

Decompose this problem: 'Reduce customer churn from 8% to 4% within 6 months.' What are all the sub-problems I need to solve? For each, what data do I need and what approaches could work?

Break down 'Build a recommendation engine for our e-commerce site' into phases. For each phase, list: objectives, required skills, estimated effort, and key decisions to make.

FAQ

What is Task Decomposition?
Task decomposition breaks a complex problem into smaller, manageable sub-tasks that the AI can handle individually. Unlike prompt chaining (which is about workflow), decomposition is about problem structure โ€” identifying the right sub-problems to solve.
When should I use Task Decomposition?
Use decomposition for any overwhelming or complex task: large writing projects, complex analysis, system design, research questions, and planning. If a task feels too big for one prompt, decompose it.
How does Task Decomposition work?
Present the complex task and ask the model to first identify all sub-tasks needed, then solve each one independently. The model can determine the optimal breakdown itself, or you can specify the decomposition structure.
Does Task Decomposition work with ChatGPT?
GPT-4 excels at decomposition. Ask it to 'break this into sub-tasks' and it will identify logical components. Use follow-up messages to tackle each sub-task.
Does Task Decomposition work with Claude?
Claude is excellent at structured decomposition. Ask for numbered sub-tasks with dependencies. Claude tends to be thorough in identifying edge cases and prerequisites.