ui-design-direction
Use when the user wants UI/UX direction, a design system, or an interface critique rather than implementation help. Triggers on: "design direction", "how should this page/app look", requests for a landing page or dashboard design, color palette or typography choices, "review this UI", concerns about professionalism/trust/accessibility of an interface, or when a new UI is started with no established visual direction. Not for debugging broken CSS/JS or for generating illustration/image prompts.
- License 许可
- Unlicense
- 最近更新
- 2026-10-28
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- ui-design-direction
- description
- Use when the user wants UI/UX direction, a design system, or an interface critique rather than implementation help. Triggers on: "design direction", "how should this page/app look", requests for a landing page or dashboard design, color palette or typography choices, "review this UI", concerns about professionalism/trust/accessibility of an interface, or when a new UI is started with no established visual direction. Not for debugging broken CSS/JS or for generating illustration/image prompts.
02 资源文件 29
- 资产文件data/charts.csv7.5 KB
- 资产文件data/colors.csv9.5 KB
- 资产文件data/icons.csv13.1 KB
- 资产文件data/landing.csv14.0 KB
- 资产文件data/products.csv29.1 KB
- 资产文件data/react-performance.csv14.5 KB
- 资产文件data/stacks/astro.csv11.6 KB
- 资产文件data/stacks/flutter.csv10.2 KB
- 资产文件data/stacks/html-tailwind.csv11.1 KB
- 资产文件data/stacks/jetpack-compose.csv8.0 KB
- 资产文件data/stacks/nextjs.csv12.3 KB
- 资产文件data/stacks/nuxt-ui.csv13.7 KB
- 资产文件data/stacks/nuxtjs.csv16.2 KB
- 资产文件data/stacks/react-native.csv9.8 KB
- 资产文件data/stacks/react.csv12.7 KB
- 资产文件data/stacks/shadcn.csv15.5 KB
- 资产文件data/stacks/svelte.csv10.8 KB
- 资产文件data/stacks/swiftui.csv10.6 KB
- 资产文件data/stacks/vue.csv10.8 KB
- 资产文件data/styles.csv94.3 KB
- 资产文件data/typography.csv31.1 KB
- 资产文件data/ui-reasoning.csv30.3 KB
- 资产文件data/ux-guidelines.csv18.3 KB
- 资产文件data/web-interface.csv7.3 KB
- 参考文档evals/evals.json3.2 KB
- 参考文档evals/trigger-evals.json3.8 KB
- 脚本scripts/core.py10.0 KB
- 脚本scripts/design_system.py43.1 KB
- 脚本scripts/search.py5.5 KB
03 SKILL.md 正文
UI Design Direction
Use this skill when generic design vibes are not enough and the agent needs concrete UI direction grounded in the bundled local reference data.
The bundle contains:
- 67 styles
- 96 color palettes
- 57 typography pairings
- 99 UX guidelines
- 25 chart patterns
- 13 stack-specific references
Delivery gate
Every recommendation or review this skill produces must satisfy all of these before delivery:
- [ ] the answer starts from the design-system workflow or explains why not
- [ ] the recommendation includes concrete color and typography direction
- [ ] accessibility concerns are explicit, not implied
- [ ] anti-patterns are called out plainly
- [ ] stack guidance is verified or clearly labeled as fallback
- [ ] persisted output paths, if mentioned, are exact
Execution notes
- Resolve the installed skill directory first.
- Run the bundled search tool from
<skill-dir>/scripts/search.py. - If the script cannot run in the current environment, or a search returns zero or empty results, say so and continue with manual design reasoning instead of bluffing.
- Do not install Python, use
sudo, or modify the user's machine just to run this skill.
When to prefer this skill
Reach for this skill when the user asks for any of the following:
- a design system or visual direction
- a landing page, dashboard, SaaS UI, app UI, or mobile UI concept
- color palette, typography, icon, chart, or page-pattern recommendations
- a UI review focused on professionalism, usability, accessibility, or trustworthiness
- stack-specific UI guidance for supported frontend stacks
Do not use this skill for pure implementation debugging like broken CSS selectors, JavaScript runtime errors, or framework build failures, or for illustration/image prompt generation like Midjourney prompts, unless the user is also asking for design direction or UX review.
Core workflow
1. Identify the design problem
Extract these facts from the prompt or repository:
- product type
- industry or domain
- user constraints: accessibility, light mode, dense data, trust, conversion, motion limits
- delivery goal: direction, critique, implementation guidance, or page override
- visible stack, if any — check the repo for evidence (
package.jsondependencies,tailwind.config.*, framework config files) before declaring the stack unknown
If the stack is not explicit and not visible in the repo, do not pretend to know it.
2. Start with the design-system command
Use --design-system first for almost all design-direction requests.
python3 <skill-dir>/scripts/search.py "<product type> <industry> <keywords>" --design-system -p "Project Name"
This is the default entry point because it combines product, style, color, landing, and typography guidance into one recommendation.
3. Add targeted searches only where the initial recommendation leaves gaps
Use domain searches for follow-up depth.
python3 <skill-dir>/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
Typical follow-ups:
| Need | Domain | Example |
|---|---|---|
| More style options | style |
--domain style "glassmorphism dark" |
| Accessibility or interaction concerns | ux |
--domain ux "focus states reduced motion" |
| Alternate typography | typography |
--domain typography "trustworthy readable healthcare" |
| Landing-page structure | landing |
--domain landing "social proof conversion" |
| Chart choice | chart |
--domain chart "real-time dashboard trend" |
| Color direction | color |
--domain color "fintech trust" |
| Icon recommendations | icons |
--domain icons "payment security" |
4. Use stack guidance only when justified
If the user names a stack or the repo proves one, use stack guidance.
python3 <skill-dir>/scripts/search.py "<keyword>" --stack <stack>
Supported stacks: html-tailwind, react, nextjs, astro, vue, nuxtjs, nuxt-ui, svelte, swiftui, react-native, flutter, shadcn, jetpack-compose
If the task is implementation-oriented and no stack evidence exists, html-tailwind is the fallback. Say explicitly that it is a fallback.
5. Persist only when the user needs reusable design rules
Use --persist when the user wants a reusable design system for later pages or iterations.
python3 <skill-dir>/scripts/search.py "<query>" --design-system --persist -p "Project Name"
python3 <skill-dir>/scripts/search.py "<query>" --design-system --persist -p "Project Name" --page "dashboard"
This creates:
design-system/<project-slug>/MASTER.mddesign-system/<project-slug>/pages/<page>.md
When working on a page override, check the page file first. If it exists, it overrides the master file.
If MASTER.md (or the target page file) already exists, do not silently overwrite it — read it first and update it in place, telling the user which sections changed.
Search reference
Available domains
| Domain | Use for |
|---|---|
product |
Product-type recommendations |
style |
Style system, effects, visual language |
typography |
Font pairings and import hints |
color |
Product-specific palettes |
landing |
Landing-page structure and CTA placement |
chart |
Chart-type selection |
ux |
UX best practices and anti-patterns |
icons |
Icon recommendations |
react |
React and Next performance concerns |
web |
General web-interface guidance |
Supported stacks
| Stack | Focus |
|---|---|
html-tailwind |
Tailwind utilities, responsive layout, accessibility |
react |
State, rendering, hooks, performance |
nextjs |
Routing, SSR, images, app structure |
astro |
Islands, content-heavy pages, static-first delivery |
vue |
Composition API, state, routing |
nuxtjs |
Nuxt app structure and rendering |
nuxt-ui |
Nuxt UI component usage |
svelte |
Runes, stores, SvelteKit |
swiftui |
Native Apple UI patterns |
react-native |
Mobile components and lists |
flutter |
Widgets, state, layout, theming |
shadcn |
Component composition, forms, theming |
jetpack-compose |
Android composables and recomposition |
Response format
When using this skill, structure the answer like this:
-
Design direction
- product type
- page or product pattern
- style system
- typography direction
- color direction
-
Why this fits
- 2-4 reasons grounded in search output
-
UX risks and anti-patterns
- accessibility
- contrast
- motion
- layout shift
- trust or conversion problems
-
Stack notes
- only if the stack is known or explicitly marked as fallback
-
Next implementation step
- concrete next action for the user or agent
High-confidence guidance vs optional taste
Separate hard requirements from taste. Do not present preferences as laws.
Accessibility and trust requirements
These are high-confidence requirements:
- maintain readable contrast, especially in light mode
- keep focus states visible for keyboard users
- respect
prefers-reduced-motion - avoid motion-heavy decorative animation in serious or regulated products
- use color as reinforcement, not the only signal
- prefer real icons and verified brand marks over improvised visuals
Strong heuristics
These are usually right, but still depend on context:
- avoid hover effects that shift layout
- keep icon sizing consistent within one set
- use clear affordances for clickable cards or panels
- avoid weak borders and low-opacity surfaces in light mode
- keep container widths and spacing rhythm consistent
Stack-specific implementation hints
Treat these as implementation hints, not universal UI law:
- Tailwind examples like
cursor-pointer,transition-colors, ormax-w-7xlapply only when the project is using Tailwind or a similar utility approach - component-library guidance should match the actual stack
Example commands
python3 <skill-dir>/scripts/search.py "healthcare service accessible light mode professional" --design-system -p "Clinic"
python3 <skill-dir>/scripts/search.py "focus states reduced motion" --domain ux
python3 <skill-dir>/scripts/search.py "pricing cards conversion" --domain landing
python3 <skill-dir>/scripts/search.py "dense analytics layout" --stack react
Common mistakes
- jumping straight to visual taste without first identifying product type and constraints
- guessing a stack instead of verifying it from the prompt or repository
- giving a generic mood-board answer without anti-patterns or implementation consequences
- treating trend-heavy styles as automatically suitable for healthcare, finance, or admin workflows
- recommending persistence without telling the user which files will be created
- bluffing about stack support instead of checking the bundled references
Pre-delivery checklist
Before finishing, re-verify the Delivery gate at the top of this skill.
04 同仓库更多 Skills
wizard
Generate an interactive bash wizard that walks a human through a manual procedure — third-party setup, credential provisioning, a one-off migration — opening URLs, capturing values, confirming each step, and writing .env files and CI secrets (GitHub and Gitea/Forgejo Actions).
restore-test-pyramid
Analyze the project's E2E suite and push every assertion that doesn't need a real browser down to a faster integration or unit test, proving each migration honest before thinning E2E.
ponytail-debt
Harvest SHORTCUT markers from the codebase and report them grouped by file, flagging any missing upgrade paths.
humanify
Repair an inherited or human-blocked ticket for agent implementation, or finish its explicit human-only outcome.
fix-pr
Repair an existing pull request's review findings and target-branch conflicts, verify the result, and update the same open PR.
feature-milestones
Reconstruct a fragmented backlog as finishable feature milestones with explicit delivery boundaries and an approval-gated tracker update.