| name | tasks-md-generator |
| description | Generate implementation TASKS.md plans from one design document or from all feature documents in a directory. |
| disable-model-invocation | true |
TASKS.md Generator
Quick Start
- Accept one user-provided path (file or directory).
- Run
python3 .cursor/scripts/discover_targets.py <path> to map input to output target files.
- Read each target's source docs and write
TASKS.md in the same directory.
- Run
python3 .cursor/scripts/validate_tasks_md.py <target>/TASKS.md before finalizing.
Input Modes
Single Document Mode
Use when the input path is a single markdown file.
- Treat the file's parent directory as the feature directory.
- Create or update
<parent>/TASKS.md.
- Prioritize the provided file, then load companion docs in the same folder.
Feature Directory Mode
Use when the input path is one feature directory (for example docs/login).
- Create or update
<dir>/TASKS.md.
- Load docs in this priority order when present:
PRD.md
USER_FLOW.md
BACKEND_ARCHITECTURE.md
FRONTEND_DESIGN.md
README.md
- any other
.md files except TASKS.md
Batch Directory Mode
Use when the input path is a parent docs folder containing multiple feature directories.
- Detect child directories that include planning docs.
- Create or update one
TASKS.md per detected feature directory.
- Skip directories with no planning docs unless explicitly requested.
Build Process
- Derive scope from source docs only.
- Split work into independent backend and frontend tracks where possible.
- Assign global task IDs (
T1, T2, ... TN) in strict execution order.
- Group tasks into tiers that maximize parallel work.
- Add dependency edges so each
Blocked by reference points only to earlier tasks.
- Include testing and verification tiers as explicit tasks.
Output Contract
Follow .cursor/references/tasks_format.md exactly.
Required top-level sections in this order:
# <Feature Name> - Implementation Tasks
<N> tasks organized into <M> tiers ...
## Dependency Graph with ASCII tier graph in a fenced code block
- Tier sections (
## TIER <n> - <name>) with task cards
## Summary with tier table and file impact tables
Required per-task structure:
- Heading:
### T<n>: <area>: <title>
- Metadata table with at least:
Blocked by
Blocks
Files
Reference when source references exist
- Concrete implementation bullets (API contracts, model changes, tests, edge cases)
Guardrails
- Preserve intent from source docs; do not invent features or architecture.
- Keep tasks implementation-ready and testable.
- Prefer additive changes; call out migrations when models/schema change.
- Keep dependencies acyclic and explicit.
- Keep output deterministic: same inputs should yield the same task IDs and tiering.
Validation
Run structural checks:
python3 .cursor/scripts/validate_tasks_md.py <path-to-TASKS.md>
If validation fails, fix ordering, task numbering, missing sections, or bad references.
References
.cursor/references/tasks_format.md: canonical TASKS.md skeleton and constraints.
.cursor/scripts/discover_targets.py: target discovery for file, feature-dir, and batch-dir modes.
.cursor/scripts/validate_tasks_md.py: structural validator for generated TASKS.md output.