recharge-webhooks

recharge-webhooks is a skill for Claude Code, Codex from hookdeck/webhook-skills. It costs 73 tokens per session (2,668 once invoked), scanned A, original, MIT.

A setup guide for receiving and verifying Recharge webhook requests, which report subscription-commerce events such as payments and subscription changes.

In plain words
What is it for?
Use it to handle paid or failed charges, subscription creation or cancellation, signature checks, and webhook subscriptions.
Why use it?
It helps keep subscription data in sync while checking that incoming requests really came from Recharge and are not being replayed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to handle paid or failed charges, subscription creation or cancellation, signature checks, and webhook subscriptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hookdeck/webhook-skills/recharge-webhooks
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.

Any agent
npx skills add hookdeck/webhook-skills --skill recharge-webhooks
Clone the repo
git clone --depth 1 https://github.com/hookdeck/webhook-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin recharge-webhooks — /plugin install recharge-webhooks after adding the marketplace above.

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 recharge-webhooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/hookdeck/webhook-skills/recharge-webhooks/github.svg)](https://agentmods.dev/skills/hookdeck/webhook-skills/recharge-webhooks)
Your own site
<a href="https://agentmods.dev/skills/hookdeck/webhook-skills/recharge-webhooks"><img src="https://agentmods.dev/badge/skills/hookdeck/webhook-skills/recharge-webhooks/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 recharge-webhooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/hookdeck/webhook-skills/recharge-webhooks"><img src="https://agentmods.dev/badge/skills/hookdeck/webhook-skills/recharge-webhooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,668 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 179
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Data Exfiltration · line 188
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 188
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium MCP Rug Pull · line 203
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00073 $0.02668
Opus 5.5 $0.00029 $0.01067
Sonnet 5.5 $0.00015 $0.00534
Haiku 4.5 $0.00007 $0.00267

Measured 2mo ago against content hash 9d8534d1b8c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

recharge-webhooks 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 2mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (examples/express/src/index.js, examples/express/test/webhook.test.js, examples/fastapi/main.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

curl 'https://api.rechargeapps.com/webhooks' \
skills/recharge-webhooks/SKILL.md · 240 lines

How it starts

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

Recharge Webhooks

When to Use This Skill

  • How do I receive Recharge webhooks?
  • How do I verify Recharge webhook signatures?
  • Why is my X-Recharge-Webhook-Signature or X-Recharge-Hmac-Sha256 verification failing?
  • How do I handle charge/paid, charge/failed, or subscription/cancelled events?
  • How do I create a Recharge webhook subscription via the API?

Verification (core)

Every webhook delivery includes two signature schemes: a recommended timestamp-bound scheme (use this for all new integrations) and a legacy body-only scheme that remains supported.

Recommended: timestamp-bound scheme

Two headers are sent:

  • X-Recharge-Webhook-Timestamp — Unix epoch seconds (integer) at the time the request was signed.
  • X-Recharge-Webhook-Signature — comma-separated key/value pairs in the form t=<epoch>,v1=<hex> (future schemes may add v2=…, so parse by key).

To verify:

  1. Parse t and v1 from X-Recharge-Webhook-Signature (t matches the timestamp header).
  2. Reject if abs(now - t) > 172800 seconds (48 hours) — replay protection.
  3. Compute HMAC-SHA-256, keyed by the API Client Secret, over "<timestamp>.<payload_json>" — the timestamp, a literal dot, then the exact raw JSON bytes as transmitted (re-serializing breaks it).
  4. Compare the hex digest to v1 with a constant-time comparison.

Node:

const crypto = require('crypto');

function verifyRechargeWebhookTimestamped(rawBody, signatureHeader, clientSecret) {
  if (!signatureHeader) return false;
  // Parse `t=<epoch>,v1=<hex>` by key.
  const parts = Object.fromEntries(
    signatureHeader.split(',').map((pair) => pair.split('=').map((s) => s.trim()))
  );
  const timestamp = parseInt(parts.t, 10);
  if (!Number.isFinite(timestamp) || !parts.v1) return false;
  // Reject deliveries outside the 48-hour window.
  if (Math.abs(Math.floor(Date.now() / 1000) - timestamp) > 172800) return false;
  // HMAC-SHA-256 over "<timestamp>.<raw body>", keyed by the client secret.
  const digest = crypto
    .createHmac('sha256', clientSecret)
    .update(`${timestamp}.`)
    .update(rawBody)
    .digest('hex');
  try {
    return crypto.timingSafeEqual(Buffer.from(digest), Buffer.from(parts.v1));
  } catch {
    return false; // length mismatch = invalid
  }
}

Read the full file on GitHub · 240 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. 2mo ago First seen · 240 lines · 73 tokens per session scan A 9d8534d1b8c6

Subscribe to this mod's changes

recharge-webhooks is a skill published in the GitHub repository hookdeck/webhook-skills (98 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 2,668 once invoked, about $0.0003 per session on Opus 5.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-09-03.

Related

recharge-webhooks compared with skills from other repositories

recharge-webhooks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
recharge-webhookshookdeck/webhook-skillsSkill98yesterdayMITA73Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code