frontend-motion-prompt-writer

frontend-motion-prompt-writer is a skill for Claude Code from kkunkunya/ai-frontend-design-kit. It costs 231 tokens per session (3,671 once invoked), scanned A, original, MIT.

A skill that turns a broad motion specification into detailed prompts for implementing individual interface animations with Framer Motion, a React animation library.

In plain words
What is it for?
It is for documenting animation components with theme values, fonts, component interfaces, element behavior, parent behavior, and timing details.
Why use it?
It gives coding agents the component-level details needed to implement animations consistently instead of interpreting only a high-level checklist.

Skill for Claude Code

Written for Claude Code: Claude Code plugin machinery.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/kunkun/note/01-AI工程/AI设计与前端/02-执行方法/AI.

Part of the ai-frontend-design-kit plugin — 10 skills shipped together

Good fit It is for documenting animation components with theme values, fonts, component interfaces, element behavior, parent behavior, and timing details.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add kkunkunya/ai-frontend-design-kit
Claude Code
/plugin install ai-frontend-design-kit

Made for: Claude Code.

Or install ai-frontend-design-kit, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for frontend-motion-prompt-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/kkunkunya/ai-frontend-design-kit/frontend-motion-prompt-writer/github.svg)](https://agentmods.dev/skills/kkunkunya/ai-frontend-design-kit/frontend-motion-prompt-writer)
Your own site
<a href="https://agentmods.dev/skills/kkunkunya/ai-frontend-design-kit/frontend-motion-prompt-writer"><img src="https://agentmods.dev/badge/skills/kkunkunya/ai-frontend-design-kit/frontend-motion-prompt-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for frontend-motion-prompt-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/kkunkunya/ai-frontend-design-kit/frontend-motion-prompt-writer"><img src="https://agentmods.dev/badge/skills/kkunkunya/ai-frontend-design-kit/frontend-motion-prompt-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 231 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,671 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00231 $0.03671
Opus 5 $0.00115 $0.01835
Sonnet 5 $0.00046 $0.00734
Haiku 4.5 $0.00023 $0.00367

Measured 12d ago against content hash dcf2c5b2971a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

frontend-motion-prompt-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/frontend-motion-prompt-writer/SKILL.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Packaged Knowledge Snapshot

This packaged copy includes local note snapshots for portability. When the original Obsidian absolute path is unavailable, use the packaged snapshot instead:

  • /Users/kunkun/note/01-AI工程/AI设计与前端/02-执行方法/AI 前端动效盲区与采访补偿.md -> references/packaged-knowledge/AI 前端动效盲区与采访补偿.md
  • /Users/kunkun/note/01-AI工程/AI设计与前端/02-执行方法/动效文档两层:MOTION-SPEC vs 实现 prompt 集.md -> references/packaged-knowledge/动效文档两层:MOTION-SPEC vs 实现 prompt 集.md
  • /Users/kunkun/note/01-AI工程/AI设计与前端/02-执行方法/视觉锚定三件套:代价结构与资产生成双路径.md -> references/packaged-knowledge/视觉锚定三件套:代价结构与资产生成双路径.md

Frontend Motion Prompt Writer

这个 skill 在做什么

把动效从宏观清单(人读的量化语法)翻译为微观代码级规格(Agent 直接读、写 framer-motion 代码的完整 prompt)。一个核心动效组件一份 prompt,参考 LoadingScreen 范式:Theme tokens / 字体引用 / 组件签名 / 逐元素规格 / 父组件行为 / 时序总表六个要素齐备。

动效文档两层的分工

本 skill 负责微观层,不碰宏观层:

给谁读 产出 skill
宏观层(MOTION-SPEC.md / design.md §10) 人 + Agent 并读 frontend-design-writer(§10)
微观层(motion-prompts/{Component}.md) Agent 直接读 → 写代码 本 skill

两层互补:宏观层定义"整站动效清单 + 量化语法 + 双向性约定";微观层是单个组件的完整代码级实现规格。单独任一层都不够——只有宏观会生成风格各异的实现,只有微观会在没定组件架构时就锁死细节。

详见 [[动效文档两层:MOTION-SPEC vs 实现 prompt 集]]。

在阶段化流程里的位置

本 skill 触达于阶段 4C 尾部 和 阶段 6 代码实现

阶段4 视觉锚定三件套
  ├─ A. Moodboard
  ├─ B. 完整网页示意图
  └─ C. 动效帧序列(frontend-visual-reference 产出帧序列图)
         ↓
       ★ 本 skill:把帧序列 + MOTION-SPEC + 组件签名翻译成微观 prompt
         ↓
阶段6 代码实现 ── Agent 读 motion-prompts/{Component}.md 写 framer-motion 代码

按需触发,不是一次性写完——阶段 4C 结束时可能只写最核心的 1-2 个;阶段 6 代码实现每触达一个新核心动效组件,现场生成一份微观 prompt。

何时进入本 skill

要进

  • 阶段 4C 帧序列完成,需要把最核心动效(如 LoadingScreen、Hero 入场)翻译为代码规格
  • 阶段 6 代码实现,Agent 触达某个核心动效组件,需要完整实现 prompt 引导
  • 用户说"写 LoadingScreen 的动效 prompt""把 Hero 入场翻译成代码规格""我要一份能直接喂 framer-motion 的 prompt"

不要进

  • 写宏观 MOTION-SPEC.md / design.md §10 → frontend-design-writer
  • 生成动效帧序列图(视觉锚点) → frontend-visual-reference(阶段 4C)
  • 动效采访(节奏/触发/双向性/层级/反例 5 类) → frontend-design-research(阶段 2 的六维之动)
  • 直接写 framer-motion 代码 → 开发实现剧本
  • 简单 hover / 按钮 scale / 单 fade 等次要动效 → 不写微观 prompt,只在 §10 登记

Read the full file on GitHub · 248 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 248 lines · 231 tokens per session scan A dcf2c5b2971a

Subscribe to this mod's changes

frontend-motion-prompt-writer is a skill published in the GitHub repository kkunkunya/ai-frontend-design-kit (7 stars, last pushed 3mo ago), licensed MIT. It adds 231 tokens to every session and 3,671 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stark

Use for UI/UX design, product flows, frontend or native interface design, design audits, design translation, asset planning, motion direction, design tokens, or distinctive non-generic apps and websites. Covers web and React, Windows and WinUI/Mica, Apple and SwiftUI, Android and Jetpack Compose/Material…

f0d010c/stark · 96 tokens

web-design

Use for web interfaces, landing pages, product sites, dashboards, React, Next.js, Astro, Tailwind, frontend audits, responsive design, browser interaction, web motion, or requests for a distinctive non-generic website. Select the web surface and implementation track, load a small reference bundle, preserve usability…

f0d010c/stark · 87 tokens

open-design-homepage

A pixel-faithful, self-contained mirror of the live open-design.ai homepage — an interactive React Three Fiber / Next.js hero with a real-time 3D wordmark, sticker collage, variable fonts, and scroll-driven motion. First-party showcase of the visual ceiling for interactive web marketing surfaces.

nexu-io/open-design · 65 tokens

aceternity-ui

100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or encountering animation, shadcn CLI integration errors.

secondsky/claude-skills · 48 tokens

base-ui-react

MUI Base UI unstyled React components with Floating UI. Use for accessible components, Radix UI migration, render props API, or encountering positioning, popup, v1.0 rc / pre-GA issues.

secondsky/claude-skills · 47 tokens

frontend-patterns

Context enrichment for frontend UI development using shadcn/ui and Tailwind CSS. Use when building component libraries, implementing UI designs, theming, or working with accessible React components.

rsmdt/the-startup · 40 tokens