configure-completions
Shell completions for a released CLI: generator subcommand, Homebrew/archive/installer delivery, drift test. Use when a repo ships a CLI binary, to add or…
от laurigates★ 61 звезда на GitHub
Установить configure-completions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/configure:completions
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.
When to Use This Skill
| 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 |
Context
- Rust bins: !
find . -maxdepth 3 -name Cargo.toml -not -path '*/target/*' - Go modules: !
find . -maxdepth 2 -name go.mod - Python projects: !
find . -maxdepth 2 -name pyproject.toml - cargo-dist config: !
find . -maxdepth 1 \( -name 'dist-workspace.toml' -o -name 'dist.toml' \) - GoReleaser config: !
find . -maxdepth 1 \( -name '.goreleaser.yml' -o -name '.goreleaser.yaml' \) - Committed completion scripts: !
find . -type d -name completions -not -path '*/.git/*' -not -path '*/target/*' -not -path '*/node_modules/*' - Project standards: !
find . -maxdepth 1 -name '.project-standards.yaml'
Parameters
| 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.
The Standard
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-incompletioncommand (cobra), or--show-completion(Typer). Never a hand-written script.Every install channel delivers them:
Channel Delivery Homebrew formula/cask generate_completions_from_executableruns the generator at installRelease archives pre-generated bash/zsh/fish scripts in a completions/directoryShell installer, cargo install,go install,uv tool install/pipx, sourcedocumented 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.
Execution
Execute this completions compliance workflow:
Step 1: Decide applicability
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.
Step 2: Detect the framework and channels
- Framework:
clapin Cargo.toml,github.com/spf13/cobrain go.mod,typer/clickin pyproject.toml. Another framework → report it and check whether it has a generator before proposing anything. - Channels: cargo-dist
installers(shell, homebrew, powershell, npm), GoReleaserhomebrew_casks/brews/archives, a tap repo, PyPI.
Step 3: Check each requirement
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 |
Step 4: Apply fixes (--fix or confirmed)
Per framework, use the templates in REFERENCE.md:
- Rust / clap: add
clap_complete, aCompletions { shell: Shell }subcommand, committed scripts, the drift test; with cargo-dist,includethe scripts and patch the generated formula (dist's formula installs only executables). - Go / cobra: the default
completioncommand already exists unlessCompletionOptions.DisableDefaultCmdis set; wire GoReleaser'sgenerate_completions_from_executablewithshell_parameter_format: cobra. - Python / Typer or Click: see
python-plugin:typer-cli-completionfor generating scripts from a non-shell parent; Homebrew usesshell_parameter_format: :typeror:click.
Then add the docs section and the regenerate r
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Glob - 02
Grep - 03
Read - 04
Write - 05
Edit - 06
Bash(cargo *) - 07
Bash(go *) - 08
Bash(uv *) - 09
Bash(just *) - 10
Bash(git status *) - 11
Bash(git diff *) - 12
Bash(git add *) - 13
Bash(find *) - 14
Bash(test *) - 15
Bash(bash -n *) - 16
Bash(zsh -n *) - 17
Bash(fish -n *) - 18
AskUserQuestion - 19
TodoWrite
Вложенные файлы
- REFERENCE.md
FAQ
Что делает скилл configure-completions?
Shell completions for a released CLI: generator subcommand, Homebrew/archive/installer delivery, drift test. Use when a repo ships a CLI binary, to add or audit its completions.
Как установить скилл configure-completions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл configure-completions запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…