Skip to content
Agentmart
Submit a tool

decompose

Split a plan into parallel agent tasks and dispatch them.

Skill by Igosuki

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/igosuki-decompose

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Split a plan into parallel agent tasks and dispatch them. Decomposes work into beads tasks, then uses agent-dispatch (which wraps wt and bd) for dispatch, status, merge, and cleanup. Use after planning or design is done.

Use cases: design, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/decompose

Tools it pre-approves 1

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash

What's inside

Skill name
decompose
Description
Split a plan into parallel agent tasks and dispatch them. Decomposes work into beads tasks, then uses agent-dispatch (which wraps wt and bd) for dispatch, status, merge, and cleanup. Use after planning or design is done.
License
MIT
Allowed tools
Bash
Instructions
208 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts
  • Pre-approves any shell command

Files (3)

  • SKILL md.bak
  • SKILL.md
  • split_test_suite.sh · scripts/

SKILL.md (first lines)

## Phase 0: Preflight

```bash
bd bootstrap
```

If bootstrap fails, run `bd doctor --agent` for diagnostics.

## Phase 1: Decompose

Break the plan into a beads task graph.

1. `bd create "Epic: <summary>" -p 0 --json`
2. `bd create "<title>" --description "<details + verify cmd>" --parent <epic-id> --metadata domain=frontend --metadata complexity=small --json`
   - Use `--design-file <path>` for tasks that reference design docs.
3. `bd dep add <child> <parent>` (if there are blocking dependencies)
4. Review task boundaries and decompose further if needed

### Task sizing

Estimate complexity using:
- Number of files and components involved.
- Cross-component dependencies and shared interfaces.
- Amount of independent design or architectural reasoning.
- Verification requirements and failure impact.
- Expected implementation size.

Use line counts as rough indicators, not hard boundaries.

- SMALL: Localized change, straightforward behavior, easy verification.
- MEDIUM: Several related files, bounded design decisions, clear acceptance
  criteria and verification.
- LARGE: Cross-component behavior, significant design decisions, multiple
  independently verifiable parts, or substantial uncertainty.

Split LARGE tasks when the resulting tasks have clear interfaces and can be
implemented or verified independently. Do not split tightly coupled changes
just to maximize parallelism.

If splitting a large task, create subtasks with:
```
bd create "<subtask>" --parent <large-task-id> --json
```

### Task Granularity

Create subtasks when:
- Clear interface boundaries exist (e.g., "define schema" ← → "implement parser")
- Multiple parts could genuinely be parallelized
- Different expertise/concerns needed (e.g., "backend" vs "frontend")
- Separate verification steps required
- >2 people could meaningfully work on different parts simultaneously

Keep together when:
- Tightly coupled (changes in one part require changes in another)
- Shared state/context (parsing + validating same structure)
- Sequential dependencies (B blocks on A's completion)
- Single unified verification point

Child tasks inherit labels from their parent automatically.

### Shared interfaces

If a task defines interfaces that other tasks consume (types, schemas, API contracts), make it a separate task and add it as a dependency for the consumers. Merge it to main before dispatching consumers — otherwise they build against nothing.

### Task Format

Each task description should include:
- Clear scope and acceptance criteria
- Any APIs/interfaces it depends on from other tasks
- A verification command (e.g., `pytest tests/module.py`, `npm run lint`, etc.)

Example:
```
Title: Implement user authentication

Description:
Implement JWT-based auth with:
- Login endpoint (POST /auth/login)
- Token validation middleware
- Refresh token rotation

Depends on: user schema task (for table structure)

Verification:
  pytest tests/auth/test_login.py -v
```

Show `bd list --parent <epic-id>`. Wait for user approval.

Epic close guards: `bd close <epic>` validates all children are closed before allowing the close.

## Phase 2: Dispatch and manage

**CRITICAL: ALL dispatch, merge, status, and cleanup operations MUST go through
`agent-dispatch`. NEVER run raw `git merge`, `wt merge`, `bd close`, or
`bd claim` directly.**

### Commands

| Command | What it does |
|---------|-------------|
| `agent-dispatch dispatch <task-id> --prepare` | Claim task, create worktree, output JSON with `worktree_path` and `prompt`. |
| `agent-dispatch status <epic-id>` | Print tasks, ready queue, active worktrees, and current policies. |
| `agent-dispatch merge <task-id>` | Merge task branch to main and mark the task done via `bd done`. Lock file conflicts are resolved automatically; non-lock-file conflicts are reported for manual resolution. |
| `agent-dispatch cleanup <epic-id>` | Remove all task- worktrees, reset in-progress tasks to open. |
| `agent-dispatch config` | Show current policies. |
| `agent-dispatch help` | Print usage and policy reference. |

### Dispatching agents

For each ready task, dispatch in two steps:

1. **Prepare** — creates the wt-managed worktree and claims the task:
   ```bash
   agent-dispatch dispatch <task-id> --prepare
   ```
   This outputs JSON: `{ task_id, branch, worktree_path, session, prompt_file, launch_cmd, prompt }`

From Igosuki/agentic-sdlc, MIT.

More from Igosuki/agentic-sdlc

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 10, 2026 (18 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Igosuki

Cite this page

decompose skill. Agent Mart. https://agentmart.dev/skills/igosuki-decompose (last updated 2026-10-24)