Communitygithub.com

OneWave-AI/claude-skills

根据自然语言描述生成动画视频和动态图形。创建一个独立的 Vite + React 项目,使用 Framer Motion 场景,在浏览器中自动播放。当用户想要创建动画、动态图形、视频片头、动画演示或产品展示时使用。

claude-skills 是什么?

此技能(OneWave-AI/claude-skills)允许用户通过自然语言描述生成动画视频和动态图形。它能够创建一个完整的独立 Vite + React + Framer Motion 项目,输出可直接在浏览器中播放的动画内容。该技能适用于产品介绍、营销视频、演示文稿、生成式艺术以及3D场景等多种场景。它支持 Claude Code、Cursor 和其他兼容 AI Agent,工作流程包括解析用户请求、选择动画技术栈(例如 Framer Motion、p5.js、Three.js 或 CSS 动画)、搭建项目结构、生成场景组件、定制主题,并可选择性地利用 Gemini 3.1 Pro 增强内容生成。最终,用户可以通过简单的 `npm run dev` 命令在本地预览动画。

兼容平台✓Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/OneWave-AI/claude-skills/tree/HEAD/animate

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

动画生成器

根据自然语言描述创建动画视频和动态图形。输出一个独立的 Vite + React + Framer Motion 项目,可在浏览器中播放。

工作流程

步骤 1:解析请求

将用户的描述分解为场景计划:

  • 3-7 个场景,每个场景时长 3-5 秒
  • 识别故事主线:英雄/开场、问题、解决方案、功能、行动号召/结尾
  • 选择符合品牌/氛围的配色方案和字体样式
  • 使用 $ARGUMENTS 获取用户的动画描述

步骤 2:选择动画技术栈

根据请求自动检测最佳方案:

请求类型技术栈使用场景
产品介绍、演示、营销Framer Motion(默认)基于场景的文本、图标、过渡效果
生成式艺术、粒子、图案p5.js创意/算法可视化
3D 物体、环境、产品渲染Three.js + react-three-fiber需要 3D 场景
简单的文字/徽标动画仅 CSS 动画最简洁,无需繁重依赖

默认使用 Framer Motion,除非请求明确需要其他方案。

步骤 3:搭建项目

  1. 创建目录:~/animations/[project-name]/
  2. 运行脚手架脚本:bash ~/.claude/skills/animate/scripts/scaffold.sh [project-name] [stack]
  3. 将 ~/.claude/skills/animate/assets/template-files/ 中的模板文件复制到项目中

步骤 4:生成场景组件

阅读动画预设和场景模式的参考资料:

  • references/animation-presets.md — 所有可用的过渡、弹簧、缓动效果
  • references/scene-patterns.md — 示例场景代码模式

为每个场景创建一个 React 组件,位于 client/src/components/video/video_scenes/:

  • 使用 motion.div 配合场景过渡预设(例如 fadeBlur、scaleFade、slideLeft、splitHorizontal、morphExpand 等)
  • 使用 containerVariants 和 itemVariants 实现交错内容显示
  • 使用 vw 单位进行响应式尺寸调整(适用于任何分辨率)
  • 使用 CSS 变量进行主题化(var(--color-accent)、var(--color-bg-dark) 等)
  • 使用 Lucide 图标表示视觉元素
  • 使用 .glass-panel 类实现毛玻璃卡片效果
  • 使用 .text-gradient 和 .text-gradient-accent 实现渐变文字

步骤 5:生成 VideoTemplate

创建 client/src/components/video/VideoTemplate.tsx:

  • 导入所有场景组件
  • 定义 SCENE_DURATIONS 对象(场景名称 -> 毫秒数)
  • 使用 useVideoPlayer 钩子管理场景推进
  • 将场景包裹在 AnimatePresence mode="wait" 中实现平滑过渡
  • 每个场景根据 currentScene 索引条件渲染

步骤 6:定制主题

使用正确的颜色更新 client/src/index.css:

  • 如果用户指定了品牌颜色,则更新 CSS 变量
  • 选择符合氛围的字体(科技感用 Space Grotesk,优雅感用 Playfair Display 等)
  • 根据配色方案更新渐变和发光样式

步骤 7:Gemini 3.1 Pro 增强(可选)

如果环境变量 GEMINI_API_KEY 可用:

  1. 阅读 references/gemini-integration.md 获取 API 详细信息
  2. 将用户的描述发送给 Gemini 3.1 Pro,请求:
    • 场景分解,包含描述和建议的过渡效果
    • 作为 CSS 变量的配色方案
    • 每个场景的文案/标题
    • 适用的 SVG 图形
  3. 使用 Gemini 输出指导场景生成
  4. 如果没有 API 密钥,则跳过此步骤——Claude 直接处理所有创意决策

步骤 8:构建并预览

cd ~/animations/[project-name]
npm install
npm run dev

告诉用户动画正在 http://localhost:5173 运行,并在浏览器中打开它。

场景过渡参考(快速)

选择与故事节拍相匹配的过渡效果:

  • fadeBlur — 柔和的开场/结尾,梦幻般的揭示
  • scaleFade — 自信的揭示,产品展示
  • slideLeft/slideRight — 顺序推进,时间线流动
  • splitHorizontal/splitVertical — 戏剧性的揭示,前后对比
  • morphExpand — 壮观的结局,行动号召画面
  • clipCircle — 聚焦注意力,聚光灯效果
  • perspectiveFlip — 卡片翻转,视角变化
  • wipe — 干净的过渡,方向性流动
  • zoomThrough — 沉浸感,向前推进
  • crossDissolve — 温和的情感过渡

元素动画参考(快速)

  • popIn — 图标/徽章的有弹性缩放入口
  • fadeUp/fadeDown — 微妙的内容揭示
  • slideInLeft/slideInRight — 方向性内容
  • blurIn — 柔和的焦点揭示
  • elasticScale — 俏皮、充满活力的入口
  • perspectiveRotateIn — 3D 卡片揭示
  • pulse — 循环注意力吸引
  • float — 柔和的悬浮效果

重要规则

  1. 始终使用 vw 单位进行尺寸调整,以确保动画在任何分辨率下都看起来不错
  2. 每个场景保持在 3-5 秒之间——总视频时长 15-30 秒
  3. 使用 AnimatePresence mode="wait",确保一个场景退出后再进入下一个
  4. 每个场景必须有背景处理(渐变、图像或动画形状)
  5. 对列表和网格使用交错动画(staggerChildren:0.1-0.2)
  6. 如果资源较重,则包含加载状态
  7. 项目必须完全自包含——除了 npm 包外,没有外部依赖
  8. 生成的代码或内容中不得使用表情符号

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

OneWave-AI/claude-skills

Deploy a 2-layer parallel agent hierarchy for large, parallelizable work — big refactors, multi-file migrations, codebase-wide audits, bulk generation. A top-tier commander (Fable or Opus) orchestrates the swarms; the user picks a power level (Max Power / Heavy / Balanced / Economy) that sets the Opus/Sonnet/Haiku model mix per layer. Layer 1 is 3-50+ specialist agents, each with its own full context window; Layer 2 is 2+ sub-agents per member. Includes git safety, tiered sizing, a pre-deploy gate, phantom-completion checks, and multi-wave follow-up.

OneWave-AI/claude-skills

Use before starting a product, feature, MVP, agent, automation, or integration build to identify the main pre-build risk and choose the smallest validation step. Trigger when the user asks whether to build, scope, validate, prioritize, or sanity-check an idea before implementation.

OneWave-AI/claude-skills

Post-mortem analysis when a client churns. Takes client history, engagement data, support tickets, usage logs, and exit feedback to produce a comprehensive churn autopsy with root cause classification, timeline of decline, and preventive measures.

OneWave-AI/claude-skills

Compose a premium, animated landing page section by section in Next.js + Tailwind + Motion (Framer Motion) — built on a real design system, with editorial copy and motion that feels human-crafted, not template-generated. Use when building or rebuilding a landing page, marketing site, or hero/feature/pricing/CTA sections that need to look production-ready and bespoke from day one.

OneWave-AI/claude-skills

Assemble 2-3 complementary experts to collaboratively analyze anything. Experts work together to explore topics from multiple expert angles.

OneWave-AI/claude-skills

