argparse-scaffolder

Solid

Generate argparse-based Python CLI applications with subparsers, type converters, and standard library patterns. Creates lightweight Python CLIs without external dependencies.

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

# Argparse Scaffolder Generate a complete argparse CLI application with Python standard library, subparsers, and best practices. ## Capabilities - Generate Python-based argparse CLI projects - Create subparser hierarchies for subcommands - Set up custom type converters and actions - Configure mutually exclusive groups - Implement parent parsers for shared arguments - Set up standard Python project structure ## Usage Invoke this skill when you need to: - Bootstrap a CLI using Python standard library only - Create a lightweight CLI without external dependencies - Set up subparsers for command hierarchies - Build CLIs that need to run on any Python installation ## 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 | | pythonVersion | string | No | Python version requirement (default: ">=3.8") | | useSubparsers | boolean | No | Use subparsers for commands (default: true) | ### Command Structure ```json { "commands": [ { "name": "convert", "description": "Convert file formats", "arguments": [ { "name": "input", "help": "Input file path" }, { "name": "output", "help": "Output file path", "nargs": "?" } ], "options": [ { "flags": ["-f", "--format"], "choices": ["json", "yaml", "xml"] ...

Details

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

Related Skills