agentleFS
xiaobei930xiaobei930/cc-best/skills/frontend/SKILL.md

frontend

Skill48 starsChanged 10 months agoMITView on GitHub

Frontend patterns: component design, state management, performance, accessibility. Use when building web frontends, components, or client-side apps.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use programming, data and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Xia-AtaraxiaSkill

    programming

    Guides correctness-first, type-strict Python and TypeScript implementation. Use when asked to write a `.py` or `.ts` file, scaffold a Python/TypeScript project, add strict types, assess an implementation diff for correctness or type holes, or fix a reproducible defect. Not for smell-only assessment or behavior-preserving restructuring — use refactor; not for suite-level test architecture — use testing.

    Also in 3 projects that use this

  • iankikuSkill

    data

    (forwward) Designs analytics systems, writes SQL queries, plans event tracking, and builds dashboards for product and user metrics. Triggers on SQL, analytics, dashboards, tracking, data pipelines, or user behavior analysis.

    Also in 3 projects that use this

  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 6 projects that use this

  • BlockSkill

    debugging

    Debugging guidelines and best practices

    Also in 4 projects that use this

The file

Files
SKILL.md

前端开发模式

本技能提供前端开发的最佳实践和模式,支持多框架按需加载。

快速参考

  • 核心职责: 提供前端开发最佳实践——组件设计、状态管理、性能优化、无障碍开发
  • 框架支持: Vue 3 / React 18 / Svelte / Angular 17+(根据 package.json 按需加载)
  • 性能目标: LCP < 2.5s, FID < 100ms, CLS < 0.1, TTI < 3.8s
  • 设计原则: 单一职责、Props 向下、Events 向上、组合优于继承

触发条件

  • 创建或修改前端组件
  • 设计 UI/UX 交互
  • 实现状态管理
  • 性能优化
  • 无障碍开发

框架专属模式

根据项目 package.json 依赖加载对应文件:

技术栈加载文件框架
Vuevue.mdVue 3, Nuxt 3
Reactreact.mdReact 18, Next.js
Sveltesvelte.mdSvelte, SvelteKit
Angularangular.mdAngular 17+

子文件索引

文件内容
vue.mdVue 3 + Composition API 模式
react.mdReact 18 + Hooks 模式
svelte.mdSvelte/SvelteKit 模式
angular.mdAngular 17+ 模式
performance.mdCore Web Vitals 优化
tailwind.mdTailwind 最佳实践 + v4 迁移
design-guide.md设计方法论与审查清单
patterns.md通用组件/状态管理/表单/动画/a11y 模式

性能指标

指标目标说明
LCP< 2.5s最大内容绘制
FID< 100ms首次输入延迟
CLS< 0.1累积布局偏移
TTI< 3.8s可交互时间

设计美学(避免 AI Slop)

详见 design-guide.md — AI 通用审美定义、设计思维方向矩阵、反模式清单与审查清单。

测试模式

详见 rules/frontend/frontend-testing.md 和 rules/frontend/frontend-e2e.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.