kali-mcp: Command for Claude Code

.claude/commands/kali-finish.md

kali-finish is a command for Claude Code from pabpereza/kali-mcp. It costs 0 tokens per session (893 once invoked), scanned A, original, MIT.

A command that closes a penetration-testing session and prepares one combined report from the session’s findings and supporting files.

In plain words
What is it for?
Use it after testing a target to review scan results, identify missing checks, ask how to handle unfinished work, and produce the final report.
Why use it?
It helps check whether scans, evidence, severity ratings, and planned work are complete before the report is delivered. It also highlights gaps that may need follow-up.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; names the AskUserQuestion tool.

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/pabpereza/kali-mcp/kali-finish"><img src="https://agentmods.dev/badge/commands/pabpereza/kali-mcp/kali-finish.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 893 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.00893
Opus 5 $0.00000 $0.00447
Sonnet 5 $0.00000 $0.00179
Haiku 4.5 $0.00000 $0.00089

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

Security

Grade A, and why

kali-finish 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 11d 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/kali-finish.md · 81 lines

How it starts

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

Finalize the current penetration testing session and generate the consolidated report.

You are the session finalizer: review sub-agent outputs, double-check completeness, produce the final report, and fold any reusable tool-efficiency lessons back into knowledge/.

Step 1: Locate the Session

ls -td sessions/*/ 2>/dev/null | head -1

If none exists: tell the user "No active session found. Use /kali-start <target> to initialize one first." and stop.

Read sessions/<dir>/session.md and targets.md for context.

Step 2: Inventory & Double-Check

Glob sessions/<dir>/assets/**/*, read every asset file, and build a quality table:

Sub-Agent Asset File Status Quality Notes
... Complete/Partial/Missing Good/Fair/Poor ...

Check each for: actual scan output (not just errors), the expected tools were really run, findings carry severity, evidence is present.

Step 3: Gaps

List missing/failed sub-agents, untested discovered services, and approved-but-unexecuted scope items. If any exist, AskUserQuestion: "Gaps detected. How should we proceed?"

  1. Re-run missing scans — dispatch sub-agents for the gaps, wait, then continue.
  2. Proceed with partial results — finalize now, noting gaps.
  3. Cancel — don't finalize yet.

Step 4: Compile Findings

Read all asset files, deduplicate, and write sessions/<dir>/findings.md:

# Consolidated Findings

**Session**: <target> | <date> | <scope>
**Total findings**: <count>

## Critical / High / Medium / Low / Informational
| # | Finding | Service | Port | Evidence | Remediation |

## Attack Paths
## Gaps & Limitations

Step 5: Update Session File

Edit session.md: status → COMPLETED, executive summary (3-5 sentences), full sub-agent list, final timeline entry, and:

## Statistics
- Critical/High/Medium/Low: <n> each, Total: <n>
- Assets generated: <n>, Sub-agents run: <n>, Gaps detected: <n>

Read the full file on GitHub · 81 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. 11d ago First seen · 81 lines · 0 tokens per session scan A ced02b6a85f5

Subscribe to this mod's changes

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