agentleFS
precise-alloyprecise-alloy/ritus/skills/task-generation/SKILL.md

task-generation

Skill1 starsChanged 4 months agoMITView on GitHub

Dispatched by ticket-review for STANDARD/EPIC changes - converts the approved review document into task files (plus QA files and an EPIC memory file when applicable), runs the self-review, and drafts the execution plan. Not invoked directly by the user; ticket-review owns the human gates.

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 7 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When starting task-generation, create this TODO - every item below, verbatim (never a single item named after the skill) - and mark items …

    line 20
  2. Distinctive:

    Read the review document and the exploration log.

    line 52
  3. Very specific:

    Read templates/task-files.md in this skill's directory for the STANDARD/EPIC full template.

    line 57
  4. Very specific:

    Read the tasks/ path convention from docs/PROJECT_CONTEXT.md ## Team conventions.

    line 73
  5. Distinctive:

    Do not touch another branch's task directory.

    line 79
  6. Very specific:

    QA files: - read templates/qa-files.md in this skill's directory and generate a .qa.md per task when QA mode requires it.

    line 83
  7. Distinctive:

    Meta-rule: Update docs only when the change affects how future humans or agents understand, navigate, or safely modify the system.

    line 91
  8. Distinctive:

    Check the generated task files before reporting:

    line 106
  9. Very specific:

    Spec-grade sections present: - every STANDARD/EPIC task states CONSTRAINTS (or "none"), INTERFACES Consumes/Produces (or "none"), and …

    line 117
  10. Distinctive:

    Always output this block in chat after task files are created.

    line 124
  11. Distinctive:

    No executor field in task files.

    line 183
  12. Very specific:

    No placeholders (TBD, "add error handling", "handle edge cases", "similar to task N").

    line 186

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Task Generation

Core principle: Turn an approved review document into precise, self-contained task files. You run non-interactively AFTER human approval - never redesign the requirement or re-open settled questions.

When to use

Dispatched as a fresh subagent by ticket-review for STANDARD/EPIC changes after its completeness gate, to keep the template reads, the generated task text, the path-verification greps, and the cross-task consistency checks off the main thread. Not invoked directly by the user. For SIMPLE changes ticket-review writes a single SIMPLE task file (3 sections) itself (no subagent) instead of dispatching you.

When starting task-generation, create this TODO - every item below, verbatim (never a single item named after the skill) - and mark items done as you complete them:

TODO:

- [ ] Read the approved review document + exploration log
- [ ] Generate task files (classification, granularity, naming)
- [ ] Generate QA files + EPIC memory file (when applicable)
- [ ] Self-review the task files
- [ ] Draft the execution plan
- [ ] Report the paths + execution plan back to ticket-review

Operating constraints

  • Write-only task artifacts - you write task files under docs/tasks/{branch-slug}/, per-task .qa.md files, and the EPIC memory file. Touch nothing else - no source files, no review document (approved and frozen), no skill files.
  • Fully non-interactive - the review document is approved and every [NEEDS CLARIFICATION] is resolved before you start. You never ask the user; on a genuine blocker stop and report to ticket-review, never guess.
  • Return findings, not dumps - the Output block returns paths + execution plan + coverage summary, never raw task-file contents.

Inputs (from ticket-review)

  • Review-document path - the approved review document that shapes every task.
  • Exploration-log path - docs/tasks/{branch-slug}/exploration.md.
  • Branch slug - the docs/tasks/{branch-slug}/ directory to write into.
  • Classification - STANDARD or EPIC (SIMPLE never reaches you).
  • QA mode - off / task / epic-only, read from docs/PROJECT_CONTEXT.md (off when absent).

Step 1: Read the approved review + exploration

Read the review document and the exploration log. Extract the acceptance criteria, the approach, the scope boundary, the decisions, and the file / entry-point citations. Do not re-analyze or re-explore - the analysis is approved.

Step 2: Generate task files

Read templates/task-files.md in this skill's directory for the STANDARD/EPIC full template.

Classification -> format

LevelTask file format
STANDARDFull task file
EPICFull task file + memory file

Granularity rule

