When scaffolding ($ARGUMENTS):
Determine what to create:
- Component, module, service, utility, hook, middleware, etc.
- Check existing patterns in the project for consistency
Generate files:
- Main implementation file in
src/ - Test file in
tests/ - Types/interfaces if needed
- Export from index if applicable
- Main implementation file in
Follow project conventions:
- File naming: match existing pattern (camelCase, kebab-case, PascalCase)
- Directory structure: place in correct location
- TypeScript: strict types, no
any - Exports: named exports preferred
Include in generated code:
- Proper TypeScript types
- Error handling
- Basic JSDoc for public API
- Placeholder test cases
Wire up: Update imports/exports in parent modules if needed