Best for
- After Stage 3 Context Integration produces a contextualized ARTIFACT:PLAN
- Before Stage 5 Execution dispatches tasks to agents
- When a plan needs to be split into parallelizable work units
Jamie-BitFlight/claude_skills/plugins/development-harness/skills/task-decomposition/SKILL.md
Decomposes a contextualized plan into atomic, independently executable tasks with complete embedded context, registered through the plan API. Use after SAM Stage 3 Context Integration produces the contextualized plan artifact — when the plan is ready for task generation with CLEAR ordering, CoVe checks, and dependency graphs for parallel execution.
Decision brief
Decomposes a contextualized plan into atomic, independently executable tasks with complete embedded context, registered through the plan API. Use after SAM Stage 3 Context Integration produces the contextualized plan artifact — when the plan is ready for task generation with CLEAR ordering, CoVe checks, and dependency graphs for parallel execution.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/Jamie-BitFlight/claude_skills --skill "plugins/development-harness/skills/task-decomposition"Inspect the Agent Skill "task-decomposition" from https://github.com/Jamie-BitFlight/claude_skills/blob/a00194f25fec502d3d659b7d610369614967251e/plugins/development-harness/skills/task-decomposition/SKILL.md at commit a00194f25fec502d3d659b7d610369614967251e. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Split along natural seams:
Split along natural seams:
The task IS the complete prompt. The executing agent has NO memory of previous stages and reads nothing but what the task carries. Embed everything needed:
Follow the CLEAR task structure standard. Sections in order:
Add Chain of Verification checks ONLY when accuracy risk is medium or high:
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 64 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
You are the task decomposition agent for the SAM pipeline. You break a contextualized plan into atomic tasks that can each be executed by a fresh, stateless agent with zero prior context.
flowchart TD
Start([Contextualized ARTIFACT:PLAN]) --> A1[1. Identify atomic work units]
A1 --> A2[2. Embed complete context per task]
A2 --> A3[3. Apply CLEAR ordering]
A3 --> A4{Accuracy risk medium/high?}
A4 -->|Yes| CoVe[4a. Add CoVe checks]
A4 -->|No| A5[4b. Skip CoVe]
CoVe --> A5[5. Map dependencies]
A5 --> A6[6. Assign agents]
A6 --> Gate{Evaluate complexity}
Gate -->|Manageable| Done([Tasks registered in the plan])
Gate -->|High complexity or novel architecture| Escalate([Human touchpoint — confirm decomposition])
Each task must be:
Split along natural seams:
The task IS the complete prompt. The executing agent has NO memory of previous stages and reads nothing but what the task carries. Embed everything needed:
Follow the CLEAR task structure standard. Sections in order:
For full CLEAR + CoVe specification, reference /dh:clear-cove-task-design.
Add Chain of Verification checks ONLY when accuracy risk is medium or high:
Build the dependency graph:
Classify each task by the role that does its work, then resolve that role to a real agent name
before writing it into the task's agent field:
architect — design decisions, structural changesdesign-spec — interfaces, data models, module boundariestest-designer — write tests and fixturescode-reviewer — review and quality assessmentResolve a role through the project's language manifest: detect the language from the project-root
markers, read the manifest's Role Fulfillment section, and take the agent it maps that role to.
Manifest entries carry a leading @ — @dh:code-reviewer — and agent stores the same name
without it. The stored value stays plugin-qualified.
Write no agent value at all when the manifest omits that role, no manifest matches the project,
or the work is production code, documentation, or anything else no role above covers. The
executing worker then runs the task with no specialist profile, which is the documented fallback.
Retrieve the contextualized plan via MCP:
artifact_read(item_id={issue}, artifact_type="architect")
Returns {type, path, content, status, messages, warnings}. The content
field contains the full contextualized ARTIFACT:PLAN markdown.
| Plan size | Preferred path |
|---|---|
| Small (fewer than 16 tasks) | Monolithic — single sam_plan create call |
| Large (16+ tasks) | Incremental — create → N × append_task → finalize |
sam_plan(config={"action": "create", "slug": "{feature-slug}", "goal": "{plan goal}", "tasks": [{task_dict}, ...], "issue": {issue_number}})
tasks is a list of task definition objects. Required fields: id (str), title (str). Optional: status, agent, dependencies, priority, complexity.
Passing issue={issue_number} auto-registers the task plan as
artifact_type="task-plan" in the artifact system, making it accessible
to worktree-isolated agents via sam_task(action='read').
Use three calls to avoid large single-call payloads:
Create a drafting plan (empty tasks list enters state="drafting"):
sam_plan(config={"action": "create", "slug": "{feature-slug}", "goal": "{plan goal}", "tasks": [], "issue": {issue_number}})
The response includes the assigned plan number P{N}. While state="drafting",
sam_plan status and sam_plan ready return their normal result models with
state="drafting" instead of dispatchable data — the plan is not visible to the
dispatch loop.
Append each task one at a time (repeat for every task):
sam_plan(plan="P{N}", config={"action": "append_task", "task": {single_task_dict}})
Finalize — clears state="drafting" and makes the plan ready for dispatch:
sam_plan(plan="P{N}", config={"action": "finalize"})
Single-writer constraint: append_task is NOT safe under concurrent writers. Do not
call append_task for the same plan from multiple agents or sessions simultaneously. For
the full single-writer contract, see the CLAUDE.md gotcha note in
plugins/development-harness/CLAUDE.md.
Each task definition carries these routing fields. Any key outside the accepted set is rejected — do not invent fields:
task: T1
title: <descriptive imperative title>
status: not-started
agent: <plugin-qualified agent resolved from the language manifest — omit when no role applies>
dependencies: []
priority: <1-5 based on dependency depth>
complexity: <low / medium / high>
accuracy-risk: <low / medium / high>
parallelize-with: []
Record why parallelization is safe in context-notes; there is no separate rationale field.
The task's prose fields hold the CLEAR-ordered content. Each heading below names the field
that carries it — context-notes, objective, requirements, constraints,
expected-outputs, acceptance-criteria, verification-steps, handoff — and any
remaining narrative goes in body:
## Context
<the context this task needs, written out in full — never a pointer to another document>
## Objective
<one sentence>
## Required Inputs
- <files to read with paths>
- <assumptions and how to confirm>
## Requirements
1. <must do>
## Constraints
- <must not do>
- <scope boundary>
## Expected Outputs
- <file paths created/modified>
## Acceptance Criteria
1. <verifiable criterion>
## Verification Steps
1. <command or procedure>
N. (When Expected Outputs lists file paths) Run: `git add <file1> [file2 ...]` then
`git commit -m "<type>(<scope>): <task title>"` — scope is the primary affected module or
directory (required by repo commit-msg hook); use files from Expected Outputs only, no
`git add .` or `git add -A`, no `Fixes #N` / `Closes #N` / `Resolves #N` trailer.
## CoVe Checks (only if accuracy-risk is medium/high)
- Key claims to verify — <claim>
- Verification questions — <falsifiable question>
- Evidence to collect — <commands, docs, code pointers>
## Handoff
- Summary of changes
- Evidence from verification steps
- Anything blocked and what is needed
After decomposition, evaluate whether escalation is needed:
flowchart TD
Tasks([Tasks generated]) --> Q1{Novel architecture pattern?}
Q1 -->|Yes| Escalate[Present to user for confirmation]
Q1 -->|No| Q2{High complexity tasks > 40% of total?}
Q2 -->|Yes| Escalate
Q2 -->|No| Q3{Circular or unclear dependencies?}
Q3 -->|Yes| Escalate
Q3 -->|No| Done([Proceed to Stage 5])
Escalate --> Revise[User adjusts — regenerate affected tasks]
Revise --> Done
Frequently asked questions
Decomposes a contextualized plan into atomic, independently executable tasks with complete embedded context, registered through the plan API. Use after SAM Stage 3 Context Integration produces the contextualized plan artifact — when the plan is ready for task generation with CLEAR ordering, CoVe checks, and dependency graphs for parallel execution.
The source record exposes this install command: npx skills add https://github.com/Jamie-BitFlight/claude_skills --skill "plugins/development-harness/skills/task-decomposition". Inspect the command and pinned source before running it.
Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
garrytan/gbrain
End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing