AGENT SKILL

design-review

Review implemented UI changes against the reference app (../<reference-app>) as a TV designer — visual consistency, focus styles, colors, fonts, spacing, and TV-specific UI conventions. Use after a bug fix or UI change.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
design-review
tags
[ "smarttv", "design", "ui", "review", "react" ]
type
skill
agents
[ "claude", "codex", "cursor", "gemini", "copilot" ]
author
Aliendreamer
version
0.1.0
description
Review implemented UI changes against the reference app (../<reference-app>) as a TV designer — visual consistency, focus styles, colors, fonts, spacing, and TV-specific UI conventions. Use after a bug fix or UI change.
user-invocable
true
disable-model-invocation
false

03 SKILL.md 正文

TV Design Review

Act as a TV UI designer reviewing the implementation against the reference app at ../<reference-app>.

Input: File paths of changed components. If omitted, infer from recent git changes.


Steps

  1. Identify changed files

    If no paths provided, run:

    git diff --name-only HEAD
    

    Filter to UI files in src/components/ and src/app/. If nothing, run:

    git diff --name-only
    
  2. Find reference equivalents

    For each changed file:

    • Search ../<reference-app>/src/ for components with matching or similar names
    • Use Glob patterns like ../<reference-app>/src/**/*Login*, ../<reference-app>/src/**/*Button*, etc.
    • Read both the implementation file and the best-matching reference file
    • If no match found, check ../<reference-app>/src/ for overall layout and palette conventions
  3. Visual comparison checklist

    A. Colors & Theme

    • [ ] Focus style uses var(--hot-red) — NEVER white or default blue
    • [ ] Background colors use correct CSS custom properties (--bg-primary, --bg-surface, etc.)
    • [ ] Text colors match reference palette (light on dark)
    • [ ] Error states use appropriate contrast colors

    B. Typography

    • [ ] All visible text is ≥ 24px (TV minimum — no exceptions)
    • [ ] Font weights and families consistent with reference
    • [ ] Line-height and letter-spacing appropriate for 10-foot reading distance

    C. Spacing & Layout

    • [ ] Padding and margin values are proportional to 1920×1080 scale
    • [ ] Layout structure (flex/grid direction, alignment) matches reference intent
    • [ ] Element sizing meets minimum focus target: 80px height for interactive elements
    • [ ] Critical content respects 5% safe-area inset from screen edges

    D. Focus Styles (TV-critical)

    • [ ] Flow buttons: red background (var(--hot-red)) when focused — no outline on buttons
    • [ ] Credential inputs: outline: 3px solid var(--hot-red) when focused
    • [ ] VKB keys: outline: 3px solid var(--hot-red) when focused
    • [ ] Toggle pills: outline: 3px solid var(--hot-red) on the pill only (not the whole row)
    • [ ] No outline: none without a replacement focus indicator
    • [ ] No :focus-visible (unsupported in Chromium 70 — use :focus)

    E. Component Structure

    • [ ] Component sections and hierarchy match reference (header, body, footer zones)
    • [ ] Animations are present where reference has them (transitions, fades)
    • [ ] No layout shifts during state transitions (loading → loaded)
    • [ ] Overlay/modal positioning matches reference (centered, bottom-anchored, etc.)

    F. TV UI Conventions

    • [ ] High contrast between foreground and background elements
    • [ ] Focused element is unmistakably highlighted — no subtle focus indicators
    • [ ] VirtualKeyboard always anchors to bottom (position: fixed; bottom: 0) — never full-screen
    • [ ] input-mode-pointer / input-mode-dpad body classes respected in CSS
    • [ ] data-pointer-interactive attribute present on interactive containers (for Magic Remote)
  4. Report findings

    Format output as:

    ## Designer Review: <component/screen name>
    
    ### Visual Match: <PASS | NEEDS WORK>
    
    ### Critical Visual Issues (must fix)
    - [file:line] Description — what it looks like vs what it should look like
    
    ### Style Suggestions (nice to have)
    - Description
    
    ### Reference Comparison
    - A. Colors: ✓/✗ <notes>
    - B. Typography: ✓/✗ <notes>
    - C. Spacing & Layout: ✓/✗ <notes>
    - D. Focus Styles: ✓/✗ <notes>
    - E. Component Structure: ✓/✗ <notes>
    - F. TV UI Conventions: ✓/✗ <notes>
    
    ### Reference file used: <path or "no match found">
    
  5. Offer to fix

    After the report, if there are critical issues:

    "Want me to fix the styling issues?"

    If yes: apply only the reported fixes — no surrounding refactors, no logic changes.


