بنقرة واحدة
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.