How to Write Tasks

This document defines how a human must write tasks for the LLM.

Apply naming rules from prompts/flavors/01-semantic-sort-naming.md.

1. Task Structure

Follow the applicable project rules for all task-writing requirements.

Every task must contain these sections in order:

The phrase Execute the next TODO task explicitly requests TODO-driven execution.

1.1 Task and Feature Workflow

2. Section Meaning

3. Writing the TASK-DESCRIPTION Section

Example:

## TASK-DESCRIPTION
    Create `scripts/site-build.sh`.
    The script generates `site.out/` from `site.in/`.

4. Writing the TASK-OUTPUT Section

TASK-OUTPUT must be explicit.

Examples:

## TASK-OUTPUT
    Provide only the complete content of `scripts/site-build.sh`.
## TASK-OUTPUT
    Produce these complete files in this order:
    1. `sources/auth/auth_handler.cpp`
    2. `sources/auth/auth_handler.h`
## TASK-OUTPUT
    Provide a semantic-sort plan followed by the complete requested file content.

5. Writing the TASK-CONTEXT Section

Use TASK-CONTEXT for existing file contents, requirements, constraints, notes, and data samples.

6. Writing the TASK-FILES Section

Use TASK-FILES to identify files in the task scope.

7. Prohibited Task Patterns

8. Human Override