mcp-wireshark: Command for Claude Code

.claude/commands/validate.md

validate is a command for Claude Code from khuynh22/mcp-wireshark. It costs 0 tokens per session (291 once invoked), scanned A, original, MIT.

A command that runs a project's formatting, linting, type-checking, and test checks in sequence. It is configured to use a specific Miniconda Python executable because the project's virtual-environment Python is broken.

In plain words
What is it for?
Formatting Python source and tests with Black, checking style with Ruff, checking types with mypy, running pytest, and reporting the results without committing changes.
Why use it?
It gives one repeatable validation routine and stops to fix a failing check before moving to the next one.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is khuynh22/mcp-wireshark's own configuration. It tells Claude Code how to work on mcp-wireshark 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 mcp-wireshark configures →

Reuse

Borrowing it

Nothing to install: this file belongs to khuynh22/mcp-wireshark. 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/khuynh22/mcp-wireshark/main/.claude/commands/validate.md
Clone the repo
git clone --depth 1 https://github.com/khuynh22/mcp-wireshark

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 validate

README.md
[![agentmods](https://agentmods.dev/badge/commands/khuynh22/mcp-wireshark/validate/github.svg)](https://agentmods.dev/commands/khuynh22/mcp-wireshark/validate)
Your own site
<a href="https://agentmods.dev/commands/khuynh22/mcp-wireshark/validate"><img src="https://agentmods.dev/badge/commands/khuynh22/mcp-wireshark/validate/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 validate

Your own site · 80×15
<a href="https://agentmods.dev/commands/khuynh22/mcp-wireshark/validate"><img src="https://agentmods.dev/badge/commands/khuynh22/mcp-wireshark/validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 291 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.00000 $0.00291
Opus 5 $0.00000 $0.00146
Sonnet 5 $0.00000 $0.00058
Haiku 4.5 $0.00000 $0.00029

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

Security

Grade A, and why

validate 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/commands/validate.md · 31 lines

What it actually says

Run the full quality check suite for this project and report results.

Use the Python from miniconda (C:/Users/khang/miniconda3/python.exe) since the venv Python is broken.

Run these four checks sequentially (each must pass before the next):

C:/Users/khang/miniconda3/python.exe -m black src tests
C:/Users/khang/miniconda3/python.exe -m black --check src tests
C:/Users/khang/miniconda3/python.exe -m ruff check src tests
C:/Users/khang/miniconda3/python.exe -m mypy src
C:/Users/khang/miniconda3/python.exe -m pytest

For each step:

  • If it passes: report "✓ black / ruff / mypy / pytest" and continue
  • If it fails: show the error output, fix the issue, then re-run that step before moving on

After all checks pass, print a summary:

All checks passed:
  ✓ black   — formatting ok
  ✓ ruff    — no lint errors
  ✓ mypy    — no type errors
  ✓ pytest  — N tests passed

If any check cannot be fixed automatically (e.g. a logic bug in a test), explain what the user needs to do manually and stop.

Do not commit. Only validate.

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 · 31 lines · 0 tokens per session scan A f2f956270f99

Subscribe to this mod's changes

validate is a command published in the GitHub repository khuynh22/mcp-wireshark (57 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 291 tokens. 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-30.