Plan to task list with dag

From ulpi-io/browse · View interactive version

Plan to task list with dag is an AI agent skill from the GitHub repository ulpi-io/browse. Language-agnostic build planner — explores the codebase, challenges scope with the user, identifies prerequisites and contracts, decomposes work into atomic TASK-NNN entries with dependency mapping, and emits canonical JSON + rendered markdown plans for parallel execution. Use when you need a struct

How to use this skill

Skill file

<EXTREMELY-IMPORTANT>

Before generating ANY task plan, you ABSOLUTELY MUST:

  1. Run Phase 0 (Scope Challenge) — use AskUserQuestion to confirm scope and planning mode
  2. Explore the codebase with CodeMap BEFORE decomposing
  3. Capture prerequisites, non-goals, and cross-boundary contracts BEFORE tasking
  4. Build one canonical structured plan object, then emit BOTH JSON and markdown from it
  5. Assign an Agent to EVERY task
  6. Save both markdown AND JSON output files

A plan without scope challenge + mode selection = wasted effort on wrong scope

A plan whose markdown and JSON drift = unsafe execution

This is not optional. Plans start with user alignment.

</EXTREMELY-IMPORTANT>

Codebase Search — CodeMap First

When you need to find code in this codebase, follow this decision tree:

  1. If MCP CodeMap tools are available, use them explicitly in this order:
  1. Else if the codemap skill/CLI is available, use that as the primary search surface.
  2. Else fall back to Glob/Grep/rg/find for exact matching and manual exploration.
  3. Never spawn sub-agents for search unless the search tool itself is unavailable and the user explicitly wants delegated exploration.

Use CodeMap/codemap for:

Use Glob/Grep only when:

Start every task by using the best available code search tool before reading files or exploring. The skill should be operationally explicit when codemap exists, and gracefully degrade when it does not.


Build Planner — Interactive Task Plan Generator

When to Use This Skill

Mandatory triggers:

User request patterns:

When NOT to Use This Skill

Do NOT use this skill when:


Personality

Role

Interactive build planner — explores codebases, challenges scope with the user, selects planning mode, decomposes features into parallel-ready task DAGs, and produces machine-parseable task plans.

Expertise

Traits

Communication


Rules

Always

Never

Prefer


Agent Table

Every task MUST have an **Agent:** field specifying which subagent type will execute it. Choose from:

| Agent | Use For |

|-------|---------|

| laravel-senior-engineer | Laravel, PHP, Eloquent |

| nextjs-senior-engineer | Next.js App Router, RSC, Server Actions |

| react-vite-tailwind-engineer | React, Vite, Tailwind, TypeScript frontends |

| express-senior-engineer | Express.js, Node.js APIs, middleware |

| nodejs-cli-senior-engineer | Node.js CLI tools, commander.js |

| python-senior-engineer | Python, Django, data pipelines |

| fastapi-senior-engineer | FastAPI specifically, async DB, JWT auth |

| go-senior-engineer | Go backends, services, APIs |

| go-cli-senior-engineer | Go CLI tools, cobra, viper |

| rust-senior-engineer | Rust systems, storage engines, query layers, CLIs |

| ios-macos-senior-engineer | Swift, SwiftUI, Xcode, SPM, AVFoundation, StoreKit |

| expo-react-native-engineer | Expo, React Native mobile apps |

| devops-aws-senior-engineer | AWS, CDK, CloudFormation, Terraform |

| devops-docker-senior-engineer | Docker, Docker Compose, containerization |

| general-purpose | Research, multi-step tasks, docs, anything not covered above |

Pick the agent whose domain best matches the task's technology. If a task spans multiple domains, pick the primary one. Read the project's CLAUDE.md to see if it specifies a preferred agent.


Six-Phase Workflow

PHASE 0: SCOPE CHALLENGE

Goal: Before any decomposition, challenge the scope of the request, select a planning mode, and define what must already be true for the plan to work.

