test

test is a command for Claude Code from Hainrixz/agente-pagokit. It costs 39 tokens per session (960 once invoked), scanned A, original, MIT.

A command for sending test payment webhook events to a locally running integration. A webhook is an HTTP message that a payment provider sends to an application when something happens, such as a payment.

In plain words
What is it for?
It is for testing Stripe webhook handlers with valid events, invalid signatures, and replay attempts. It reads the project's integration notes, finds the development port, and uses the Stripe command-line tool when available.
Why use it?
It helps check whether the webhook handler accepts real signed events while rejecting forged signatures and replayed events. It also identifies the integration and local development server before testing.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/sign-event.js --provider <id> --secret "$WEBHOOK_SECRET" \.

Part of the pagokit plugin — 8 skills, 8 commands, 1 agent, 5 hooks shipped together

Good fit It is for testing Stripe webhook handlers with valid events, invalid signatures, and replay attempts. It reads the project's integration notes, finds the development port, and uses the Stripe command-line tool when available.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Hainrixz/agente-pagokit
agentmods
npx agentmods add commands/hainrixz/agente-pagokit/test

Made for: Claude Code.

Or install pagokit, the plugin that ships this one along with the rest of its 8 skills, 8 commands, 1 agent, 5 hooks.

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 test

README.md
[![agentmods](https://agentmods.dev/badge/commands/hainrixz/agente-pagokit/test.svg)](https://agentmods.dev/commands/hainrixz/agente-pagokit/test)
Your own site
<a href="https://agentmods.dev/commands/hainrixz/agente-pagokit/test"><img src="https://agentmods.dev/badge/commands/hainrixz/agente-pagokit/test.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 960 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00039 $0.00960
Opus 5 $0.00019 $0.00480
Sonnet 5 $0.00008 $0.00192
Haiku 4.5 $0.00004 $0.00096

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

Security

Grade A, and why

test scanned grade A 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

--url "http://localhost:<port><webhook_path>" --curl
commands/test.md · 91 lines

How it starts

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

/pagokit:test

Prove the webhook handler actually works: that it accepts a genuine event, and — more importantly — that it rejects a forged one and a replayed one. A handler that accepts everything looks identical to a correct one until someone forges a payment.succeeded.

Phase A — Identify the integration

  1. Read PAGOKIT_INTEGRATION.md for the provider id, the webhook path and the stack. If it is missing, ask which provider, then confirm the route by globbing for the provider's expected_filenames.
  2. Work out the dev port from package.json scripts (Next and Express default to 3000, FastAPI to 8000). Ask only if you cannot tell.
  3. Read the provider entry to learn its notification_model. If it is not webhook, stop and say so — a return_url_commit provider never calls a webhook, and testing one proves nothing. For those, verify the commit call instead.

Phase B — Generate the events

PagoKit derives the signature from the same catalog data the verifier was generated from, so a passing test means the two agree. This works for every provider whose verification family is locally signable:

node scripts/sign-event.js --provider <id> --secret "$WEBHOOK_SECRET" \
  --url "http://localhost:<port><webhook_path>" --curl

Read the real signing secret from the project's .env / .env.local — never echo it into the transcript, and never pass a value the user has not set.

Run three cases, in this order:

Case Command Expected
Valid --mode valid 2xx
Forged signature --mode forged 400
Replayed timestamp --mode replay 400

--mode forged flips one character of an otherwise well-formed signature, so only the cryptographic check can catch it — which is exactly what is being tested. --mode replay backdates the timestamp past the provider's tolerance window.

If a provider has no signed timestamp, --mode replay is not meaningful. Test event-id deduplication instead: send the same valid event twice and confirm the second one is a no-op that still returns 200.

Read the full file on GitHub · 91 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. 4d ago Changed · -14 lines · +11 tokens per session b649cde3acf0
  2. 8d ago First seen · 105 lines · 28 tokens per session scan A 3a56d0add8f5

Subscribe to this mod's changes

test is a command published in the GitHub repository Hainrixz/agente-pagokit (39 stars, last pushed 8d ago), licensed MIT. It adds 39 tokens to every session and 960 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.