agentleFS
JIANGEPLUSJIANGEPLUS/senior-developer-codex/.agents/skills/frontend-dev/SKILL.md

frontend-dev

Skill0 starsChanged 2 months agoMITView on GitHub

Frontend development with premium UI design, animations, and AI-generated media assets. TRIGGER when: building landing pages, marketing sites, product pages with rich animations, generating media assets (image/video/audio/music via MiniMax API), implementing cinematic scroll animations, creating generative art. DO NOT TRIGGER when: simple UI components, basic form pages, minor CSS fixes, adding a button or modal, standard CRUD interfaces, simple responsive adjustments. 触发词:落地页、营销页、动效、滚动动画、AI 配图、生成艺术、前端页面。

  • Reads credentials

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Frontend Studio

构建生产级前端页面,整合 5 大能力:设计工程、动效系统、AI 资产生成、文案、生成艺术。

Skill Structure

frontend-dev/
├── SKILL.md                      # 本文件(工作流骨架)
├── references/                   # 详细指南(按需读取)
│   ├── design-rules.md           # 设计规则与禁止模式
│   ├── motion-recipes.md         # 动效代码片段
│   ├── minimax-cli-reference.md  # CLI 参数速查
│   ├── asset-prompt-guide.md     # 资产 Prompt 工程
│   ├── minimax-tts-guide.md      # TTS 用法
│   ├── minimax-music-guide.md    # 音乐生成
│   ├── minimax-video-guide.md    # 视频生成
│   ├── minimax-image-guide.md    # 图片生成
│   ├── minimax-voice-catalog.md  # 语音ID目录
│   └── env-setup.md              # 环境配置

Workflow

Phase 1: Design Architecture

  1. 分析需求 — 确定页面类型和上下文
  2. 规划布局分区,确定资产需求
  3. 选择技术方案(详见 references/design-rules.md)

Phase 2: Motion Architecture

  1. 按分区选择动效工具(见下方工具矩阵)
  2. 规划动效序列,遵守性能规则

Phase 3: Asset Generation

使用 AI 资产生成能力生成所有图片/视频/音频资产。绝不使用占位符 URL。

  1. 解析资产需求(类型、风格、规格、用途)
  2. 编写 Prompt,展示给用户确认后再生成
  3. 执行生成,保存到项目本地
  4. 所有资产保存完毕后才进入 Phase 5

Phase 4: Copywriting

使用 AIDA/PAS/FAB 框架撰写文案。不使用 Lorem ipsum。

Phase 5: Build UI

搭建项目,逐区构建。集成生成的资产和文案。所有媒体引用必须指向本地文件。

Phase 6: Quality Gates

  • 移动端布局正常
  • min-h-[100dvh] 非 h-screen
  • Empty/Loading/Error 状态齐全
  • 动效工具未在同一组件混用
  • useEffect 有 cleanup
  • prefers-reduced-motion 已处理
  • 无占位符 URL(grep 检查)
  • 所有媒体资产存在于本地
  • 依赖已在 package.json 中声明

Motion Tool Selection Matrix

场景工具
UI 进出/布局动画Framer Motion
滚动叙事(pin, scrub)GSAP + ScrollTrigger
循环图标Lottie(懒加载)
3D/WebGLThree.js / R3F(隔离 Canvas)
Hover/Focus 状态纯 CSS
原生滚动驱动CSS animation-timeline: scroll()

冲突规则:

  • ❌ 同一组件不混用 GSAP + Framer Motion
  • ❌ R3F 必须隔离在 Canvas wrapper 中
  • ❌ 重型库(Lottie/GSAP/Three.js)必须懒加载

Asset Generation Quick Reference

类型生成方式模式
图片图片生成 API / CLI同步
TTS语音合成 API / CLI同步
音乐音乐生成 API / CLI同步
视频视频生成 API / CLI异步(创建→轮询→下载)

环境变量:MINIMAX_API_KEY(使用 MiniMax 生成时必须)

资产命名规范: {type}-{descriptor}-{timestamp}.{ext}

预设快捷键:

快捷键规格
hero16:9, 电影感, 文字安全区
thumb1:1, 主体居中
icon1:1, 扁平, 干净背景
bg-video768P, 6s, 静态镜头
bgm30s, 无人声, 可循环

Performance Rules

只动画 GPU 属性: transform, opacity, filter, clip-path

绝不动画: width, height, top, left, margin, padding

移动端:

  • 尊重 prefers-reduced-motion
  • 粗指针设备禁用视差/3D
  • 粒子上限:桌面 800 / 平板 300 / 手机 100

详细参考文档

需要深入指导时查阅 references/ 目录:

  • 设计规则与禁止模式 → references/design-rules.md
  • 动效代码片段 → references/motion-recipes.md
  • MiniMax 各类资产生成详细指南 → 对应 references/minimax-*-guide.md
  • 环境配置 → references/env-setup.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.