スキル一覧に戻る
min-hinthar

ux-prompts

by min-hinthar

Mobile-first PWA for a la carte Burmese food ordering with Saturday-only delivery in Southern California.

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: ux-prompts description: This skill should be used when the user asks to "generate build prompts", "create implementation prompts", "break down the UX spec", "prepare prompts for v0/Bolt/Claude", "sequence the build tasks", or needs to transform UX specifications into sequential, self-contained prompts for UI generation tools.

UX Spec to Build-Order Prompts

Transform detailed UX specifications into a sequence of self-contained prompts optimized for UI generation tools. Each prompt builds one discrete feature with full context included.

When to Use

  • User has a UX spec, PRD, or detailed feature documentation
  • Output needs to feed into UI generation tools (v0, Bolt, Claude, etc.)
  • User wants build-order sequencing (foundations → features → polish)
  • Large specs that would overwhelm a single prompt

Not for: Quick component requests, already-atomic features, specs that fit in one prompt.

Build Order Strategy

Generate prompts in this sequence:

PhaseContentsWhy First
1. FoundationDesign tokens, shared types, base stylesEverything depends on these
2. Layout ShellPage structure, navigation, panelsContainer for all features
3. Core ComponentsPrimary UI elements (cards, inputs, buttons)Building blocks
4. InteractionsDrag-drop, selections, pickersDepend on components
5. States & FeedbackEmpty, loading, error, success statesRefinement layer
6. PolishAnimations, responsive, edge casesFinal layer

Extraction Process

Step 1: Identify Atomic Units

List discrete buildable features:

  • Each screen/view
  • Each reusable component
  • Each interaction pattern
  • Each state variation

Step 2: Map Dependencies

For each unit, note what it requires:

  • "Cart drawer requires Cart Item component"
  • "Checkout flow requires Address form"

Step 3: Sequence by Dependencies

Order units so dependencies come first. Group tightly-coupled items into single prompts.

Step 4: Write Self-Contained Prompts

For each prompt:

  1. Re-state relevant context (no references to other prompts)
  2. Include specific measurements from spec
  3. Include all states
  4. Include all interactions
  5. Set explicit boundaries (what's excluded)

Self-Containment Rules

Each prompt MUST include:

  • Enough context to understand the feature in isolation
  • All visual specs (colors, spacing, dimensions)
  • All states that feature can have
  • All interactions for that feature

Each prompt MUST NOT:

  • Reference "see previous prompt" or "as described earlier"
  • Assume knowledge from other prompts
  • Leave specs vague ("appropriate styling")

Prompt Structure Template

## [Feature Name]

### Context
[What this is and where it fits in the app]

### Requirements
- [Specific dimensions, colors, spacing]
- [Layout structure]
- [Content elements]

### States
- Default: [description]
- Hover: [description]
- Loading: [description]
- Error: [description]
- [Other states]

### Interactions
- [Click behavior]
- [Hover behavior]
- [Keyboard support]

### Constraints
- This prompt includes: [list]
- This prompt does NOT include: [list]

### Verification
- [ ] [Testable criterion]
- [ ] [Testable criterion]

Output Format

# 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]

Output Location

Write prompts to same directory as source UX spec:

  • UX spec feature-x-ux-spec.md → output feature-x-prompts.md
  • For sprint-based output: sprints/sprint-1-foundation.md, sprints/sprint-2-components.md

Additional Resources

Reference Files

For prompt quality and verification:

  • references/quality-amplifiers.md — Specificity ladder, context density, extraction patterns
  • references/verification-templates.md — Per-type verification checklists
  • references/anti-patterns.md — Common mistakes and fixes

Example Files

Working examples in examples/:

  • component-prompt.md — Complete component prompt (Product Card)
  • flow-prompt.md — Complete page/flow prompt (Checkout Flow)

Quick Reference

Quality Checklist

  • Every measurement from spec captured
  • Every state from spec captured
  • Every interaction from spec captured
  • No prompt references another prompt
  • Build order respects dependencies
  • Each prompt executable with zero context

Specificity Ladder

LevelExample
Vague"Use appropriate spacing"
Better"Use consistent spacing"
Good"8px padding, 16px gap"
Excellent"8px padding (var(--space-2)), 16px gap, matching card pattern"

Sprint Batching

RiskPrompt TypesShip After
LowTokens, types, utilitiesImmediately
MediumComponents, animationsUnit tests
HighCheckout, auth, paymentsE2E tests
TypeKey Checks
ComponentTypes, states, keyboard, dark mode
PageE2E happy path, error states, responsive
Animation60fps, reduced motion, no blocking
FormValidation, labels, autofill

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です