| name | dev-router |
| description | Intelligent orchestrator that analyzes user intent and routes to the right skill(s). Invoke FIRST when user request involves code creation, UI/UX work, code review, or ambiguous multi-intent tasks. Prevents skill conflicts by establishing clear ownership. |
Dev Router Skill (ๆบ่ฝ่ทฏ็ฑๅณ็ญๅฑ)
This skill is the orchestrator that decides which specialized skill(s) should handle a user request. It runs FIRST to prevent control conflicts between skills.
When to Invoke
Invoke this skill FIRST when:
- User request is ambiguous or could match multiple skills
- User asks for code creation, UI work, or review
- User mentions multiple intents in one request
- Any request that might trigger other skills
Do NOT invoke for:
- Simple questions about the codebase
- Reading/exploring files
- Bug fixes in existing code (no skill needed)
- Git operations
Available Skills
| Skill | When to Use | When NOT to Use |
|---|
crud-module-generator | Create NEW module from scratch | Modify existing module |
ui-ux-pro-max | Improve visuals/UX of EXISTING components | Generate new code structure |
git-commit-guide | Git commit message ่ง่ๆๅฏผ | ๆง่ก git ๅฝไปคใPR ๅฎกๆฅ |
pre-review-checklist | Before commit/PR, after changes done | During active development |
Routing Decision Tree
User Request
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1. Is this a NEW module/page? โ
โ (ๅๅปบ/ๆฐๅข/scaffold/ไป้ถ) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Yes
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Does user mention "ๅฅฝ็/็พ่ง"? โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Yes โ No
โผ โผ
crud-module-generator crud-module-generator
+ ui-ux-pro-max (alone)
(for styling guidance)
โ
โ No (not new module)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 2. Is this improving EXISTING โ
โ UI/UX? (ไผๅ/็พๅ/ๆน่ฟๆ ทๅผ) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Yes โ ui-ux-pro-max (alone)
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 3. Is this a COMMIT request? โ
โ (ๆไบค/commit/ๅcommit) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Yes โ git-commit-guide (alone)
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 4. Is this a REVIEW request? โ
โ (ๅฎกๆฅ/review/ๆฃๆฅ/PR) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Yes
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Is it about UI design quality? โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Yes โ No
โผ โผ
ui-ux-pro-max pre-review-checklist
(design review) (code/PR review)
โ
โ No (not review)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 5. Default: No skill needed, โ
โ handle directly โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Conflict Resolution Rules
Rule 1: New Module + UI Requirements
Scenario: "ๅๅปบไธไธชๅฅฝ็็ไบงๅ็ฎก็้กต้ข"
Resolution:
- Primary:
crud-module-generator (generates structure)
- Secondary:
ui-ux-pro-max (provides styling standards)
- Order: Generate first โ Apply UI standards during generation
- NOT: Two skills fighting over the same code
Rule 2: Existing Code + UI + Review
Scenario: "ๅฎกๆฅๅนถไผๅ่ฟไธช่กจๅ"
Resolution:
- Step 1:
pre-review-checklist (find issues)
- Step 2:
ui-ux-pro-max (apply improvements)
- Sequential, not parallel
Rule 3: Ambiguous Intent
Scenario: "ๅธฎๆ็็่ฟไธช้กต้ข"
Resolution:
- Ask user to clarify: "ไฝ ๆฏๆณๅฎกๆฅไปฃ็ ่ดจ้๏ผ่ฟๆฏๆน่ฟ UI ่ฎพ่ฎก๏ผ"
- Don't guess and trigger wrong skill
Rule 4: Multiple Skills Needed
Scenario: "ๅๅปบไบงๅๆจกๅ๏ผๅๅฅฝ็ไธ็น๏ผ็ถๅๅธฎๆๅฎกๆฅ"
Resolution:
- Execute in order: crud-module-generator โ ui-ux-pro-max โ pre-review-checklist
- Each skill completes before next starts
- Router coordinates the flow
Output Format
When routing, respond briefly:
## ๐ฏ ่ทฏ็ฑๅณ็ญ
**ๆๅพๅๆ**: [็ฎ่ฆๆ่ฟฐ็จๆทๆๅพ]
**่ทฏ็ฑๅฐ**: [Skill ๅ็งฐ]
**ๅๅ **: [ไธบไปไน้่ฟไธช]
**ๆง่ก้กบๅบ** (if multiple):
1. [Skill 1] - [็ฎ็]
2. [Skill 2] - [็ฎ็]
Examples
Example 1
User: "ๅธฎๆๅๅปบไธไธช่ฎขๅ็ฎก็้กต้ข"
Router Output:
## ๐ฏ ่ทฏ็ฑๅณ็ญ
ๆๅพๅๆ: ๅๅปบๆฐๆจกๅ๏ผๆ UI ๅผบ่ฐ
่ทฏ็ฑๅฐ: crud-module-generator
ๅๅ : ๆ็กฎ็"ๅๅปบ็ฎก็้กต้ข"ๆๅพ
Example 2
User: "ๅธฎๆๅๅปบไธไธชๆผไบฎ็่ฎขๅ็ฎก็้กต้ข"
Router Output:
## ๐ฏ ่ทฏ็ฑๅณ็ญ
ๆๅพๅๆ: ๅๅปบๆฐๆจกๅ + UI ๅผบ่ฐ
่ทฏ็ฑๅฐ: crud-module-generator (ไธป) + ui-ux-pro-max (่พ
)
ๅๅ : ้่ฆๅ
ๆ่ง่็ๆ๏ผๅๅบ็จ UI ๆ ๅ็พๅ
ๆง่ก้กบๅบ:
1. crud-module-generator - ็ๆๆจกๅ็ปๆ
2. ui-ux-pro-max - ๅบ็จ่ง่ง่ง่
Example 3
User: "ๅฎกๆฅๆ็ PR"
Router Output:
## ๐ฏ ่ทฏ็ฑๅณ็ญ
ๆๅพๅๆ: ไปฃ็ ๅฎกๆฅ่ฏทๆฑ
่ทฏ็ฑๅฐ: pre-review-checklist
ๅๅ : ๆ็กฎ็ PR ๅฎกๆฅๆๅพ
Example 4
User: "่ฟไธช่กจๅๅคช้พ็ไบ"
Router Output:
## ๐ฏ ่ทฏ็ฑๅณ็ญ
ๆๅพๅๆ: ็ฐๆ UI ๆน่ฟ
่ทฏ็ฑๅฐ: ui-ux-pro-max
ๅๅ : ้ๅฏน็ฐๆ็ปไปถ็่ง่งไผๅ๏ผ้ๆฐๅปบ
Example 5
User: "ๅธฎๆ็็่ฟไธช้กต้ข"
Router Output:
## ๐ฏ ่ทฏ็ฑๅณ็ญ
ๆๅพๅๆ: ๆๅพไธๆ็กฎ
้่ฆๆพๆธ
: ไฝ ๆฏๆณ
A) ๅฎกๆฅไปฃ็ ่ดจ้๏ผpre-review-checklist๏ผ
B) ๆน่ฟ UI ่ฎพ่ฎก๏ผui-ux-pro-max๏ผ
C) ้ๆฐ็ๆๆจกๅ๏ผcrud-module-generator๏ผ
่ฏท้ๆฉๆๆ่ฟฐๅ
ทไฝ้ๆฑ
Skill Boundary Definitions
To prevent overlap, here are strict boundaries:
crud-module-generator
Owns:
- File creation:
index.jsx, Form.jsx, Detail.jsx, api.js
- Module structure decisions
- API hook patterns
- State management patterns
Does NOT own:
- Fine-grained styling (padding, colors, typography)
- UX interaction patterns
- Accessibility checks
ui-ux-pro-max
Owns:
- Visual hierarchy decisions
- Spacing/sizing recommendations
- Color and typography choices
- Interaction feedback patterns
- Accessibility (WCAG) guidance
Does NOT own:
- File structure
- Code patterns/conventions
- API design
pre-review-checklist
Owns:
- Code quality checks
- PR compliance verification
- Pattern adherence
- Scope validation
Does NOT own:
- Generating new code
- UI design decisions
- Visual quality (unless explicitly asked)
Fallback Strategy
If routing is unclear after analysis:
- Default to no skill - handle directly with general knowledge
- Ask for clarification - use AskUserQuestion if truly ambiguous
- Conservative approach - better to not trigger a skill than trigger the wrong one
Integration Notes
- This skill should be invoked BEFORE any other skill
- After routing decision, the chosen skill takes over fully
- Router does NOT execute the work, only decides who does
- Router can recommend sequencing when multiple skills are needed