Design & media

interaction-design-sop

Try it

Frontend interaction resilience & defense SOP for engineering implementation. Covers 7-step pre-coding interaction checklist: user intent & task friction reduction, P0/P1/P2 information hierarchy triage, 4-state resilience (empty, loading, error, destructive confirmation), perceived performance (optimistic UI, skeletons), power user shortcuts, and layout resilience trade-offs. Use when: implementing UI views/forms/dashboards in code, designing component interaction logic, handling edge cases and states, or conducting frontend UX resilience reviews. Keywords: 交互细节, 状态设计, 边界情况, 异常处理, 交互审查, 骨架屏, 乐观更新, 防错设计, interaction design, edge cases, error state, empty state, loading state, UI review, UI resilience.

What it does

Interaction Design SOP — Frontend Engineering Resilience Framework

The skill document

Interaction Design SOP — Frontend Engineering Resilience Framework

A rigorous pre-coding interaction resilience & defense SOP for frontend engineers and interaction designers. Focuses on interface completeness, error resilience, and edge-case handling before writing code.

[!NOTE] System Collaboration Guidelines:

  • Product UX Lifecycle: For end-to-end product design (user scenarios, business metrics, journey maps, and wireframe prototypes), refer to product-ux-workflow.
  • Component Implementation: For code implementations, consult custom-ui-spec (for headless components like shadcn/ui and Radix) or ui-framework-spec (for pre-built libraries like Ant Design and Element Plus).

When designing a UI, work through these 7 steps before writing code. Each step constrains the next — decisions compound, so get the early steps right.

Step 1: Intent & Context

Define who is using this and what they're trying to accomplish. If you can't state the primary goal in one sentence, you don't understand the task yet.

  • What specific scenario brings the user to this interface?
  • What is the single most important action they need to complete?

Output: a clear user scenario and the one primary goal. Reject feature creep at this stage — secondary goals come later.

Step 2: Task Flow Optimization (Friction Reduction)

Map the happy path from entry to completion. Then cut it.

  • List every click, decision, and input the user must make
  • Eliminate steps: smart defaults, pre-fill from context, merge multi-step forms into one
  • A step that can be automated should be automated

Target: the minimum number of actions to complete the primary goal. Each remaining step must justify its existence.

Step 3: Information Architecture

Triage every piece of information into three tiers:

P0 — Vital. The content users spend 80% of their time on. Gets the best screen real estate, largest visual weight, and appears without any user action. If you had only one screenful to show, this is what stays.

P1 — Secondary. Supporting context and actions. Available without hunting, but never competes with P0 for attention. Smaller, lower contrast, positioned around P0.

P2 — Progressive. Edge-case settings, advanced options, low-frequency data. Hidden behind disclosure: collapsible sections, hover tooltips, "advanced" toggles, or secondary tabs. Default: hidden.

For each piece of data on the screen, assign a tier. If you can't decide, it's P2.

Step 4: Resilience & Edge Cases

Design for three states every view must handle:

Empty state. What shows when there's no data? A blank screen is a dead end. Show a clear next action — a create button, sample data, or an inline prompt. The user should know exactly what to do next.

Error state. What shows when the network drops or the API fails? Never show a raw error. Provide a human-readable message, a retry action, and preserve any user input so they don't lose work. Consider offline fallback.

Loading state. What shows while data fetches? Skeleton screens for content areas, spinner for short actions, progress bar for uploads. Never flash a blank screen then suddenly populate — that feels broken.

Destructive actions. Identify every action that can't be undone (delete, overwrite, bulk operations). Each needs at minimum a confirmation step. For truly catastrophic actions, require the user to type the entity name to confirm.

Step 5: Perceived Performance & Power Users

Speed is a feature, not a metric. Optimize for perceived speed even when actual latency exists:

  • Optimistic UI: Show the expected result immediately, then reconcile. Works for likes, toggles, quick edits. Roll back on failure.
  • Skeleton screens: Show layout structure instantly while data loads. Beats a spinner — gives users something to scan.
  • Prefetching: Load data the user will likely need next (hover-triggered prefetch, route-based prefetch).

For power users, add keyboard shortcuts for the top 3-5 actions. Consider whether a Cmd+K command palette is warranted for discoverability.

Step 6: Trade-off Critique

Before writing code, stress-test the design against three perspectives:

  • Layout resilience: Does it break with very long text? 320px-wide viewport? Right-to-left languages? High-contrast mode? 200% font size?
  • Power user experience: Can an expert drive this entirely by keyboard? Can they batch-operate? Is there a shortcut for the thing they do 50 times a day?
  • Novice experience: Would a first-time user know what to do within 5 seconds? Is complexity unnecessarily exposed? Is there a guided path?