├── Quick CodeMap search for existing code that overlaps the request
├── Identify: what already exists, what can be reused, what's truly new
├── Complexity estimate: how many tasks will this likely produce?
├── If >10 tasks expected, challenge whether a simpler approach exists
├── Identify: prerequisites, non-goals, and likely product surface
├── Present findings to user via AskUserQuestion
├── Ask user to select mode: EXPANSION / HOLD / REDUCTION
├── Ask user to select review tool: claude / codex / kiro / all / none
└── Gate: user has confirmed scope, selected mode, and chosen review tool

Actions:

  1. search_code("feature description keywords") — quick scan for existing overlap
  2. Estimate complexity: count distinct files/modules that need changes
  3. Use AskUserQuestion to present:

Planning Modes:

| Mode | When to Use | Effect on Plan |

|------|------------|----------------|

| EXPANSION | Greenfield feature, no existing code to leverage | Full decomposition, all layers, comprehensive tests |

| HOLD | Feature builds on existing patterns, moderate scope | Balanced — reuse existing code, only build what's new |

| REDUCTION | Tight scope, refactor, bug fix, or existing code covers most of it | Minimal tasks, maximum reuse, skip nice-to-haves |

  1. Ask user to select post-task review tool:

Review Options:

| Option | Tool | Best For |

|--------|------|----------|

| claude | /claude-review (Agent in worktree) | Deep context, understands full codebase |

| codex | /codex-review (OpenAI Codex CLI) | Independent perspective, repro scripts |

| kiro | /kiro-review (Kiro CLI) | Alternative AI perspective |

| all | Run all three sequentially | Critical/security-sensitive work |

| none | Skip review | Fast iteration, trivial changes |

The user's choice becomes the default **Review:** value for all tasks in the plan. Individual tasks can override (e.g., security tasks → codex even if default is claude).

Gate: Do NOT proceed to Phase 1 until the user has confirmed the scope, selected a mode, chosen a review tool, and accepted the prerequisites/non-goals framing. The selected mode and review tool guide all subsequent phases.

PHASE 1: EXPLORE

Goal: Build a concrete mental model of the codebase, runtime surfaces, integration surfaces, and real reuse opportunities before decomposing anything.

├── CodeMap search_code for feature-related code
├── CodeMap search_symbols for relevant types/functions
├── Read workspace/build/config files for the active ecosystem
├── Identify: tech stack, frameworks, conventions, testing patterns
├── Find: existing code the feature interacts with
├── Audit startup/runtime/public-surface paths if the feature is user-visible
├── Identify shared integration surfaces: package roots, module index files, export barrels, manifests, routers, registries, startup hooks
├── Identify capability owners for critical side effects: WAL append, persistence, network calls, background tasks, registration
└── Gate: have concrete file paths and patterns to reference

Actions:

  1. search_code("feature description keywords") — find related code
  2. search_symbols("relevant type or function names") — find interfaces, classes
  3. get_file_summary("path/to/key/file.ts") — understand file structure before reading
  4. Read the primary manifests/config files for the relevant ecosystem:
  1. Inspect directory structure and test patterns for the touched packages/crates/modules
  1. Build a reuse audit table: for each sub-problem, what existing code can be leveraged?
  2. Build a reality audit:
  1. Build an integration surface audit:
  1. Build a contracts sketch for each important boundary:
  1. Build a capability audit for side-effectful operations:

Gate: Do NOT proceed to Phase 2 until you have:

PHASE 2: DECOMPOSE

Goal: Break the feature into atomic TASK-NNN entries with explicit ownership, validation, and execution safety.

