Agent skill

getopts-parser-generator

Generate getopts-based argument parsing for shell scripts with short/long options and validation.

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill getopts-parser-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: 3 KB
Bundled scripts: none
Allowed tools: ReadWriteEditBashGlobGrep
Path: library/specializations/cli-mcp-development/skills/getopts-parser-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

# Getopts Parser Generator Generate getopts-based argument parsing for shell scripts. ## Capabilities - Generate getopts parsing code - Support short and long options - Implement option validation - Create help text generation - Handle required arguments - Generate usage documentation ## Usage Invoke this skill when you need to: - Add argument parsing to shell scripts - Support short and long options - Validate argument values - Generate help text ## Generated Patterns ### Getopts with Long Options ```bash #!/usr/bin/env bash # Default values VERBOSE=false OUTPUT="" FORMAT="text" FORCE=false # Usage function usage() { cat <<EOF Usage: $(basename "$0") [OPTIONS] <input> Options: -h, --help Show this help -v, --verbose Enable verbose output -o, --output FILE Output file (default: stdout) -f, --format FORMAT Output format: text, json, csv (default: text) -F, --force Force overwrite existing files Arguments: input Input file to process EOF } # Parse options parse_options() { # Transform long options to short ones for arg in "$@"; do shift case "$arg" in '--help') set -- "$@" '-h' ;; '--verbose') set -- "$@" '-v' ;; '--output') set -- "$@" '-o' ;; '--format') set -- "$@" '-f' ;; '--forc

What's inside
Steps it walks through
  1. Capabilities
  2. Usage
  3. Generated Patterns
  4. Getopts with Long Options
  5. Target Processes
Ships with 1 file
  • README.md
Commands it runs
Default values
Usage function
cat <<EOF
Parse options
for arg in "$@"; do
shift
case "$arg" in
esac
done
local OPTIND opt
More from babysitter
All skills →
About this skill
What does the getopts-parser-generator skill do?

Generate getopts-based argument parsing for shell scripts with short/long options and validation.

How do I install it?

Run `npx skills add a5c-ai/babysitter --skill getopts-parser-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