Skip to content
Skills Library
DevOps & cloud · Building & coding

glab-completion

/glab-completion

Generate shell completion scripts for bash, zsh, fish, or PowerShell. Use when setting up glab autocompletion for your shell. Triggers on completion, autocomplete, shell completion, tab completion.

Licence
MIT
Last repository change
10.11.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
1
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

What it does and when to use it

Generate shell completion scripts for bash, zsh, fish, or PowerShell. Use when setting up glab autocompletion for your shell. Triggers on completion, autocomplete, shell completion, tab completion.

Original author description

Generate shell completion scripts for bash, zsh, fish, or PowerShell. Use when setting up glab autocompletion for your shell. Triggers on completion, autocomplete, shell completion, tab completion.

How it works

  1. Overview
  2. Command-specific completion
  3. Quick start
  4. Subcommands
Original SKILL.md headings · 133 lines, 461 words
SKILL.md preview
---
name: glab-completion
description: Generate shell completion scripts for bash, zsh, fish, or PowerShell. Use when setting up glab autocompletion for your shell. Triggers on completion, autocomplete, shell completion, tab completion.
---

# glab completion

> **Help provenance.** Each adjacent marker selects its matching source commit and archive SHA-256 below (checksum-verified official macOS arm64 binary). Preserve complete help bytes except trailing spaces/tabs, including casing, spelling, blank lines, indentation, examples, wrapping, and truncation. Historical keys do not override current markers.
> - `2e352a17e`: `2e352a17e7e00bef420b0f38e0ce9ab4e1a38e5d`; `017b14c9bb8d54ba1ea2007607f86dbde0352ad8dea566e2647e9c1bae86bcac`.

## Overview

<!-- help-capture: 2e352a17e:5140c828eca5 -->

````text

  This command outputs code meant to be saved to a file, or immediately
  evaluated by an interactive shell. To load completions:

  ### Bash

  To load completions in your current shell session:

  ```shell
  source <(glab completion -s bash)
  ```

  To load completions for every new session, run this command one time:

  #### Linux

  ```shell
  glab completion -s bash > /etc/bash_completion.d/glab
  ```

  #### macOS

  ```shell
  glab completion -s bash > /usr/local/etc/bash_completion.d/glab
  ```

  ### Zsh

  If shell completion is not already enabled in your environment you must
  enable it. Run this command one time:

  ```shell
  echo "autoload -U compinit; compinit" >> ~/.zshrc
  ```

  To load completions in your current shell session:

  ```shell
  source <(glab completion -s zsh); compdef _glab glab
  ```

  To load completions for every new session, run this command one time:

  #### Linux

  ```shell
  glab completion -s zsh > "${fpath[1]}/_glab"
  ```

  #### macOS

  For older versions of macOS, you might need this command:

  ```shell
  glab completion -s zsh > /usr/local/share/zsh/site-functions/_glab
  ```

  The Homebrew version of glab should install completions automatically.

  ### fish

  To load completions in your current shell session:

  ```shell
  glab completion -s fish | source
  ```

  To load completions for every new session, run this command one time:

  ```shell
  glab completion -s fish > ~/.config/fish/completions/glab.fish
  ```

  ### PowerShell

  To load completions in your current shell session:

  ```shell
  glab completion -s powershell | Out-String | Invoke-Expression
  ```

  To load completions for every new session, add the output of the above command
  to your PowerShell profile.

  When installing glab through a package manager, however, you might not need
  more shell configuration to support completions.
  For Homebrew, see brew shell completion


  USAGE

    glab completion [--flags]

  EXAMPLES

    # Load completions in the current zsh session
    source <(glab completion -s zsh); compdef _glab glab

    # Print the bash completion script
    glab completion -s bash

  FLAGS

    -h --help   Show help for this command.
    --no-desc   Do not include shell completion description.
    -s --shell  Shell type: bash, zsh, fish, powershell. (bash)

````

## Command-specific completion

Config completion suggests registered keys, aliases for reads, and typed values. SSH-key get/delete completion queries the current account's key IDs/titles; SSH-key add completes arbitrary paths, so it can suggest a private key. See `glab-config` and `glab-ssh-key` for secret and public-key safeguards. Installing shell integration changes shell behavior and requires approval; do not invoke live completion as an offline test.

## Quick start

```bash
glab completion --help
```

## Subcommands

This command has no subcommands.

Versions

RepositoryScoreLicence
This page · vince-winkintel/gitlab-cli-skills95MIT
serejaris/kimi-skills95MIT

Database snapshot: 13.11.2026 · package version 40b85bbd6a11 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100shell-script-reviewer
    Reviews Bash, Zsh, and Fish shell scripts for bugs, security vulnerabilities, portability issues, and style violations against the Google Shell Style Guide, ShellCheck, BashPitfalls, and shell-specific idiom conventions. Use when the user asks to review, audit, lint, or improve…
  • 90shell-completions-and-config
    Generate shell completions (bash/zsh/fish/PowerShell) from the parser and design config-file discovery + env-var conventions (XDG, TOOL_* prefixes). Use when adding tab completion or a config/env layer to a CLI.
  • 100shell
    Shell scripting best practices and conventions for bash, sh, zsh, and other shells Triggers on: **/*.sh
  • 100cli-developer
    Use when building CLI tools, implementing argument parsing, or adding interactive prompts. Invoke for parsing flags and subcommands, displaying progress bars and spinners, generating bash/zsh/fish completion scripts, CLI design, shell completions, and cross-platform terminal…
  • 100shell-scripting
    Bash, Zsh, POSIX sh, Fish scripts, one-liners, dotfiles, completions. Use for quoting or globbing bugs, shellcheck warnings, porting between shells.
  • 100koopa-completion
    koopa shell completion architecture, generator, flag extraction, bash/zsh/PowerShell/elvish emitters, lazy-load mechanism, compdump freshness, and known bug patterns. Use when debugging missing completions, editing generate_completion.py, or adding flags to a CLI handler that…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.