task-dag-planner

Decompose complex changes into dependency-aware task DAGs with verification and rollback nodes.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/machenjie/rd-skills --skill task-dag-planner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: task-dag-planner
Source: https://github.com/machenjie/rd-skills/tree/main/src/professional-skills/task-dag-planner
Command: npx skills add https://github.com/machenjie/rd-skills --skill task-dag-planner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates fragile, poorly ordered implementations by converting a complex product or code change into an explicit dependency-aware task graph with built-in verification and rollback planning.

Core Features & Use Cases

  • DAG-based task decomposition: Breaks work into small, independently reviewable nodes with explicit ordering and parallelization opportunities.
  • Verification and rollback as first-class nodes: Ensures evidence-producing gates and tested rollback procedures are part of the graph, not an afterthought.
  • Risk-aware sequencing rules: Enforces correct ordering for database migrations (Expand → code → Contract), feature-flag lifecycles (create → implement → rollout → cleanup), and other cross-team coordination needs.
  • Use Case: When your change includes a schema migration, API contract updates, and deployment steps that must roll out safely, this Skill produces a DAG that prevents downstream work from starting until verification artifacts exist.

Quick Start

Ask the task-dag-planner to produce a dependency-ordered DAG for your change, including verification gates, rollback nodes, and a critical-path-ready plan with EMC migration sequencing.

Frequently Asked Questions about task-dag-planner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I plan a database migration sequence with API contract changes and feature flags?

To plan a database migration sequence with API contract changes, you decompose the work into a dependency-aware task DAG. This enforces correct Expand→code→Contract ordering and feature-flag lifecycle sequencing, preventing downstream work from starting until verification artifacts exist.

What is a dependency-aware task DAG for complex code changes?

A dependency-aware task DAG for complex code changes is an explicit task graph that breaks work into independently reviewable nodes with built-in verification gates and rollback planning. It ensures acyclic dependency structures via topological validation.

How do I add verification gates and rollback procedures to a deployment plan?

You add verification gates and rollback procedures to a deployment plan by treating them as first-class nodes within the task DAG. This ensures evidence-producing gates and tested rollback procedures are explicitly defined parts of the graph, not an afterthought.

When do I need topological validation for multi-step software migrations?

You need topological validation for multi-step software migrations when your changes require strict sequencing across database migrations, API contract updates, and cross-team coordination. It ensures an acyclic dependency structure, preventing downstream work from starting prematurely.

Can I sequence feature flag lifecycles and database migrations in a single plan?

Yes, you can sequence feature flag lifecycles and database migrations in a single plan. The DAG enforces correct feature-flag lifecycle ordering (create → implement → rollout → cleanup) and Expand → code → Contract migration sequencing to ensure safe rollouts.