shell-completion-generator
Generate shell completion scripts for bash, zsh, and fish from CLI command definitions. Creates intelligent completions with argument suggestions, file completions, and dynamic values.
Profile →npx skills add a5c-ai/babysitter --skill shell-completion-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 enviro
- Capabilities
- Usage
- Inputs
- Command Definition Structure
- Output Structure
- Generated Code Patterns
- Bash Completion Script
- Zsh Completion Script
- Fish Completion Script
- Completion Types
- Dynamic Completion Sources
- Installation Script
- Workflow
- Best Practices Applied
Completion script for mycli
local cur prev words cword
_init_completion || return
local commands="deploy rollback status config"
case "${prev}" in
return
_filedir '@(json|yaml|yml)'
esac
if [[ ${words[1]} == "deploy" ]]; then
local services=$(_mycli_get_services)What does the shell-completion-generator skill do?
Generate shell completion scripts for bash, zsh, and fish from CLI command definitions. Creates intelligent completions with argument suggestions, file completions, and dynamic values.
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill shell-completion-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.