pentest-scope

pentest-scope is a command for Claude Code from Stickman230/claude-pentest. It costs 51 tokens per session (2,040 once invoked), scanned A, original, MIT.

A scope-definition command for a penetration-testing engagement, which is an authorized security assessment. It records the target, exclusions, authentication details, timing, depth, output formats, and whether testing is pending or active.

In plain words
What is it for?
Use it to create or update the target and rules for a security assessment before or during testing.
Why use it?
It makes the testing boundaries explicit and keeps them available on disk. If the target changes substantially during an active assessment, it warns that a new engagement may be needed.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the pentest plugin — 7 skills, 5 commands, 15 agents shipped together

Good fit Use it to create or update the target and rules for a security assessment before or during testing.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/stickman230/claude-pentest/pentest-scope
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.

Clone the repo
git clone --depth 1 https://github.com/Stickman230/claude-pentest

Made for: Claude Code.

Or install pentest, the plugin that ships this one along with the rest of its 7 skills, 5 commands, 15 agents.

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 pentest-scope

README.md
[![agentmods](https://agentmods.dev/badge/commands/stickman230/claude-pentest/pentest-scope.svg)](https://agentmods.dev/commands/stickman230/claude-pentest/pentest-scope)
Your own site
<a href="https://agentmods.dev/commands/stickman230/claude-pentest/pentest-scope"><img src="https://agentmods.dev/badge/commands/stickman230/claude-pentest/pentest-scope.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,040 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.00051 $0.02040
Opus 5 $0.00026 $0.01020
Sonnet 5 $0.00010 $0.00408
Haiku 4.5 $0.00005 $0.00204

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

Security

Grade A, and why

pentest-scope 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 8d 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.

plugins/pentest/commands/pentest-scope.md · 203 lines

How it starts

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

Output the following banner verbatim:

============================================================
[SCOPE DEFINITION]
============================================================

Step 1 — Detect Existing Scope

Try to Read .pentest-scope.json.

If the file exists and is valid JSON, extract these fields and store them:

  • existing_target — the saved target value
  • existing_engagement — the saved engagement name
  • existing_out_of_scope — the saved out-of-scope value
  • existing_auth — the saved auth value
  • existing_timing — the saved time budget / quota (for backward compatibility: if timing is absent but a legacy window field exists, use window)
  • existing_thoroughness — the saved thoroughness level (light, medium, deep, or full)
  • existing_output_formats — the saved deliverable formats array (default [] if absent)
  • existing_status — either "pending" (not yet launched) or "active" (pentest in progress)

Set has_existing_scope = true.

If the file does not exist or cannot be parsed, set has_existing_scope = false.

Step 2 — Show Existing Scope (if present)

If has_existing_scope = true, output this block with real values substituted in:

============================================================
EXISTING SCOPE FOUND
============================================================
Target:       {existing_target}
Engagement:   {existing_engagement}
Out-of-scope: {existing_out_of_scope}
Auth:         {existing_auth}
Time budget:  {existing_timing}
Thoroughness: {existing_thoroughness}
Deliverables: report.md + pentest-report.json{, plus existing_output_formats if any}
Status:       {existing_status}
============================================================

Then use AskUserQuestion to ask:

"What would you like to do with the existing scope?"

Present exactly these options:

  • "Update scope — define a new scope (replaces the existing one)"
  • "Cancel — keep the existing scope as-is"

If the user selects "Cancel — keep the existing scope as-is", output:

Read the full file on GitHub · 203 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. 8d ago First seen · 203 lines · 51 tokens per session scan A bc3f29532cbb

Subscribe to this mod's changes

pentest-scope is a command published in the GitHub repository Stickman230/claude-pentest (99 stars, last pushed 3mo ago), licensed MIT. It adds 51 tokens to every session and 2,040 once invoked, about $0.0003 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-30.