一键导入
scaffolding
Generates boilerplate following project conventions. Use when asked to create a new component, module, service, or scaffold code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates boilerplate following project conventions. Use when asked to create a new component, module, service, or scaffold code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | scaffolding |
| description | Generates boilerplate following project conventions. Use when asked to create a new component, module, service, or scaffold code. |
Generate boilerplate code that matches existing project conventions.
Before generating, find existing patterns:
# Find similar files
find . -name "*.tsx" -path "*/components/*" | head -5
# Check file structure
ls -la src/components/
# Look at existing code
cat src/components/Button/Button.tsx
Key conventions to detect:
Always match:
| Aspect | Check for |
|---|---|
| File naming | Button.tsx, button.tsx, Button.component.tsx |
| Folder structure | Button/index.tsx or Button.tsx |
| Component style | function vs arrow, FC type vs implicit |
| Props definition | interface vs type, inline vs separate |
| Exports | export default vs export const |
| Test files | .test.tsx, .spec.tsx, __tests__/ |
Include what's standard in the project:
Check generated code:
Ask for scaffolding like:
| Type | Usually Includes |
|---|---|
| React Component | Component file, types, test, styles, index |
| API Route | Handler, types, validation, test |
| Service | Class/module, types, test |
| Hook | Hook file, types, test |
| Utility | Function file, types, test |
# Detect React style
grep -l "React.FC\|: FC<" src/**/*.tsx # Typed FC
grep -l "function.*Props" src/**/*.tsx # Function with props
# Detect test pattern
ls src/**/*.test.* 2>/dev/null # Co-located
ls tests/ 2>/dev/null # Separate folder
# Detect styling
ls src/**/*.module.css 2>/dev/null # CSS Modules
grep "styled\." src/**/*.tsx # styled-components
grep "className=" src/**/*.tsx # Tailwind/CSS
Templates are available for common stacks:
Request: "Create a UserCard component"
Detection:
Existing components use:
- Folder structure: ComponentName/index.tsx
- Style: CSS Modules (ComponentName.module.css)
- Tests: ComponentName.test.tsx in same folder
- Types: Props interface in same file
- Exports: default export
Generated files:
src/components/UserCard/
├── index.tsx
├── UserCard.module.css
└── UserCard.test.tsx
index.tsx matches existing style:
import styles from './UserCard.module.css';
interface UserCardProps {
name: string;
email: string;
}
export default function UserCard({ name, email }: UserCardProps) {
return (
<div className={styles.container}>
<h3 className={styles.name}>{name}</h3>
<p className={styles.email}>{email}</p>
</div>
);
}
Complete the current milestone and prepare next work by following the canonical complete command doc.
Execute the current plan (from STATE.md -> PLAN.md) by following the canonical execute command doc. Make code changes + run necessary checks.
Initialize project with CLAUDE.md, STATE.md, and ROADMAP.md by following the canonical init command doc.
Create executable plan for the current phase (3-5 tasks). Reads the canonical plan command doc and produces/updates the current PLAN.md referenced from STATE.md. No implementation.
Review code changes and capture learnings for CLAUDE.md by following the canonical review command doc.
Check project progress and suggest the next action by following the canonical status command doc.