🦀 ClawHub
Task Decomposition
by @mzfshark
Break complex tasks into executable, dependency-aware steps.
TERMINAL
clawhub install axodus-task-decomposition📖 About This Skill
name: task-decomposition description: Break complex tasks into executable, dependency-aware steps. metadata: author: RedHat Dev version: 1.0.0 owner: RedHat Dev Agent category: core
SKILL: task-decomposition
Purpose
Break a raw task into an ordered, executable, dependency-aware step list with acceptance criteria and explicit open questions.When to Use
Inputs
raw_task_description (required, string): the user request as-is.constraints (optional, string[]): non-negotiables (security, time, language, tooling).repo_context (optional, string): relevant paths, conventions, or prior decisions.risk_level_hint (optional, enum: low|medium|high): if the user already signaled risk.Steps
1. Restate the task in 1–3 sentences without adding assumptions. 2. Extract deliverables (expected behavior, files to touch, commands to run). 3. Identify unknowns that block execution and convert them into concrete questions. 4. Split work into atomic steps; each step must include: - action + target - a single primary outcome - acceptance criteria (done_when)
5. Order steps by dependency and mark safe parallelization explicitly.
6. Tag each step with:
- risk (low|medium|high)
- validation (what will be checked)
7. If unknowns are material, stop and ask only the minimum questions; otherwise proceed with stated assumptions.Validation
Output
Structured plan (example schema):summary: ""
open_questions:
- ""
assumptions:
- ""
steps:
- id: 1
action: ""
targets: [""]
risk: low
validation: ""
done_when: ""
Safety Rules
Example
Input:raw_task_description: “Add a CLI command to export reports.â€constraints: ["No breaking changes", "Must include tests"]Output (excerpt):
summary: "Add report export command and tests"
open_questions:
- "What output formats are required (json/csv/pdf)?"
steps:
- id: 1
action: "Locate existing CLI entrypoints and command router"
targets: ["src/cli/*"]
risk: low
validation: "CLI help shows existing commands unchanged"
done_when: "Command dispatch mechanism is identified"
⚡ When to Use
💡 Examples
Input:
raw_task_description: “Add a CLI command to export reports.â€constraints: ["No breaking changes", "Must include tests"]Output (excerpt):
summary: "Add report export command and tests"
open_questions:
- "What output formats are required (json/csv/pdf)?"
steps:
- id: 1
action: "Locate existing CLI entrypoints and command router"
targets: ["src/cli/*"]
risk: low
validation: "CLI help shows existing commands unchanged"
done_when: "Command dispatch mechanism is identified"