Then make a deliberate trade-off: what did you sacrifice and why? Document it. "It's simple because we dropped bulk-edit" is a decision; "it's complex because we added everything" is an abdication.

Step 7: Output

Produce the actual UI implementation. The format depends on the task:

  • Standalone page/component: working React/Vue/HTML code with proper states
  • System design: component tree, data flow diagram, route structure
  • Design review: annotated screenshots or a written audit against the 6 steps above

Whatever the format, it must handle the empty, loading, error, and destructive-action states defined in Step 4.

Execution Rules

  1. Work through all 7 steps in order. Skipping steps produces fragile designs.
  2. Every step must produce a concrete artifact — not just agreement, but specific decisions.
  3. P0 content gets the best real estate. P2 content starts hidden. This is non-negotiable.
  4. Every view must define its empty, loading, and error states. A view without all three is incomplete.

Related skills

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván854 installs69 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván555 installs18 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

Query Twitter/X profiles, tweets, follower events, and KOL data through the 6551 REST API.

by infra403840 installs27 stars

Post videos, photos, text, and documents to 10 social platforms through a single REST API call.

by victorcavero14375 installs50 stars

More from fize

Browse all skills

多 Agent 并行投研与风控决策流水线。输入标的代码与日期,并发调度多个专业 Subagent 全面透视基本面 EPS 与多模型市值、筹码资金与机构热度、全网消息舆情,结合大势环境进行量化风控核验(一票否决门禁),最终交付综合决策研报。各专员 Prompt 独立存放于 agents/ 目录下,践行渐进式披露直接调用 market 技能获取底层数据,数据缺失时严格终止阻断。当用户需要启动多智能体对个股进行全流程深度透视、并行流水线分析或产出多维研报时触发(包含触发词:投研流水线, 多Agent分析, 并行深研, 标的透视, ticker pipeline)。

by fize2 installs

End-to-end brand visual identity (VI) design methodology — a six-stage workflow from brand soul discovery to visual identity system building and multi-touchpoint brand manual delivery. Covers core concept, logo design, color strategy, typography, graphic language, and touchpoint application. Use when: designing brand identity, visual identity systems (VI), logo design, brand guidelines, or brand manuals. Keywords: brand identity, VI设计, 品牌视觉系统, 品牌VI, logo design, 品牌设计, 品牌手册, brand guidelines.

by fize2 installs

Graphic design deep research: automatically collects design references across domestic and international platforms (Behance, Dribbble, Pinterest, Zcool, Huaban), performs cluster analysis on aesthetic trends, and outputs visual HTML research reports with reusable exploratory prompts. Use when: researching design directions, analyzing visual trends, gathering inspiration moodboards, or exploring visual styles. Keywords: 设计调研, 灵感调研, 风格调研, 视觉参考, 情绪板, design research, aesthetic trends, moodboard.

by fize1 installs

A股交易标准操作程序(SOP)总编排。从用户的自然语言输入出发,识别当前交易意图(盘前准备、盘中复盘、盘后复盘、个股深度研究、首板隔夜),按需编排调用现有技能流水线,最终输出可操作的决策建议。当用户提出日常交易操作、盘前准备、盘中复盘、盘后总结、全流程投研或个股深研请求时触发(包含触发词:今天怎么操作, 帮我做盘前, 复盘一下, 研究一下, 首板今晚要不要留, 当前市场适合买吗, 给我一套完整分析, 全流程分析, SOP, 操作建议, 我要开始做功课了, trading sop)。

by fize2 installs

个股及 ETF 标的基本面与技术面综合分析 SOP(支持 A 股、港股及美股)。融合真实 EPS 核算、多模型目标市值测算、财务三大表、20+ 项确定性技术指标及大势环境校准,输出标准化《标的量化投研报告》。当用户需要深度分析个股、评估公司基本面估值、计算目标价、分析财报或量化技术面时触发(包含触发词:个股分析, 基本面研究, 估值测算, 财报透视, 目标市值, asset analysis, valuation, DCF, PEG, EPS)。

by fize2 installs

Commercial and e-commerce image generation methodology — three-layer prompt engineering framework (subject-scene / style-texture / technical-constraints) covering both global cross-border platforms (Amazon, Shopify, SHEIN, TikTok, Instagram) and domestic Asian markets (Taobao, JD, Xiaohongshu, WeChat). Includes multi-platform templates and iterative optimization strategies. Use when: generating product photos, marketing posters, e-commerce covers, or commercial AI visuals. Keywords: e-commerce image, product photography, commercial prompts, SHEIN, Amazon, Shopify, 淘宝主图, 营销海报, 小红书封面, 生图提示词.

by fize