$ARGUMENTS
Generate Task (Worker Task Prompt)
You generate ONE worker task prompt that will be executed by a worker agent.
You MUST follow the existing canonical task writing standard and structure:
- CLEAR ordering (Context, Objective, Inputs, Requirements, Constraints, Expected Outputs, Acceptance Criteria, Verification Steps, CoVe Checks only if needed, Handoff).
- Task structure requirements and fields (task, title, status, agent, dependencies, priority, complexity, accuracy-risk, parallelize-with, reason, handoff, Required Inputs).
Do NOT add any new fields, sections, agents, or mechanisms beyond what is already defined in the referenced task standards.
Inputs
When invoked, you will be given some combination of:
- a task title and brief description (in )
- optionally: dependencies, repo/file references, constraints, and verification expectations
If critical information is missing, you MUST keep the task executable by:
- stating assumptions under Required Inputs (and how to confirm them), and
- ensuring Verification Steps can confirm correctness, or explicitly indicate what blocks verification.
Output
Output exactly ONE task prompt in this format:
```yaml
---
task: [Task ID]
title: [Descriptive Name]
status: not-started
agent: [agent-name or "unassigned"]
dependencies: []
priority: [1-5 based on dependency depth]
complexity: [low/medium/high based on scope, not time]
accuracy-risk: [low/medium/high]
parallelize-with: []
reason: [Why parallelization is safe; avoid file conflicts]
handoff: [What the worker must report back: summary, evidence, blockers]
---
```
## Context
[Only what the worker needs; reference specific files/sections]
## Objective
[One sentence definition of success]
## Required Inputs
- [Files/links/artifacts the worker must read]
- [Assumptions and how to confirm them]
## Requirements
1. [Must do]
2. [Must do]
## Constraints
- [Must not do]
- [Guardrails, scope boundaries]
## Expected Outputs
- [Files created/modified with paths]
- [Artifacts produced]
## Acceptance Criteria
1. [Specific, measurable criterion]
2. [Another verifiable requirement]
## Verification Steps
1. [How to verify criterion 1]
2. [How to verify criterion 2]
N. (When Expected Outputs lists file paths) Run: `git add <file1> [file2 ...]` then
`git commit -m "<type>(<scope>): <task title>"` — scope is the primary affected module or
directory (required by repo commit-msg hook); use files from Expected Outputs only, no
`git add .` or `git add -A`, no `Fixes #N` / `Closes #N` / `Resolves #N` trailer.
## CoVe Checks (ONLY if accuracy-risk is medium or high)
- Key claims to verify:
- [Claim 1]
- Verification questions:
1. [Question 1]
- Evidence to collect:
- [Commands, docs, code pointers]
- Revision rule:
- If any check fails, revise and state what changed.
Lint Before Final Output
Before returning the task prompt, you MUST lint it using the existing rules:
- Concise: no filler, no duplicated requirements
- Logical: sections in canonical order
- Explicit: objective, outputs, acceptance criteria, verification are concrete
- CoVe: included only when Accuracy Risk is Medium/High, and questions are falsifiable
- Commit step: when
## Expected Outputs lists file paths, ## Verification Steps ends
with the commit step per the template rule above
If any lint check fails, revise the task prompt and re-lint.
1---2name: generate-task3description: Generates one worker task prompt conforming to the CLEAR + selective CoVe task design standard and swarm-task-planner structure. Use when creating or rewriting a single task entry or task block inside a plan — providing a title and brief description as input.4---56<task_description>$ARGUMENTS</task_description>78# Generate Task (Worker Task Prompt)910You generate ONE worker task prompt that will be executed by a worker agent.1112You MUST follow the existing canonical task writing standard and structure:1314- CLEAR ordering (Context, Objective, Inputs, Requirements, Constraints, Expected Outputs, Acceptance Criteria, Verification Steps, CoVe Checks only if needed, Handoff).15- Task structure requirements and fields (task, title, status, agent, dependencies, priority, complexity, accuracy-risk, parallelize-with, reason, handoff, Required Inputs).1617Do NOT add any new fields, sections, agents, or mechanisms beyond what is already defined in the referenced task standards.1819## Inputs2021When invoked, you will be given some combination of:2223- a task title and brief description (in <task_description/>)24- optionally: dependencies, repo/file references, constraints, and verification expectations2526If critical information is missing, you MUST keep the task executable by:2728- stating assumptions under Required Inputs (and how to confirm them), and29- ensuring Verification Steps can confirm correctness, or explicitly indicate what blocks verification.3031## Output3233Output exactly ONE task prompt in this format:3435````markdown36```yaml37---38task: [Task ID]39title: [Descriptive Name]40status: not-started41agent: [agent-name or "unassigned"]42dependencies: []43priority: [1-5 based on dependency depth]44complexity: [low/medium/high based on scope, not time]45accuracy-risk: [low/medium/high]46parallelize-with: []47reason: [Why parallelization is safe; avoid file conflicts]48handoff: [What the worker must report back: summary, evidence, blockers]49---50```5152## Context53[Only what the worker needs; reference specific files/sections]5455## Objective56[One sentence definition of success]5758## Required Inputs59- [Files/links/artifacts the worker must read]60- [Assumptions and how to confirm them]6162## Requirements631. [Must do]642. [Must do]6566## Constraints67- [Must not do]68- [Guardrails, scope boundaries]6970## Expected Outputs71- [Files created/modified with paths]72- [Artifacts produced]7374## Acceptance Criteria751. [Specific, measurable criterion]762. [Another verifiable requirement]7778## Verification Steps791. [How to verify criterion 1]802. [How to verify criterion 2]81N. (When Expected Outputs lists file paths) Run: `git add <file1> [file2 ...]` then82 `git commit -m "<type>(<scope>): <task title>"` — scope is the primary affected module or83 directory (required by repo commit-msg hook); use files from Expected Outputs only, no84 `git add .` or `git add -A`, no `Fixes #N` / `Closes #N` / `Resolves #N` trailer.8586## CoVe Checks (ONLY if accuracy-risk is medium or high)87- Key claims to verify:88 - [Claim 1]89- Verification questions:90 1. [Question 1]91- Evidence to collect:92 - [Commands, docs, code pointers]93- Revision rule:94 - If any check fails, revise and state what changed.95````9697## Lint Before Final Output9899Before returning the task prompt, you MUST lint it using the existing rules:100101- Concise: no filler, no duplicated requirements102- Logical: sections in canonical order103- Explicit: objective, outputs, acceptance criteria, verification are concrete104- CoVe: included only when Accuracy Risk is Medium/High, and questions are falsifiable105- Commit step: when `## Expected Outputs` lists file paths, `## Verification Steps` ends106 with the commit step per the template rule above107108If any lint check fails, revise the task prompt and re-lint.