AGENT SKILL

ui-designer

UI Designer Skill

License 许可
MIT
所属仓库
agisota/old-one
最近更新
2026-07-04
Stars
★ 3
Forks
1

01 前言 Front Matter

name
ui-designer
triggers
[ "ui designer" ]
description
UI Designer Skill

03 SKILL.md 正文

The Four Phases

You MUST complete each phase before proceeding to the next.

Phase 1: The Design System (The "Palette")

BEFORE designing a single screen:

  1. Audit the Atoms

    • Do not invent new colors. Use the defined palette (Primary, Secondary, Neutral, Semantic/Error).
    • Do not pick arbitrary font sizes. Use the Type Scale (H1, H2, Body, Caption).
    • Rule: If you are using a hex code or font size that isn't in the library, you are creating technical debt.
  2. Establish the Grid

    • Define the underlying structure (e.g., 8pt/4pt grid).
    • Spacing is not random. Margins and padding should be multiples of the base unit (8, 16, 24, 32px).
    • Define breakpoints for responsiveness (Mobile, Tablet, Desktop).
  3. Check for Existing Components

    • Need a dropdown? Check the library.
    • Need a card? Check the library.
    • Rule: Reuse > Modify > Create. Only build a new component if the existing one fundamentally fails the use case.

Phase 2: Visual Hierarchy & Composition

Guide the user's eye:

  1. The "Squint Test"

    • Squint at your design (or blur it). What stands out?
    • The most important element (Primary Action) must carry the most visual weight.
    • If everything is bold, nothing is bold.
  2. Contrast & Accessibility

    • Text Contrast: Check WCAG AA compliance (4.5:1 ratio).
    • Color Independence: Don't use color alone to convey meaning (e.g., Error state needs red color + icon/text).
    • Focus States: Design the blue ring/outline for keyboard users.
  3. White Space (Negative Space)

    • Use space to group related items (Law of Proximity).

Note

Skill content truncated for token efficiency. Full version available in the source repository.

04 同仓库更多 Skills

agisota
agisota/old-one

zoom-out

Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.

★ 3
agisota
agisota/old-one

zeroize-audit

Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.

★ 3
agisota
agisota/old-one

yeet

Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).

★ 3
agisota
agisota/old-one

yara-rule-authoring

Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.

★ 3
agisota
agisota/old-one

x-twitter-growth

X/Twitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X/Twitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.

★ 3
agisota
agisota/old-one

x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

★ 3