click-cli-linter

click-cli-linter is a skill for Claude Code from robhowley/py-pit-skills. It costs 35 tokens per session (1,068 once invoked), scanned A, original, MIT.

A review guide for existing Python command-line tools built with Click, a library for defining terminal commands and options.

In plain words
What is it for?
It helps audit command layout, options, help text, architecture, and maintainability, then suggest small, high-value fixes.
Why use it?
It helps find structural problems, unusual Click usage, and confusing terminal interactions without requiring a full rewrite.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the py-pit plugin — 16 skills, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/robhowley/py-pit-skills/click-cli-linter
Any agent
npx skills add robhowley/py-pit-skills --skill click-cli-linter
Clone the repo
git clone --depth 1 https://github.com/robhowley/py-pit-skills

Made for: Claude Code.

Or install py-pit, the plugin that ships this one along with the rest of its 16 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for click-cli-linter

README.md
[![agentmods](https://agentmods.dev/badge/skills/robhowley/py-pit-skills/click-cli-linter.svg)](https://agentmods.dev/skills/robhowley/py-pit-skills/click-cli-linter)
Your own site
<a href="https://agentmods.dev/skills/robhowley/py-pit-skills/click-cli-linter"><img src="https://agentmods.dev/badge/skills/robhowley/py-pit-skills/click-cli-linter.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,068 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01068
Opus 5 $0.00017 $0.00534
Sonnet 5 $0.00007 $0.00214
Haiku 4.5 $0.00003 $0.00107

Measured 6d ago against content hash 27df8c858c1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

click-cli-linter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/click-cli-linter/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

click-cli-linter

Use this skill when reviewing or fixing an existing Python CLI built with Click.

This skill focuses on:

  • identifying structural problems
  • detecting non-idiomatic Click usage
  • improving CLI UX
  • proposing minimal patches rather than unnecessary rewrites

Apply this skill when the user:

  • asks to audit a Click CLI
  • wants feedback on existing Click code
  • asks why a Click CLI feels messy or hard to maintain
  • wants minimal fixes for a Click-based command-line tool
  • pastes Click code and asks for improvement

Do not apply when:

  • the user wants a new CLI designed from scratch with no existing code
  • the task is unrelated to Python CLIs
  • the user explicitly wants another framework

Invocation heuristics

Prefer this skill when the user:

  • mentions existing Click code
  • asks for review, linting, cleanup, or refactoring
  • wants architecture feedback on a Click CLI
  • wants to fix help text, options, command grouping, or code layout

Do not prefer this skill when:

  • there is no existing CLI to review
  • the task is purely explanatory and not evaluative
  • the user is asking for a fresh implementation only

Mission

Audit an existing Click CLI and provide:

  1. the most important detected issues
  2. why they matter
  3. the smallest effective patch
  4. an improved version when useful

Prefer minimal, high-leverage improvements over full rewrites.

Core review mental model

Review the CLI across three layers:

  • architecture
  • Click idioms
  • command-line UX

Do not nitpick style unless it affects correctness, maintainability, or usability.

The 5 review invariants

Always follow these rules.

1. Prioritize real problems

Focus on:

  • architecture breakdown
  • non-idiomatic Click usage
  • poor command discoverability
  • inconsistent argument and option patterns
  • output and help text problems

Do not pad the review with trivial style comments.

2. Prefer minimal patches

Fix the smallest thing that materially improves the CLI.

Prefer:

print("Done")

Read the full file on GitHub · 193 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 193 lines · 35 tokens per session scan A 27df8c858c1a

Subscribe to this mod's changes

click-cli-linter is a skill published in the GitHub repository robhowley/py-pit-skills (5 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 1,068 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

python-backend

Production Python async patterns including asyncio TaskGroup, FastAPI dependency injection and middleware, SQLAlchemy 2.0 async sessions, and database connection pool tuning. Python 3.11+ runtime concerns such as ExceptionGroup, cancellation semantics, and session rollback. Use when building async services, wiring…

yonatangross/orchestkit · 82 tokens

python

Use when building FastAPI applications, implementing async endpoints, setting up Pydantic schemas, working with SQLAlchemy, or writing pytest tests for Python backend services.

MadAppGang/claude-code · 34 tokens

database

Relational database authority — PostgreSQL, async ORM (SQLAlchemy 2 / asyncpg), Alembic schema migrations, Supabase Python and JS clients, query optimisation, index strategy, connection pooling, transaction patterns, and bulk operations across Python and Node stacks.

LuuOW/meridian-mcp · 54 tokens

crudauth

Use when building or modifying authentication in a FastAPI app with crudauth (the crudauth PyPI package) — covers CRUDAuth, the AuthUserMixin / makeauthidentity user model, IdentityConfig, currentuser(...) gates, session + bearer transports, OAuth (Google/GitHub), email verification / password reset / change, custom…

benavlabs/crudauth · 188 tokens

FastAPI Testing Patterns

FastAPI application testing with TestClient, dependency injection overrides, async testing, database testing with SQLAlchemy, and OpenAPI validation.

PramodDutta/qaskills · 31 tokens

pytest

Advanced Python unit testing framework for customer support tech enablement, covering FastAPI, SQLAlchemy, PostgreSQL, async operations, mocking, fixtures, parametrization, coverage, and comprehensive testing strategies for backend support systems.

manutej/luxor-claude-marketplace · 44 tokens