Back to list
cuioss

manage-tasks

by cuioss

An orchestration layer for AI coding assistants (currently Claude Code) that enforces consistency, reliability, and more predictable outputs.

0🍴 0📅 Jan 17, 2026

SKILL.md


name: manage-tasks description: Manage implementation tasks with sequential sub-steps within a plan allowed-tools: Read, Glob, Bash

Manage Tasks Skill

Manage implementation tasks with sequential sub-steps within a plan. Each task references deliverables from the solution document and contains ordered steps for execution.

Implementation Details: See design-for-manage-tasks.md for the complete specification including file format, all commands, parameters, and validation rules.

What This Skill Provides

  • Individual TOON file storage for each task
  • Sequential, immutable numbering (TASK-1, TASK-2, etc.)
  • Deliverable references (M:N relationship to solution_outline.md)
  • Delegation context (skill + workflow for execution)
  • Verification commands and criteria
  • Step management with status tracking
  • Simple execution loop via next query

When to Activate This Skill

Activate this skill when:

  • Creating or managing implementation tasks for a plan
  • Querying next actionable task/step
  • Marking steps as started/completed/skipped
  • Tracking implementation progress

Storage Location

Tasks are stored in the plan directory:

{plan_dir}/tasks/
  TASK-001-IMPL.toon
  TASK-002-IMPL.toon
  TASK-003-FIX.toon

Filename format: TASK-{NNN}-{TYPE}.toon where TYPE is: IMPL, FIX, SONAR, PR, LINT, SEC, DOC


File Format (Summary)

number: 1
title: Update misc agents to TOON output
status: pending
phase: execute
domain: plan-marshall-plugin-dev
profile: implementation
origin: plan
created: 2025-12-02T10:30:00Z
updated: 2025-12-02T10:30:00Z

skills:
  - pm-plugin-development:plugin-maintain
  - pm-plugin-development:plugin-architecture

deliverables[3]:
- 1
- 2
- 4

depends_on: TASK-1, TASK-2

description: |
  Migrate miscellaneous agents from JSON to TOON output format.

delegation:
  skill: pm-plugin-development:plugin-maintain
  workflow: update-component
  domain: plan-marshall-plugin-dev
  context_skills:
  - pm-plugin-development:plugin-architecture

steps[3]{number,title,status}:
1,pm-plugin-development/agents/tool-coverage-agent.md,pending
2,pm-dev-builder/agents/gradle-builder.md,pending
3,pm-dev-frontend/commands/js-generate-coverage.md,pending

verification:
  commands[1]:
  - grep -L '```json' {files} | wc -l
  criteria: No JSON blocks remain
  manual: false

current_step: 1

New Fields:

FieldTypeDescription
domainstringTask domain (arbitrary string, e.g., java, javascript, my-domain)
profilestringTask profile (arbitrary string, e.g., implementation, testing)
typestringTask type for filename: IMPL, FIX, SONAR, PR, LINT, SEC, DOC
skillslistPre-resolved skills for task execution
originstringTask origin: plan (from task-plan phase) or fix (from finalize)
priorityintOptional priority for fix tasks (1=high, 2=medium, 3=low)
findingobjectOptional finding details for fix tasks

Operations

Script: pm-workflow:manage-tasks:manage-tasks

CommandParametersDescription
add--plan-id + stdinAdd a new task (reads definition from stdin)
update--plan-id --number [--title] [--description] [--depends-on] [--status] [--domain] [--profile] [--skills] [--deliverables]Update task metadata
remove--plan-id --numberRemove a task
list--plan-id [--status] [--phase] [--deliverable] [--ready]List all tasks
get--plan-id --numberGet single task details
next--plan-id [--phase] [--include-context] [--ignore-deps]Get next pending task/step
tasks-by-domain--plan-id --domainList tasks filtered by domain
tasks-by-profile--plan-id --profileList tasks filtered by profile
next-tasks--plan-idGet all tasks ready for parallel execution
step-start--plan-id --task --stepMark step as in_progress
step-done--plan-id --task --stepMark step as done
step-skip--plan-id --task --step [--reason]Skip a step
add-step--plan-id --task --title [--after]Add step to task
remove-step--plan-id --task --stepRemove step from task

Add Command (stdin-based API)

The add command reads the task definition from stdin in TOON format. Only --plan-id is passed as a CLI argument.

Why stdin? Complex task definitions with verification commands containing shell metacharacters (pipes, wildcards, quotes) caused permission issues when passed as CLI arguments. The stdin approach avoids shell interpretation of these characters.

Stdin format:

title: My Task Title
deliverables: [1, 2, 3]
domain: plan-marshall-plugin-dev
profile: implementation
type: IMPL
phase: execute
origin: plan
description: |
  Multi-line task description here.
  Can include any characters.

skills:
  - pm-plugin-development:plugin-maintain
  - pm-plugin-development:plugin-architecture

steps:
  - First step to execute
  - Second step to execute
  - Third step to execute

depends_on: none

delegation:
  skill: pm-plugin-development:plugin-maintain
  workflow: update-component
  context_skills:
    - pm-plugin-development:plugin-architecture

