Create a React component using the Container/Presentation pattern in src/components by asking for the component name and type (ui or features), then scaffold fi
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-react-container-presentation-component-eafb8ad3e00c ,按照其中的说明把「react-container-presentation-component」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use this skill to create a React component under src/components that follows the Container/Presentation pattern.
Refer to this skill's bundled references for detailed rules.
references/component-architecture.mdreferences/typescript-and-scss-rules.mdIf the /react-container-presentation-component input is incomplete, ask questions first before creating files.
/react-container-presentation-componentui vs features classification within the Container/Presentation patternIf any of the following information is missing, ask the user using ask_user.
ui or features)ui)Question requirements:
ui, features)ui, ask whether direct usage of Mantine or other UI libraries in existing features should be replaced with the new componentsrc/components/ui/<ComponentName> or src/components/features/<ComponentName> already exists.ui: src/components/ui/<ComponentName>features: src/components/features/<ComponentName>ui is specified)ui is specified, before creating files, review Reclassification Rule in references/component-architecture.md.features.features, do not proceed as ui; use ask_user and confirm one of the following before continuing.
Create as featuresKeep ui and move state/logic to parent or featuresui: index.tsx, index.module.scss, index.stories.tsxfeatures: index.tsx, use<ComponentName>.tsx, presentation.tsx, types.ts, presentation.module.scss, presentation.stories.tsxui)features with the new ui component.Storybook Minimum in references/component-architecture.md for story state decisions.ask_user whether to run a Storybook check (for example: "Run" / "Skip for now").npm run storybook only if the user selects "Run".ui or features.