mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-01 15:03:57 +08:00
feat(dispatch): update task description template for improved clarity and structure
This commit is contained in:
@@ -80,18 +80,40 @@ GC loop (max 2 rounds): QA-FE verdict=NEEDS_FIX -> create DEV-FE-002 + QA-FE-002
|
|||||||
|
|
||||||
### Task Description Template
|
### Task Description Template
|
||||||
|
|
||||||
Every task description includes session, scope, and metadata:
|
Every task description uses structured format for clarity:
|
||||||
|
|
||||||
```
|
```
|
||||||
TaskCreate({
|
TaskCreate({
|
||||||
subject: "<TASK-ID>",
|
subject: "<TASK-ID>",
|
||||||
owner: "<role>",
|
owner: "<role>",
|
||||||
description: "<task description>\nSession: <session-folder>\nScope: <scope>\nInlineDiscuss: <DISCUSS-NNN or none>\nInnerLoop: <true|false>",
|
description: "PURPOSE: <what this task achieves> | Success: <measurable completion criteria>
|
||||||
|
TASK:
|
||||||
|
- <step 1: specific action>
|
||||||
|
- <step 2: specific action>
|
||||||
|
- <step 3: specific action>
|
||||||
|
CONTEXT:
|
||||||
|
- Session: <session-folder>
|
||||||
|
- Scope: <scope>
|
||||||
|
- Upstream artifacts: <artifact-1.md>, <artifact-2.md>
|
||||||
|
- Key files: <file1>, <file2> (if applicable)
|
||||||
|
- Shared memory: <session>/shared-memory.json
|
||||||
|
EXPECTED: <deliverable path> + <quality criteria>
|
||||||
|
CONSTRAINTS: <scope limits, focus areas>
|
||||||
|
---
|
||||||
|
InlineDiscuss: <DISCUSS-NNN or none>
|
||||||
|
InnerLoop: <true|false>",
|
||||||
blockedBy: [<dependency-list>],
|
blockedBy: [<dependency-list>],
|
||||||
status: "pending"
|
status: "pending"
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Field Guidelines**:
|
||||||
|
- **PURPOSE**: Clear goal statement + success criteria
|
||||||
|
- **TASK**: 2-5 actionable steps with specific verbs
|
||||||
|
- **CONTEXT**: Session path, scope, upstream artifacts, relevant files
|
||||||
|
- **EXPECTED**: Output artifact path + quality requirements
|
||||||
|
- **CONSTRAINTS**: Scope boundaries, focus areas, exclusions
|
||||||
|
|
||||||
**InnerLoop Flag Rules**:
|
**InnerLoop Flag Rules**:
|
||||||
|
|
||||||
| Role | InnerLoop |
|
| Role | InnerLoop |
|
||||||
@@ -107,13 +129,22 @@ TaskCreate({
|
|||||||
TaskCreate({
|
TaskCreate({
|
||||||
subject: "<ORIGINAL-ID>-R1",
|
subject: "<ORIGINAL-ID>-R1",
|
||||||
owner: "<same-role-as-original>",
|
owner: "<same-role-as-original>",
|
||||||
description: "<revision-type> revision of <ORIGINAL-ID>.\n
|
description: "PURPOSE: <revision-type> revision of <ORIGINAL-ID> | Success: Address feedback and pass quality checks
|
||||||
Session: <session-folder>\n
|
TASK:
|
||||||
Original artifact: <artifact-path>\n
|
- Review original artifact and feedback
|
||||||
User feedback: <feedback-text or 'system-initiated'>\n
|
- Apply targeted fixes to weak areas
|
||||||
Revision scope: <targeted|full>\n
|
- Validate against quality criteria
|
||||||
InlineDiscuss: <same-discuss-round-as-original>\n
|
CONTEXT:
|
||||||
InnerLoop: <true|false based on role>",
|
- Session: <session-folder>
|
||||||
|
- Original artifact: <artifact-path>
|
||||||
|
- User feedback: <feedback-text or 'system-initiated'>
|
||||||
|
- Revision scope: <targeted|full>
|
||||||
|
- Shared memory: <session>/shared-memory.json
|
||||||
|
EXPECTED: Updated artifact at <artifact-path> + revision summary
|
||||||
|
CONSTRAINTS: <revision scope limits>
|
||||||
|
---
|
||||||
|
InlineDiscuss: <same-discuss-round-as-original>
|
||||||
|
InnerLoop: <true|false based on role>",
|
||||||
status: "pending",
|
status: "pending",
|
||||||
blockedBy: [<predecessor-R1 if cascaded>]
|
blockedBy: [<predecessor-R1 if cascaded>]
|
||||||
})
|
})
|
||||||
@@ -138,14 +169,23 @@ TaskCreate({
|
|||||||
TaskCreate({
|
TaskCreate({
|
||||||
subject: "IMPROVE-<dimension>-001",
|
subject: "IMPROVE-<dimension>-001",
|
||||||
owner: "writer",
|
owner: "writer",
|
||||||
description: "Quality improvement: <dimension>.\n
|
description: "PURPOSE: Improve <dimension> quality from <X>% to 80% | Success: Pass quality threshold
|
||||||
Session: <session-folder>\n
|
TASK:
|
||||||
Current score: <X>%\n
|
- Review readiness report weak areas
|
||||||
Target: 80%\n
|
- Apply dimension-specific improvement strategy
|
||||||
Readiness report: <session>/spec/readiness-report.md\n
|
- Validate improvements against criteria
|
||||||
Weak areas: <extracted-from-report>\n
|
CONTEXT:
|
||||||
Strategy: <from-dimension-strategy-table>\n
|
- Session: <session-folder>
|
||||||
InnerLoop: true",
|
- Current score: <X>%
|
||||||
|
- Target: 80%
|
||||||
|
- Readiness report: <session>/spec/readiness-report.md
|
||||||
|
- Weak areas: <extracted-from-report>
|
||||||
|
- Strategy: <from-dimension-strategy-table>
|
||||||
|
- Shared memory: <session>/shared-memory.json
|
||||||
|
EXPECTED: Improved artifacts + quality improvement summary
|
||||||
|
CONSTRAINTS: Focus on <dimension> only
|
||||||
|
---
|
||||||
|
InnerLoop: true",
|
||||||
status: "pending"
|
status: "pending"
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user