一键导入
scaffold
Generate component boilerplate following project conventions. Supports React and Vue with TypeScript, tests, and stories.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate component boilerplate following project conventions. Supports React and Vue with TypeScript, tests, and stories.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | scaffold |
| description | Generate component boilerplate following project conventions. Supports React and Vue with TypeScript, tests, and stories. |
Generate a new component with all supporting files, following project conventions from the style guide.
Use this skill when:
Read the style guide at ../../_references/style-guide.md to understand naming conventions, file structure, and TypeScript patterns.
Ask for inputs (if not provided):
name: Component name in PascalCase (e.g., UserProfileCard)framework: react or vue (default: detect from project)type: component | page | layout (default: component)withTests: boolean (default: true)withStories: boolean (default: true)Detect the framework if not specified:
react or vue in package.json dependencies.tsx (React) or .vue (Vue) filesGenerate files based on framework:
src/components/{name}/
├── {name}.tsx # Component implementation
├── {name}.test.tsx # Unit tests with Testing Library
├── {name}.stories.tsx # Storybook stories
├── {name}.module.css # CSS module (if using CSS modules)
└── index.ts # Barrel export
src/components/{name}/
├── {name}.vue # SFC with <script setup lang="ts">
├── {name}.test.ts # Unit tests with Vitest
├── {name}.stories.ts # Storybook stories
└── index.ts # Barrel export
Follow these rules:
any types{name}PropsforwardRef for React components that render DOM elementsdefineProps with type-only syntax for Vue componentsAfter generation, run:
npx tsc --noEmit to verify typesnpx vitest run {name} or npx jest {name} to verify tests passScaffold a React component called DataTable with tests and stories
Create a Vue page component called DashboardView without stories
Review code changes against project standards with structured feedback on security, performance, naming, error handling, and test coverage.
Pre-deployment validation checklist. Verifies environment variables, build output, database migrations, and dependency security before shipping.
Validate project configuration files against team standards. Checks ESLint, TypeScript, Prettier, and package.json for common misconfigurations.
Post-deployment smoke tests and notification workflow. Verifies critical paths are working and notifies the team of deployment status.
Bootstrap a complete development environment for new contributors. Installs dependencies, configures tools, seeds databases, and verifies everything works.