From dev-core
Implementation plan — tasks, agents, file groups, dependencies. Triggers: "plan" | "plan this" | "implementation plan" | "break it down" | "plan this feature" | "how should we build this" | "make a plan" | "create a plan" | "break this down into tasks" | "task breakdown".
npx claudepluginhub roxabi/roxabi-plugins --plugin dev-coreThis skill is limited to using the following tools:
Let:
Generates detailed implementation plans from approved spec.md files, iterates with human annotations, and outputs structured plan.json with phases, tasks, and steps. Use after spec approval to break into engineer-ready work.
Generates numbered task lists from specs before coding, detailing file paths, exact changes, tests, and success evidence for each task. Use for multi-file, multi-day, or team projects.
Creates detailed implementation plans from specs for multi-step tasks before coding, with file structure mapping, bite-sized TDD steps, architecture overview, and tech stack.
Share bugs, ideas, or general feedback.
Let:
σ := spec artifact
π := plan artifact at artifacts/plans/{issue}-{slug}.mdx
τ := tier ∈ {S, F-lite, F-full}
Spec → micro-tasks → agent assignments → plan artifact.
Flow: single continuous pipeline. ¬stop between steps. Decision response → immediately execute next step. Stop only on: Cancel/Abort or Step 6 completion.
/plan --issue 42 Generate plan from spec for issue #42
/plan --spec path Generate plan from explicit spec path
/plan --issue 42 --audit Show reasoning checkpoint before planning
--issue N → ls artifacts/specs/N-*.mdx → read full → extract title, criteria, files.
--spec <path> → read directly.
¬found → suggest /spec or /dev. Stop.
Grep \[NEEDS CLARIFICATION in σ (count).
count > 0 → → DP(A) Resolve now | Return to spec | Proceed anyway
Read docs/processes/dev-process.mdx + σ.
--audit → after reading σ, present reasoning audit per reasoning-audit.md (plan guidance).
→ → DP(A) Proceed | Adjust approach | Abort
¬--audit → continue to Step 2a.
2a. Scope: Glob + Grep → files to create/modify + reference features for patterns.
2b. Tier: S | F-lite | F-full per dev-process.mdx. ∃ artifacts/frames/ ∧ tier field → use it. Else assess from σ complexity.
2c. Agents:
| Path prefix | Agent |
|---|---|
{frontend.path}, {shared.ui} | frontend-dev |
{backend.path}, {shared.types} | backend-dev |
{shared.config}, root configs | devops |
docs/ | doc-writer |
Paths from stack.yml. ¬set → file domain heuristics (component/hook → FE; service/controller/route → BE).
Always: tester. Add: architect (new modules), security-auditor (auth/validation), doc-writer (new APIs). τ=S → skip agent assignment (single session).
Intra-domain parallel: ≥4 independent tasks in 1 domain → multiple same-type agents (F-full only). Shared barrel files → merge into single agent.
2d. Tasks: ∀ task: description, files, agent, dependencies, parallel-safe (Y/N). Order: types → backend → frontend → tests → docs → config.
2e. Slice Selection (multi-slice only): ≥2 slices → → DP(C) 1 option/slice V{N}: {desc} ({files}, {agents}).
Default: next unimplemented slice. Respect deps. Re-run /plan for remaining.
2f. Present Plan: → DP(A) τ, slices, files, agents, tasks with [parallel-safe: Y/N].
Options: Approve | Modify | Cancel
Approve → immediately continue to Step 3 (¬stop).
Find similar existing feature → read 1–2 files for conventions. Store paths → note in π for Step 4 agent context injection.
τ=S → skip → Step 5. Read references/micro-tasks.md for complete process.
Summary: Detect σ format (Breadboard+Slices ∨ Success Criteria) → generate micro-tasks with verify commands → detect parallelization → scale task count → consistency check (σ↔tasks bidirectional) → write to π.
Key outputs: micro-tasks with fields below, [P] parallel markers, RED-GATE sentinels per slice.
See references/micro-task-example.mdx for a worked example.
| Field | Description |
|---|---|
| Description | Imperative, specific |
| File path | Target file |
| Code snippet | Expected shape skeleton |
| Verify command | Bash confirmation |
| Expected output | Success criteria |
| Time estimate | 2–5 min (up to 8–10 for atomic ops) |
[P] marker | Parallel-safe |
| Agent | Owner |
| Spec trace | SC-N ∨ U1→N1→S1 |
| Slice | V1, V2, ... |
| Phase | RED ∨ GREEN ∨ REFACTOR ∨ RED-GATE |
| Difficulty | 1–5 |
Write to artifacts/plans/{N}-{slug}-plan.mdx. Create artifacts/plans/ dir if needed.
Use references/plan-template.mdx. See references/micro-task-example.mdx for task formatting.
---
title: "Plan: {title}"
issue: {N}
spec: artifacts/specs/{N}-{slug}-spec.mdx
complexity: {score}/10
tier: {τ}
generated: {ISO}
---
Include:
## Architecture must include:
flowchart TD) — full pipeline: config files → loader functions → data structures → composition → runtime injection. Group nodes into subgraphs by file. Highlight key paths with distinct styles.flowchart LR) — functions/classes per file, call relationships. Group by source file. Show test files as consumers.Diagrams go AFTER Summary, BEFORE Bootstrap Context.
→ DP(A) complexity, τ, task count, agents, consistency, slices. Options: Approve | Modify | Return to spec
On Approve → immediately continue to 6a (seed tasks), 6b (persist IDs), 6c (commit). ¬stop between substeps.
∀ micro-task in π:
TaskCreate(
subject: "{task description}",
description: "{files}\n\nVerify: {verify_command}\nExpected: {expected_output}\nRef: {pattern_file}\nSpec trace: {spec_trace}",
activeForm: "{present-continuous form}",
metadata: {
kind: "plan-task",
issue: N,
plan: "{path to π}",
slice: "V{n}",
phase: "RED|GREEN|REFACTOR|RED-GATE",
agent: "{agent name}",
spec_trace: "{SC-N or U1→N1→S1}",
difficulty: {1-5},
parallel_safe: {true|false},
},
)
Cache returned id in {task# → task.id} map.
Dependencies: ∀ micro-task: TaskUpdate(id, addBlockedBy: [deps...]) where deps come from:
dependencies field in the micro-task definition → map task numbers to task ids.τ=S → still seed tasks (3–6 is typical) — gives visibility even in single-session flow. Skip phase-based dependency wiring when π has no slice structure.
Append a ## Task IDs section to π before committing:
## Task IDs
<!-- Generated by /plan. Used by /implement to resume tasks on session restart. -->
- T1: {task_id} — {subject}
- T2: {task_id} — {subject}
...
This lets /implement re-attach to tasks after a session restart (TaskList would return empty for new sessions).
git add artifacts/plans/{N}-{slug}-plan.mdx + commit per CLAUDE.md Rule 5.
Read references/edge-cases.md.
git add -A ∨ git add . — specific files only/spec (artifact: artifacts/specs/{N}-{slug}-spec.mdx)/implement (auto-chain after approval)/implement)/dev owns the dev-pipeline task lifecycle externallykind: "plan-task") via Step 6a, IDs persisted in artifact's ## Task IDs section (Step 6b)/dev: run Steps 6a/6b/6c (seed tasks, persist IDs, commit) → return silently. ¬ask "proceed to /implement?". /dev re-scans and auto-chains to /implement in the same turn (no second prompt).Approved. Next: /implement --issue N. Stop./dev marks task cancelled.$ARGUMENTS