Agent Skills › deepseek-ai/deepseek-harness › dsh-responsive-ui

dsh-responsive-ui

GitHub

定义 DeepSeek Harness 响应式 UI 的设计与审查规范,涵盖视口、布局决策、文本截断及图标控制等行为要求。

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

Trigger Scenarios

审查响应式客户端布局 实现移动端触摸检测与交互 检查文本截断与标题换行 评估图标控件的可用性

Install

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

Non-standard path

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

Use without installing

npx skills use deepseek-ai/deepseek-harness@dsh-responsive-ui

指定 Agent (Claude Code)

npx skills add deepseek-ai/deepseek-harness --skill dsh-responsive-ui -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-responsive-ui",
    "description": "Use when designing, implementing, or reviewing responsive client layouts, mobile and touch detection, text truncation, title wrapping, icon-only controls, mobile hover, tooltips and keyboard behavior, and focus during width changes in DeepSeek Harness."
}

Responsive client UI

For visual reviews, select the impact scope, then apply these behavioral requirements and the UI review baseline. Compare affected wrapping and layout relationships in the whole page or modal's context while preserving drafts, focus and action access. Inspect all regions for an explicit full-interface review. Examples do not define coverage; fitting the viewport alone is insufficient.

1. Minimum viewport

Use a viewport width of 390 CSS px as the primary acceptance minimum. There must be no unintended overlap, clipping, page-wide horizontal scrolling, or inaccessible primary actions. Below 390px, layout requirements may be relaxed.

2. Decision order

  1. First adjust space allocation or wrap elements onto another line; then consider text truncation, icon-only controls, or moving icons into the More menu.
  2. Primary actions and primary states must not be omitted.
  3. Do not hide conflicts through global clipping, reducing all font sizes, or shrinking click targets.
  4. Reduce font sizes only when specifically required by product design.

3. Text truncation

  1. Truncated content must be fully available on a secondary page or by opening a menu. Example: Session statistics below the input box.
  2. Truncation must not lose errors or other key information.
  3. Prefer single-line truncation for tab navigation, visible selectors, buttons, tags, and similar components.
  4. Important information that is not available on another page must be displayed in full without truncation.

4. Titles

  1. Prefer displaying page titles in full. Move the action area onto another line when necessary. Example: the Plugins page's title wrapping behavior.
  2. Prefer natural wrapping for card titles. If the number of lines is limited, the full title must remain available to view.

5. Icon-only controls

  1. Reducing a control to an icon requires both:
    • The icon clearly conveys its meaning, or the operation is familiar to users.
    • A tooltip appears on hover; add one if needed.
  2. Do not reduce “More account information” to an icon, because it navigates to a separate page.
  3. The model selector in the input box can be reduced to an icon because users see it frequently and can open its menu to switch models.
  4. Another example is the linked conversation in an automation task.

6. Mobile hover behavior

  1. Enable hover effects under @media (hover: hover), independently of viewport width. This queries the primary pointing device, not the current event; JavaScript hover handlers must ignore touch events on mixed-input devices.
  2. Tapping on a phone must not leave behind backgrounds, highlights, or action-button visibility intended only for hover. Without hover, actions remain visible or reachable through an explicit control. Keyboard users can reach and reveal the same actions.
  3. Preserve normal selected, expanded, enabled, and pressed states, as well as focus indicators. Keep these styles independent of hover capability. Do not clear focus to remove a hover effect; :focus-visible can also apply to text fields focused by touch.
  4. Preserve focus during width changes when the control remains visible and interactive. Avoid remounting controls only to change layout. If the focused control is hidden or removed, move focus to a suitable remaining control without opening the mobile keyboard unnecessarily.

7. Mobile tooltips

  1. Do not show tooltips that only provide auxiliary information such as action names or keyboard shortcuts on mobile. For example, omit the “Copy” tooltip on a copy button; tapping still performs the original action directly.
  2. Tooltips that provide supplementary explanations must support tap-to-show on mobile. For example, the information tooltip beside the Plugins page description.

8. Mobile keyboard

On mobile, do not raise the input keyboard automatically unless it is explicitly intended.

9. Input capabilities and mobile text fields

  1. Prefer CSS media features for presentation: (pointer: coarse) describes the primary pointer's accuracy, (hover: none) describes its inability to hover, and width queries select layout breaks. These queries do not detect a physical keyboard. Never branch layout on a parsed user agent.
  2. Text fields take a 16px floor under (pointer: coarse) to avoid iOS Safari's focus zoom. Fine pointers keep the existing compact field sizes. Use the field rules in packages/client/ui-plugin-manager/src/client/PluginManagerPage.module.css as the reference.

Version History

  • fcc0ad4 Current 2026-11-07 11:33

    新增 UI 设计决策和审查工作流文档

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

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-client-ui-ux/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-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
e6df843b
Indexed
2026-10-18 17:46

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