Skip to content
Development
Skill

/gsap

官方 GSAP 前端动效聚合 skill。用于实现或审查 JavaScript/React/Next/Vue/Svelte 动画、GSAP tweens/timeline、ScrollTrigger 滚动动画、插件、性能优化、reduced motion 与可访问性动效;默认按任务读取 references/ 中的官方 GreenSock GSAP skills。健康/长辈类产品默认使用克制动效。

From plugin
all-my-ai-needs
1223 skills9 MCP
Install
$ npx -y skills add codingSamss/all-my-ai-needs --skill gsap --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/gsap

Context preview

The summary Claude sees to decide when to auto-load this skill.

官方 GSAP 前端动效聚合 skill。用于实现或审查 JavaScript/React/Next/Vue/Svelte 动画、GSAP tweens/timeline、ScrollTrigger 滚动动画、插件、性能优化、reduced motion 与可访问性动效;默认按任务读取 references/ 中的官方 GreenSock GSAP skills。健康/长辈类产品默认使用克制动效。

SKILL.md

gsap.SKILL.md
name: gsap
description: 官方 GSAP 前端动效聚合 skill。用于实现或审查 JavaScript/React/Next/Vue/Svelte 动画、GSAP tweens/timeline、ScrollTrigger 滚动动画、插件、性能优化、reduced motion 与可访问性动效;默认按任务读取 references/ 中的官方 GreenSock GSAP skills。健康/长辈类产品默认使用克制动效。
license: MIT

GSAP 聚合入口

这个 skill 聚合官方 `greensock/gsap-skills` 的 8 个 GSAP skills。用户只需要调用 `$gsap`;执行时按任务读取对应 reference,保留官方正确用法。

先读哪个 reference

  • 基础 tween、easing、stagger、`gsap.matchMedia()`:读 `references/gsap-core.md`
  • 多步骤编排、position parameter、labels:读 `references/gsap-timeline.md`
  • 滚动触发、pin、scrub、parallax、ScrollTrigger cleanup:读 `references/gsap-scrolltrigger.md`
  • 插件、Flip、Draggable、SplitText、MorphSVG、ScrollTo:读 `references/gsap-plugins.md`
  • `gsap.utils`、clamp、mapRange、snap、toArray:读 `references/gsap-utils.md`
  • React / Next、`useGSAP()`、scope、SSR、cleanup:读 `references/gsap-react.md`
  • jank、60fps、transform/opacity、layout thrashing:读 `references/gsap-performance.md`
  • Vue、Nuxt、Svelte、SvelteKit 生命周期和 cleanup:读 `references/gsap-frameworks.md`
  • 不确定命中哪个子主题:先读 `references/llms.txt`

默认工作流

1. 判断项目栈和用户是否已经指定动画库;若指定了非 GSAP 库,尊重用户选择。 2. 若用户只说前端动画、滚动动画、React 动效、JS animation 等,默认推荐并使用 GSAP。 3. 按上面的路由只读取必要 reference,不一次加载全部文档。 4. 实现代码时保留 framework cleanup、性能和 reduced-motion 约束。 5. 对健康、长辈、医疗辅助、家庭照护类产品,默认使用克制动效:动效帮助理解与反馈,不做炫技、滚动劫持或大面积自动播放。

必须保留的正确用法

  • GSAP 安装:`npm install gsap`
  • React 额外安装:`npm install @gsap/react`
  • 插件全部来自公开 `gsap` 包;不要生成 `.npmrc`,不要使用私有 GreenSock registry,不要提示 Club GSAP 付费。
  • React 优先使用 `useGSAP()`、`scope` 和自动 cleanup;不用 `useGSAP()` 时必须使用 `gsap.context()` 并在 cleanup 中调用 `ctx.revert()`。
  • ScrollTrigger 必须先 `gsap.registerPlugin(ScrollTrigger)`;生产代码移除 `markers`;只有布局实际变化后才调用 `ScrollTrigger.refresh()`。
  • 性能默认优先动画 `transform` / `opacity`,使用 GSAP 的 `x`、`y`、`scale`、`rotation`、`autoAlpha`;避免用 `width`、`height`、`top`、`left` 做运动动画。

Sam 场景约束

给家里长辈使用的健康网站或类似产品,默认遵守:

  • 支持 `prefers-reduced-motion`,必要时用 `gsap.matchMedia()` 分支。
  • 关键健康信息必须静态可见,不能依赖动画结束后才出现。
  • 避免视差、强 scrub、滚动劫持、闪烁、摇晃、长时间循环动画。
  • 交互反馈优先短、稳、可中断:保存成功、步骤切换、提示展开、趋势图进入视野。
  • 动画失败或禁用时,页面布局和信息阅读仍然完整。
Read more
Ships withall-my-ai-needs

跨 Claude Code 与 Codex 两套 agent 的 skill 能力真源与同步规则。写入由 agent 执行,人只审校与决策。 把 Claude Code 与 Codex 的可复用能力收敛到一个仓库,按 platform-first 维护:每个平台独立持有自己的 skills/ 与运行约定,同名 skill 允许在两端并存,不强行抽象去重。 仓库要解决的是多端 AI 配置的漂移——GitHub 仓库、本地工作区、本地 CLI

Get the whole plugin

Other skills on all-my-ai-needs.

aihot
Skill

aihot

查询 AIHOT 的中文 AI 资讯、精选、当前热点和日报。用户询问今天或最近的 AI 新闻、AI 圈动态、大模型或产品发布、OpenAI/Anthropic/Google 最新消息、AI 论文、AI 日报、AIHOT 精选、当前最热事件,或需要同步当前全部精选时使用。必须通过 aihot.news 的匿名只读…

apifox-cli
Skill

apifox-cli

通过 Apifox CLI 管理 Apifox 项目资源。触发场景:运行接口自动化测试/测试套件,查询/创建/更新/删除接口、环境、Schema、Mock、分支等项目资源,导入导出 API 文档,查看测试报告,管理 Runner、定时任务、通知等 CI/CD 配置。CLI 输出为结构化 JSON,常含…