Command Palette

Search for a command to run...

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

breakdown

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

Break down a PRD or CRD into self-contained implementation tasks for LLM execution. Use when you have a PRD/CRD file and want to generate executable task…

vinzenzот vinzenz★ 56 звёзд на GitHub15 установок в других каталогах

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

/breakdown - PRD/CRD Task Breakdown

You are orchestrating the breakdown of a PRD (Product Requirements Document) or CRD (Change Request Document) into implementation tasks optimized for autonomous LLM execution.

Arguments

  • <input-path>: Path to PRD index.md or CRD document (required)
  • --layer <N>: Only generate tasks for specific layer (optional, 0-4)
  • --review-only: Only run review pass on existing tasks (optional)
  • --output-dir <path>: Target directory for greenfield projects (overrides default)
  • --project-path <path>: Existing project path for brownfield/CRD (overrides PRD value)
  • --auto-setup: Automatically execute Layer 0 tasks after generation (greenfield only)

Input Format Detection

The skill automatically detects whether the input is a PRD or CRD:

Root Element Format Description
<prd> PRD Full product requirements (greenfield or brownfield)
<crd> CRD Change request for existing project

CRD handling:

  • CRDs are always brownfield (no Layer 0)
  • CRDs require --project-path or a project with PROJECT.md
  • CRDs use <impact-analysis> to scope task generation
  • CRDs typically produce fewer tasks (focused changes)

Output Location

Tasks are written to: docs/tasks/<prd-slug>/

For greenfield with --output-dir:

  • Layer 0 tasks reference the output-dir as target
  • Other layer tasks are still saved to docs/tasks/

Workflow

Execute these phases in order:

Phase 1: Validate Input

  1. Read the input file at the provided path
  2. Detect format by checking root element (<prd> or <crd>)
  3. Verify valid XML structure
  4. Extract the slug from <meta><slug> tag
  5. Create output directory: docs/tasks/{slug}/
  6. If directory exists, check for existing .done markers to resume

For CRD input:

  • Require --project-path argument (CRDs always target existing projects)
  • Verify PROJECT.md exists at {project-path}/PROJECT.md
  • Load PROJECT.md context for use in task generation

Phase 2: Analyze Input

For PRD: Invoke the breakdown-analyze-prd skill with the full PRD content.

Pass the PRD XML content and request structured extraction of:

  • All features with priorities
  • Tech stack with versions
  • Implied data models
  • Implied API endpoints
  • Implied frontend components
  • External dependencies
  • Template path if specified

For CRD: Extract directly from CRD structure:

  • Requirements from <requirements> section
  • Acceptance criteria from <acceptance-criteria> section
  • Affected files from <impact-analysis><affected-files>
  • Affected features from <impact-analysis><affected-features>
  • Tech stack from PROJECT.md context
  • Related existing features from <context><related-features>

The CRD already contains impact analysis, so less inference is needed.

Save the analysis to docs/tasks/{slug}/analysis.json

Phase 3: Plan Layers

For PRD: Invoke the breakdown-plan-layers skill with the analysis JSON.

Request organization into 4-5 layers:

  1. 0-setup: Template copy, git init, environment (greenfield only)
  2. 1-foundation: Database models, migrations, base config
  3. 2-backend: API endpoints, services, business logic
  4. 3-frontend: React components, state management, routing
  5. 4-integration: Wiring, E2E flows, polish

For CRD: Layer planning is simpler based on <impact-analysis>:

  • If <affected-schemas> has changes: Include Layer 1 (foundation)
  • If <affected-apis> has changes: Include Layer 2 (backend)
  • If frontend files in <affected-files>: Include Layer 3 (frontend)
  • Always include Layer 4 (integration) for wiring changes together

CRD typically produces 2-3 layers, not 5.

Save the layer plan to docs/tasks/{slug}/layer_plan.json

Phase 4: Generate Tasks (Per Layer)

Determine layers to process based on input type:

  • PRD Greenfield: [0-setup, 1-foundation, 2-backend, 3-frontend, 4-integration]
  • PRD Brownfield: [1-foundation, 2-backend, 3-frontend, 4-integration] (skip Layer 0)
  • CRD: Only layers identified in Phase 3 based on impact analysis

For each layer in order:

  1. Check completion: If {layer}/.done exists, skip this layer

  2. Create directory: docs/tasks/{slug}/{layer}/

  3. Batch tasks: Split layer tasks into batches of max 5 tasks each

    • If layer has ≤5 tasks: single batch
    • If layer has 6-10 tasks: 2 batches
    • If layer has 11-15 tasks: 3 batches
    • Example: 14 tasks → batches of [5, 5, 4]
  4. For each batch, with retry loop (max 3 attempts per batch):

    for batch in batches:
        for attempt in [1, 2, 3]:
            # Generate
            invoke breakdown-generate-tasks with:
              - Layer name
              - Task batch (subset of layer tasks)
              - PRD analysis
              - Template path (if any)
              - Output directory: docs/tasks/{slug}/{layer}/
              - Previous review feedback (if retry)
    
            # Review
            in
    
Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Glob
Grep
Write
Skill
Bash

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

references/layer-definitions.mdreferences/layer0-templates.mdreferences/review-criteria.mdreferences/task-format-spec.md

FAQ

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

Break down a PRD or CRD into self-contained implementation tasks for LLM execution. Use when you have a PRD/CRD file and want to generate executable task files for autonomous implementation.

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

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

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

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

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

Сравнить breakdown с