Skill Detail

Plop.js Code Generator

Creates Plop.js generators with Handlebars templates and custom action types for scaffolding React components, API routes, and test files. Uses inquirer prompts with validation and the addMany action for batch file generation.

Templates & WorkflowsCursor
Templates & Workflows Cursor Security Reviewed
Tool match: react โญ 7.6k GitHub stars โฌ‡ 1.6M/wk npm
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill plopjs-code-generator Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Install & setup
npm install –save-dev plop
Author
PlopJS
Last updated
Mar 24, 2026
Quick brief

The Plop.js Code Generator skill builds custom code scaffolding pipelines using Plop.js with Handlebars template syntax. It creates plopfile.js configurations that define generators with interactive inquirer prompts, template actions, and custom action handlers.

How it works

What this skill actually does

This skill generates Plop generators for common patterns: React component scaffolding (component file, styles, tests, stories, barrel export), Express/Fastify API route creation, Redux slice generation, and database migration file creation. Each generator uses addMany actions with glob patterns for batch file creation from template directories.

Prompt configurations include input validation using regex patterns and custom validator functions, dynamic default values computed from previous answers, and conditional prompts using when predicates. The skill supports list, checkbox, confirm, and custom prompt types.

Advanced features include custom Handlebars helpers for case transformations (camelCase, pascalCase, kebabCase), modify actions for appending to existing files like route registries and barrel exports, and append patterns with duplicate detection. The skill also creates shareable generator packages publishable to npm.