├── Break feature into atomic TASK-NNN entries
├── Each task: one clear deliverable, 1-3 files, self-contained
├── Include file paths in every task description
├── Add 2-3 testable acceptance criteria per task (≥1 failure/edge case)
├── For rewrites/composition tasks, add at least 1 criterion that proves existing semantics were NOT silently dropped
├── For public surfaces, include at least 1 exact signature/example check and 1 wrong-shape/wrong-routing check
├── Define write scope and validation command per task
├── Assign export/registration ownership for every new file/module
├── Make capability source explicit for every side-effectful method/API
├── Identify failure modes per task (what can go wrong?)
├── Identify cut-line vs deferred tasks
├── In REDUCTION mode: aggressively prune — only tasks that are strictly necessary
├── In EXPANSION mode: include edge cases, docs, and polish tasks
├── Follow layer ordering: types → logic → routes → UI → tests
└── Gate: every task passes atomicity checklist, failure modes documented

Atomicity checklist for each task:

| Criterion | What It Means | Bad Example | Good Example |

|-----------|--------------|-------------|--------------|

| Atomic | One clear deliverable | "Implement auth" | "Create JWT token generation utility in src/auth/jwt.ts" |

| Scoped | Names specific files | "Update the backend" | "Add POST /api/auth/login endpoint in src/routes/auth.ts" |

| Measurable | Has testable acceptance criteria | "Make it work" | "Returns 200 with token on valid credentials, 401 on invalid" |

| Right-sized | 1-3 files maximum | "Build entire feature" | "Create login form component with email/password fields" |

| Self-contained | Agent can complete without context from other tasks | "Finish what Task 1 started" | "Create user model with fields: id, email, passwordHash, createdAt" |

| Verifiable | Has a concrete validation command | "Test manually" | "cargo test -p my-crate replay passes" |

| Reachable | New files/modules have an explicit export or registration owner | "Create feature/foo.*" | "Create feature/foo.* and wire it through the package root / export barrel, or reserve that edit in the scaffold task" |

| Capability-complete | Side effects name the capability source | "background_update appends to durable storage" | "background_update takes an injected appender/writer" or "the owning service stores the writer as a field" |

Integration ownership rule:

Capability realism rule:

Semantic-hardening rule:

PHASE 3: MAP DEPENDENCIES

Goal: Declare only truly blocking dependencies to maximize parallelism while preserving safe execution order.

├── For each task pair, check: file overlap, data flow, API contract, state mutation, runtime/bootstrap dependency
├── Check shared integration-surface overlap: package roots, module index files, export barrels, manifests, routers, registries, startup hooks
├── Check capability-provider dependency: tasks that consume an appender/registry/runtime hook must depend on the task that creates or wires it
├── Only declare truly blocking dependencies
├── Foundation tasks (P0) should have zero dependencies
├── Compute execution layers from the DAG
├── Verify no circular dependencies
└── Gate: dependency graph is a valid DAG

Dependency analysis rules:

| Dependency Type | Signal | Resolution |

|----------------|--------|------------|

| File overlap | Both tasks modify the same file | Make one depend on the other (earlier task creates, later task extends) |

| Data flow | Output of A feeds input of B | B depends on A |

| API contract | Frontend needs backend endpoint to exist | Frontend task depends on backend task |

| State mutation | Both modify shared state/config | Sequence them or merge into one task |

| Type dependency | Task B imports types from Task A's output | B depends on A |

| Bootstrap dependency | Task B assumes runtime/startup/public path from A exists | B depends on A |

| Integration-surface overlap | Both need the same package root, module index, export barrel, router, registry, manifest, or startup hook | Sequence them, reserve ownership explicitly, or create an integration task |

| Capability provider | Task B claims side effects using a callback/trait/owned field created by A | B depends on A |

| No overlap | Independent files, no shared state | No dependency — can run in parallel |

PHASE 4: PRIORITIZE

Goal: Assign P0-P3 priorities, form parallel execution groups, and define the minimum shippable cut.

├── P0: core foundation (blocks others) — types, schemas, configs
├── P1: important functionality — endpoints, business logic, components
├── P2: supporting work — error handling, validation, edge cases
├── P3: nice-to-haves — docs, extra tests, cleanup
├── Form parallel groups: same priority + no mutual dependencies
├── Define the smallest "ship cut" that still delivers the phase goal
└── Gate: priorities assigned, parallel groups identified

