/py-pit:click-clifrom py-pit
Designs, generates, and improves Python CLIs using the Click library. Enforces idiomatic architecture, command groups, modular layouts, and avoids common Click anti-patterns.
Ships in py-pit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when designing or implementing Python command-line interfaces with Click.
This skill should add value above baseline Click knowledge by enforcing:
Apply this skill when the user:
Do not apply when:
Prefer this skill when the user:
clickDo not prefer this skill when:
argparse, typer, cement, or another frameworkProduce production-quality Click CLIs that are:
Do not merely explain Click syntax unless the user explicitly asks for explanation.
Click is best used to build CLIs around:
Prefer clear command hierarchy over monolithic single-file command handlers.
Always follow these rules.
Define:
Do not jump straight into decorators without first clarifying the command structure in the answer.
Prefer:
@click.group()@click.command()@click.option()@click.argument()@click.pass_context() when context is neededAvoid mixing in patterns from other CLI frameworks unless explicitly requested.
click.echo() for user-facing outputCorrect:
click.echo("Done")
Avoid defaulting to:
print("Done")
unless the user explicitly wants raw Python output behavior.
For anything beyond a very small CLI, prefer structure like:
project/
cli.py
commands/
init.py
run.py
status.py
Avoid placing every command in one large file when the CLI clearly has multiple concerns.
Ensure:
Identify:
Return a compact command tree when useful, for example:
dataset
ingest
validate
publish
If the CLI is trivial, a single file may be acceptable.
If the CLI has multiple commands or domains, prefer modular layout.
Use:
click.echo() for outputBefore finishing, verify:
When generating or designing a Click CLI, prefer this structure in your answer:
If the user asks for only code, still internally follow the same structure and provide the code cleanly.
Call out these problems explicitly when they appear:
print() instead of click.echo()Before finishing an answer verify:
click.echo() where appropriateWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (robhowley/py-pit-skills) — no native marketplace selected
npx claudepluginhub p/robhowley-py-pit16 skills in this plugin
/alembic-migrationsProduction-safe Alembic migration workflows for SQLAlchemy 2.x projects. Use this skill when adding Alembic, generating migrations, reviewing autogenerate diffs, fixing broken migrations, or establishing a safe schema evolution workflow in a Python backend./background-jobs-boundariesGuardrails for background work in FastAPI and Python services. Prevent misuse of in-process background execution (e.g. FastAPI BackgroundTasks)./click-cli-linterAudit and improve existing Python Click CLIs by identifying architecture problems, anti-patterns, and CLI UX issues, then proposing minimal, high-value fixes.Other plugins' skills for the same job