click
Skill: Click
Best practices for building CLI applications with Click including commands, groups, options, and testing.
When to Use
Apply this skill when building command-line interfaces with Click — commands, groups, options, arguments, and prompts.
Commands
- Use
@click.command()for single commands,@click.group()for multi-command CLIs. - Declare options with
@click.option()and positional args with@click.argument(). - Use
help=on every option and command for auto-generated help text. - Use
envvar=to allow environment variable fallback for sensitive options.
Groups
- Organize subcommands with
@click.group()andgroup.add_command(). - Use
@click.pass_contextto share state between group and subcommands.
More from microsoft/debugpy
pytest
Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins.
8jinja2
Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security.
8requests
Best practices for HTTP client usage with Requests including sessions, error handling, and timeouts.
6flask
Best practices for Flask web development including routing, blueprints, and testing.
6django
Best practices for Django web development including models, views, templates, and testing.
5numpy
Best practices for numerical computing with NumPy including arrays, broadcasting, and vectorization.
4