agentleFS
MarkBoveeMarkBovee/agent-skills-kit/skills/ask-design/SKILL.md

ask-design

Skill1 starsChanged 4 months agoMITView on GitHub

Design: Use to design, redesign, polish, or implement UI/UX for web or mobile interfaces, landing pages, dashboards, flows, or visual systems.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the repo already has a design system or visual language, preserve it unless the user asks to change it.

    line 41
  2. Very specific:

    Follow priority 1→10 to decide which category to focus on first.

    line 45
  3. Very specific:

    Start with --design-system to get comprehensive recommendations:

    line 68
  4. Very specific:

    Before presenting the design, run it through the design-review skill's anti-default filter.

    line 119
  5. Distinctive:

    test key screens at narrow mobile and common desktop widths

    line 170
  6. Distinctive:

    check empty, loading, error, hover, focus, disabled, and active states when relevant

    line 171
  7. Distinctive:

    verify there is no horizontal scroll unless intentional

    line 172
  8. Distinctive:

    keep icons, radii, shadows, borders, and spacing visually consistent

    line 173
  9. Distinctive:

    Use screenshot review as part of the default UI loop, not as a final optional pass.

    line 179
  10. Very specific:

    Default capture: 1440x900 desktop, 390x844 mobile, device_scale_factor=1, store in /tmp/opencode/ask-design-review/<run-id>/.

    line 181
  11. Distinctive:

    Prefer a strong design direction when the product allows it.

    line 191
  12. Distinctive:

    Use the search helper to accelerate decisions, then apply local judgment.

    line 193

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ASK Design

Design intelligence powered by a searchable database of 84 UI styles, 192 color palettes, 74 font pairings, 192 product types with reasoning rules, 98 UX guidelines, and 16 GSAP motion presets across 22 technology stacks.

Use this when

  • designing, building, reviewing, or polishing UI/UX for web, mobile, desktop, or cross-platform
  • choosing visual direction: colors, typography, layout, spacing, effects
  • reviewing UI for UX quality, accessibility, consistency, or interaction patterns
  • implementing navigation, animation, responsive behavior, or data visualization
  • the right layout, interaction, or visual direction is not obvious yet

If the repo already has a design system or visual language, preserve it unless the user asks to change it.

Priority categories

Follow priority 1→10 to decide which category to focus on first. Use --domain <Domain> to query full details.

PriCategoryImpactDomainMust HaveAvoid
1AccessibilityCRITICALuxContrast 4.5:1, Alt text, Keyboard nav, Aria-labelsRemoving focus rings, Icon-only buttons without labels
2Touch & InteractionCRITICALuxMin size 44×44px, 8px+ spacing, Loading feedbackHover-only interactions, Instant state changes (0ms)
3PerformanceHIGHuxWebP/AVIF, Lazy loading, Reserve space (CLS < 0.1)Layout thrashing, Cumulative Layout Shift
4Style SelectionHIGHstyle, productMatch product type, Consistency, SVG icons (no emoji)Mixing flat & skeuomorphic, Emoji as icons
5Layout & ResponsiveHIGHuxMobile-first breakpoints, Viewport meta, No horizontal scrollFixed px container widths, Disable zoom
6Typography & ColorMEDIUMtypography, colorBase 16px, Line-height 1.5, Semantic color tokensText < 12px body, Gray-on-gray, Raw hex in components
7AnimationMEDIUMux, gsapDuration 150–300ms, Motion conveys meaning, Spatial continuityDecorative-only animation, Animating width/height, No reduced-motion
8Forms & FeedbackMEDIUMuxVisible labels, Error near field, Helper text, Progressive disclosurePlaceholder-only label, Errors only at top, Overwhelm upfront
9Navigation PatternsHIGHuxPredictable back, Bottom nav ≤5, Deep linkingOverloaded nav, Broken back behavior, No deep links
10Charts & DataLOWchartLegends, Tooltips, Accessible colorsRelying on color alone to convey meaning

Working pattern

Step 1: Analyze requirements

Extract product type, target audience, style keywords, and stack (check package.json, pubspec.yaml, *.xcodeproj, etc.). Never assume a stack — a hardcoded default silently misroutes every recommendation.

Step 2: Generate design system (REQUIRED for new pages/projects)

Start with --design-system to get comprehensive recommendations:

python3 <path-to-this-skill>/scripts/search.py "<product_type> <industry> <keywords>" --design-system [-p "Project Name"]

This searches product/style/color/landing/typography domains in parallel, applies reasoning rules from ui-reasoning.csv, and returns pattern, style, colors, typography, effects, and anti-patterns.

Design Dials (optional 1-10 sliders that tune output):

python3 <path-to-this-skill>/scripts/search.py "<query>" --design-system --variance <1-10> --motion <1-10> --density <1-10>
DialLow (1-3)Mid (4-7)High (8-10)
--varianceCentered / minimalBalanced / modernBold / asymmetric
--motionSubtle micro-interactionsStandard scroll/staggerComplex choreography (pin, Flip, SplitText)
--densitySpacious (24-96px)Standard (16-64px)Dense/dashboard (8-32px)

