auditar-cascading

auditar-cascading is a command for Claude Code from luanpdd/kit-mcp. It costs 54 tokens per session (1,231 once invoked), scanned A, original, MIT.

A cascading-failure audit command that checks a service for five ways failures can spread, including missing timeouts, retry delays, circuit breakers, deadlines, or queue limits.

In plain words
What is it for?
Use it to audit a repository, folder, or file and produce a prioritized report with suggested fixes.
Why use it?
It helps reveal resilience gaps that can turn one failing service into a wider outage.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

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.

agentmods
npx agentmods add commands/luanpdd/kit-mcp/auditar-cascading
Clone the repo
git clone --depth 1 https://github.com/luanpdd/kit-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 auditar-cascading

README.md
[![agentmods](https://agentmods.dev/badge/commands/luanpdd/kit-mcp/auditar-cascading.svg)](https://agentmods.dev/commands/luanpdd/kit-mcp/auditar-cascading)
Your own site
<a href="https://agentmods.dev/commands/luanpdd/kit-mcp/auditar-cascading"><img src="https://agentmods.dev/badge/commands/luanpdd/kit-mcp/auditar-cascading.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 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,231 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00054 $0.01231
Opus 5 $0.00027 $0.00616
Sonnet 5 $0.00011 $0.00246
Haiku 4.5 $0.00005 $0.00123

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

Security

Grade A, and why

auditar-cascading 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 2d 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.

kit/commands/auditar-cascading.md · 112 lines

How it starts

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

Cria/Atualiza:

  • .planning/CASCADING-AUDIT.md — relatório priorizado P0/P1/P2 com diff sugerido por finding

Após: o user tem fila acionável de patches para prevenir cascade. Cap 22 — prevenção custa 1×, recuperação custa 100×.

Exemplos:

/auditar-cascading                                      # repo inteiro
/auditar-cascading supabase/functions/                  # só Edge Functions
/auditar-cascading src/orders/handler.ts                # arquivo específico
/auditar-cascading --severity P0                        # só fix imediato
/auditar-cascading --dimensions timeouts,retry-jitter   # foco em duas dims

1. Parsear argumentos

TARGET_PATH=$(echo "$ARGUMENTS" | awk '{print $1}')
[ -z "$TARGET_PATH" ] || [ "${TARGET_PATH:0:2}" = "--" ] && TARGET_PATH="."
DIMENSIONS=$(echo "$ARGUMENTS" | grep -oE -- '--dimensions [^ ]+' | awk '{print $2}')
SEVERITY=$(echo "$ARGUMENTS" | grep -oE -- '--severity [^ ]+' | awk '{print $2}')
OUTPUT_PATH=$(echo "$ARGUMENTS" | grep -oE -- '--output [^ ]+' | awk '{print $2}')

[ -z "$OUTPUT_PATH" ] && OUTPUT_PATH=".planning/CASCADING-AUDIT.md"
mkdir -p "$(dirname "$OUTPUT_PATH")"

Read the full file on GitHub · 112 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. 2d ago First seen · 112 lines · 54 tokens per session scan A 3365f3efba67

Subscribe to this mod's changes

auditar-cascading is a command published in the GitHub repository luanpdd/kit-mcp (1 stars, last pushed 5d ago), licensed MIT. It adds 54 tokens to every session and 1,231 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-09-03.