yargs-scaffolder

Solid

Generate Yargs-based CLI applications with commands, positional args, middleware, and TypeScript support. Creates a complete scaffolded CLI application with modern patterns.

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

# Yargs Scaffolder Generate a complete Yargs CLI application with TypeScript, middleware support, and best practices. ## Capabilities - Generate TypeScript-based Yargs CLI projects - Create command modules with positional arguments - Set up middleware for common operations (logging, config loading) - Configure type coercion and validation - Implement strict mode and fail handlers - Set up build and development workflows ## Usage Invoke this skill when you need to: - Bootstrap a new CLI application using Yargs - Create a CLI with command modules pattern - Set up middleware-based processing - Configure complex argument parsing ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | projectName | string | Yes | Name of the CLI project (kebab-case) | | description | string | Yes | Short description of the CLI | | commands | array | No | List of commands to scaffold | | typescript | boolean | No | Use TypeScript (default: true) | | packageManager | string | No | npm, yarn, or pnpm (default: npm) | | strictMode | boolean | No | Enable strict mode (default: true) | ### Command Structure ```json { "commands": [ { "name": "serve", "description": "Start the server", "aliases": ["s"], "positional": [ { "name": "port", "type": "number", "default": 3000 } ], "options": [ { "name": "host", "type": "string", "default": "localhost" }, { "name": "watch", "type": "boolean"...

Details

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

Related Skills