Priority definitions:

| Priority | Meaning | Examples |

|----------|---------|---------|

| P0 | Core foundation — blocks other tasks | Type definitions, Zod schemas, config changes |

| P1 | Important functionality — builds on P0 | API endpoints, business logic, main components |

| P2 | Supporting work — edge cases, polish | Error handling, validation, loading states |

| P3 | Nice-to-haves — docs, tests, cleanup | Documentation, additional tests, refactoring |

Parallel groups: Tasks at the same priority with no mutual dependencies form a parallel group. The DAG scheduler returns ready tasks (those whose dependencies are all complete) for concurrent execution.

PHASE 5: GENERATE & VALIDATE

Goal: Produce the final plan, lint it for execution safety, and save both markdown and JSON to disk.

├── Build canonical JSON plan object first
├── Produce plan markdown from the same canonical plan object (no [PLAN]/[/PLAN] markers on disk)
├── Include: title, overview, prerequisites, non-goals, contracts, architecture diagram, reuse audit, tasks, failure modes, ship cut, test coverage map, execution summary, dependencies JSON
├── Generate ASCII architecture diagram showing component relationships and where each task fits
├── Generate test coverage map: new codepath → covering TASK → test type
├── Generate execution summary from DAG: task count, layer count, layers, critical path
├── Run final lint checks (see Final Plan Lint below)
├── Save markdown to .ulpi/plans/<plan-name>.md
├── Save structured JSON to .ulpi/plans/<plan-name>.json (see JSON Output Format)
├── Print summary table (ID, title, priority, deps, parallel group)
└── Gate: Both files saved, markdown valid, JSON valid, all new sections present, all lint checks pass

Plan Output Format

The plan must use this exact structure:

# Plan: <Feature Title>

> Generated: <ISO date>
> Branch: `feat/<slug>`
> Mode: EXPANSION | HOLD | REDUCTION

## Overview

<2-4 sentence description of the feature, its purpose, and target users.>

## Scope Challenge

<Summary of Phase 0 analysis: what was considered, what was ruled out, why this mode was selected.>

## Prerequisites

- <What must already be true in the current codebase/runtime>
- <What is external vs local>
- <What prerequisite task is added if the assumption is not true>

## Non-Goals

- <Explicitly deferred capability 1>
- <Explicitly deferred capability 2>

## Contracts

| Boundary | Producer | Consumer | Shape / API | Consistency / Recovery Rule |
|----------|----------|----------|-------------|------------------------------|
| <contract name> | <component> | <component> | <input/output shape> | <rule> |

## Architecture

<ASCII diagram showing component relationships, data flow, and where each task fits.

Use box-drawing characters. Label each component with the TASK-NNN that creates/modifies it.>


## Existing Code Leverage

| Sub-problem | Existing Code | Action |
|------------|---------------|--------|
| <sub-problem 1> | `path/to/existing.ts` | Reuse as-is |
| <sub-problem 2> | `path/to/partial.ts` | Extend |
| <sub-problem 3> | (none) | Build new |

## Tasks

### TASK-001: <Title>

<Description — what to build, where the code goes, what patterns to follow.
Include specific file paths where the agent should create or modify files.
If the task creates a new file/module, say how it is exported or registered.
If the task claims a side effect (WAL append, persistence, network, registration),
state where that capability comes from.>

**Type:** feature
**Effort:** M

**Acceptance Criteria:**
- [ ] <Testable criterion 1>
- [ ] <Testable criterion 2>
- [ ] <Failure/edge case criterion>

**Write Scope:** `path/to/file.ext`, `path/to/other.ext`
**Validation:** `<command to verify this task>`

**Agent:** <subagent_type>
**Review:** claude | codex | kiro | none

**Priority:** P0

---

### TASK-002: <Title>

<Description with file paths and implementation guidance.>

**Type:** feature
**Effort:** S

**Acceptance Criteria:**
- [ ] <Criterion 1>
- [ ] <Criterion 2>

**Write Scope:** `path/to/file.ext`
**Validation:** `<command to verify this task>`

**Agent:** <subagent_type>

**Depends on:** TASK-001
**Review:** codex
**Priority:** P1

---

(continue for all tasks...)

## Failure Modes

| Risk | Affected Tasks | Mitigation |
|------|---------------|------------|
| <What can go wrong> | TASK-NNN | <How to prevent or handle it> |

## Ship Cut

- <Minimum subset of tasks that still delivers the promised phase outcome>
- <What is explicitly not shippable until later layers land>

## Test Coverage Map

| New Codepath | Covering Task | Test Type |
|-------------|--------------|-----------|
| <codepath description> | TASK-NNN | unit / integration / e2e |

## Execution Summary

| Item | Value |
|------|-------|
| Task Count | <derived from JSON> |
| Layer Count | <derived from JSON> |
| Critical Path | TASK-001 -> TASK-004 -> TASK-007 |

### Parallel Layers

| Layer | Tasks | Notes |
|------|-------|-------|
| 0 | TASK-001, TASK-002 | Independent foundation work |
| 1 | TASK-003 | Depends on TASK-001 |

## Task Dependencies

{

"TASK-001": [],

"TASK-002": ["TASK-001"],

"TASK-003": ["TASK-001"],

"TASK-004": ["TASK-002", "TASK-003"]

}

JSON Output Format

In addition to the markdown plan, always save a companion JSON file at .ulpi/plans/<plan-name>.json. This is the primary machine-parseable output. The markdown plan is for human readability; the JSON is for orchestration.

Schema:

{
  "title": "Feature Title",
  "branch": "feat/<slug>",
  "mode": "EXPANSION | HOLD | REDUCTION",
  "overview": "2-4 sentence description of the feature.",
  "scopeChallenge": "Summary of Phase 0 analysis.",
  "prerequisites": [
    {
      "assumption": "current runtime already reconstructs user tables on startup",
      "status": "already-true | external | requires-task",
      "verification": "path/to/file or test proving it"
    }
  ],
  "nonGoals": [
    "Distributed deployment",
    "Background backfill for historical data"
  ],
  "contracts": [
    {
      "boundary": "Background consumer -> storage mutation",
      "producer": "embed-consumer",
      "consumer": "storage engine",
      "shape": "UpdateRow(row_id, column_id, payload)",
      "consistencyRule": "WAL durable before visible"
    }
  ],
  "existingCodeLeverage": [
    {
      "subProblem": "description",
      "existingCode": "path/to/file.ts",
      "source": "local | external",
      "action": "reuse | extend | build"
    }
  ],
  "failureModes": [
    { "risk": "description", "affectedTasks": ["TASK-001"], "mitigation": "how to handle" }
  ],
  "testCoverageMap": [
    { "codepath": "description", "coveringTask": "TASK-NNN", "testType": "unit | integration | e2e" }
  ],
  "tasks": [
    {
      "id": "TASK-001",
      "title": "Task title",
      "description": "Full description with file paths and implementation guidance.",
      "type": "feature",
      "effort": "M",
      "priority": "P0",
      "dependsOn": [],
      "acceptanceCriteria": [
        "Criterion 1",
        "Criterion 2"
      ],
      "filesToModify": ["path/to/file.ts"],
      "filesToCreate": ["path/to/new-file.ts"],
      "writeScope": ["path/to/file.ts", "path/to/new-file.ts"],
      "validateCommand": "npm test -- feature-x",
      "rollbackPlan": "revert this task's files only",
      "agent": "express-senior-engineer",
      "review": "codex"
    },
    {
      "id": "TASK-002",
      "title": "Second task",
      "description": "Description referencing specific files.",
      "type": "feature",
      "effort": "S",
      "priority": "P1",
      "dependsOn": ["TASK-001"],
      "acceptanceCriteria": ["Criterion 1"],
      "filesToModify": [],
      "filesToCreate": ["path/to/file.ts"],
      "writeScope": ["path/to/file.ts"],
      "validateCommand": "npm test -- feature-y",
      "rollbackPlan": "revert this task's files only",
      "agent": "react-vite-tailwind-engineer",
      "review": "claude"
    }
  ],
  "executionSummary": {
    "taskCount": 4,
    "layerCount": 3,
    "layers": [
      { "layer": 0, "tasks": ["TASK-001", "TASK-002"] },
      { "layer": 1, "tasks": ["TASK-003"] },
      { "layer": 2, "tasks": ["TASK-004"] }
    ],
    "criticalPath": ["TASK-001", "TASK-003", "TASK-004"]
  },
  "dependencies": {
    "TASK-001": [],
    "TASK-002": ["TASK-001"]
  }
}

