Shared loading dots

From ai-shifu/ai-shifu · View interactive version

Shared loading dots is an AI agent skill from the GitHub repository ai-shifu/ai-shifu. Use when adding shared Cook Web loading animations. Follow shared component placement, nonbreaking exports, and configurable dot animation conventions.

How to use this skill

Skill file

共享圆点 Loading

核心规则

工作流

  1. 先检查 src/components/loading/ 下是否已有默认 loading 和 barrel export,评估是否应该新增命名组件而不是改旧组件。
  2. 若动画需要复用,优先把节奏、大小、间距做成 props,并通过共享工具方法兜底非法入参。
  3. 如果动画依赖自定义关键帧,优先在 tailwind.config.ts 中注册,保证 JSX 中仍以 tailwind classname 为主。
  4. 修改导出后,补最小渲染测试,至少覆盖默认圆点数量和一组自定义 props。
  5. 若本次沉淀出可复用约束,同时更新 src/web/SKILL.md 索引,避免后续重复约定。

验证要点

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.