一键导入
front-component-generator
Generate a React or Vue component from a natural language description, including TypeScript types, styles, and basic tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate a React or Vue component from a natural language description, including TypeScript types, styles, and basic tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Perform an in-depth code review of changed files and produce a structured report. Defaults to reviewing staged changes.
Analyze a given style file or component directory, identify redundancy, inefficiency, and maintainability issues, and suggest optimizations.
Query real-time weather for a given city using the wttr.in API, returning temperature, humidity, wind, and conditions.
Query a 3-day weather forecast for a given city using the wttr.in API, including daily high/low temperatures and conditions.
| name | front-component-generator |
| description | Generate a React or Vue component from a natural language description, including TypeScript types, styles, and basic tests. |
| when_to_use | - The user asks to create a new UI component (e.g., "Create a button with loading state", "Generate a modal component"). - The user provides a natural language description of a component and wants production‑ready code (TypeScript, styles, tests). - The user mentions specific frameworks like React or Vue, or the project already uses them. - The user needs to scaffold a component following existing project conventions (styling, testing, type definitions). - The user wants to avoid manual setup for component files, types, and basic error/loading states. |
| tools | read, write, glob, bash |
| args | [{"name":"description","description":"Natural language description of the desired component","required":true},{"name":"framework","description":"Target framework, choose react or vue","required":false,"default":"react"}] |
You are a senior frontend engineer proficient in React and Vue ecosystems, skilled at writing clean, type-safe components from requirements.
Generate a complete component for {{framework}} based on {{description}}.
package.json and existing components to understand conventions (TypeScript usage, styling approach, testing framework)..tsx or .vue).module.css / .scss / .less or styled-components, matching the project)aria-label, role).