一键导入
create-react-component
Create a new React component in packages/components following established conventions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new React component in packages/components following established conventions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | create-react-component |
| description | Create a new React component in packages/components following established conventions |
| argument-hint | ["ComponentName"] |
Create a new React component in the packages/components package following the established conventions.
Create a folder packages/components/src/$ARGUMENTS/ with the following files:
index.tsx — Component implementationUse the template from templates/component.tsx:
{{ComponentName}} with $ARGUMENTS{{component-name}} with the kebab-case versionindex.test.tsx — Jest unit testsUse the template from templates/component.test.tsx:
{{ComponentName}} with $ARGUMENTSindex.stories.tsx — Storybook storyUse the template from templates/component.stories.tsx:
{{ComponentName}} with $ARGUMENTSindex.scss — Component stylesUse the template from templates/component.scss:
{{component-name}} with the kebab-case version of $ARGUMENTSAdd a named export to packages/components/index.ts:
export {default as $ARGUMENTS} from './src/$ARGUMENTS';
After creating all files, run yarn test and yarn lint from packages/components/ to verify everything works.