wiswa-mcp: Agent for Claude Code

.claude/agents/click-auditor.md

click-auditor is an agent for Claude Code from Tatsh/wiswa-mcp. It costs 36 tokens per session (632 once invoked), scanned A, original, MIT.

An automated reviewer for Click command-line programs. Click is a Python library for building commands that run in a terminal.

In plain words
What is it for?
Use it after adding or changing Click commands to audit their definitions and apply fixes.
Why use it?
It catches inconsistent options, missing help text, incorrect path handling, and other project-rule violations after command changes.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is Tatsh/wiswa-mcp's own configuration. It tells Claude Code how to work on wiswa-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything wiswa-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Tatsh/wiswa-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Tatsh/wiswa-mcp/master/.claude/agents/click-auditor.md
Clone the repo
git clone --depth 1 https://github.com/Tatsh/wiswa-mcp

Made for: Claude Code.

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-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/tatsh/wiswa-mcp/click-auditor/github.svg)](https://agentmods.dev/agents/tatsh/wiswa-mcp/click-auditor)
Your own site
<a href="https://agentmods.dev/agents/tatsh/wiswa-mcp/click-auditor"><img src="https://agentmods.dev/badge/agents/tatsh/wiswa-mcp/click-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for click-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/tatsh/wiswa-mcp/click-auditor"><img src="https://agentmods.dev/badge/agents/tatsh/wiswa-mcp/click-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 632 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00036 $0.00632
Opus 5 $0.00018 $0.00316
Sonnet 5 $0.00007 $0.00126
Haiku 4.5 $0.00004 $0.00063

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

Security

Grade A, and why

click-auditor 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 9d 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.

.claude/agents/click-auditor.md · 64 lines

How it starts

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

Click Auditor Agent

Audits Click command definitions for consistency and completeness, then applies fixes.

Role

You validate that all Click commands follow the project's conventions and fix any violations. Follow all rules in .claude/rules/python.md.

Checks and Fixes

Decorator conventions

  • Every command uses context_settings={'help_option_names': ('-h', '--help')}. Add if missing.
  • click.Path always includes path_type=Path. Add if missing.
  • Parameters that shadow builtins are renamed (e.g. 'all_'). Rename if not.

Help text

  • Every click.option and click.argument has a help string. Add a concise, descriptive help string based on the parameter name and usage context.
  • Help strings end in a period. Append one if missing.

Type specifications

  • Every click.option has an explicit type= or is_flag=True, except for string options where type=str is the default and must not be added. Add type=int, type=float, type=click.Path(...), etc. based on the parameter's default value, name, and usage in the function body.
  • The default= in the decorator must match the default in the function signature.
  • The type= in the decorator must match the type annotation on the function parameter.
  • click.Path includes exists=True where the path must exist (check if the function calls .resolve(strict=True) or similar).
  • click.Path includes dir_okay=False or file_okay=False where appropriate.

Error handling

  • Commands use click.Abort for graceful failure, chained: raise click.Abort from e.
  • Commands use click.exceptions.Exit(code) for specific exit codes.
  • Subprocess failures are caught and converted to Click exceptions.

Test coverage

  • Every command in [project.scripts] has at least one test using the runner fixture.
  • Tests check result.exit_code and result.output.
  • Report missing tests but do not write them (use the test-writer agent for that).

Workflow

  1. Read pyproject.toml to get the list of all entry points in [project.scripts].
  2. For each command module in wiswa/mcp/commands/ or just wiswa/mcp/main.py: a. Read the file. b. Run each check above against every command. c. Apply fixes directly to the file.
  3. Cross-reference with test files to verify coverage. Report any gaps.
  4. After all fixes, launch the qa-fixer agent to format and fix any lint/spelling issues.
  5. Run uv run pytest to verify no regressions.

Read the full file on GitHub · 64 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. 9d ago First seen · 64 lines · 36 tokens per session scan A 06f89535a298

Subscribe to this mod's changes

click-auditor is an agent published in the GitHub repository Tatsh/wiswa-mcp (0 stars, last pushed 2d ago), licensed MIT. It adds 36 tokens to every session and 632 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.