Task Planning Skill
Produces exactly one active docs/ai-context/TASK_PLAN.md (template:
templates/task/TASK_PLAN.md in the plugin) from either a prepared plan or
a plain
description. The plan is repository-aware: every stated path and fact is
verified or explicitly marked for verification.
When to Use
- The
startaction, with either input type. - Resuming a
planning-stage workflow.
Inputs
- Raw user input (ready plan or description).
docs/ai-context/PROJECT_CONTEXT.md,docs/ai-context/FEATURE_CHANGELOG.md(searched via the feature-changelog skill before writing the plan).- Detection facts (
bin/frappe-workflow detect --json), current Git state.
Outputs
docs/ai-context/TASK_PLAN.mdpassingbin/frappe-workflow validate task-plan(references/plan-validation.md).- Frontmatter filled: deterministic
task_id(TASK-YYYY-NNN — next number from prior plans/Git history, never reusing a found ID; start at 001 when none found),task_type,status: planned, app/bench/site facts,suggested_branch,related_features.
Procedure
- Active-task rule: an unfinished task is never silently replaced — the frappe-task router enforces this before delegating here.
- Feature search first (existing-feature-analysis.md).
- For ready plans: treat as input, not truth — verify every path, add missing technical/validation/security/migration steps, convert to the standard format; report every correction made.
- For descriptions: analyze the repository, then draft the full plan.
- For
task_type: project, additionally follow complete-project-planning.md. - Every implementation step must be specific and verifiable (template step format). Vague steps ("Update backend") are forbidden.
- Validate, then hand back to the router for the planning gate.
Preconditions
- Detection succeeded; no unfinished active task.
Stopping Conditions
- Plan validates and the user has seen it (plus the corrections list for ready plans) → done; implementation starts only after the planning gate.
- Input intent unclear (not a development task) → ask, don't guess.
Prohibited
- Silently changing the business objective, adding unrelated features, or expanding product scope (allowed silently: path corrections, missing technical validation, security/migration steps — each recorded).
- Starting implementation before the plan is complete and accepted.
- Inventing paths, DocTypes, or Sites — unverified locations say
Requires repository verification.