Convert any topic into playable browser games. Types: trivia, matching, word puzzles, adventure games. Uses Phaser.js or Kaboom.js.

OneWave-AI/claude-skills

Turn a marketing brief or product offer into a finished short-form video ad built in HyperFrames — hook, script, shot-by-shot storyboard, scene-by-scene HTML composition, captions, and voiceover. Outputs platform cuts (vertical 9:16, square, 16:9). Use when you need a launch ad, product promo, social video, or paid-creative concept ready to render.

OneWave-AI/claude-skills

Turn a website URL, product docs, or a founder's rambling description into a tight 60-90 second explainer video built in HyperFrames -- problem/solution narrative, animated product walkthrough scenes, captions, and voiceover, ready for the homepage hero, sales emails, and onboarding.

OneWave-AI/claude-skills

Build promo videos for local businesses in HyperFrames -- the new-menu drop, the seasonal offer, the event announcement, the "we're hiring" post, the Google Business Profile clip. Restaurant, salon, gym, trades: 15-30 seconds, brand-clean, captioned, sized for Instagram, Facebook, and the profile.

OneWave-AI/claude-skills

Build a personalized product-demo or sales-walkthrough video in HyperFrames for a specific prospect or account — narrated screen-by-screen, branded to them, ending in a clear next step. Turns a generic demo into a "this was made for me" asset for outbound, follow-up, or deal acceleration. Use when you want to send a tailored video instead of booking another live call.

OneWave-AI/claude-skills

Turn real customer reviews, quotes, and case-study results into polished social-proof videos built in HyperFrames -- single-testimonial spotlights, review-wall montages, and stat-driven proof reels with captions and voiceover, cut for vertical, square, and wide. The highest-converting content most businesses never make.

OneWave-AI/claude-skills

Audit a codebase for LLM calls that are really classifications in disguise, then produce a costed swap plan for a System One model. Use when asked to cut AI inference cost or latency, when scoping a performance engagement for a client, when reviewing an agent loop that feels slow, or when asked "where could we use Jev here". Produces a ranked table of candidates with measured latency and dollar deltas.

OneWave-AI/claude-skills

Build and run a labelled eval set for a System One model (Jev, Von, or any typed-decision config), then sweep criteria wordings and thresholds against it. Use when a Jev/Von classification is wrong or unreliable, when choosing between the hosted API and a local open model, when tuning noul thresholds, or before shipping any typed-decision feature. Produces an accuracy-by-wording matrix and a calibrated threshold.

OneWave-AI/claude-skills

Wire a System One model (Jev, or an open reproduction like Von) into a product feature — routing, guardrails, scoring, classification. Use when replacing an LLM call that returns a label rather than prose, when adding a typed decision to an agent loop, or when deciding between the hosted Jev API and a local open model. Covers question design, the eval-set-first workflow, threshold calibration, confidence gates, and the traps measured on real data.

OneWave-AI/claude-skills

Optimize landing pages for conversions, performance, and SEO. Use when improving landing pages, increasing conversions, or optimizing page performance.

OneWave-AI/claude-skills

TAM/SAM/SOM calculator with deep market research. Produces comprehensive market-sizing.md with top-down and bottom-up estimates, methodology, data sources, assumptions, sensitivity ranges, growth projections, competitive landscape, and Mermaid visualizations. Use when user needs market size estimates, addressable market analysis, go-to-market sizing, investor-ready market analysis, or business plan market validation.

OneWave-AI/claude-skills

Generate unique personalized first lines for hundreds of prospects using company news, LinkedIn activity, and mutual connections. Saves 10+ hours of manual research per campaign. Use when you need personalized outreach at volume.

OneWave-AI/claude-skills

Review investment portfolios for risk, diversification, fees. Asset allocation recommendations, tax-loss harvesting, rebalancing.

OneWave-AI/claude-skills

Create multiple choice, true/false, fill-in-blank, matching quizzes. Auto-generate plausible distractors. Instant grading with explanations.

OneWave-AI/claude-skills

Enhanced skill navigator that maps conversation history, recommends multi-skill chains, identifies patterns from past usage, and learns from session outcomes. Goes beyond basic scout with deep context analysis and workflow orchestration.

相关技能