shell-completion-generator

Solid

Generate shell completion scripts for bash, zsh, and fish from CLI command definitions. Creates intelligent completions with argument suggestions, file completions, and dynamic values.

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

# Shell Completion Generator Generate comprehensive shell completion scripts for bash, zsh, and fish shells from CLI command definitions. ## Capabilities - Generate bash completion scripts - Generate zsh completion with descriptions - Generate fish completion scripts - Support for subcommands and nested commands - Dynamic completion for arguments - File/directory path completion - Custom completion functions ## Usage Invoke this skill when you need to: - Add shell completions to a CLI application - Generate completions from command schemas - Create custom completion logic - Support multiple shells ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | cliName | string | Yes | Name of the CLI executable | | commands | array | Yes | Command definitions with options | | shells | array | No | Target shells (default: all) | | outputDir | string | No | Output directory for scripts | | dynamic | object | No | Dynamic completion configurations | ### Command Definition Structure ```json { "commands": [ { "name": "deploy", "description": "Deploy application to environment", "options": [ { "flags": ["-e", "--env"], "description": "Target environment", "type": "choice", "choices": ["dev", "staging", "prod"] }, { "flags": ["-c", "--config"], "description": "Config file path", "type": "file", "extensions": ...

Details

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

Related Skills