Agent Skills › daymade/claude-code-skills › interaction-design-board

interaction-design-board

GitHub

为产品界面生成多个可点击的HTML交互原型,构建设计看板以对比不同交互架构、状态流转及层级结构,收集用户反馈并确定最终方案,避免仅关注静态视觉风格。

daymade-codex/interaction-design-board/SKILL.md daymade/claude-code-skills

Trigger Scenarios

需要对比多种UI交互版本或工作流选项 样式已定但交互逻辑、层级或渐进式披露存在不确定性 在实现前需验证不同交互假设的可用性

Install

npx skills add daymade/claude-code-skills --skill interaction-design-board -g -y
More Options

Non-standard path

npx skills add https://github.com/daymade/claude-code-skills/tree/main/daymade-codex/interaction-design-board -g -y

Use without installing

npx skills use daymade/claude-code-skills@interaction-design-board

指定 Agent (Claude Code)

npx skills add daymade/claude-code-skills --skill interaction-design-board -a claude-code -g -y

安装 repo 全部 skill

npx skills add daymade/claude-code-skills --all -g -y

预览 repo 内 skill

npx skills add daymade/claude-code-skills --list

SKILL.md

Frontmatter
{
    "name": "interaction-design-board",
    "description": "Generates several distinct, clickable HTML interaction prototypes for one product surface into a Design Board and collects selection\/remix feedback before implementation. Use for multiple UI versions, interaction alternatives, progressive-disclosure options, or when styling is fine but hierarchy\/workflow\/interaction feels off. Not for static visual-style calibration (use design-style-picker) or a settled CSS tweak."
}

Interaction Design Board

Turn interaction uncertainty into inspectable evidence. Keep the product's real facts and design language fixed; vary the interaction architecture enough that the user can experience the trade-offs before production code changes.

Route The Request

  • Use this skill when the choice depends on behavior, state, workflow, hierarchy, or progressive disclosure.
  • Use design-style-picker for static visual-style calibration and image matrices.
  • Use gstack's design-consultation for a new product-wide design system and gstack's design-shotgun for static generated mockups.
  • Return to this skill after a visual direction is chosen if the user still needs to compare clickable interaction structures.
  • Do not use it for a settled one-line CSS adjustment or when the user already supplied an approved interaction specification and asked only for implementation.

Non-Negotiable Outcome

Produce a decision, not a gallery:

  1. Several runnable HTML candidates keep the same business facts, product scope, design tokens, and available actions.
  2. Each candidate embodies a distinct interaction hypothesis rather than a skin.
  3. The Design Board lets the user operate every candidate, record concrete feedback, select one, or request a named remix.
  4. Production implementation does not start until the user approves the behavior.

Static screenshots are supporting evidence only. A screenshot cannot prove a collapse state, keyboard path, selection model, or task handoff.

Workflow

1. Freeze The Decision Contract

Before generating variants, write a compact contract in the session workspace:

  • User job: the real task the operator is trying to complete.
  • Decision scope: the one page, component, or bounded journey being compared.
  • Immutable facts: real objects, labels, statuses, permissions, actions, and data semantics that every variant must preserve.
  • Existing language: current tokens, components, navigation, density, and brand assets that must remain recognizable.
  • First-view invariant: what must stay visible before any disclosure.
  • Interaction states: the meaningful states the user must be able to exercise.
  • Stop condition: approved variant or explicit remix brief; no product edit yet.

For an existing product, inspect its rendered page and implementation before writing the contract. Do not replace unknown facts with plausible sample data. Mark unknowns as unknown or omit them if they are not needed for the interaction choice.

When the decision replaces a screen that already ships, enumerate its current user-visible behaviors as a numbered inventory during that inspection: every action, state, deep link, keyboard path, empty state, and copy affordance. Candidates are free to defer or drop any of them — the inventory exists so that a dropped behavior is a stated trade-off rather than an unnoticed regression.

Read references/interaction-design-method.md before proposing the candidate architectures. It contains the hierarchy, progressive-disclosure, comparison, and accessibility rules that decide whether a direction is legitimate.

2. Propose Different Interaction Architectures

Propose three candidates by default. Add candidates only when another independent interaction hypothesis exists; do not inflate the board with minor variants.

For each candidate state:

  • the hypothesis about how it helps the user's job;
  • what it makes primary;
  • what it defers or hides;
  • the likely trade-off;
  • the states and actions that must work in the prototype.

