Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

decompose

БесплатноБез исполняемых скриптовНе проверен

Decompose a phase plan into atomic beads and sub-beads. Use when breaking down a phase into tasks, when the user mentions "decompose" or "break down", when…

Mburdoот Mburdo★ 44 звезды на GitHub14 установок в других каталогах

Об этом скилле

Decompose — Task Breakdown

Break a phase into atomic beads and sub-beads for agent execution.

Design rationale: This skill uses the orchestrator-subagent pattern because decomposition involves substantial cognitive work: understanding the phase, creating a lossless manifest, generating beads, setting dependencies, and validation. The "Create Beads" phase is especially critical—when an agent reads a 1000-line phase doc directly, it summarizes. With subagents, the manifest captures everything first, preventing information loss.

When This Applies

Signal Action
User says "decompose" or "break down" Run full protocol
Have a phase plan ready Decompose into beads
User says "/decompose" Run full protocol
Need to structure work for agents Create bead hierarchy

Tool Reference

File Operations

Tool Purpose
Read(phase_doc_path) Read phase document
Read(north_star_path) Read North Star for context
Write(file_path, content) Write manifest, reports

Beads (Task Tracking)

Command Purpose
bd create --title "..." --body "..." Create parent bead
bd create --parent <id> --title "..." Create sub-bead
bd dep add <child> <blocker> Set dependency
bd list --json List all beads

BV (Graph Intelligence)

Command Purpose
bv --robot-suggest Find missing dependencies
bv --robot-plan Validate execution order
bv --robot-alerts Check for risks/cycles

Sub-Bead Suffix Convention

Suffix Purpose
.1 Schema/types/models
.2-.3 Core implementation
.4-.8 Tests
.9 Integration/wiring
.10 Documentation

Architecture

┌─────────────────────────────────────────────────────────────────┐
│                    DECOMPOSE ORCHESTRATOR                        │
│  - Creates session: sessions/decompose-{timestamp}/              │
│  - Manages TodoWrite state                                       │
│  - Spawns subagents with minimal context                         │
│  - Passes manifest (not phase doc) to Create Beads phase         │
└─────────────────────────────────────────────────────────────────┘
                              │
         ┌────────────────────┼────────────────────┐
         │                    │                    │
         ▼                    ▼                    ▼
┌─────────────────┐  ┌─────────────────┐  ┌─────────────────┐
│  Understand     │  │    Manifest     │  │  Create Beads   │
│  agents/        │  │  agents/        │  │  agents/        │
│  understand.md  │  │  manifest.md    │  │  create-beads.md│
└────────┬────────┘  └────────┬────────┘  └────────┬────────┘
         │                    │                    │
    01_understanding     02_manifest.md      03_beads_created
         │                    │                    │
         └────────────────────┼────────────────────┘
                              │
         ┌────────────────────┼────────────────────┐
         ▼                    ▼
┌─────────────────┐  ┌─────────────────┐
│  Dependencies   │  │    Validate     │ → Ready for execution
│  agents/        │  │  agents/        │
│  dependencies.md│  │  validate.md    │
└────────┬────────┘  └────────┬────────┘
         │                    │
    04_dependencies      05_validation

Subagents

Phase Agent Input Output
1 agents/understand.md phase_doc goals, components, ambiguities
2 agents/manifest.md understanding lossless item list
3 agents/create-beads.md manifest (NOT phase doc) parent + sub-beads
4 agents/dependencies.md beads created dependency graph
5 agents/validate.md dependencies validation report

Why Subagents for Decomposition

The "Create Beads" phase is the most lossy. When an agent reads a 1000-line phase doc directly, it summarizes. With subagents:

Monolithic Subagent Pattern
Agent reads phase doc, summarizes Manifest captures everything first
Create Beads sees summarized version Create Beads sees manifest (lossless)
"4 tests for X" Actual test code in manifest
Context bombing Fresh context per phase

Key insight: The manifest becomes the source of truth. Create Beads never reads the original phase doc—it reads the manifest.


Execution Flow

1. Setup (Orchestrator)

1. Create session directory:
   mkdir -p sessions/decompose-{timestamp}

2. Initialize TodoWrite with phases:
   - [ ] Phase 1: Understand
   - [ ] Phase 2: Manifest
   - [ ] Phase 3: Create Beads
   - [ ] Phase 4: Dependencies
   - [ ] Phase 5: Validate

3. Gather inputs:
   - phase_doc_path: Path to phase document
   - north_star_path: Path to North Star Card

2. Phase 1: Understand

Spawn: `agents/un

Полный SKILL.md на GitHub

Установить decompose в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/create-beads.mdagents/dependencies.mdagents/manifest.mdagents/understand.mdagents/validate.md

FAQ

Что делает скилл decompose?

Decompose a phase plan into atomic beads and sub-beads. Use when breaking down a phase into tasks, when the user mentions "decompose" or "break down", when creating beads from a plan, or when structuring work for parallel execution.

Как установить скилл decompose?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл decompose запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить decompose с