Get the FREE Ultimate OpenClaw Setup Guide →

task

Scanned
npx machina-cli add skill endlessblink/master-plan/task --openclaw
Files (1)
SKILL.md
3.8 KB

Task Creator

Quickly add new tasks to MASTER_PLAN.md with automatic sequential ID generation.

Triggers

  • /master-plan:task - Main command
  • "add task", "new task", "create task", "track this", "log a bug"

Workflow

Step 1: Find MASTER_PLAN.md

Search for the plan file in order:

  1. docs/MASTER_PLAN.md
  2. MASTER_PLAN.md
  3. master-plan.md
  4. docs/master-plan.md

If not found: Create docs/MASTER_PLAN.md using the template structure (see "Initial Setup" section below).

Step 2: Generate Next Task ID

Read the MASTER_PLAN.md file and find all existing task IDs:

  1. Scan for all occurrences matching (TASK|BUG|FEATURE|ROAD|IDEA|ISSUE|INQUIRY)-(\d+)
  2. Extract the numeric part from each match
  3. Find the highest number
  4. Next ID = highest + 1

CRITICAL: IDs are sequential across ALL types. If TASK-42 and BUG-43 exist, the next ID is 44 regardless of type.

Immediately output to user:

Using task number: [ID]

This must happen BEFORE asking any questions.

Step 3: Gather Task Information

Use AskUserQuestion to collect:

  1. Task Type (header: "Type")

    • TASK — New feature or improvement
    • BUG — Bug fix
    • FEATURE — Major new feature
    • INQUIRY — Investigation (not a fix, just understanding something)
  2. Priority (header: "Priority")

    • P0 — Critical / Blocker
    • P1 — High priority
    • P2 — Medium priority (Recommended)
    • P3 — Low priority / Backlog

Then ask in plain text: "What's the task title? (Keep it concise, under 50 chars)"

Optionally ask: "Any additional description? (Or just press enter to skip)"

Step 4: Add to MASTER_PLAN.md

4a. Add to Roadmap Table (if one exists)

Look for a markdown table with task IDs. Insert a new row:

| **[TYPE]-[ID]** | **[Title]** | **[Priority]** | PLANNED | - |

4b. Add Detailed Section

Add a new ### section at the appropriate place (typically at the end of the active work area, before completed tasks):

### [TYPE]-[ID]: [Title] (PLANNED)
**Priority**: [Priority]
**Status**: PLANNED (YYYY-MM-DD)

[Description if provided]

**Tasks**:
- [ ] [First step — infer from context or ask user]

For P0/P1 tasks, add a note that this is high priority.

Step 5: Confirm

Output to user:

Task added to MASTER_PLAN.md:
- **ID**: [TYPE]-[ID]
- **Title**: [Title]
- **Priority**: [Priority]
- **Status**: PLANNED

Use `/master-plan:next` to start working on it, or `/master-plan:done [ID]` when complete.

Initial Setup

If no MASTER_PLAN.md exists, create docs/MASTER_PLAN.md with this structure:

# MASTER PLAN

> Project task tracking and roadmap.

## Roadmap

| ID | Title | Priority | Status | Dependencies |
|----|-------|----------|--------|--------------|

## Active Work

<!-- New task sections are added here -->

## Completed

<!-- Done tasks are moved here -->

Also create the docs/ directory if it doesn't exist.

ID Format Reference

PrefixUsage
TASK-XXXFeatures and improvements
BUG-XXXBug fixes
FEATURE-XXXMajor features
ROAD-XXXRoadmap items
IDEA-XXXIdeas for later
ISSUE-XXXKnown issues
INQUIRY-XXXInvestigations

Important Rules

  1. NEVER reuse existing task IDs — Always scan the file first
  2. IDs are global — Sequential across all types (TASK, BUG, etc.)
  3. Use strikethrough (~~ID~~) only when marking tasks DONE
  4. Keep titles concise — Under 50 characters
  5. P0 tasks should always get an immediate detailed section

Source

git clone https://github.com/endlessblink/master-plan/blob/master/skills/task/SKILL.mdView on GitHub

Overview

Add new tasks to MASTER_PLAN.md with automatically generated, globally sequential IDs across TASK, BUG, FEATURE, and INQUIRY. The workflow guides you from locating the plan to adding a new entry, ensuring consistent tracking of roadmap work.

How This Skill Works

The tool scans MASTER_PLAN.md for existing IDs matching (TASK|BUG|FEATURE|ROAD|IDEA|ISSUE|INQUIRY)-(\d+), finds the highest number, and uses the next number as the new ID. It immediately outputs the line "Using task number: [ID]" before asking questions, then prompts for Type, Priority, Title, and an optional Description, and finally inserts the new entry into the roadmap and a detailed section in MASTER_PLAN.md before confirming.

When to Use It

  • You are adding a new task to the MASTER_PLAN.md roadmap and need a globally unique, sequential ID.
  • You want to log a bug fix or feature with IDs that stay consistent across all task types.
  • You're proposing a major feature and want it tracked as PLANNED in the roadmap.
  • You need to record an INQUIRY or investigation item alongside other tasks.
  • MASTER_PLAN.md is missing or inaccessible and needs to be created with an initial template.

Quick Start

  1. Step 1: Trigger the skill with /task, add task, new task, create task, or track this.
  2. Step 2: The system prints: Using task number: [ID] immediately before asking questions.
  3. Step 3: Answer prompts for Type, Priority, Title (under 50 chars), and optional Description; then confirm.

Best Practices

  • Always scan MASTER_PLAN.md for existing IDs before adding a new task.
  • Treat IDs as global and sequential across all types (TASK, BUG, FEATURE, INQUIRY, etc.).
  • Keep task titles concise: under 50 characters.
  • Use the correct type prefix and reflect it in the Roadmap table and sections.
  • For P0/P1 tasks, provide a detailed PLANNED section and clearly indicate priority.

Example Use Cases

  • TASK-101: Add user authentication
  • BUG-102: Fix crash on startup
  • FEATURE-103: Implement dark mode
  • INQUIRY-104: Investigate data export latency
  • IDEA-105: Explore AI-assisted tagging

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers