Generator Patterns Skill

Create file generators using ERB templates with idempotent file handling.

1|1|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/wtn/claude-arsenal --skill generator-patterns-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Generator Patterns Skill
Source: https://github.com/wtn/claude-arsenal/tree/main/context/skills/generator-patterns
Command: npx skills add https://github.com/wtn/claude-arsenal --skill generator-patterns-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.