بنقرة واحدة
mu-plan
Use when you have a spec or requirements for a multi-step task, before touching code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when you have a spec or requirements for a multi-step task, before touching code
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when code changes need review, verification, and integration - covers review dispatch, feedback handling, verification gates, and merge/PR workflow
Use before any creative engineering work to design technical architecture — components, interfaces, data flow, error handling. For product/UX requirements (user flows, feature specs), use mu-prd first.
Use when user wants to generate or maintain project-level architecture documentation. Two modes: generate (full wiki creation from codebase analysis) and update (incremental maintenance via git diff). On-demand only — never auto-routed by mu-route.
Use at the start of any unprefixed user message within DevMuse's domain (dev or product work) to route to the right skill. Confidence-based: high confidence invokes silently, medium gives a one-line proposal, low gives full proposal with override options. Bypassed by direct slash invocations (`/mu-<skill>`).
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Use when validating a business premise or defining product strategy (market, BMC, VPC, personas, MVP scope). Two modes: quick (4 forcing questions) or full (comprehensive analysis).
| name | mu-plan |
| description | Use when you have a spec or requirements for a multi-step task, before touching code |
Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
Announce at start: "I'm using the mu-plan skill to create the implementation plan."
Context: This should be run in a dedicated worktree (created by mu-arch skill).
Save plans to: docs/plans/YYYY-MM-DD-<feature-name>.md
digraph mu_plan {
"Read design spec" [shape=box];
"Scope check:\nsingle subsystem?" [shape=diamond];
"Suggest decomposition" [shape=box];
"Map file structure" [shape=box];
"Define tasks\n(bite-sized, TDD)" [shape=box];
"Write plan document" [shape=box];
"Plan review loop\n(dispatch reviewer)" [shape=box];
"Approved?" [shape=diamond];
"Fix issues" [shape=box];
"Execution handoff\n(invoke mu-code)" [shape=doublecircle];
"Read design spec" -> "Scope check:\nsingle subsystem?";
"Scope check:\nsingle subsystem?" -> "Map file structure" [label="yes"];
"Scope check:\nsingle subsystem?" -> "Suggest decomposition" [label="no"];
"Suggest decomposition" -> "Map file structure" [label="after split"];
"Map file structure" -> "Define tasks\n(bite-sized, TDD)";
"Define tasks\n(bite-sized, TDD)" -> "Write plan document";
"Write plan document" -> "Plan review loop\n(dispatch reviewer)";
"Plan review loop\n(dispatch reviewer)" -> "Approved?";
"Approved?" -> "Execution handoff\n(invoke mu-code)" [label="yes"];
"Approved?" -> "Fix issues" [label="no"];
"Fix issues" -> "Plan review loop\n(dispatch reviewer)";
}
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during mu-arch. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.
This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
Each step is one action (2-5 minutes):
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use devmuse:mu-code (recommended) or devmuse:mu-code to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
---
### Task N: [Component Name]
**Covers:** UC-1, UC-3
**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py:123-145`
- Test: `tests/exact/path/to/test.py`
- [ ] **Step 1: Write the failing test**
```python
def test_specific_behavior():
result = function(input)
assert result == expected
```
- [ ] **Step 2: Run test to verify it fails**
Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL with "function not defined"
- [ ] **Step 3: Write minimal implementation**
```python
def function(input):
return expected
```
- [ ] **Step 4: Run test to verify it passes**
Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS
- [ ] **Step 5: Commit**
```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```
Covers: UC-xxx per task when a scope artifact exists — this tells the coder which use cases to trace in testsAfter writing the complete plan:
review-plan mode with precisely crafted review context — never your session history. This keeps the reviewer focused on the plan, not your thought process.
PLAN_FILE_PATH (path to the plan document), SPEC_FILE_PATH (path to spec document)Review loop guidance:
After saving the plan, offer execution choice:
"Plan complete and saved to docs/plans/<filename>.md. Two execution options:
1. Subagent-Driven (recommended) - I dispatch a fresh subagent per task, review between tasks, fast iteration
2. Inline Execution - Execute tasks in this session, batch execution with checkpoints
Which approach?"
Invoke devmuse:mu-code to execute the plan. mu-code supports both modes.
docs/plans/<name>.md