Agent Skills: 一文件一组件规范

Must follow when 检查或重构 React/Vue 组件文件,强制每个文件只包含一个组件,不允许多组件共存于同一文件;支持 TSX/JSX/Vue。触发词:一文件一组件、组件文件规范检查、单组件规范。

UncategorizedID: forge-town/skills/one-component-per-file-best-practice

Install this agent skill to your local

pnpm dlx add-skill https://github.com/forge-town/skills/tree/HEAD/skills/one-component-per-file-best-practice

Skill Files

Browse the full folder contents for one-component-per-file-best-practice.

Download Skill

Loading file tree…

skills/one-component-per-file-best-practice/SKILL.md

Skill Metadata

Name
one-component-per-file-best-practice
Description
Must follow when 检查或重构 React/Vue 组件文件,强制每个文件只包含一个组件,不允许多组件共存于同一文件;支持 TSX/JSX/Vue。触发词:一文件一组件、组件文件规范检查、单组件规范。