SKILL.md
Reviewing CLI Commands
Checklist for reviewing Typer CLI command implementations.
Review Process
- Read the command file
- Check each section below
- Report findings using output format at bottom
Structure
- File in
src/<cli_app>/commands/ - Has
app = typer.Typer()and@app.command() - Command groups use
@app.command()for each subcommand - Registered in
commands/__init__.pywithadd_typer() - Single commands:
add_typer(app)without name - Command groups:
add_typer(app, name="group")
Arguments & Options
- Uses
Annotatedsyntax - Arguments for required positional input
- Options for optional named parameters
- Short flags where appropriate (
-f,-q) - Help text: lowercase, no period, brief
# GOOD:
name: Annotated[str, typer.Argument(help="item name")]
force: Annotated[bool, typer.Option("--force", "-f", help="skip confirmation")] = False
# BAD:
name: str = typer.Argument(..., help="The name of the item.")
