Agent Skills › deepseek-ai/deepseek-harness › dsh-client-ui-ux

dsh-client-ui-ux

GitHub

指导客户端UI设计与审查的规范,涵盖视觉基础、布局间距及交互状态检查。根据变更影响程度提供分级审查流程与最小化验证要求,确保界面一致性与回归风险可控。

.agents/skills/dsh-client-ui-ux/SKILL.md deepseek-ai/deepseek-harness

Trigger Scenarios

进行客户端UI设计或修改 审查UI变更的影响范围

Install

npx skills add deepseek-ai/deepseek-harness --skill dsh-client-ui-ux -g -y
More Options

Non-standard path

npx skills add https://github.com/deepseek-ai/deepseek-harness/tree/master/.agents/skills/dsh-client-ui-ux -g -y

Use without installing

npx skills use deepseek-ai/deepseek-harness@dsh-client-ui-ux

指定 Agent (Claude Code)

npx skills add deepseek-ai/deepseek-harness --skill dsh-client-ui-ux -a claude-code -g -y

安装 repo 全部 skill

npx skills add deepseek-ai/deepseek-harness --all -g -y

预览 repo 内 skill

npx skills add deepseek-ai/deepseek-harness --list

SKILL.md

Frontmatter
{
    "name": "dsh-client-ui-ux",
    "description": "Design and review DSH user-visible UI: alignment, spacing, icons, visual foundation, geometry and interaction. Use before UI changes in client, experimental and app packages; verify affected rendered results before handoff."
}

DeepSeek Harness UI development

Use this skill as the entry point for UI design and review. It owns the workflow, visual foundation, geometry and interaction guidance; alignment, spacing and icon details live in its references below. Load only the references relevant to the task; examples explain judgment, not coverage.

UI change workflow

Use applicable design rules for UI changes, including visible loading, error, disabled, expanded and focus states. Choose effort by impact and regression risk; ordinary development does not require a full design audit.

Change Required inspection Additional records
Local copy, icon reuse, color or spacing Inspect the actual page, affected neighbors and relevant states; run applicable tests. Apply the minimum checks below. Briefly report results and material gaps. No separate plan, axis drawing, scene inventory, source snapshot or screenshot report is required by default.
Page layout, shared components or global styles Identify affected relationships and consumers; inspect distinct affected layout, content and state variants in assembled pages. Reuse evidence only for justified equivalents. Briefly state scope. Preserve the starting version and comparable images when requested or needed to explain broad changes or assess regression risk.
Explicit comprehensive review Cover the agreed regions and relevant states; distinguish inspected results, defects and uninspected scope. Use the review cookbook for coverage records, findings and supporting evidence. A comparison request alone does not require a product-wide audit.

Minimum checks for affected UI

These checks apply even to small changes; optional documentation does not make inspection optional. Open the actual page and inspect the changed element with its directly affected neighbors, rather than judging CSS or an isolated component alone.

  • Color or opacity: inspect light and dark themes, including affected foreground/background and state combinations.
  • Layout, spacing, typography or sizing: inspect a constrained container and long or wrapping content; check both sides of a changed breakpoint, alignment, clipping and access to actions.
  • Interaction: exercise the changed path and affected focus, disabled, loading, error, expanded and overlapping states. Check only states the change can affect, not every possible combination.
  • Shared components or global styles: trace affected consumers and inspect distinct assembled layouts and states; one isolated example cannot establish coverage.

If a required scene is unavailable, state what was not checked, why and how it can be verified; a labeled production-component fixture can provide partial evidence, not an actual-page pass. Do not claim verification complete while required checks remain missing. Run the original applicable tests; source inspection and passing tests alone do not establish the rendered result.

Read unchanged owners once; consult examples for uncertain judgments. Inspect relevant states and actual usage sizes, not a fixed screenshot count or every width × theme × state combination. Batch related edits and reuse a current application instance and valid evidence. Documentation-only changes and refactors with evidence of unchanged rendering need no new UI captures; state that basis.

When a before/after comparison is needed, preserve the actual starting implementation, including uncommitted work, and use comparable capture conditions. Never recreate a missing before image and present it as an original. Protect existing work regardless of whether extra evidence is needed.

Before handoff, review or push, check only new cumulative interactions, missing required checks and invalidated evidence; do not repeat completed verification at each stage. Report results and material gaps accurately. Do not claim full coverage or visual acceptance when required scenes or checks are missing.

These effort levels change only the additional design-review procedure. Existing client test requirements, GUI PR GIF requirements, and designer/product approval still apply, including to local changes when their original triggers are met.

Select the rule owners

For layout changes, read the alignment and spacing references. Read the icon reference when selecting, drawing or reviewing artwork, or when adding, changing or reviewing icon buttons, icon-only actions or informational icons, including reuse without artwork changes. Other tasks use the relevant sections below. Do not load all references by default. Existing responsive and official-artwork skills retain their scopes; numeric scales stay with their implementation owners.

Decision needed before implementation Section or reference
Shared axes, text starts, centering, tree indentation, complete icon boxes Alignment
Semantic groups, inner/outer gaps, repeated rhythm, section separation Spacing and grouping
Interface icon selection and artwork; icon buttons and icon-only actions, tooltips, informational hover content, accessible labels and focus Icons
Color, typography and existing treatments Visual foundation; Web styling owns tokens/materials
Component geometry, nested contours and state fills Geometry decisions; radius standard owns values and exceptions
Feedback lifetime, loading, overlays, scrolling and platform clearance Interaction and feedback; error handling owns failure guarantees
Responsive layout rules, mobile-specific interactions, and truncation/ellipsis rules for components like text and buttons Responsive UI
Official plugin artwork and feature previews Official artwork
Copy, locale ownership and component semantics Prose standard, locale ownership, primitives catalog
Density, information hierarchy, combined control states and component choice Principle reference sections 3–6

Reuse before adding

Extend existing components, containers and interactions when the capability fits. Register right-sidebar content through a slot in the existing sidebar; do not create a separate sidebar. Follow icon reuse. Before restructuring, read client instructions and client defensive patterns for component/state ownership and layering.

Visual foundation

  • Reuse tokens, values and complete treatments from the target page or nearest established sibling before adding literals; Plugins is the usual full-page reference.
  • Verify colors in light and dark themes; keep ink/background pairs readable, especially dimmed text.
  • Feature CSS you add or change uses font weight ≤500; emphasize with size or ink. ui-theme markdown typography tokens are the exception.
  • Use theme typography roles, then the page's scale, then a comparable page's size/spacing ratios. Do not invent a size for a single element. Peers share sizes; keep the scale small (13px is the established row/detail size).
  • Apply alignment and the same-foreground rule to icon/text relationships, including value chevrons and search prompts.

Component geometry

Choose component role and size variant, then its container relationship. Compare height, radius, curve, inset and material together; equal radii alone do not establish coherence, and wrapping/expansion alone does not justify larger radii. Radius standards own values and exceptions.

  • Inset: coordinate inner/outer curves and inset. Radius subtraction is exact for concentric circular arcs; for superellipses, subtraction is only a nominal sizing rule, so inspect diagonal whitespace as well as side gaps.
  • Flush or adjoining: the enclosure owns exposed corners; internal joins stay square. Hover fills and pseudo-elements follow that contour without clipping menus or focus.
  • Independent child card/group: use its own role/size tier, not the dialog radius or subtraction of all parent padding.
  • Circles/capsules: preserve shape, including avatar container and image, using the theme's round-curve exception; ordinary controls use the shared curve.

Keep fills, strokes and overlays geometrically stable across hover, pressed, selected, loading and disabled states. Reuse card/elevation materials: shadows already include neutral hairlines; retain semantic state-colored borders without doubling neutral edges.

Compare related controls, including small selection controls, at actual size in affected themes/states and relevant long-label/narrow layouts. Static checks reject unsupported declarations; rendered comparison judges fit. Consult geometry cases when needed. Apply to scoped changes, not bulk restyling.

Interaction and feedback

Feedback surfaces

Follow error handling. Choose feedback by message lifetime:

  • Transient success/failure uses the app-wide Toast, with state and rendering in a host that survives the reporting panel/tab, such as a shell.overlay entry. A deletion may close its source panel; a Toast owned by that panel would disappear with it. Do not toast pending states.
  • Failed operations retain visible data; failed deletion keeps the row.
  • Surface-owned failures use in-place notices: query failure with Retry or field validation. Keep a compact notice beside populated content; only empty panels center a full error state.
  • Use short plain-language errors, preferably one sentence, without internal jargon except necessary diagnostic codes. Chinese notices of at most two sentences omit the trailing 句号(。). Reserve space or overlay notices so neighbors do not shift.

Loading states

Lists use skeletons; other page-level loads center a bare spinner. Keep one loading treatment per page/component, including concurrent regions. Add loading text only when context requires it.

Overlays and menus

Before merge, verify every menu, popover and tooltip closes on outside click (and Escape when focusable), fits the viewport with an edge margin, and escapes ancestor clipping, containing blocks and neighbor coverage, using a portal to body when needed. Flip only into a side that fits; never oscillate when neither fits.

Use shared scrollbar styles and a small inset; bars must stay inside containers without being clipped by rounded corners or edges.

Platform window adaptation

New headers/pages account for macOS and Windows chrome. Menu, Modal and overlay primitives consume --dsh-frame-top-clearance; fix local macOS insets with scoped [data-platform='darwin'] overrides and stylesheet assertions, not global-variable changes. Review the total clearance + page inset.

Check the rules together

Inspect the composition, then affected internal/cross-group relationships, distant peers and expanded content. Match both endpoints of axes; compare complete icon boxes before optical adjustments. Preserve popup/focus visibility, field feedback, narrow-layout actions and drafts. Check affected theme materials/platform backdrops. Full-interface claims cover all regions; fixtures/crops establish only what they render.

Maintain one owner per rule

Update the owning section or reference within this skill; do not expose its design specialties as separate skills. Keep examples in the case reference; AGENTS and PR workflows link here instead of duplicating rules.

Rule changes state applicability, decisions, exceptions and observable verification; update a distinguishing case and remove superseded statements elsewhere. Declare migration versus future-edit scope without implying existing UI conforms. Automate only mechanically decidable checks. Local review tools consume repository rules and retain source/rule revisions rather than maintaining another standards copy.

Design review escalation

  • A PR with extensive UI changes, or any clearly user-perceivable change to UI or interaction, must get a designer or product review. When no approver holds that role, suggest requesting one from the design/product reviewers (roster as of 2026-09: yx zhang, yifffan, zhangziya, gaokaige; update this list here when membership changes).

Version History

  • fcc0ad4 Current 2026-11-07 11:32

    重构为统一入口,整合UI设计参考与审查工作流,明确基于变更影响的分级检查标准及最小化验证要求。

  • ce7073d 2026-11-02 10:36
  • 687f282 2026-10-18 17:45

    新增响应式客户端 UI 标准,定义窄屏适配规则(如最小宽度、截断、移动端交互),并将该标准链接至本 Skill。

  • 477b4f4 2026-09-27 11:59

Same Skill Collection

.agents/skills/agent-experience/SKILL.md
.agents/skills/cordis-styling-nitpicking/SKILL.md
.agents/skills/dsh-archive-agent-notes/SKILL.md
.agents/skills/dsh-ci-test-reliability/SKILL.md
.agents/skills/dsh-code-review/SKILL.md
.agents/skills/dsh-create-upgrade-guide/SKILL.md
.agents/skills/dsh-cua-macos-signing/SKILL.md
.agents/skills/dsh-doc-site-sync/SKILL.md
.agents/skills/dsh-doc-standards/SKILL.md
.agents/skills/dsh-error-handling/SKILL.md
.agents/skills/dsh-find-simplifications/SKILL.md
.agents/skills/dsh-merging-stacked-prs/SKILL.md
.agents/skills/dsh-official-plugin-artwork/SKILL.md
.agents/skills/dsh-pr-description/SKILL.md
.agents/skills/dsh-pre-push-checks/SKILL.md
.agents/skills/dsh-prose-standard/SKILL.md
.agents/skills/dsh-responsive-ui/SKILL.md
.agents/skills/dsh-session-projection/SKILL.md
.agents/skills/dsh-speed-up-perf/SKILL.md
.agents/skills/dsh-translate-docs/SKILL.md
.agents/skills/dsh-trim-cot-leakage/SKILL.md
packages/preset/agent-preset/skills/agent-experience/SKILL.md
packages/preset/agent-preset/skills/cordis-composition-reference/SKILL.md
packages/preset/agent-preset/skills/cordis-plugin-development/SKILL.md
packages/preset/agent-preset/skills/editing-cordis-compositions/SKILL.md
packages/sandbox/sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/SKILL.md
packages/skill/skill-office/assets/office-docx/SKILL.md
packages/skill/skill-office/assets/office-export-pdf/SKILL.md
packages/skill/skill-office/assets/office-pptx/SKILL.md
packages/skill/skill-office/assets/office-recalculate/SKILL.md
packages/skill/skill-office/assets/office-render/SKILL.md
packages/skill/skill-office/assets/office-xlsx/SKILL.md
packages/skill/skill-office/assets/office/SKILL.md
.agents/skills/dsh-doc/SKILL.md
.agents/skills/record-browser-gif/SKILL.md

Metadata

Files
0
Version
fcc0ad4
Hash
5b73d58e
Indexed
2026-09-27 11:59

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-08 07:29
浙ICP备14020137号-1