From devflow
Breaks PRD requirements and architecture decisions into buildable issues grouped into iterations/sprints. Creates issues in the configured tracker (Jira, GitLab, GitHub). Bridges upstream planning to the build workflow. Use this after PRD and architecture are defined.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-4 --plugin codingthefuturewithai-claude-code-primitivesThis skill is limited to using the following tools:
**Say exactly:** "SKILL INVOKED: pm/plan-iterations"
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Say exactly: "SKILL INVOKED: pm/plan-iterations"
Reference docs: Load ../references/issue-standards/core-standards.md now — this governs issue structure for ALL issues you will create. Load type-specific references on a per-issue basis as you draft each one:
../references/issue-standards/feature-standards.md + ../references/issue-standards/FEATURE-EXAMPLE.md../references/issue-standards/bug-standards.md + ../references/issue-standards/BUG-EXAMPLE.md../references/issue-standards/other-types.mdYou are helping the user break their PRD and architecture into buildable tasks, group them into iterations, and create well-structured issues in the configured tracker. This skill bridges upstream activities to the existing build workflow (fetch-issue → plan-issue → implement-issue → complete-issue).
Produce a set of well-formed issues grouped into the first 2-3 iterations. Iteration 1 should deliver a walking skeleton — minimal end-to-end functionality. Each issue must have clear acceptance criteria, trace back to PRD requirements, and follow the same issue format standards enforced by build/create-issue.
Load configuration: Read ~/.claude/plugins/config/devflow/config.md for available backends. Use the build-ops skill pattern for issue tracker configuration.
Find upstream artifacts: Check .devflow/project.md for PRD and architecture doc locations. Load both — the PRD provides requirements to decompose, the architecture provides technical context. If either is missing, ask the user for the information directly.
Decompose: Use the decomposition-analyzer agent to read the PRD + architecture doc and propose a structured task breakdown with dependency chains. This is a heavy read operation that benefits from context isolation. The agent uses references/decomposition-guide.md for guidance on breaking requirements into tasks, handling cross-cutting concerns, and dependency ordering. It returns a structured decomposition with iteration grouping.
Plan iterations: Group tasks into iterations using references/iteration-template.md. Iteration 1 = walking skeleton + scaffolding. Iterations 2-3 = core features. Only plan 2-3 iterations.
Review iteration structure with user: Present the full iteration plan for structural review — task titles, types, sizes, dependencies, and iteration assignments. This is a structural review only (no full issue bodies yet). Iterate until the user approves the grouping and scope.
Create milestones (GitLab only): Before creating issues, create milestones to group them. Follow references/gitlab-milestone-workflow.md:
POST /api/v4/projects/:id/milestones with title, start_date, due_dateDraft and create issues one at a time: For each issue in the approved plan, in iteration order:
a. Determine issue type and load the corresponding reference files (see top of skill).
b. Draft the full issue body following those standards. Apply the core principle from core-standards.md: WHAT (outcomes, capabilities), not HOW (implementation). Include:
c. Present the draft to the user:
Issue [N of M] — Iteration [X]
Type: [Feature / Bug / Task / etc.]
Title: [proposed title]
Priority: [High / Medium / Low]
Labels: [label1, label2, ...]
[Full issue body]
Create this issue? (yes / edit / skip)
d. Wait for response.
Backend type mapping:
getJiraProjectIssueTypesMetadata), Bug → "Bug", Others → "Task"Store iteration plan: After all issues are processed, store the iteration plan and update .devflow/project.md.
core-standards.md and the type-specific reference. These standards apply regardless of backend (Jira, GitLab, or GitHub).Skill complete.