/configure-plugin:configure-completions [--check-only] [--fix]from configure-plugin
Adds or audits shell completions for released CLIs: generator subcommand, Homebrew/archive/installer delivery, and drift testing.
Ships in configure-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Make every CLI a repo releases ship shell completions, through every channel a user can install it from, with a test that keeps committed scripts current.
| Use this skill when... | Use another approach when... |
|---|---|
A repo releases a CLI binary and has no completions command | The Typer/Click --install-completion mechanics themselves are the problem — python-plugin:typer-cli-completion |
| Auditing that Homebrew, archives and installers all deliver completions | Setting up the release pipeline itself — /configure:release-please, /configure:workflows |
| Completions exist but nothing stops the committed scripts drifting | The repo ships a library, not a CLI — this standard is N/A |
find . -maxdepth 3 -name Cargo.toml -not -path '*/target/*'find . -maxdepth 2 -name go.modfind . -maxdepth 2 -name pyproject.tomlfind . -maxdepth 1 \( -name 'dist-workspace.toml' -o -name 'dist.toml' \)find . -maxdepth 1 \( -name '.goreleaser.yml' -o -name '.goreleaser.yaml' \)find . -type d -name completions -not -path '*/.git/*' -not -path '*/target/*' -not -path '*/node_modules/*'find . -maxdepth 1 -name '.project-standards.yaml'| Parameter | Description |
|---|---|
--check-only | Report the compliance table; write nothing |
--fix | Apply every missing piece without prompting |
Default (no flag): report, then ask before applying fixes.
A released CLI is compliant when all three hold:
Generator — the binary prints its own completion script, generated from
the CLI definition: <bin> completions <shell> (clap), the built-in
completion command (cobra), or --show-completion (Typer). Never a
hand-written script.
Every install channel delivers them:
| Channel | Delivery |
|---|---|
| Homebrew formula/cask | generate_completions_from_executable runs the generator at install |
| Release archives | pre-generated bash/zsh/fish scripts in a completions/ directory |
Shell installer, cargo install, go install, uv tool install/pipx, source | documented eval "$(<bin> completions zsh)" lines (these installers cannot place completion files) |
No drift — committed scripts are compared with generator output by a
test in the normal suite, and a recipe (just completions) regenerates them.
Channels that run the generator at install or shell start cannot drift; only
committed copies can.
Execute this completions compliance workflow:
Find the released binaries: [[bin]]/[package.metadata.dist] (Rust),
package main + a .goreleaser.y*ml builds entry (Go),
[project.scripts] (Python). No released binary → report N/A and stop.
clap in Cargo.toml, github.com/spf13/cobra in go.mod,
typer/click in pyproject.toml. Another framework → report it and check
whether it has a generator before proposing anything.installers (shell, homebrew, powershell, npm),
GoReleaser homebrew_casks/brews/archives, a tap repo, PyPI.Report one row per requirement, each with the evidence that decides it:
| Requirement | PASS evidence |
|---|---|
| Generator | <bin> completions bash (or the framework's form) exits 0 and prints a script |
| Homebrew | the published formula/cask contains generate_completions_from_executable — read the tap file, not the generator config |
| Archives | the archive listing contains completions/ (e.g. tar -tJf on a local dist build) |
| Installer docs | README or usage doc shows the eval/source lines |
| Drift test | a test reads the committed scripts and compares them with generator output |
| Regenerate recipe | a justfile/Makefile target writes the scripts from the generator |
--fix or confirmed)Per framework, use the templates in REFERENCE.md:
clap_complete, a Completions { shell: Shell }
subcommand, committed scripts, the drift test; with cargo-dist, include the
scripts and patch the generated formula (dist's formula installs only
executables).completion command already exists unless
CompletionOptions.DisableDefaultCmd is set; wire GoReleaser's
generate_completions_from_executable with shell_parameter_format: cobra.python-plugin:typer-cli-completion for
generating scripts from a non-shell parent; Homebrew uses
shell_parameter_format: :typer or :click.Then add the docs section and the regenerate recipe, regenerate, and
syntax-check the scripts (bash -n, zsh -n, fish -n).
Append a line to one committed script, run the test, confirm it fails with the regenerate hint, restore the file. A drift test never seen failing is not evidence.
components:
completions: "2025.1"
completions_framework: "[clap|cobra|typer|click]"
completions_channels: [homebrew, archives, docs]
Print the compliance table, the files changed, and anything only a release can
verify (a patched formula is exercised by the next publish). Under
--check-only, prefix with "DRY RUN — no files modified".
| Context | Command |
|---|---|
| Audit only | /configure:completions --check-only |
| Apply all fixes | /configure:completions --fix |
| Generator smoke | <bin> completions bash > /dev/null && echo ok |
| Archive contents (cargo-dist) | dist build --artifacts=local --target <triple> then tar -tJf target/distrib/*.tar.xz |
| Syntax-check scripts | bash -n completions/<bin>.bash && zsh -n completions/_<bin> |
python-plugin:typer-cli-completion — Typer/Click generation from a non-shell parent/configure:release-please — the release pipeline these channels hang offWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
49 skills in this plugin
/ci-workflowsReference YAML for the canonical container-build, test, release-please and auto-fix workflow files. Use when another skill or a review needs the standard shape to cite or diff against./claude-security-settingsClaude Code security settings: permission wildcards, shell operator protections, project-level allowlists. Use when auditing or hardening .claude/settings.json permissions./config-syncConfig sync across FVH repos: extract, diff, propagate tooling improvements. Use when syncing workflows or configs across multiple repos.npx claudepluginhub laurigates/claude-plugins --plugin configure-pluginOther plugins' skills for the same job