Skip to content

Shell completions (bash, zsh, fish) #90

@elijahr

Description

@elijahr

Problem

Spellbook's CLI has no shell completions. Tab completion for commands, skill names, and options is a developer experience win that makes the tool feel polished and professional.

Scope

Generate completion scripts for:

  • bash - .bash_completion or sourced script
  • zsh - _spellbook completion function
  • fish - spellbook.fish completions

What to Complete

  • Top-level commands (install, start, stop, etc.)
  • Skill names (dynamically from installed skills)
  • Command names (dynamically from installed commands)
  • Flag names and values

Implementation Options

  1. Click/Typer built-in - If the CLI uses Click or Typer, completion generation is built in
  2. argcomplete - Works with argparse-based CLIs
  3. Manual - Write completion scripts directly

This is a Good First Issue Because

  • Well-scoped and self-contained
  • Does not require deep knowledge of spellbook internals
  • Clear success criteria (completions work in the target shell)
  • Lots of examples to reference from other Python CLI tools

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions