بنقرة واحدة
todo-task-planning
Execute task planning based on the specified file and manage questions[/todo-task-planning file_path --pr --branch branch_name]
القائمة
Execute task planning based on the specified file and manage questions[/todo-task-planning file_path --pr --branch branch_name]
Use this skill for ANY Git or GitHub operation — committing, staging, branching, merging, rebasing, cherry-picking, tagging, pushing, pulling, stashing, resetting, resolving conflicts, managing remotes, creating or reviewing pull requests, handling GitHub issues and releases, and running GitHub CLI (gh) commands. Invoke this skill whenever the user mentions git, commits, branches, PRs, push/pull, conflicts, GitHub, or any version control task — even if they phrase it casually like "save my changes", "submit my code", "make a PR", or "undo my last commit". Do not attempt Git operations without invoking this skill first.
Use when you have uncommitted changes spanning multiple contexts and need to split them into logical, independently meaningful commits — especially before a PR or code review
Execute tasks from TODO file - Generic task runner [/todo-task-run xxx]
Use this skill for project management: planning, progress tracking, task coordination, timeline/milestone management, risk assessment, resource allocation, and execution guidance. Examples: <example>User organizing complex development: "Starting feature with frontend, backend, infrastructure changes. Need project plan." → Creates plan with task breakdown, timeline, coordination strategy.</example> <example>User facing delays: "Project behind schedule, unsure how to prioritize tasks." → Analyzes situation, provides recovery plan with prioritized actions.</example>
Core development principles and standards for consistent, high-quality code. Automatically applies DRY, KISS, YAGNI, SOLID, TDD, and micro-commit methodologies.
TODO.md file output template examples for todo-task-planning command. Provides structured checklist format with task classification, status indicators, and research rationale.
| name | todo-task-planning |
| description | Execute task planning based on the specified file and manage questions[/todo-task-planning file_path --pr --branch branch_name] |
| argument-hint | <file_path> [--pr] [--branch <name>] |
| arguments | [{"name":"file_path","description":"Path to the file for task planning execution","required":true},{"name":"--pr","description":"Create a pull request after task completion (flag)","required":false},{"name":"--branch","description":"Branch name to create and use for task execution (optional value flag)","required":false}] |
| user-invocable | true |
Command arguments: $ARGUMENTS
/todo-task-planning <file_path> [--pr] [--branch <name>]
file_path (required): Path to the file for task planning execution--pr (optional): Create a pull request after task completion. When specified, tasks will include branch creation (auto-generated if --branch not specified), commits, and PR creation--branch <name> (optional): Branch name to create and use for task execution. Creates the specified branch and commits all changes to it. Can be used independently or with --pr optionThis command reads the specified file ($ARGUMENTS) and performs comprehensive task planning. It can be executed repeatedly on the same file and also manages, confirms, and updates questions.
Important: This command is designed to be executed repeatedly. Do not question the fact that the same command will be executed multiple times; analyze and plan with a fresh perspective each time.
Important: The file specified in $ARGUMENTS will be the TODO management file. Avoid including specifications and research results in this file as much as possible; use docs/memory to store research results. Also, do not excessively abbreviate research results; retain them. Check each time whether you have researched something in the past. Do not neglect checking to avoid duplicating research results and tasks.
--branch [branch_name] option:
branch_name is provided: Uses the specified branch namebranch_name is omitted: Auto-generates branch name following Git naming conventions--prBranch name auto-generation rules:
{type}/{descriptive-name}feature/, bugfix/, refactor/, chore/, docs/feature/actionlog-email-notification--pr option:
--branch functionality (branch creation and commits)--branch is not specified, a branch name will be auto-generated# Example 1: Create branch with auto-generated name (no PR)
/todo-task-planning TODO.md --branch
# → Generates branch name like: feature/actionlog-notification
# Example 2: Create branch with specific name (no PR)
/todo-task-planning docs/todos/feature-x.md --branch feature/user-auth
# Example 3: Create PR with auto-generated branch name
/todo-task-planning docs/todos/feature-x.md --pr
# → Auto-generates branch name and creates PR
# Example 4: Create PR with specific branch name
/todo-task-planning docs/todos/feature-x.md --pr --branch feature/user-auth
# Example 5: Basic task planning (no branch, no PR)
/todo-task-planning docs/todos/feature-x.md
When these options are specified, the task planning should include:
For --branch option:
feature/ - New functionality implementationbugfix/ - Bug fixes, issue resolutionrefactor/ - Code restructuring without behavior changechore/ - Development environment, dependencies, toolingdocs/ - Documentation updates{type}/{descriptive-name}feature/actionlog-email-notificationFor --pr option:
Phase 0 reads and applies /key-guidelines at the start of every execution
MANDATORY: This command MUST update the $ARGUMENTS file (the file specified as a parameter)
[PROHIBITED]PROHIBITED PHASE SHORTCUTS - MUST FOLLOW SEQUENTIAL FLOW ⛔
The following phase shortcuts are STRICTLY PROHIBITED:
Why These Shortcuts Are Dangerous:
┌─────────────────────────────────────────────────────────────────┐
│ PHASE EXECUTION FLOW │
│ (MUST FOLLOW SEQUENTIAL ORDER) │
└─────────────────────────────────────────────────────────────────┘
Phase 0: Key Guidelines Reading → [詳細](PHASE-0-KEY-GUIDELINES.md) [OK]MANDATORY
└─ Read and apply key-guidelines skill
└─ Output: guidelines_loaded
↓
Phase 1: TODO File Reading → [詳細](PHASE-1-TODO-READING.md) [OK]MANDATORY
└─ Read and parse $ARGUMENTS file
└─ Parse --pr and --branch options
└─ Output: HAS_PR_OPTION, HAS_BRANCH_OPTION, BRANCH_NAME
↓
Phase 2: Explore Subagent → [詳細](PHASE-2-EXPLORE.md) [OK]MANDATORY
└─ Call Task tool (Explore)
└─ Output: exploration_results
↓
Phase 3: Plan Subagent → [詳細](PHASE-3-PLAN.md) [OK]MANDATORY
└─ Call Task tool (Plan) with exploration_results
└─ Output: planning_results
↓
Phase 4: project-manager skill → [詳細](PHASE-4-PROJECT-MANAGER.md) [OK]MANDATORY
└─ Call Skill tool (project-manager) with exploration + planning results
└─ Output: strategic_plan
↓
Phase 5: Verification → [詳細](PHASE-5-VERIFICATION.md) [OK]MANDATORY
└─ Verify all subagents completed successfully
└─ Verify: exploration_results, planning_results, strategic_plan exist
↓
Phase 6: File Analysis → [詳細](PHASE-6-ANALYSIS.md) [OK]MANDATORY
└─ Read $ARGUMENTS file
└─ Output: existingTasks, taskProgress
↓
Phase 7: Task Analysis & Breakdown → [詳細](PHASE-7-BREAKDOWN.md) [OK]MANDATORY
└─ Input: Phase 1-5 results + Phase 6 results
└─ Output: Task breakdown, feasibility analysis
↓
Phase 8: Question Management → [詳細](PHASE-8-QUESTIONS.md) [WARNING]CONDITIONAL
├─ CONDITION A: Questions exist [OK]MANDATORY
│ └─ Execute AskUserQuestion tool
│ └─ Wait for user responses
│ └─ Create questions.md file
│ └─ Output: User decisions recorded
├─ CONDITION B: No questions [OK]ALLOWED (Must document reason)
│ └─ Proceed to Phase 9
│ └─ Document why no questions needed
└─ [PROHIBITED]GATE: Phase 9 entrance checkpoint
↓
Phase 9: File Update → [詳細](PHASE-9-UPDATE.md) [OK]MANDATORY
├─ Create docs/memory files (exploration, planning, questions)
├─ Update $ARGUMENTS file with task checklist
├─ Conditional branch/PR task insertion:
│ └─ Evaluate HAS_BRANCH_OPTION and HAS_PR_OPTION
│ └─ Insert branch creation task if needed (beginning)
│ └─ Insert PR creation task if needed (end)
└─ Output: Complete TODO.md with all tasks
↓
Phase 10: Verification & Feedback → [詳細](PHASE-10-VERIFICATION.md) [OK]MANDATORY
└─ Verify file updates, AskUserQuestion execution
└─ Report to user
| Phase | Status | Skippable? | Dependencies | Critical Output |
|---|---|---|---|---|
| Phase 0 | [OK]MANDATORY | 🚫 NO | None | guidelines_loaded |
| Phase 1 | [OK]MANDATORY | 🚫 NO | Phase 0 | HAS_PR_OPTION, HAS_BRANCH_OPTION, BRANCH_NAME |
| Phase 2 | [OK]MANDATORY | 🚫 NO | Phase 1 | exploration_results |
| Phase 3 | [OK]MANDATORY | 🚫 NO | Phase 2 | planning_results |
| Phase 4 | [OK]MANDATORY | 🚫 NO | Phase 3 | strategic_plan |
| Phase 5 | [OK]MANDATORY | 🚫 NO | Phase 4 | Verification status |
| Phase 6 | [OK]MANDATORY | 🚫 NO | Phase 5 | existingTasks, taskProgress |
| Phase 7 | [OK]MANDATORY | 🚫 NO | Phase 1-6 | Task breakdown, feasibility |
| Phase 8 | [WARNING]CONDITIONAL | 🚫 NO (See conditions) | Phase 7 | User decisions (if questions exist) |
| Phase 9 | [OK]MANDATORY | 🚫 NO | Phase 1-8 | Updated $ARGUMENTS file, docs/memory files, branch/PR tasks inserted |
| Phase 10 | [OK]MANDATORY | 🚫 NO | Phase 9 | Verification report |
Phase 8 Conditions:
Rule 1: Sequential Execution Only
Rule 2: Subagent Phases (2-4) Must Execute Sequentially
[NG]WRONG FLOW (Parallel Execution):
Phase 2 (Explore) + Phase 3 (Plan) + Phase 4 (project-manager) → Called in same message
↓
PARALLEL EXECUTION
↓
Result: Phase 3/4 start before Phase 2 completes, missing dependencies
[OK]CORRECT FLOW (Sequential Execution):
Phase 0 → Phase 1 → Phase 2 (wait) → Phase 3 (wait) → Phase 4 (wait) → Phase 5 → ...
↓ ↓ ↓ ↓ ↓ ↓
Key- TODO Explore Plan project-mgr Verify
Guide Reading (output) (needs P2) (needs P2+P3) (check all)
Rule 3: Never Skip to Phase 9 (File Update)
Rule 4: Phase 8 is a Mandatory Checkpoint
IMPORTANT: Variables set in Phase 1 persist throughout all subsequent phases (Phase 2-10).
Phase 1 Variables Used in Later Phases:
HAS_PR_OPTION, HAS_BRANCH_OPTION, BRANCH_NAME, IS_AUTO_GENERATED
Variable Lifecycle:
Phase 1 → Set variables
↓
Phase 9 → Use variables for conditional logic
For detailed information about each phase, see:
Additional resources: