Agent skill

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.

a5c-ai1,642★ · 1 repos on radarProfile →
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill shell-completion-generator --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Allowed tools: ReadWriteEditBashGlobGrep
Path: library/specializations/cli-mcp-development/skills/shell-completion-generator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Capabilities
  2. Usage
  3. Inputs
  4. Command Definition Structure
  5. Output Structure
  6. Generated Code Patterns
  7. Bash Completion Script
  8. Zsh Completion Script
  9. Fish Completion Script
  10. Completion Types
  11. Dynamic Completion Sources
  12. Installation Script
  13. Workflow
  14. Best Practices Applied
Ships with 1 file
  • README.md
Commands it runs
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)
More from babysitter
All skills →
About this skill
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.

Keep going