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
1423 skills

Claude Code

$ npx -y skills add codingSamss/all-my-ai-needs --skill gsap --agent claude-code

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
@codingsamss
Ships withall-my-ai-needs

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

Stars on GitHub

Momentum

stars in total
14
Star history of codingSamss/all-my-ai-needs on GitHub, a chart by star-history.com

Other skills on all-my-ai-needs.

aihot

aihot

查询 AIHOT(aihot.news)的中文 AI 资讯。用户问今天或最近 AI 圈发生了什么、AI 新闻和 AI 日报、大模型与 AI 产品发布、OpenAI/Anthropic/Google 等公司或某个 AI 话题的最新消息、当前最热的 AI…

apifox-cli

apifox-cli

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

apifox-test-case

apifox-test-case

Apifox 接口测试用例:test-case 与 test-data 的查询、创建、更新、删除、分类和运行;处理测试步骤、断言、提取变量、前后置处理器、数据集,以及“CLI 创建后前端测试步骤无法展示”等问题。

bilibili

bilibili

Read Bilibili (B站) content. Actions: search videos, view hot/rank feeds, read video details, prepare audio, and read subtitles…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react3d252k
@facebook@facebookInstall Skill

Questions about gsap.

Which coding agents can use gsap?
gsap installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.