About planning-jira-tasks
A Phase 2 orchestrator that plans Jira ticket snapshots into task files. It dispatches specialist agents through staged planning and validation, preserving artifacts for retries and re-planning.
Key features
- 01Plan from an existing Jira snapshot
- 02Dispatch specialist planning agents
- 03Validate each planning stage
- 04Preserve artifacts for resume and critique
- 05Retry only failing stages
Use cases
- 01Decompose a Jira ticket into tasks
- 02Re-plan after critique or changed decisions
- 03Resume a partially completed planning run
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ b-mendoza/ agent-skills --skill planning-jira-tasksAfter installing, type/planning-jira-tasksin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
flow-diagram.mdreferences/dependency-and-branch-guide.mddependency-prioritizer-template.mdexecution-guide.mdexternal-sources.mdoutput-contract.mdre-plan-cycle.mdtask-planner-template.mdtask-planning-guide.mdvalidation-checks.mdsubagents/dependency-prioritizer.mdstage-validator.mdtask-planner.mdtask-validator.mdDetails
From the project READMEPlanning Jira Ticket Tasks
Plan a Jira ticket snapshot into docs/<TICKET_KEY>-tasks.md. This is the
Phase 2 orchestrator for the Jira planning workflow: it routes stages,
dispatches specialists, preserves stage artifacts for resume and critique, and
returns a concise handoff.
The orchestrator keeps only workflow state, subagent verdicts, paths, counts, and user decisions in context. Detailed contracts, templates, validation checks, and source-backed background are loaded just in time from bundled references or optional external URLs.
Inputs
| Input | Required | Example |
|---|---|---|
TICKET_KEY | Yes | JNS-6065 |
RE_PLAN | No | true |
DECISIONS | No | SSO decision changes task dependencies |
Phase 2 is file-driven. docs/<TICKET_KEY>.md must already exist as the Jira
ticket snapshot.
Progressive Loading Map
| Need | Load |
|---|---|
| Normal run, dispatch payloads, retry loop | ./references/execution-guide.md |
| Final artifact contract, branch policy, subtask handling | ./references/output-contract.md |
| Critique-driven re-plan or recovery from stage artifacts | ./references/re-plan-cycle.md |
| Source-backed background or current platform syntax | ./references/external-sources.md |
| Subagent-specific guides, templates, or validation checks | Load only from the dispatched subagent |
Bundled paths in this file are relative to this SKILL.md; files loaded later
use paths relative to their own locations. All bundled files travel with the
package.
External URLs are optional progressive enhancement: fetch them only when local
contracts need background or current syntax, and proceed from bundled references
when network access is unavailable.
Subagent Registry
| Subagent | Path | Purpose |
|---|---|---|
task-planner | ./subagents/task-planner.md | Decompose the ticket and draft the stage 1 plan |
dependency-prioritizer | ./subagents/dependency-prioritizer.md | Add dependency order, priority, and branch names |
task-validator | ./subagents/task-validator.md | Validate the prioritized plan and append QA findings |
stage-validator | ./subagents/stage-validator.md | Check preflight, inter-stage, and final structural gates |
Workflow
| Path | When | Next reference |
|---|---|---|
| Normal | RE_PLAN is absent or false | ./references/execution-guide.md |
| Re-plan | RE_PLAN=true with critique decisions | ./references/re-plan-cycle.md, then ./references/execution-guide.md |
The normal path is: preflight snapshot validation, Stage 1 detailed planning, Stage 1 validation, Stage 2 dependency/branch planning, Stage 2 validation, Stage 3 final validation report, Stage 3 validation, postpipeline validation, handoff.
Preserve docs/<TICKET_KEY>-stage-1-detailed.md,
docs/<TICKET_KEY>-stage-2-prioritized.md, and
docs/<TICKET_KEY>-tasks.md on disk. They are orchestration state for resume,
critique, and targeted retries; they are not implementation outputs.
Use targeted fix loops only. Re-dispatch the stage that produced the failing artifact, pass only the validator's issue list, rerun only the failing gate, and stop after 3 failed cycles for the same gate.
Return Format
Return only this phase handoff. Use PLANNING: PASS only when every stage and
stage-validation gate has passed.
PLANNING: PASS | FAIL
TICKET_KEY: <TICKET_KEY>
File: <final file path or "not written">
Tasks: <N>
Branches: <N unique branch names>
Cross-cutting questions: <N>
Validation warnings: <N>
Failure category: PREFLIGHT | STAGE_1 | STAGE_2 | STAGE_3 | POSTPIPELINE | NONE
Reason: <one line>
Artifacts preserved: <comma-separated paths>
Example
Input: `TICKET_KEY=JNS-6065`- Load
./references/execution-guide.mdfor the dispatch payloads. - Dispatch
stage-validatorforpreflight; it returnsSTAGE_VALIDATION: PASS. - Dispatch
task-planner,dependency-prioritizer, andtask-validatorin sequence, validating after each produced artifact. - Dispatch
stage-validatorforpostpipeline; it returnsSTAGE_VALIDATION: PASS. - Return the concise
PLANNING: PASShandoff with preserved artifact paths.