click-patterns

Automates Python Click scaffolding with templates and generation scripts for CLI projects.

Updated Dec 15, 2025
One-click install
npx skills add https://github.com/amite/personal-triage-agent --skill click-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: click-patterns
Source: https://github.com/amite/personal-triage-agent/tree/main/.claude/skills/click-patterns
Command: npx skills add https://github.com/amite/personal-triage-agent --skill click-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Provides templates and patterns to build production-grade Python CLIs using Click, reducing boilerplate and accelerating delivery.

Core Features & Use Cases

  • Command templates: Basic, nested, and advanced CLI patterns.
  • Templates & Scripts: Ready-to-use project skeletons and tooling.
  • Use Case: Rapidly bootstrap a multi-command CLI for a new project.

Quick Start

Select a template, run the generator script, then implement your CLI.

Frequently Asked Questions about click-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Python CLI with Click?

Click is a Python framework for building command-line interfaces. This Skill provides templates and scaffolding scripts that automate CLI creation, from simple single-command tools to complex nested structures with validators and command groups, reducing boilerplate and accelerating delivery.

What's the best way to structure nested commands in a Click CLI?

Nested commands organize related functionality into command groups. This Skill includes templates and patterns for nested-command structures, validators, and chained commands that scale from basic to advanced CLIs, plus generation scripts that automatically set up the project structure.

Can I use Click templates to bootstrap a new CLI project?

Yes. This Skill provides ready-to-use project templates—basic-cli.py, nested-commands.py, validators.py, and advanced-cli.py—plus generation scripts (generate-click-cli.sh, setup-click-project.sh) that scaffold a complete Python CLI with all required dependencies and configuration files.

What environment and dependencies do I need to build Click CLIs?

Click CLIs require Python 3.8+, Click 8+, and Bash scripts for project generation. This Skill includes environment setup guidance, dependencies in requirements.txt and pyproject.toml, and validation scripts to confirm your environment is properly configured before building.

How do I add input validation to Click commands?

Click supports validators through callback functions and parameter types. This Skill includes validators.py templates and patterns demonstrating how to implement validation logic, plus validate-click.sh scripts to test and confirm validators work correctly in your CLI.

What are common edge cases when building Click CLIs?

Edge cases include command chaining, complex argument parsing, and state management across commands. This Skill documents known patterns and limitations in edge-cases.md, providing guidance on handling these scenarios and best practices for production-grade CLI design.