Planning task

From malue-ai/dazee-small · View interactive version

Planning task is an AI agent skill from the GitHub repository malue-ai/dazee-small. Generates structured task plans and todo lists for complex multi-step projects. Use when the user needs to break down work into organized tasks with dependencies, or when creating project plans, checklists, or work breakdowns.

How to use this skill

Skill file

Task Planning Skill

Breaks down complex user requests into structured, trackable task plans with dependencies.

When to Use

Load this skill when:

Capabilities

  1. Task Decomposition: Break complex goals into atomic tasks
  2. Dependency Management: Identify which tasks must complete before others
  3. Progress Tracking: Generate plan.json and todo.md for monitoring
  4. Format Generation: Create both machine-readable (JSON) and human-readable (Markdown) formats

Workflow

Phase 1: Analyze User Intent

Understand the goal and identify key deliverables:

# Use code_execution to analyze
user_intent = "制作AI产品介绍PPT,包含市场数据"

# Identify components
components = [
    "搜索市场数据",
    "分析竞品信息", 
    "设计PPT结构",
    "生成SlideSpeak配置",
    "验证配置",
    "渲染PPT"
]

Phase 2: Generate Structured Plan

Use the helper script to create plan.json:

# Load and execute the plan generator
with open('skills/library/planning-task/scripts/generate_plan.py', 'r') as f:
    exec(f.read())

plan = generate_task_plan(
    user_intent="制作AI产品介绍PPT,包含市场数据",
    tasks=[
        {"id": "task_001", "description": "搜索AI客服市场数据", "dependencies": []},
        {"id": "task_002", "description": "生成PPT配置", "dependencies": ["task_001"]},
        {"id": "task_003", "description": "渲染PPT", "dependencies": ["task_002"]}
    ]
)

# Save plan.json
import json
with open('workspace/plan.json', 'w') as f:
    json.dump(plan, f, ensure_ascii=False, indent=2)

Phase 3: Generate Human-Readable Todo

Create todo.md for user visibility:

# Load and execute the todo generator
with open('skills/library/planning-task/scripts/generate_todo.py', 'r') as f:
    exec(f.read())

todo_markdown = generate_todo_markdown(plan)

# Save todo.md
with open('workspace/todo.md', 'w') as f:
    f.write(todo_markdown)

Phase 4: Execute and Update

As tasks complete, update the plan:

# Update task status
plan["tasks"]["task_001"]["status"] = "completed"
plan["tasks"]["task_001"]["result"] = {"data": [...]}

# Re-save
with open('workspace/plan.json', 'w') as f:
    json.dump(plan, f, ensure_ascii=False, indent=2)

# Regenerate todo.md
todo_markdown = generate_todo_markdown(plan)
with open('workspace/todo.md', 'w') as f:
    f.write(todo_markdown)

Output Files

plan.json (machine-readable):

{
  "plan_id": "plan_001",
  "user_intent": "制作AI产品介绍PPT",
  "tasks": {
    "task_001": {
      "id": "task_001",
      "description": "搜索市场数据",
      "status": "pending",
      "dependencies": [],
      "result": null
    }
  }
}

todo.md (human-readable):

# Task Plan: 制作AI产品介绍PPT

Progress: 0/3 (0%)

## Tasks
⬜ **task_001**: 搜索市场数据
⬜ **task_002**: 生成PPT配置
   - Dependencies: task_001
⬜ **task_003**: 渲染PPT
   - Dependencies: task_002

Task Decomposition Guidelines

  1. Atomic Tasks: Each task should be a single, executable action
  2. Dependencies: Identify sequential vs. parallel tasks
  3. Verifiable: Each task should have clear completion criteria
  4. Balanced: Aim for 3-8 tasks (not too granular, not too broad)

Good Example:

Bad Example:

Scripts

Best Practices

  1. Always generate both formats: plan.json for tracking, todo.md for user
  2. Update files after each task: Keep progress visible
  3. Validate dependencies: Ensure no circular dependencies
  4. Clear descriptions: Use action verbs (搜索、生成、验证、渲染)
  5. Realistic granularity: 3-8 tasks for most projects

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.