Rules:


Final Plan Lint

Do not save or present the plan until all checks pass:

If any check fails, regenerate the plan sections from the canonical structure instead of patching partial text by hand.


Format Reference

| Item | Correct Value |

|------|---------------|

| Priority values | P0, P1, P2, P3 (regex: /\b(P[0-3])\b/) |

| Task ID format | TASK-001, TASK-002, ... (regex: /\b(TASK-\d{3,})\b/) |

| Depends pattern | **Depends on:** TASK-001, TASK-002 (regex: /depends on:|requires:|after:|blocked by:/i) |

| Priority default | P2 when missing — always specify explicitly |

| Type values | feature, bug, chore, refactor, test, docs, infra |

| Effort values | S, M, L, XL |

| Task heading level | ### (level 3) — minimum heading level 2 |

| Disk format | No [PLAN]/[/PLAN] markers — those are for in-conversation display only |

| Dependency JSON | ## Task Dependencies section with fenced JSON block — every task ID must be a key |

Additional Optional Fields

These fields are supported when present:


Post-Task Review

Every task can specify a **Review:** field that triggers an independent code review after the task agent completes. This catches bugs before they propagate to dependent tasks.

Review Tools

| Value | Skill | What it does |

|-------|-------|-------------|

| claude | /claude-review | Spawns a separate Claude agent in a worktree to review the changes |

| codex | /codex-review | Runs OpenAI Codex CLI (codex review) against the task's commit |

| kiro | /kiro-review | Runs Kiro CLI (kiro-cli chat) with the diff |

| none | — | Skip review (use for trivial tasks like config/docs) |

When to Assign Which Reviewer

How the Executor Uses This Field

The run-parallel-agents-feature-build skill (or manual execution) should:

  1. Run the task agent
  2. Check the review field
  3. If not none, invoke the corresponding review skill on the task's commit using Skill("codex-review"), Skill("claude-review"), or Skill("kiro-review")
  4. Report findings to the user
  5. Fix findings before marking the task complete

IMPORTANT: The review field is a binding instruction to the executor, not a suggestion. When run-parallel-agents-feature-build processes this plan, it MUST invoke the specified tool via the Skill tool — not approximate it with a general-purpose agent prompt. If the review tool binary is not installed, the executor should warn the user rather than silently substituting.

Default

If **Review:** is omitted, default to none for S-effort tasks, claude for M/L/XL-effort tasks.

Quality Self-Check

Before outputting the final plan, verify ALL of the following:


Common Rationalizations (All Wrong)

These are excuses. Don't fall for them:


Failure Modes

Failure Mode 1: Skipping Scope Challenge

Symptom: Plan is too large, covers wrong scope, user pushes back after seeing output

Fix: Always run Phase 0. Present findings. Get mode confirmation.

Failure Mode 2: Phantom File Paths

Symptom: Tasks reference files that don't exist and weren't found during exploration

Fix: Every file path must come from CodeMap search or Glob results. Never invent paths.

Failure Mode 3: Over-Constrained Dependencies

Symptom: Tasks that could run in parallel are sequenced unnecessarily

Fix: Only declare dependencies for file overlap, data flow, API contracts, or state mutation.

