一键导入
click
Best practices for building CLI applications with Click including commands, groups, options, and testing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Best practices for building CLI applications with Click including commands, groups, options, and testing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Best practices for Django web development including models, views, templates, and testing.
Best practices for Flask web development including routing, blueprints, and testing.
Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security.
Best practices for numerical computing with NumPy including arrays, broadcasting, and vectorization.
Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins.
Best practices for HTTP client usage with Requests including sessions, error handling, and timeouts.
| name | click |
| description | Best practices for building CLI applications with Click including commands, groups, options, and testing. |
Best practices for building CLI applications with Click including commands, groups, options, and testing.
Apply this skill when building command-line interfaces with Click — commands, groups, options, arguments, and prompts.
@click.command() for single commands, @click.group() for multi-command CLIs.@click.option() and positional args with @click.argument().help= on every option and command for auto-generated help text.envvar= to allow environment variable fallback for sensitive options.@click.group() and group.add_command().@click.pass_context to share state between group and subcommands.click.Path(exists=True), click.Choice([...]), click.IntRange()).click.testing.CliRunner() for testing commands without subprocess overhead.result.exit_code and result.output.mix_stderr=False to test stderr separately.sys.exit() — use click.exceptions.Exit or return from the command.print() — use click.echo() for proper encoding handling.KeyboardInterrupt / abort prompts gracefully.