Guardrails

  • Compare visual/styling only — never change logic, data fetching, or navigation behavior
  • Reference app (../<reference-app>) is a SPA — do NOT adopt its routing, state, or data patterns
  • Focus styles MUST follow project convention: red (var(--hot-red)), never white or browser default
  • VKB is always a bottom panel — flag any implementation that makes it full-screen
  • If reference has no matching component, apply general TV UI conventions and flag it
  • Only fix what was reported — no extra cleanup

04 同仓库更多 Skills

Aliendreamer
Aliendreamer/ai.skills

setup-git-credentials

Use when the user wants Git to stop using a PAT in the remote URL or a plain-text credential store, wants Git Credential Manager (GCM) with OAuth for GitHub, GitLab or Azure DevOps on Ubuntu/Debian or WSL2, or sees 'cannot persist Microsoft authentication token cache securely' / 'using plain-text fallback token cache'. Asks whether this is WSL, which Git hosts and which parts to set up, checks what is already done, sets git config itself after confirmation and hands every sudo or interactive step (apt, gpg, pass init, secret-tool, first sign-in) to the user. Bundles gcm-keyring-session.sh to start or reuse a D-Bus + GNOME Keyring session without systemd. Trigger terms - git credentials, PAT in URL, token in remote, git credential manager, gcm, github auth, gitlab auth, azure devops auth, pass, gpg store, secret service, gnome keyring, msal token cache, wsl git auth.

★ 0
Aliendreamer
Aliendreamer/ai.skills

setup-flow

Use when onboarding a repository or agent to the standard development workflow — installs the required skills from the ai.skills store, installs or updates a MANDATORY workflow block in the agent's instruction file (CLAUDE.md, AGENTS.md, GEMINI.md, Copilot or Cursor rules), AND configures .claude/settings.json with Serena MCP, sandbox, permissions, hooks, and plugins. Hooks are wired to the context-hooks kit, which speaks once per session instead of injecting text on every turn; re-running replaces earlier inline hooks rather than adding to them. Also writes .vscode/settings.json to hide the empty shell dotfiles an agent sandbox leaves in the repo root. Use when setting up a new repo, switching agents, or refreshing the workflow rules.

★ 0
Aliendreamer
Aliendreamer/ai.skills

developer-flow

Use when starting, implementing, or completing any feature, change, or fix in any software project — at feature start, before writing code, and before claiming a change is done, fixed, working, or green. A strict ordered flow with a gate per phase; stack-agnostic and repo-agnostic (OpenSpec optional, gates discovered).

★ 0
Aliendreamer
Aliendreamer/ai.skills

daily-log-check

Use to check whether everyone on duty filed their Azure DevOps time-log Tasks for a given day, per platform — reports tickets, hours and activities per person against the headcount you give. Fires on "did everyone log yesterday", "check web 4 mobile 3", "who is missing for 8.09", "daily log check". Read-only. Org and project come from configuration.

★ 0
Aliendreamer
Aliendreamer/ai.skills

daily-activity-log

Use at end of day to file the Azure DevOps time-log Tasks — one closed Task per Activity worked that day, Original Estimate in decimal hours, parented to the current sprint's Feature. Fires on "log my day", "fill my tasks", "close my daily tasks", "I had 2h meetings and 4h development". Org and project come from configuration.

★ 0
Aliendreamer
Aliendreamer/ai.skills

conventional-commits

Write commit messages that follow the Conventional Commits specification so tooling can derive versions and changelogs.

★ 0