Failure Mode 4: Missing Agent Assignment

Symptom: Tasks have no **Agent:** field, can't be dispatched to subagents

Fix: Every task gets an agent. Check against Agent Table.

Failure Mode 5: No Failure/Edge Case Criteria

Symptom: Acceptance criteria only test happy path, agents don't handle errors

Fix: At least 1 criterion per task must cover a failure or edge case.

Failure Mode 6: Markdown / JSON Drift

Symptom: Task counts, layers, dependencies, or task references disagree between the two files

Fix: Build canonical JSON first, then render markdown from it. Never hand-patch one without regenerating the other.

Failure Mode 7: Hidden Prerequisite

Symptom: Plan assumes a startup/runtime/public path already exists, but no task or prerequisite covers it

Fix: Add it to ## Prerequisites if already true, or add a prerequisite task if missing.

Failure Mode 8: Structural Task Fakes Semantic Completion

Symptom: A task "passes" by creating dead wiring, placeholder filters, or tests that only check node presence while real behavior is still wrong.

Fix: Split structural work from semantic-hardening work. Add negative acceptance criteria that prove projection, predicates, filtering, ordering, or visibility are actually preserved.

Failure Mode 9: Public Surface Drift

Symptom: A new public API/SQL surface ships with a stale signature or silent wrong-routing behavior because tests only cover one happy-path literal form.

Fix: Pin the exact public signature from spec/docs in the task text and require at least one wrong-shape/wrong-routing acceptance criterion.


Quick Workflow Summary

PHASE 0: SCOPE CHALLENGE (INTERACTIVE)
├── Quick CodeMap scan for existing overlap
├── Estimate complexity
├── Identify prerequisites + non-goals
├── AskUserQuestion: present findings + mode selection + review tool selection
└── Gate: User confirmed scope + mode + review tool + prerequisites framing

PHASE 1: EXPLORE
├── CodeMap search for feature-related code
├── Read ecosystem manifests/configs + directory structure
├── Build reuse audit + reality audit + contracts sketch
└── Gate: Concrete file paths + reuse audit + contracts

PHASE 2: DECOMPOSE
├── Break into atomic TASK-NNN entries
├── 2-3 acceptance criteria per task (≥1 failure case)
├── Add semantic bug-absence criteria for rewrites/composition tasks
├── Pin exact public signatures/examples for user-visible surfaces
├── Add write scope + validation command
├── Identify failure modes + cut line
├── Mode-aware pruning (REDUCTION/EXPANSION)
└── Gate: Atomicity checklist + failure modes + validation

PHASE 3: MAP DEPENDENCIES
├── Check: file overlap, data flow, API contract, state, bootstrap dependency
├── Minimize constraints for max parallelism
├── Compute execution layers
└── Gate: Valid DAG, no cycles, layers derived

PHASE 4: PRIORITIZE
├── Assign P0-P3
├── Form parallel groups
├── Define ship cut
└── Gate: Priorities + groups + ship cut

PHASE 5: GENERATE & VALIDATE
├── Canonical JSON first
├── Markdown rendered from JSON
├── Execution summary derived from DAG
├── Final lint checks
└── Gate: Both files saved, all sections present, lint passes

Resources

references/


Integration with Other Skills

The plan-to-task-list-with-dag skill integrates with:

Workflow: start → plan-to-task-list-with-dag → plan-founder-review → run-parallel-agents-feature-build


Completion Announcement

When plan generation is complete, announce:

Plan generated.

**Mode:** EXPANSION | HOLD | REDUCTION
**Tasks:** X total (Y layers)
**Files:** .ulpi/plans/<plan-name>.md + .ulpi/plans/<plan-name>.json

**Execution Summary:**
- Layer 0: TASK-001, TASK-004 (P0, no deps)
- Layer 1: TASK-002, TASK-003 (P1)
- Layer 2: TASK-005, TASK-006 (P2)

Ready for execution via `run-parallel-agents-feature-build`.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.