One task = one logical change. Merge when: same module, no inter-dependency, no shell needed. Split when: different executor needed, true sequential dependency.

Naming

Read the tasks/ path convention from docs/PROJECT_CONTEXT.md ## Team conventions.

Hard rules:

  • One task file per logical change.
  • Task files live in docs/tasks/{branch-slug}/ - never in source dirs.
  • Do not touch another branch's task directory.

Step 3: QA files + EPIC memory file

  • QA files - read templates/qa-files.md in this skill's directory and generate a .qa.md per task when QA mode requires it.
  • EPIC memory - for EPIC work read templates/epic-memory.md in this skill's directory and create the memory file.

Step 4: Doc trigger matrix

This sets each task's DOC UPDATE section.

Meta-rule: Update docs only when the change affects how future humans or agents understand, navigate, or safely modify the system.

Change typedocs/CUTOFF.mddocs/ARCHITECTURE.mddocs/DECISIONS.mddocs/LESSONS.md.qa.md
Bug fix❌❌❌✅ if dangerous pattern✅ if QA mode on
New endpoint✅❌❌❌✅ if QA mode on
New module✅✅optional❌✅ if QA mode on
New arch pattern / decision❌✅✅❌✅ if QA mode on
Config / env change✅❌optional❌❌
Refactor (no contract change)❌❌❌❌✅ if QA mode on
Auth / error / build changed❌❌✅❌❌

Step 5: Self-review

Check the generated task files before reporting:

  • Requirement coverage - map each criterion to tasks and each task/step to an approved requirement, constraint, or necessary prerequisite, including required validation and documentation.
  • DONE WHEN completeness - each task has at least one diff-checkable and one command-checkable condition with specific expected outcomes.
  • CONTEXT accuracy - confirm every CONTEXT files path exists.
  • Cross-task consistency - align function names, type names, and file paths across tasks. Match each INTERFACES Consumes block to its sibling Produces block in names, parameters, and return types.
  • Concrete steps - replace TBD, TODO, [NEEDS CLARIFICATION], and deferred or vague instructions with concrete code and commands. Include the implementation and test code needed by each task, including referenced steps.
  • Spec-grade sections present - every STANDARD/EPIC task states CONSTRAINTS (or "none"), INTERFACES Consumes/Produces (or "none"), and NON-GOALS.

Resolve all findings inline, adding missing required tasks and removing unsupported work.

Step 6: Execution plan

Always output this block in chat after task files are created. Group tasks by dependency:

  • Parallel group: tasks with no overlapping writable files. Can run simultaneously.
  • Sequential: tasks that depend on a previous group's output or share writable files.

Determine grouping by checking overlap across CONTEXT files, DOC UPDATE paths, and related test files. If two tasks share any writable file, they must be sequential. SIMPLE tasks (no CONTEXT section) always go in a sequential group.

## Execution plan

### Group 1 (parallel):

- docs/tasks/<slug>/001-name.md
- docs/tasks/<slug>/002-name.md

### Group 2 (after group 1):

- docs/tasks/<slug>/003-name.md

### Batch commit message:

type(scope): overall subject

- task 1 summary
- task 2 summary

Breaking: none
Migration: none

You draft this and return it; the main thread presents it and drives dispatch.

Output

Return to ticket-review (do not print raw file contents):

TASK GENERATION COMPLETE

Task files:
- docs/tasks/{slug}/001-name.md
- ...

Execution plan:
<the grouped plan + batch commit message>

Coverage summary:
- <acceptance criterion> -> <task file>

Self-review: <pass, or the issues found and fixed>

QA / EPIC memory: <paths, or none>

Hard rules

  • One task file per logical change - never bundle unrelated changes.
  • Task files live in docs/tasks/{branch-slug}/ - never in source dirs.
  • No executor field in task files.
  • Positive instructions only in STEPS - no negative instructions.
  • GOAL = expected outcome only, no implementation details.
  • No placeholders (TBD, "add error handling", "handle edge cases", "similar to task N").
  • Return findings, not dumps.

Handoff

  • Report: the task files + execution plan (the Output above). ticket-review runs the task-file approval gate and dispatches execution.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.