inquirer-prompt-generator

Solid

Generate interactive command-line prompts using Inquirer.js with validation, conditional logic, and custom renderers. Creates user-friendly input collection flows for CLI applications.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Inquirer Prompt Generator Generate interactive CLI prompts using Inquirer.js with comprehensive validation, conditional flows, and custom formatting. ## Capabilities - Generate Inquirer.js prompt definitions - Create multi-step wizard flows - Implement input validation - Support conditional prompts - Generate TypeScript interfaces for answers - Create custom prompt formatters ## Usage Invoke this skill when you need to: - Create interactive CLI input collection - Build configuration wizards - Implement user confirmation flows - Generate form-like CLI interfaces ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | flowName | string | Yes | Name of the prompt flow | | prompts | array | Yes | List of prompt definitions | | typescript | boolean | No | Generate TypeScript types (default: true) | | validation | boolean | No | Include validation helpers (default: true) | ### Prompt Definition Structure ```json { "prompts": [ { "type": "input", "name": "projectName", "message": "What is your project name?", "default": "my-project", "validate": { "required": true, "pattern": "^[a-z][a-z0-9-]*$", "message": "Project name must be lowercase with hyphens" } }, { "type": "list", "name": "template", "message": "Select a template:", "choices": [ { "name": "React + TypeScript", "value": "react-ts" }, { "name": "Vue + Ty...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills