What problem does it solve?
Manually creating repetitive file structures and boilerplate code is time-consuming and error-prone. This Skill provides a standardized, automated way to generate files, ensuring consistency, reducing manual effort, and accelerating project setup.
Core Features & Use Cases
- ERB Template Rendering: Guides on using ERB for dynamic file content generation, making boilerplate creation efficient.
- Idempotency & User Respect: Ensures generators don't overwrite existing user customizations without explicit consent, preventing data loss.
- Consistent Structure: Promotes a standardized class structure for all generators, improving maintainability and predictability.
- User Feedback: Provides clear progress updates and next steps during the generation process.
- Use Case: When you need to create a new skill, hook, or agent, this skill guides you in building a generator that scaffolds the necessary files and directories, pre-populating them with best-practice boilerplate, saving significant setup time.
Quick Start
Use the generator-patterns skill to help me create a new file generator for my-new-component, ensuring it uses ERB templates and handles existing files gracefully.