用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/theyoungastronauts/polaris --skill ux-to-prompts命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Pull just the do-this-yourself steps out of a long answer, so the user doesn't have to read the whole thing.
Hand in-flight work to a fresh session instead of compacting, or pick up from a relay doc.
Close out a session — record what was learned, update any connected stores, and report what's left dirty.
基于 SOC 职业分类
正在显示 SKILL.md
| name | ux-to-prompts |
| description | Turn a UX spec into build-order prompts for UI tools like v0 or Bolt. |
| disable-model-invocation | true |
Adapted from UX-spec-to-prompts skill
Transform a UX specification into a sequence of self-contained prompts optimized for UI generation tools (v0, Bolt, Claude, Stitch, etc.). Each prompt builds one discrete feature/view with full context included.
/ux-spec, when you want to feed specs into external UI generation toolsNot for: Quick component requests, features that fit in one prompt, or projects where you're building with code directly (use /execute instead).
Generate prompts in this sequence:
| Phase | What to Include | Why First |
|---|---|---|
| Foundation | Design tokens, shared types, base styles | Everything depends on these |
| Layout Shell | Page structure, navigation, panels | Container for all features |
| Core Components | Primary UI elements (nodes, cards, inputs) | Building blocks for features |
| Interactions | Drag-drop, connections, pickers | Depend on components existing |
| States & Feedback | Empty, loading, error, success states | Refinement of existing elements |
| Polish | Animations, responsive, edge cases | Final layer |
Read the UX spec and list discrete buildable features:
For each unit, note what it requires:
Order units so dependencies come first. Group tightly coupled items into single prompts.
For each prompt:
Each generated prompt follows this template:
## [Feature Name]
### Context
[What this feature is and where it fits in the app]
### Requirements
- [Specific behavior/appearance requirement]
- [Include relevant specs: dimensions, colors, states]
### States
- Default: [description]
- [Other states from spec]
### Interactions
- [How user interacts]
- [Keyboard support if applicable]
### Constraints
- [Technical or design constraints]
- [What NOT to include]
Each prompt MUST include:
Each prompt MUST NOT:
Write to docs/plans/Build-Order-Prompts-{topic}.md with this structure:
# Build-Order Prompts: [Project Name]
## Overview
[1-2 sentence summary]
## Build Sequence
1. [Prompt name] - [brief description]
2. [Prompt name] - [brief description]
...
---
## Prompt 1: [Feature Name]
[Full self-contained prompt]
---
## Prompt 2: [Feature Name]
[Full self-contained prompt]
Before finalizing:
| Mistake | Fix |
|---|---|
| Prompts too large (whole spec in one) | Break into atomic features |
| Prompts reference each other | Re-state needed context inline |
| Missing states | Cross-reference UX spec's state design (Pass 5) |
| Vague measurements ("good spacing") | Use exact values from spec |
| Wrong build order | Check dependency graph |
| Duplicated component definitions | Each component defined once, in first prompt that needs it |