بنقرة واحدة
pwrl-plan-design
Create technical design and implementation unit decomposition for planning workflow.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create technical design and implementation unit decomposition for planning workflow.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Extract, classify, deduplicate, structure, and save learnings from code, commits, tasks, and documentation
Create structured implementation plans with three tiers (Fast/Standard/Deep). Pure skill pipeline orchestrator—no agent routing.
Review code changes through 4-phase micro-skill pipeline (scope, prepare, analyze, report)
Execute implementation work efficiently through 4-phase micro-skill pipeline
Verify repository state and confirm session completion before committing.
Create a clear session commit with state and next steps. Orchestrates checkpoint and commit micro-skills, optionally chains to pwrl-learnings.
| name | pwrl-plan-design |
| description | Create technical design and implementation unit decomposition for planning workflow. |
| argument-hint | [scoped context + research findings] |
Purpose: Third step in the planning workflow. Accepts scoped context from pwrl-plan-scope (S2) and research findings from pwrl-plan-research (S3). Breaks the work into stable, numbered implementation units (U1, U2, … UX), optionally generates Mermaid diagrams for complex workflows, and produces a complexity hint for tier selection.
ask_user_question extension for guiding unit decomposition.This skill expects two inputs:
pwrl-plan-scope (S2) — problem, criteria, domain, learningspwrl-plan-research (S3) — patterns, tech stack, risk assessment, constraintsIf inputs are missing, search for recent .scope and .research files in docs/plans/.scope/ and docs/plans/.research/, or prompt the user to run the prerequisite skills.
After completing the workflow, produce an implementation units block:
design-id: YYYY-MM-DD-NNN-design
status: complete
# Implementation Units
## Complexity Hint: fast | standard | deep
## Diagram (Optional)
```mermaid
sequenceDiagram
...
## Units
### U1: [Unit Name]
- **Scope:** [What this unit accomplishes]
- **Dependencies:** [None | U1, U2]
- **Files Affected:**
- Create: `path/to/new/file`
- Modify: `path/to/existing/file`
- Test: `path/to/test/file`
- **Approach:** [Brief technical approach description]
- **Acceptance Criteria:**
- [Specific condition for completion]
- [Specific condition for completion]
### U2: [Unit Name]
- **Scope:** [...]
- **Dependencies:** [e.g., U1]
- **Files Affected:** [...]
- **Approach:** [...]
- **Acceptance Criteria:** [...]
The units object is passed to pwrl-plan-generate (S5) for plan rendering.
domain: non-software), note that design units will be generic (not code-focused).Assign stable, sequential Unit Identifiers (U1, U2, U3, ...) to each unit. For the complete implementation pattern, stability rules (never reassign retired IDs), edge cases (deletion, merging, splitting), and best practices, see u-id-generator.md.
For each unit, guide the user through definition. Use ask_user_question to collect:
src/main.js, not /home/user/project/src/main.js)Present the completed unit to the user for confirmation before creating the next unit.
After all units are defined:
Determine the tier hint based on unit count and complexity:
| Unit Count | Risk Level | Tier Hint |
|---|---|---|
| 1-3 | LOW | Fast |
| 1-3 | HIGH | Standard |
| 4-8 | any | Standard |
| 9+ | any | Deep |
| any | HIGH + 9+ | Deep |
The hint is advisory. The generate skill (S5) uses it for template selection. The user can override in S5.
Detect if a diagram would add clarity (5+ units, complex interdependencies, high-risk workflow). For decision criteria, diagram type selection (sequence, state, flowchart), user prompts, and embedding instructions, see mermaid-diagram-guide.md.
ask_user_question.Seven edge cases commonly encountered during design: non-software domains, user adjusting unit count, retired U-IDs, circular dependencies, user uncertainty about approach, very large plans, and declined diagrams. For handling strategies, decision trees, and examples, see edge-cases.md.
Implementation units are passed to pwrl-plan-generate in markdown format with YAML frontmatter. Downstream skills read it from memory or from docs/plans/.design/YYYY-MM-DD-NNN-design.md. For detailed schema documentation, field reference, storage conventions, and versioning rules, see state-schema.md.
pwrl-plan/SKILL.mdpwrl-plan-scope (S2) + Research findings from pwrl-plan-research (S3)pwrl-plan-generate (S5) — receives units and complexity hintask_user_question extension for all unit definition steps