verification:
  commands:
    - grep -l '```json' marketplace/bundles/*.md | wc -l
    - mvn verify
  criteria: All grep commands return 0 (no JSON blocks remain)
  manual: false

Required fields: title, deliverables, domain, profile, skills, steps

Optional fields: phase (default: execute), description, depends_on, delegation, verification, origin (default: plan), priority, finding

Field values:

  • deliverables: Array of integers [1, 2, 3]
  • domain: Domain from config.toon (e.g., java, javascript, plan-marshall-plugin-dev)
  • profile: Arbitrary profile key from marshal.json (e.g., implementation, testing, architecture)
  • skills: Array of bundle:skill format strings
  • phase: One of init, outline, plan, execute, finalize
  • depends_on: none or task references like TASK-1, TASK-2
  • origin: plan (from task-plan phase) or fix (from finalize phase)

List/Next Filters

ParameterDescription
--phaseFilter by plan phase (init/outline/plan/execute/finalize)
--deliverableFilter by deliverable number
--readyOnly tasks with satisfied dependencies
--ignore-deps(next only) Ignore dependency constraints

Quick Examples

Add a task

python3 .plan/execute-script.py pm-workflow:manage-tasks:manage-tasks add \
  --plan-id my-feature <<'EOF'
title: Update misc agents to TOON
deliverables: [1, 2, 4]
domain: java
description: |
  Migrate miscellaneous agents from JSON to TOON output format.

steps:
  - file1.md
  - file2.md
  - file3.md

delegation:
  skill: pm-plugin-development:plugin-maintain
  workflow: update-component

verification:
  commands:
    - mvn verify
  criteria: Build passes
EOF

Add a task with dependencies

python3 .plan/execute-script.py pm-workflow:manage-tasks:manage-tasks add \
  --plan-id my-feature <<'EOF'
title: Write integration tests
deliverables: [3]
domain: java-testing
description: Add integration tests for new endpoint

steps:
  - Create test class
  - Add test methods
  - Run tests

depends_on: TASK-1, TASK-2

verification:
  commands:
    - mvn verify -Pintegration
  criteria: All tests pass
EOF

Add a task with complex verification commands (shell metacharacters)

python3 .plan/execute-script.py pm-workflow:manage-tasks:manage-tasks add \
  --plan-id migrate-json-to-toon <<'EOF'
title: Migrate agent outputs to TOON
deliverables: [1, 2, 3]
domain: plan-marshall-plugin-dev
description: |
  Update agents to use TOON format instead of JSON.

steps:
  - Update java-implement-agent.md
  - Update java-verify-agent.md
  - Update gradle-builder.md

delegation:
  skill: pm-plugin-development:plugin-maintain
  workflow: update-component

verification:
  commands:
    - grep -l '```json' marketplace/bundles/pm-dev-java/agents/*.md | wc -l
    - grep -l '```json' marketplace/bundles/pm-dev-builder/agents/*.md | wc -l
  criteria: All grep commands return 0 (no JSON blocks remain)
EOF

Get next task/step (respects dependencies)

python3 .plan/execute-script.py pm-workflow:manage-tasks:manage-tasks next \
  --plan-id my-feature

Get next task in specific phase

python3 .plan/execute-script.py pm-workflow:manage-tasks:manage-tasks next \
  --plan-id my-feature \
  --phase execute

List ready tasks only

python3 .plan/execute-script.py pm-workflow:manage-tasks:manage-tasks list \
  --plan-id my-feature \
  --ready

Mark step done

python3 .plan/execute-script.py pm-workflow:manage-tasks:manage-tasks step-done \
  --plan-id my-feature \
  --task 2 \
  --step 3

Integration Points

With task-plan-agent

Task-plan agents create tasks during plan refinement using heredoc:

python3 .plan/execute-script.py pm-workflow:manage-tasks:manage-tasks add \
  --plan-id {plan_id} <<'EOF'
title: {task_title}
deliverables: [{n1}, {n2}]
domain: {domain}
steps:
  - {step1}
  - {step2}
...
EOF

With plan-execute

Plan-execute iterates through tasks:

LOOP:
  1. manage-tasks next --plan-id {plan_id}
  2. IF no next: DONE
  3. SPAWN implement agent
  4. CONTINUE

With implement-agent

Implement agents execute steps:

1. manage-tasks get --plan-id {plan_id} --number {N}
2. FOR EACH step: step-start → execute → step-done
3. RUN verification

Deliverable-to-Task Relationship

Tasks reference deliverables from solution_outline.md using the deliverables field in stdin.

PatternDescriptionExample
1:1One task per deliverabledeliverables: [1] - Task implements deliverable 1
N:1Multiple deliverables in one taskdeliverables: [1, 2, 3] - Task implements deliverables 1, 2, 3
1:NOne deliverable split across tasksTASK-1 and TASK-2 both have deliverables: [1]

When to use N:1: Group related deliverables that share implementation context.

When to use 1:N: Split large deliverables into phased implementation (e.g., init task, implement task, verify task).


Dependency Management

Tasks can depend on other tasks using the depends_on field in stdin:

# Task 3 waits for Task 1 and Task 2 to complete
depends_on: TASK-1, TASK-2

# No dependencies
depends_on: none

Dependency enforcement:

  • next command only returns tasks with satisfied dependencies
  • Use --ignore-deps to bypass dependency checking
  • Use --ready filter to list only ready tasks

Blocked output: When tasks are blocked by dependencies, next returns:

next: null
blocked_tasks[2]{number,title,waiting_for}:
1,Write tests,TASK-3
2,Deploy,TASK-3, TASK-4

Phase Filtering

Tasks belong to plan phases: 1-init, 2-outline, 3-plan, 4-execute, 5-finalize

Filter by phase:

# List execute phase tasks only
--phase 4-execute

# Get next task in finalize phase
next --phase 5-finalize

Phase purpose:

  • init: Setup tasks (create directories, configs)
  • outline: Solution outline creation
  • plan: Task planning and skill resolution
  • execute: Implementation tasks (code changes)
  • finalize: Cleanup tasks (docs, release)

Status Model

Task Status: pendingin_progressdone (or blocked)

Step Status: pendingin_progressdone (or skipped)


Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon