app-ux-paradigms
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "app-ux-paradigms":https://skillpi.com/zh/skills/deepskill-b23cb50084a373db4f158bd3d9743aae408185427b5048862fcfd93a9ae30af9。安装前核对上游来源和版本:https://github.com/swyxio/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
为键盘快捷键、焦点管理、对话框、覆盖层、菜单、表单及异步控件定义并应用常规交互行为。适用于在构建或审查这些交互机制时使用。不适用于一般页面美学、信息架构或可视化质量的评估。
介绍来源: third_party · swyxio · 0.0.1 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: app-ux-paradigms
description: >-
Apply conventional interaction behavior for keyboard shortcuts, focus,
dialogs, overlays, menus, forms, and asynchronous controls. Use when those
interaction mechanics are being built or reviewed; do not use for general
page aesthetics, information architecture, or visualization quality.App UX: keyboard shortcuts and common paradigms
User preference
Match desktop-app and modern web conventions by default. Users should not need to hunt for close affordances or discover shortcuts only by accident.
Apply only the patterns relevant to the interaction being built or reviewed. This skill does not authorize unrelated UI changes, and its tables are defaults, not a product-wide acceptance checklist. Accessibility, prevention of unintended destructive action, and avoiding silent data loss remain blocking where the touched interaction creates those risks. Stop when the requested interaction works in its relevant input and state variants; report adjacent consistency improvements as follow-ups.
Pair with the sync-url-navigation skill for bookmarkable nav/filter state.
Keyboard shortcuts
Common expectations for touched interactions
| Key / chord | Expected behavior |
|---|---|
| Esc | Close the topmost overlay: modal, drawer, popover, context menu, inline edit. Do not close if a destructive save is in flight—block Esc while saving or show a clear state. |
| ⌘/Ctrl+Enter | Submit primary form or send message in chat/composer (when focus is in a text field). |
| Enter | Submit single-line fields; in multi-line fields, Enter = newline unless Shift+Enter is documented as send. |
| ⌘/Ctrl+letter | Use for global toggles (e.g. ⌘/Ctrl+J = open assistant panel). Always support both metaKey (Mac) and ctrlKey (Windows/Linux). |
Recommended implementation notes
- Attach document-level
keydownlisteners when an overlay opens; remove on unmount. - Call
event.preventDefault()on Esc when handling it so nested browser UI does not steal the key. - Show shortcuts in
titletooltips on icon buttons (e.g.Close (Esc)). - Surface the same shortcuts in an in-app Help section with
<kbd>styling. - Avoid shortcut conflicts: check
!event.shiftKey/!event.altKeywhen the chord is specific (e.g. Ctrl+J vs Ctrl+Shift+K).
Optional but valued
| Pattern | Use when |
|---|---|
| ⌘/Ctrl+K | Command palette / quick open (if the app has one) |
| ⌘/Ctrl+Shift+K | Secondary global action (e.g. clear chat / reset context)—only if distinct from Ctrl+K |
| ? | Toggle keyboard shortcut help (when not typing in an input) |
| / | Focus search (when not in an input) |
Modals and overlays
| Paradigm | Expected behavior when applicable |
|---|---|
| Esc | Closes modal (see above). |
| Backdrop click | Clicking outside may close lightweight dialogs; keep explicit confirmation dialogs or forms with unsaved work open when dismissal would be unsafe. |
| × control | Top-right (or consistent corner), type="button", labeled title with Esc hint. |
| Click propagation | stopPropagation on panel content so inner clicks do not close. |
| Focus | Move focus into modal on open; return focus to trigger on close when practical. |
| Scroll | Lock or contain body scroll for full-screen overlays; allow scroll inside tall forms. |
Use a consistent close model across comparable overlays. Do not add every close mechanism when it would discard unsaved work or weaken an explicit confirmation.
Menus and transient UI
- Context menus: Esc closes; click outside closes (
mousedownon document). - Hover cards / tooltips: Do not trap Esc unless they are modal; dismiss on pointer leave or Esc if sticky.
- Inline edit (e.g. grid cell): Esc cancels edit without saving.
Forms and async actions
- Disable primary submit while saving; label button
Saving…. - Show inline error under the form, not only
alert. - Required fields: when the touched form has them, validate on submit and focus the first invalid field.
- Clear resets filters to empty defaults and syncs URL if using query-param routing.
Lists, tables, and selection
- Row click opens editor or expands detail (consistent per table).
- Shift+click multi-select when desktop bulk selection is in scope; show selection chrome and a bulk action bar.
- ID chips: click copies to clipboard with brief status feedback (
Copied). - Empty states: explain why no rows (no data vs no matches vs filters too narrow).
- Unavailable states: when primary content cannot be produced, do not show
the normal success workspace with irrelevant export, share, filter, or edit
controls. Explain the missing prerequisite and offer the most useful recovery
action. Analytical publishability belongs to
data-visualization-quality. - Load more for long tables instead of rendering thousands of rows at once.
Search and filters
- Use
type="search"where appropriate. - Changing filters resets pagination/limit to the first page.
- Debounce URL sync is optional; immediate URL sync is fine for admin tools.
Feedback and safety
- Status line or toast for export, save, copy, undo—not silent success.
- Undo for reversible schedule/data edits when the backend supports it.
- Destructive actions (delete, rollback): confirm in-modal or
confirm(); never rely only on icon buttons. - Role-gated UI: hide or disable edit actions for viewers; explain in help text.
Accessibility baseline
- Visible focus rings on interactive elements.
- Buttons for actions; avoid
div onClickwithoutroleand keyboard support. - Meaningful
title/aria-labelon icon-only controls. - Do not rely on color alone for status (use text labels or pills).
Selective review lens
Select only items relevant to the changed interaction. Unselected items are not failed gates, and a review request does not authorize implementation.
- [ ] Esc closes overlay / menu / inline edit
- [ ] Backdrop + × use same close handler
- [ ] Global shortcuts use ⌘ and Ctrl
- [ ] Shortcuts documented in tooltips and Help
- [ ] Submit disabled while saving; Esc blocked if close would lose in-flight save
- [ ] Click-outside closes non-modal menus
- [ ] Primary action discoverable without reading source
Anti-patterns
- Ordinary dismissible modal with only × and no keyboard or safe outside-dismiss path
- Shortcut only in README, not in UI
- Mac-only
metaKeywith noctrlKey - Esc closes modal but leaves a nested context menu open underneath
- Silent failures on save/export/copy
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供键盘快捷键、焦点管理、对话框等交互范式的权威指南
- 覆盖高频刚需场景,显著提升开发与设计效率
- 内容详实且结构化强,受众广泛
亮点
- description 明确界定适用范围与排除范围
- 边界清晰,避免误触或漏触
- skill_body 进一步细化使用时机
亮点
- 章节划分清晰,涵盖完整交互生命周期
- 表格总结预期行为,便于快速查阅
- 含选择性检查清单作为出口条件
亮点
- 建议基于通用 Web/桌面规范,无外部依赖
- 覆盖关键异常处理与无障碍要求
- 反模式清单帮助规避常见陷阱
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。