Hold the decision contract constant. Change navigation/selection/disclosure/action ownership or information order—not colors, copy, and data all at once. Useful families include command-first, queue-detail, object-led, comparison-led, and ledger-first, but derive candidates from the current task rather than filling a pattern quota.

3. Generate Isolated Runnable Candidates

Create one self-contained HTML file per candidate in a session workspace outside the product source tree. Keep CSS and JavaScript inline; avoid runtime network dependencies so every prototype survives inside the Board.

When independent worker contexts are available, assign one candidate to each worker with the same frozen decision contract and only that candidate's hypothesis. Do not let workers see one another's output. This isolation is the test-time-scaling mechanism: it preserves distinct hypotheses instead of converging into siblings. If workers are unavailable, generate serially but re-read the frozen contract—not the previous candidate—before starting the next one.

Each candidate must implement the declared states. Decorative buttons that do nothing are not interaction prototypes. Use honest local state; do not simulate a backend response the product does not have.

4. Build And Open The Design Board

Create board.json using references/board-contract.md, then run:

SKILL_ROOT="<absolute directory containing this loaded SKILL.md>"
python3 "$SKILL_ROOT/scripts/build_board.py" \
  --manifest <session-dir>/board.json \
  --output <session-dir>/design-board.html

Expected output:

BOARD_BUILT variants=<derived count> output=<absolute path>

The builder rejects byte-identical candidates, path traversal, missing declared states, and static external styles, scripts, or media. The Board also injects a network-denying Content Security Policy into every sandboxed candidate so dynamic JavaScript cannot create an undeclared runtime dependency. Fix the candidate; do not weaken either boundary to make the Board green.

If gstack's design executable is already installed, resolve its absolute path from the active gstack Skill installation; do not assume $D exists in a new shell. Then capture the exact Board URL printed by the server:

GSTACK_DESIGN="<resolved gstack design executable>"
SERVER_OUTPUT="$("$GSTACK_DESIGN" serve \
  --html <session-dir>/design-board.html --timeout 1800 2>&1)"
printf '%s\n' "$SERVER_OUTPUT"
BOARD_URL="$(printf '%s\n' "$SERVER_OUTPUT" | sed -n 's/^BOARD_URL: //p' | tail -1)"
test -n "$BOARD_URL"

If the executable cannot be resolved or the command prints no BOARD_URL, open design-board.html directly with the host's browser-opening tool. Direct-file mode remains functional: Submit and Remix download feedback.json or feedback-pending.json for the agent to read. The Board itself is the chooser; chat is only the fallback channel.

5. Observe Tasks, Not Vibes

Ask the user to operate the same representative task in every candidate. Record:

  • what they noticed first;
  • where they knew or did not know what to do next;
  • which disclosure helped or hid necessary evidence;
  • which state transition felt natural or surprising;
  • which elements to preserve, reject, or remix.

Do not replace these observations with a numeric score or a claim that the most polished candidate is best. The user may choose one candidate or combine named parts of several.

When feedback-pending.json appears, preserve the accepted parts, alter the named failure axis, regenerate only the affected candidates, and build a versioned Board file in the same session directory. If a gstack Board is already serving, reload that exact Board instead of calling serve again on the old source path:

curl -sS -X POST "${BOARD_URL%/}/api/reload" \
  -H 'Content-Type: application/json' \
  -d '{"html":"<absolute-versioned-board-path>"}'

Expected response: {"reloaded":true}. Repeated serve calls may reuse a Board instance without reading changed bytes, so they are not a reload mechanism. Ask the user to retry the task in the same Board URL. Stop adding rounds when feedback no longer changes the decision.

6. Freeze Approval Before Production

After the user confirms your feedback summary, write approved.json beside the Board using the schema in references/board-contract.md. Capture:

  • selected or remixed candidate;
  • approved interaction rules and first-view invariant;
  • rejected trade-offs;
  • states the user actually exercised;
  • remaining unknowns;
  • exact prototype file identities.

Then—and only then—implement in the product. Preserve the current design system and real data contracts. Use the project's frontend implementation and visual-QA skills, then verify the same representative task in the real browser. Pixel resemblance is insufficient; the approved state transitions and information order must survive.

If you built a behavior inventory in step 1, the implementation is not delivered until every line of it carries a disposition: kept, changed to what, or dropped and why. Put that table where reviewers of the change will read it, not only in the session workspace. The removals are the load-bearing rows — a behavior nobody can account for is a regression that was never filed, and the author is the last person able to notice it. Expect the count of intentional removals to be wrong on the first pass; recheck it against the inventory before calling the change complete.

If the project has a design SSOT, write the approved interaction decision there as part of implementation. Keep session feedback and prototype files as evidence; do not copy their changing values into general project instructions.

Failure Boundaries

  • Do not turn every candidate into a different product or data model.
  • Do not let static image generation stand in for runnable interaction.
  • Do not hide identity, current status, primary evidence, or the next action behind progressive disclosure when they are necessary to decide.
  • Do not implement the apparent winner before the user has operated it.
  • Do not write prototypes into production component directories.
  • Do not claim usability validation from the author's own click-through. Agent QA catches broken states; the user's task observation decides the interaction.

Delivery

Return the Board path or URL, candidate hypotheses, feedback/approval artifact paths, browser verification performed, and the explicit next step: iterate the Board, implement the approved candidate, or stop.

Version History

  • c6903aa Current 2026-09-28 12:34

    精简描述文本长度,优化触发场景说明,确保首段清晰概括技能用途与主要触发条件。

  • f7c2028 2026-09-23 01:33

    v1.2.1: 针对替换线上页面场景,新增‘现有用户可见行为清单’机制。要求枚举动作、状态等,明确保留、修改或删除的取舍,防止无意识回归,并在交付前复核。

  • 98c21cf 2026-08-28 22:48

Same Skill Collection

auto-repo-setup/SKILL.md
bilibili-source/SKILL.md
capture-screen/SKILL.md
cli-demo-generator/SKILL.md
cloudflare-troubleshooting/SKILL.md
codex-image-gallery/SKILL.md
competitors-analysis/SKILL.md
data-visualization-discipline/SKILL.md
daymade-audio/asr-transcribe-to-text/SKILL.md
daymade-audio/audio-router/SKILL.md
daymade-audio/meeting-minutes-taker/SKILL.md
daymade-audio/stepfun-asr/SKILL.md
daymade-audio/stepfun-tts/SKILL.md
daymade-audio/transcript-fixer/SKILL.md
daymade-claude-code/agent-web-search-setup/SKILL.md
daymade-claude-code/claude-code-hooks/SKILL.md
daymade-claude-code/claude-code-ops-router/SKILL.md
daymade-claude-code/claude-code-ping-start-5h-quota/SKILL.md
daymade-claude-code/claude-export-txt-better/SKILL.md
daymade-claude-code/claude-skills-troubleshooting/SKILL.md
daymade-claude-code/claude-switch-models-setup/SKILL.md
daymade-claude-code/claude-usage-analyst/SKILL.md
daymade-claude-code/continue-claude-code-work/SKILL.md
daymade-claude-code/continue-claude-work/SKILL.md
daymade-claude-code/continue-codex-work/SKILL.md
daymade-claude-code/lark-cli-router/SKILL.md
daymade-claude-code/local-conversation-history/SKILL.md
daymade-claude-code/marketplace-dev/SKILL.md
daymade-claude-code/prior-work-retrieval/SKILL.md
daymade-claude-code/read-claude-code-history/SKILL.md
daymade-claude-code/read-claude-web-conversation/SKILL.md
daymade-claude-code/read-codex-history/SKILL.md
daymade-claude-code/statusline-generator/SKILL.md
daymade-claude-code/tech-selection/SKILL.md
daymade-claude-code/terminal-screenshot/SKILL.md
daymade-codex/codex-1m-context-window-setup/SKILL.md
daymade-codex/codex-image-gallery/SKILL.md
daymade-codex/design-style-picker/SKILL.md
daymade-codex/local-codex/SKILL.md
daymade-docs/docs-router/SKILL.md
daymade-docs/docx-creator/SKILL.md
daymade-docs/excel-automation/SKILL.md
daymade-docs/mermaid-tools/SKILL.md
daymade-docs/pdf-creator/SKILL.md
daymade-docs/ppt-creator/SKILL.md
daymade-docs/read-docx-review/SKILL.md
daymade-financial/ashare-news-fetcher/SKILL.md
daymade-financial/benchmark-due-diligence/SKILL.md
daymade-financial/bigdata-skill/SKILL.md

Metadata

Files
0
Version
c6903aa
Hash
e7a5bf0d
Indexed
2026-08-28 22:48

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-30 03:11
浙ICP备14020137号-1