Agent Skill
2/7/2026

planning-with-files

Task planning skill that creates and manages task plans in markdown files. Tracks progress through a structured plan file, ensuring tasks are completed systematically before marking as done.

Y
yilabsai
4GitHub Stars
1Views
npx skills add YiLabsAI/HouYiAgent

SKILL.md

Nameplanning-with-files
DescriptionTask planning skill that creates and manages task plans in markdown files. Tracks progress through a structured plan file, ensuring tasks are completed systematically before marking as done.

name: planning-with-files version: "1.0.0" description: | Task planning skill that creates and manages task plans in markdown files. Tracks progress through a structured plan file, ensuring tasks are completed systematically before marking as done.

user-invocable: true

allowed-tools:

  • Write
  • Read
  • Edit
  • StrReplace
  • Glob
  • Grep

hooks: PreToolUse: - matcher: "Write|Edit|StrReplace" type: handler handler: houyi.skills.planning.hooks:pre_write_hook PostToolUse: - matcher: ".*" type: handler handler: houyi.skills.planning.hooks:post_tool_hook Stop: - type: handler handler: houyi.skills.planning.hooks:stop_hook

invocationPolicy: modelAutoInvoke: allow userInvocable: true sideEffect: filesystem

permissions: filesystem: read: true write: true paths: - "${WORKSPACE}//*.md" - "${WORKSPACE}/.plan/"

workflows:

  • id: quick_start_create title: Quick Start ยท Create Plan command: /plan create "Implement user authentication" params:
    • task
  • id: quick_update_subtask title: Update Subtask Progress command: /plan update 0 true params:
    • subtask_index
    • completed
  • id: quick_status title: Check Plan Status command: /plan status
  • id: quick_complete title: Complete Plan command: /plan complete

Planning with Files

A task planning skill that helps you manage complex tasks through structured plan files.

Overview

This skill creates and maintains a PLAN.md file that tracks:

  • Task breakdown into subtasks
  • Progress status for each subtask
  • Completion criteria

Usage

When starting a complex task, create a plan:

/plan create "Implement user authentication"

The skill will:

  1. Create a PLAN.md file with task breakdown
  2. Track progress as you work through subtasks
  3. Prevent premature completion until all subtasks are done

Common action examples:

# Create a plan
/plan create "Implement user authentication"

# Update subtask #0 to completed=true
/plan update 0 true

# Check plan status
/plan status

# Mark plan complete (only when all subtasks are done)
/plan complete

Plan File Format

# Task: [Task Description]

## Status: in_progress | completed | blocked

## Subtasks

- [ ] Subtask 1 description
- [x] Subtask 2 description (completed)
- [ ] Subtask 3 description

## Notes

Any relevant notes or context.

Hooks

PreToolUse (Write/Edit)

Before any file write, checks if the operation aligns with the current plan.

PostToolUse

After each tool use, updates plan progress if relevant.

Stop

Before stopping, verifies all planned subtasks are complete. If incomplete tasks remain, prompts to continue or explicitly acknowledge incomplete work.

Input Schema

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": ["create", "update", "complete", "status"],
      "default": "create",
      "description": "Action to perform on the plan"
    },
    "task": {
      "type": "string",
      "description": "Task description (for create action)"
    },
    "subtasks": {
      "type": "array",
      "items": { "type": "string" },
      "description": "Optional subtask list (for create action)"
    },
    "subtask_index": {
      "type": "integer",
      "minimum": 0,
      "description": "Subtask index to update (for update action)"
    },
    "completed": {
      "type": "boolean",
      "default": true,
      "description": "Whether the target subtask is completed (for update action)"
    }
  },
  "required": ["action"]
}

Output Schema

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "plan_path": {
      "type": "string",
      "description": "Path to the plan file"
    },
    "status": {
      "type": "string",
      "description": "Current plan status"
    },
    "progress": {
      "type": "object",
      "properties": {
        "total": { "type": "integer" },
        "completed": { "type": "integer" },
        "percentage": { "type": "number" }
      }
    },
    "message": {
      "type": "string"
    }
  }
}
Skills Info
Original Name:planning-with-filesAuthor:yilabsai