Skill Detail

Yeoman Generator Builder

Creates custom Yeoman generators using the yeoman-generator API and yo CLI. Scaffolds generator packages with prompting, writing, and install phases, supporting composability via this.composeWith() for multi-generator workflows.

Templates & WorkflowsOpenClaw
Templates & Workflows OpenClaw Published
โญ 1.3k GitHub stars โฌ‡ 5M/wk npm
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill yeoman-generator-builder Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Node.js
Install & setup
npm install yeoman-generator
Author
Yeoman
Last updated
Mar 20, 2026
Quick brief

The Yeoman Generator Builder skill helps create custom project scaffolding generators using the Yeoman ecosystem. It leverages the yeoman-generator base class to define generators with proper lifecycle phases: initializing, prompting, configuring, writing, conflicts, install, and end.

How it works

What this skill actually does

The skill scaffolds generator npm packages with the required generator-* naming convention and proper directory structure. It creates sub-generators for modular scaffolding and configures the yeoman-environment for generator discovery and execution via the yo CLI.

Prompting phases use Inquirer.js question objects with support for input, confirm, list, checkbox, and expand prompt types. The skill generates dynamic prompts that adapt based on previous answers using the when property and validates input with custom validation functions.

Template writing uses this.fs.copyTpl() with EJS syntax for dynamic content generation. The skill handles file conflict resolution via the conflicter, manages destination paths with this.destinationPath(), and implements composability using this.composeWith() to chain multiple generators. It also integrates with yeoman-assert and yeoman-test for generator unit testing.