Token导航 LogoToken导航

Agent Skill · 前端设计

micro-interactions(微交互)

micro-interactions 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

micro-interactions 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,502。

总安装 659周安装 28GitHub Stars 6下载 231核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:micro-interactions(微交互)
来源仓库:https://github.com/dembrandt/dembrandt-skills
仓库路径:skills/micro-interactions
安装命令:
npx skills add https://github.com/dembrandt/dembrandt-skills --skill micro-interactions
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dembrandt/dembrandt-skills --skill micro-interactions

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

micro-interactions 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。

它提供微交互设计指导,关注 200-600ms 内的用户体验瞬间,适用于界面细节优化场景。使用方式包括确认动作反馈、状态变化提示和成功庆祝效果,让产品体现人性化关怀。使用时需要遵循自然世界物理规律,避免突兀变化,确保交互有重量感和过渡自然。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/micro-interactions

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dembrandt/dembrandt-skills --skill micro-inter…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

micro-interactions 怎么安装?

在终端执行 npx skills add https://github.com/dembrandt/dembrandt-skills --skill micro-interactions。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

micro-interactions 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

micro-interactions 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

micro-interactions 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

micro-interactions 用的人多吗?

公开数据是累计安装 659 次,近一周安装 28 次,下载 231 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

micro-interactions 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
micro-interactions

微交互 · 本页

6596只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Micro-Interactions

A micro-interaction is a moment. A checkbox that draws its checkmark. A heart that pulses when liked. A toggle that eases into place with a little overshoot. A confetti burst on completing a goal. These moments are small in duration — 200–600ms — but they communicate that the product was made by people who cared.

The reference is always the natural world. Nothing in nature snaps instantly. Everything has weight, momentum, and a moment of settling.


What Makes a Good Micro-Interaction

A micro-interaction earns its place when it:

  1. Confirms an action — makes the result of a click, tap, or input unmistakably clear
  2. Rewards a milestone — celebrates something the user worked toward
  3. Reveals something — unfolds information in a way that aids understanding
  4. Adds texture — makes an otherwise flat moment feel physical and real

It fails when it:

  • Delays the user (animation blocks the next action)
  • Repeats too often (becomes noise, not signal)
  • Exists only for decoration (no information is conveyed)

Natural World as Reference

Physical objects have inertia, springiness, and weight. UI that borrows these properties feels intuitive because it matches expectations built over a lifetime.

Natural behaviourUI equivalent
A door swinging to restToggle that overshoots slightly before settling
Water drippingStaggered list item reveals
A rubber band snapping backPull-to-refresh bounce
A leaf fallingGentle fade + drift downward on dismiss
A bell ringingIcon that briefly oscillates (shakes) on trigger
A stamp pressing paperInner element shift (e.g. icon nudge) without shifting button bounds

The motion should feel *inevitable* — as if the element has physical properties and cannot behave any other way.


Patterns

Animated Icons

Icons that animate on trigger communicate state change more vividly than a static swap.

Checkmark draw-on: A checkmark that draws itself from start to end point on completion.

@keyframes check-draw {
  from { stroke-dashoffset: 20; }
  to   { stroke-dashoffset: 0; }
}
.checkmark path {
  stroke-dasharray: 20;
  animation: check-draw 300ms ease-out forwards;
}

Heart pulse on like: Scale up slightly then settle back.

@keyframes heart-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

Hamburger → close morphing: Lines animate to form an × when a menu opens.

Bell shake on notification: A brief oscillating rotation.

Loading spinner: Rotate with easing rather than linear — a spring rotation feels alive; linear feels mechanical.

Toggle / Switch

A toggle should feel like a physical switch, not a state change.

.toggle-thumb {
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  /* cubic-bezier with overshoot — the thumb slides and bounces slightly */
}
.toggle:checked .toggle-thumb {
  transform: translateX(20px);
}

The cubic-bezier (0.34, 1.56, 0.64, 1) produces a spring effect — the thumb overshoots and settles. This is the difference between a switch that feels cheap and one that feels premium.

Success / Completion

Mark moments of genuine completion — a form submitted, an onboarding step finished, a goal reached.

  • Checkmark animation that draws on
  • Subtle confetti for high-value milestones (first purchase, account created, goal achieved) — use sparingly, never for routine actions
  • Green fill transition on a progress bar completing
  • Number count-up when a stat reaches its final value

Reveal and Disclosure

Accordions, tooltips, and popovers that open via a small reveal feel more considered than appearing instantly.

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 250ms ease-out;
}
.accordion-content.open {
  max-height: 500px; /* generous upper bound */
}

Content that slides down as if gravity is pulling it into place feels natural. Content that blinks into existence does not.

Button Interaction Feedback (Stability Rule)

Buttons must never change their outer dimensions or shift their position in the layout when hovered, focused, or clicked.

.btn {
  transition: background-color 150ms ease-out, box-shadow 150ms ease-out;
}
.btn:hover {
  background-color: var(--color-brand-600); /* subtle shift in hue or brightness */
}
.btn:active {
  background-color: var(--color-brand-700); /* deeper contrast on press */
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); /* inner shadow suggests depth without scaling */
}

The button remains rock-solid in the layout. Feedback is conveyed through colour, internal shadows, or subtle micro-animations of *inner* elements (like an arrow moving 2px to the right) that do not affect the button's footprint.

Skeleton → Content Transition

When content loads, do not flash it in. Fade it over the skeleton at 150–200ms. The skeleton dissolves, the content arrives.

.content-loaded {
  animation: fade-in 150ms ease-out;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

Attracting Attention to Remote Changes

Users often miss updates that occur far away from their current focus or click area (change blindness). If an area changes that the user is not currently looking at—such as a notification in a distant corner—use a subtle animation to guide their eye.

  • Notification Badge Bloom: When a new notification arrives, briefly scale the badge up (1.2) and settle back to 1.0.
  • Background Highlight Fade: If a list item updates or a new row is added, highlight its background with a subtle brand tint and fade it to transparent over 1–2 seconds.
  • Subtle Shake: A very small horizontal shake (2–4px) can draw attention to a sidebar or toolbar item without being aggressive.

Rule: The animation should be non-looping. Once the eye is caught, the motion must stop to avoid becoming a permanent distraction.


The Sacred Rule of Component Stability

Interactive elements — especially buttons — must be layout-stable.

  • No Scaling: Never use transform: scale() on hover or click for buttons. It causes visual vibrating and can feel "squishy" rather than premium.
  • No Shifting: Never use translate or margins that change the element's position relative to its neighbors.
  • Why: Layout stability creates a sense of professional engineering and "sturdiness." If the UI moves under the user's cursor, it feels unpredictable.

Restraint

Micro-interactions are seasoning, not the meal.

  • Once per trigger — a checkmark animates once on save, not on every render
  • Skip on repeat actions — a bulk delete of 50 items should not animate 50 times
  • No blocking animations — the user must be able to continue immediately; the animation runs alongside, not instead of, the result
  • Respect prefers-reduced-motion — always
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

Ask for each interaction: does this make the result clearer, or just more visually busy? If the answer is the latter, remove it.


Review Checklist

  • Sacred Rule: Do buttons and interactive elements remain perfectly stable (no size change, no shifting) during hover and click?
  • Does each micro-interaction confirm an action, reward a milestone, or aid understanding?
  • Is the duration 200–600ms — not instant, not slow enough to feel like waiting?
  • Does motion reference natural physics (spring, ease-out, overshoot) rather than linear timing?
  • Is the animation non-blocking — the user can continue immediately?
  • Is prefers-reduced-motion respected?
  • Are high-effort celebrations (confetti, bloom effects) reserved for genuine milestones?
  • Do animated icons clearly communicate the state change they represent?
  • Does the toggle/switch use a spring easing curve, not linear?
  • Are remote changes (outside focal area) highlighted with a brief, non-looping animation to guide the eye?

平台分布

Codex

36.43%
按下载量换算84

Claude

27.99%
按下载量换算65

Cursor

21.05%
按下载量换算49

Gemini CLI

9.77%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills