Agent Skills › trina-app/trina-ax › ui-polish

ui-polish

GitHub

用于修复 Team AX Web 应用和桌面端的视觉粗糙问题,包括填充、对齐、溢出及暗色模式等。通过 Playwright 模拟测试并截图对比,系统性优化 UI 一致性和用户体验。

.claude/skills/ui-polish/SKILL.md trina-app/trina-ax

触发场景

UI가 불편해 패딩 정렬 간격 보기 불편

安装

npx skills add trina-app/trina-ax --skill ui-polish -g -y
更多选项

非标准路径

npx skills add https://github.com/trina-app/trina-ax/tree/main/.claude/skills/ui-polish -g -y

不安装直接使用

npx skills use trina-app/trina-ax@ui-polish

指定 Agent (Claude Code)

npx skills add trina-app/trina-ax --skill ui-polish -a claude-code -g -y

安装 repo 全部 skill

npx skills add trina-app/trina-ax --all -g -y

预览 repo 内 skill

npx skills add trina-app/trina-ax --list

SKILL.md

Frontmatter
{
    "name": "ui-polish",
    "description": "Find and fix visual rough edges in the Team AX web app and desktop shell (cramped text with no padding, uneven gaps, misaligned rows, clipped or overflowing text, inconsistent buttons, dark-mode and phone-width problems). Use for \"UI가 불편해\", \"패딩\", \"정렬\", \"간격\", \"보기 불편\", UI polish passes."
}

UI polish pass (Team AX)

Goal: the app should feel calm and even. Fix what a person notices while using it; do not redesign, rebrand or add features.

1. See it first, never fix blind

  • Run the web app against the mock server (no real data, no real engines): see web/playwright.config.ts and web/test/mock/server.ts for how the e2e tests start it (bunx playwright test in web/). For a free-running instance, start the same mock + Vite the config starts and drive it with the Playwright MCP tools.
  • Sign in as each role the mock has (owner, admin, member) and walk every screen: Home, Chat (empty, long conversation, streaming answer, attachments, file cards, artifact panel, browser panel, engine picker, "다른 모델로 다시 시도"), Files (list, empty folder, file view, version history, trash), Projects, Skills, Settings (all tabs incl. 앱), Admin (members, groups, folder rules, engines incl. API engine form, usage, audit, system), Auth (login, forced password change, setup).
  • For each screen take screenshots in this matrix, at minimum: desktop 1440×900 and phone 390×844; light and dark (emulateMedia colorScheme); ko (default for these users) and spot-check en (longer strings). Save them under web/test-results/ui-polish/before/ (gitignored) and look at every one.
  • Write a short list of findings before editing: screen, what is wrong, where in the code.

2. What to look for

  • Padding: text touching a border, card edge, panel edge or the screen edge; headings flush against content; buttons whose label touches the edge. Containers holding text need inner padding (cards ≥ 12–16px, panels/sections 16–24px, phone gutter 16px).
  • Rhythm: one spacing scale (Tailwind 1/1.5/2/3/4/6/8). Same kind of element → same gap everywhere (list rows, form fields, section headings). Vertical space above a heading larger than below it.
  • Alignment: icons vertically centered with text (items-center), left edges of stacked blocks lining up, numbers right-aligned in tables, labels and inputs aligned in forms.
  • Text: Korean wraps by word (break-keep / word-break: keep-all) and does not split mid-word; long file names and URLs truncate with ellipsis plus a title, or wrap with break-all only where that is the content; line-height comfortable for body text (≈1.5–1.7) and tighter for headings; no text clipped by fixed heights.
  • Overflow: no horizontal page scroll at 390px; tables scroll inside their own box; dialogs fit the phone screen and scroll inside; sticky composer never covers the last message.
  • Consistency: buttons of the same role share size, radius and padding (ui.tsx primitives first); same radius family for cards/inputs/dialogs; hover/focus states present and visible (keyboard focus ring).
  • Dark mode: every color through the --c-* tokens in web/src/index.css, no hard-coded hex/white/black that breaks in dark; enough contrast for text-faint on bg-subtle.
  • Empty and loading states: centered, padded, with one line of explanation, not a bare blank area.

3. How to fix

  • Prefer fixing the shared primitive (web/src/components/ui.tsx, layout components) over patching each screen; match the surrounding Tailwind style and the existing tokens. No new UI library, no new colors outside the tokens.
  • Small, reviewable commits grouped by area ("Chat: padding around answers and file cards", …), messages in the repo's style.
  • Don't change copy meaning, flows, test ids (data-testid), roles/aria labels, or anything about permissions.
  • Desktop shell (desktop/src/ui/*.ts, Electron browser pane / settings panel) follows the same rules; check it if it shares the issue.

4. Prove it

  • Same screenshot matrix again into web/test-results/ui-polish/after/; compare before/after for every changed screen, and check that nothing else moved unexpectedly.
  • bun run typecheck at the repo root, bunx playwright test in web/ (all e2e, incl. a11y.spec.ts), and bun test tests/unit if anything outside web/ changed. A screenshot-based e2e that changes because of an intended visual change: update it deliberately and say so.
  • Report: the findings list with ✓ fixed / – left (and why), before/after screenshot paths for the most visible changes.

版本历史

  • 8df1107 当前 2026-11-23 11:11

同 Skill 集合

examples/skills/brand-brief/SKILL.md
examples/skills/expense-review/SKILL.md
examples/skills/meeting-summary/SKILL.md
examples/skills/new-hire-guide/SKILL.md
examples/skills/sales-follow-up/SKILL.md
examples/skills/weekly-team-report/SKILL.md
resources/skill-packs/general/en/card-news/SKILL.md
resources/skill-packs/general/en/intro-deck/SKILL.md
resources/skill-packs/general/en/promo-video/SKILL.md
resources/skill-packs/general/ko/card-news/SKILL.md
resources/skill-packs/general/ko/intro-deck/SKILL.md
resources/skill-packs/general/ko/promo-video/SKILL.md
resources/skill-packs/work/en/contract-review/SKILL.md
resources/skill-packs/work/en/customer-reply/SKILL.md
resources/skill-packs/work/en/humanizer/SKILL.md
resources/skill-packs/work/en/meeting-notes/SKILL.md
resources/skill-packs/work/en/team-report/SKILL.md
resources/skill-packs/work/es/contract-review/SKILL.md
resources/skill-packs/work/es/customer-reply/SKILL.md
resources/skill-packs/work/es/meeting-notes/SKILL.md
resources/skill-packs/work/es/team-report/SKILL.md
resources/skill-packs/work/id/contract-review/SKILL.md
resources/skill-packs/work/id/customer-reply/SKILL.md
resources/skill-packs/work/id/meeting-notes/SKILL.md
resources/skill-packs/work/id/team-report/SKILL.md
resources/skill-packs/work/ja/contract-review/SKILL.md
resources/skill-packs/work/ja/customer-reply/SKILL.md
resources/skill-packs/work/ja/meeting-notes/SKILL.md
resources/skill-packs/work/ja/team-report/SKILL.md
resources/skill-packs/work/ko/contract-review/SKILL.md
resources/skill-packs/work/ko/customer-reply/SKILL.md
resources/skill-packs/work/ko/humanizer/SKILL.md
resources/skill-packs/work/ko/meeting-notes/SKILL.md
resources/skill-packs/work/ko/team-report/SKILL.md
resources/skill-packs/work/zh/contract-review/SKILL.md
resources/skill-packs/work/zh/customer-reply/SKILL.md
resources/skill-packs/work/zh/meeting-notes/SKILL.md
resources/skill-packs/work/zh/team-report/SKILL.md

元信息

文件数
0
版本
2b4496c
Hash
45749983
收录时间
2026-11-23 11:11

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-24 00:45
浙ICP备14020137号-1