Component Scaffolder
This skill helps you quickly create new React components in src/components.
Usage
- •
Run the script: Use
run_commandto execute the Node.js script. Pass the name of the component you want to create (e.g.,MyNewComponent).bashnode .agent/skills/component_scaffolder/scripts/scaffold.js [ComponentName]
- •
[ComponentName]: The name of the component (e.g.,Header,Footer,UserProfile). It will be automatically capitalized.
- •
- •
Verify: The script will create:
- •
src/components/[ComponentName].jsx - •
src/components/[ComponentName].css
- •
Example
To create a ModelViewer component:
bash
node .agent/skills/component_scaffolder/scripts/scaffold.js ModelViewer
This will create src/components/ModelViewer.jsx and src/components/ModelViewer.css.