Step 2b: Persist design system (Master + Overrides pattern)

python3 <path-to-this-skill>/scripts/search.py "<query>" --design-system --persist -p "Project Name" --output-dir "<project-root>"

Creates design-system/<slug>/MASTER.md and optionally pages/<page>.md. When building a page, read MASTER.md first, then check for page override.

Step 3: Supplement with detailed searches

python3 <path-to-this-skill>/scripts/search.py "<keyword>" --domain <domain> [-n <max_results>]
NeedDomainExample
Product type patternsproduct--domain product "entertainment social"
More style optionsstyle--domain style "glassmorphism dark"
Color palettescolor--domain color "entertainment vibrant"
Font pairingstypography--domain typography "playful modern"
Individual Google Fontsgoogle-fonts--domain google-fonts "sans serif variable"
Chart recommendationschart--domain chart "real-time dashboard"
UX best practicesux--domain ux "animation accessibility"
Landing page structurelanding--domain landing "hero social-proof"
Icon recommendationsicons--domain icons "navigation outline"
GSAP animation presetsgsap--domain gsap "scroll reveal stagger"
React/Next.js performancereact--domain react "rerender memo list"
App/native interfaceweb--domain web "accessibilityLabel touch safe-areas"

Step 4: Filter before showing

Before presenting the design, run it through the design-review skill's anti-default filter. It is the standing anti-slop gate for any UI output — catch defaulted patterns (2+ matches in one section) and rebuild the replacement decision before delivery.

Step 5: Stack guidelines

python3 <path-to-this-skill>/scripts/search.py "<keyword>" --stack <stack>

Stacks: react, nextjs, vue, svelte, astro, nuxtjs, nuxt-ui, angular, laravel, swiftui, react-native, flutter, jetpack-compose, html-tailwind, shadcn, threejs, javafx, wpf, winui, avalonia, uno, uwp.

Never do this

  • purple or violet as the default accent, especially #7c3aed, #8b5cf6, or generic purple gradients
  • Inter plus an oversized hero headline as the default type pairing
  • uniform card grids with the same border-radius, shadow, spacing, and visual weight everywhere
  • frosted glass on everything as a substitute for actual design direction
  • gradient hero banners with centered text and one obvious CTA button
  • icon + title + body copy repeated in a 3-column feature grid by reflex
  • dark mode that is only a flat near-black background with white text and no hierarchy
  • choosing a visual direction before checking what already exists in the repo
  • defaulting to Tailwind's stock palette without a reason tied to the product
  • treating desktop UI as if it will just "shrink" to mobile

Reference anchors for intentional direction when no existing system exists:

  • Linear: tight spacing, monochrome, purposeful motion
  • Vercel: brutal simplicity, strong typographic hierarchy
  • Resend: developer-product clarity, minimal chrome
  • Basement Studio: bold type, dark, textured, non-generic

Quality bar

  • clear information hierarchy
  • strong spacing rhythm and alignment
  • deliberate typography choices
  • components that feel consistent with each other
  • obvious interactive states
  • responsive behavior on mobile and desktop
  • accessible contrast, focus states, labels, and keyboard behavior

Avoid

  • safe but forgettable layouts when the product needs a stronger point of view
  • visual churn that ignores the existing system
  • overcrowded screens and weak hierarchy
  • using color alone to communicate state
  • hover effects that shift layout or feel noisy
  • low-contrast text, especially in light mode
  • fabricating search results — if search returns 0 results, retry with broader keywords, then fall back to built-in defaults and state it explicitly

Delivery checklist

  • test key screens at narrow mobile and common desktop widths
  • check empty, loading, error, hover, focus, disabled, and active states when relevant
  • verify there is no horizontal scroll unless intentional
  • keep icons, radii, shadows, borders, and spacing visually consistent
  • respect prefers-reduced-motion when animation is meaningful
  • for native/mobile app UI, read references/pro-rules.md and run through its pre-delivery checklist

Review

Use screenshot review as part of the default UI loop, not as a final optional pass.

Default capture: 1440x900 desktop, 390x844 mobile, device_scale_factor=1, store in /tmp/opencode/ask-design-review/<run-id>/. Use npx playwright screenshot or a tiny Playwright script waiting for networkidle. Delete temp screenshots after review unless explicitly needed.

Vision review prompt:

Review this UI screenshot. For each issue found: name it, locate it (component or section), and apply the fix immediately. Flag generic purple accents, uniform card grids, hero gradient banners, oversized centered headlines, frosted glass overuse, or weak visual hierarchy. Do not ask for confirmation unless the visual direction itself needs to change.

Fix the highest-signal issue first and repeat the loop instead of stacking speculative changes.

Notes

  • Prefer a strong design direction when the product allows it.
  • Preserve the existing product language when the project already has one.
  • Use the search helper to accelerate decisions, then apply local judgment.

Use with

  • develop for steady inspect-change-review loops during UI work
  • design-review to filter the finished UI for AI-default patterns before showing it
  • code-review after meaningful frontend diffs
  • verification before claiming the UI is done

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.