create_component
Scaffold a component within a feature's atomic-design layer with proper barrel exports; for mobile, also generate styles.ts with Expo CSS.
Instructions
Create a component inside a feature layer (atoms/molecules/organisms/templates) with proper barrel exports. For mobile, also creates styles.ts with Expo CSS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cwd": "<cwd>",
"featureName": "<featureName>",
"componentName": "<componentName>",
"layer": "<layer>"
},
"name": "create_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Project root directory path | |
| layer | Yes | Atomic design layer | |
| platform | No | Platform override | auto |
| featureName | Yes | Feature name (e.g., "Landing") | |
| componentName | Yes | Component name in PascalCase (e.g., "HeroSection") |