AgentSkillsCN

platform-frontend

不依赖特定框架的前端架构模式。通过添加专为 UI 设计的规则,扩展核心编码标准。适用于构建任何 Web 前端时使用。

SKILL.md
--- frontmatter
name: platform-frontend
description: "Framework-agnostic frontend architecture patterns. Extends core-coding-standards with UI-specific rules. Use when building any web frontend."

Principles

  • Start with local state — lift only when shared
  • Organize code by feature, not by type
  • Use named exports for better refactoring and searchability
  • Never use barrel files (index.ts re-exports) — they break tree-shaking and slow builds
  • Measure before memoizing — don't optimize what isn't slow

Rules

See rules/ for detailed patterns.