amux: Command for Claude Code

.claude/commands/bad-guy.md

bad-guy is a command for Claude Code from mixpeek/amux. It costs 0 tokens per session (1,203 once invoked), scanned B, original, no licence file.

A pre-release security check that plays the role of an attacker against your own application using test accounts and test data. It follows a fixed list of 14 attacks, records evidence, and fixes the findings in one pass.

In plain words
What is it for?
It is for testing an application's defenses before release and documenting what each check found and how it was fixed.
Why use it?
It helps uncover common security problems before launch without touching real users, production data, or services you do not own.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to mixpeek/amux. 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/mixpeek/amux/main/.claude/commands/bad-guy.md
Clone the repo
git clone --depth 1 https://github.com/mixpeek/amux

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 bad-guy

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mixpeek/amux/bad-guy"><img src="https://agentmods.dev/badge/commands/mixpeek/amux/bad-guy.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 1,203 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.01203
Opus 5.5 $0.00000 $0.00481
Sonnet 5.5 $0.00000 $0.00241
Haiku 4.5 $0.00000 $0.00120

Measured 8d ago against content hash 776d96605991, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

bad-guy scanned grade B with 1 finding 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.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

`http://localhost` and `http://169.254.169.254` and check the server logs

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.claude/commands/bad-guy.md · 100 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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 · 100 lines · 0 tokens per session scan B 776d96605991

Subscribe to this mod's changes

bad-guy is a command published in the GitHub repository mixpeek/amux (546 stars, last pushed today), with no licence file. It costs nothing until one of its globs matches a file; then it loads 1,203 tokens. A static security scan graded it B with 1 finding (cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-19.

Related

Other commands, from other repositories

test-feature

Test a React Native feature on the running simulator/emulator. Verifies UI, user flows, and internal state. Generates a persistent Maestro test file.

Lykhoyda/rn-dev-agent · 30 tokens

PyTest.GateKeeper

You are a Senior QA Automation Engineer with deep expertise in Python testing and the pytest framework.

redhat-community-ai-tools/UnifAI · 0 tokens

ux-grill

Use when a running web app's UX has to be audited reproducibly rather than by feel — a deterministic mechanical pass over routes and viewports (axe, target size, horizontal overflow, page title, scripted journeys) followed by a screenshot-grounded interrogation of the operator, journey by journey, with two persona…

Kanevry/session-orchestrator · 121 tokens

test-audit

Use when writing, reviewing, or pruning tests. Three modes, one value bar: a four-question gate before any new test is written, a focused audit of one scope, and a campaign over a whole repo or subsystem that removes the least useful tests under a coverage guard. Every delete, merge, or repair carries written evidence…

Kanevry/session-orchestrator · 107 tokens

run-workflow

Validate and establish the proven rn-dev-agent operating sequence before a real React Native journey — declared package manager and dependencies, read-only inventory, typed session recovery, one exclusive device, managed integration and Metro, only the requested proof, reverse-order cleanup.

Lykhoyda/rn-dev-agent · 49 tokens

loop-task

Run a task through a maker/checker loop until done (triage → implement → verify → gate).

eshwarvijay/secondmate · 21 tokens