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.
npx skills add PaddleHQ/paddle-agent-skills --skill subscription-syncgit clone --depth 1 https://github.com/PaddleHQ/paddle-agent-skillsWrote 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.
[](https://agentmods.dev/skills/paddlehq/paddle-agent-skills/subscription-sync)<a href="https://agentmods.dev/skills/paddlehq/paddle-agent-skills/subscription-sync"><img src="https://agentmods.dev/badge/skills/paddlehq/paddle-agent-skills/subscription-sync/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.
<a href="https://agentmods.dev/skills/paddlehq/paddle-agent-skills/subscription-sync"><img src="https://agentmods.dev/badge/skills/paddlehq/paddle-agent-skills/subscription-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.05569 |
| Opus 5.5 | $0.00014 | $0.02228 |
| Sonnet 5.5 | $0.00007 | $0.01114 |
| Haiku 4.5 | $0.00003 | $0.00557 |
Grade A, and why
paddle-subscription-sync 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 458 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sync Paddle subscription state into your database
When to use this skill
Use this skill when you need a local copy of Paddle subscription and customer state — typically to gate features by subscription status, render account pages without round-tripping to the Paddle API, and report on revenue. This skill defines the table schema, the events to subscribe to, the upsert pattern, how to map your app's users to Paddle customers, status semantics, and how to handle scheduled changes (pauses, cancels effective at end of period).
This skill assumes you already receive verified webhooks. If you don't, do webhooks first — that skill covers the route handler and signature verification. The code here lives inside the event handler functions that skill creates.
Prerequisites
- Working webhook endpoint with signature verification (
webhooks). - A database (the examples use Supabase, but any SQL store with
UPSERTworks). - Subscribed events on your notification destination:
customer.created,customer.updatedsubscription.created,subscription.updated,subscription.canceled- Optionally:
transaction.completed(for one-off purchases),subscription.activated(when a trial converts)
- For the backfill and reconciliation job: an API key with
customer.readandsubscription.read. The webhook handler itself doesn't call the API.
Why mirror state at all?
You could call the Paddle API every time you need to know "is this user on the Pro plan?" — but that's slow compared to checking your own DB.
Mirroring means: webhooks are the source of truth that updates your DB; your app reads its own DB; the API is reserved for write actions (cancel, update, refund) where you need an immediate response.
Schema
The minimum viable schema, in SQL:
-- Maps a Paddle customer to your app user (email is the fallback bridge).
CREATE TABLE customers (
customer_id TEXT PRIMARY KEY, -- "ctm_01h..."
email TEXT NOT NULL,
last_event_at TIMESTAMPTZ, -- occurredAt of the newest event applied
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX customers_email_idx ON customers(email);
CREATE TABLE subscriptions (
subscription_id TEXT PRIMARY KEY, -- "sub_01h..."
customer_id TEXT NOT NULL REFERENCES customers(customer_id),
user_id TEXT, -- your app's user ID, from checkout customData
subscription_status TEXT NOT NULL, -- see "Status semantics" below
price_id TEXT NOT NULL,
product_id TEXT NOT NULL,
scheduled_change_action TEXT, -- 'cancel' | 'pause' | 'resume'; null if nothing is scheduled
scheduled_change_effective_at TIMESTAMPTZ,
paddle_created_at TIMESTAMPTZ NOT NULL, -- Paddle's created_at, for ordering
last_event_at TIMESTAMPTZ, -- occurredAt of the newest event applied
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX subscriptions_customer_id_idx ON subscriptions(customer_id);
CREATE INDEX subscriptions_user_id_idx ON subscriptions(user_id);
CREATE INDEX subscriptions_status_idx ON subscriptions(subscription_status);
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.
- 1mo ago Changed · +122 lines b55c7b4f46ce
- 3mo ago First seen · 336 lines · 35 tokens per session scan A 36cc2e74c53f
paddle-subscription-sync is a skill published in the GitHub repository PaddleHQ/paddle-agent-skills (9 stars, last pushed 9d ago), licensed Apache-2.0. It adds 35 tokens to every session and 5,569 once invoked, about $0.0001 per session on Opus 5.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-31.
paddle-subscription-sync compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| paddle-subscription-syncPaddleHQ/paddle-agent-skills | Skill | 9 | 9d ago | Apache-2.0 | A | 35 | Claude Code |
| convex-billingopenclaw/clawhub | Skill | 9.6k | today | MIT | A | 29 | Claude Code, Codex |
| cloudbase-wechat-integrationTencentCloudBase/CloudBase-AI-Toolkit | Skill | 1.2k | today | MIT | A | 94 | Claude Code |
| shopify-adminShopify/Shopify-AI-Toolkit | Skill | 659 | today | MIT | A | 226 | Claude Code |
| baselinker-webhookshookdeck/webhook-skills | Skill | 104 | yesterday | MIT | A | 131 | Claude Code, Codex |
| gplay-purchase-verificationhanamizuki/solopreneur | Skill | 159 | 12d ago | MIT | A | 32 | Claude Code |
| tiktok-shop-webhookshookdeck/webhook-skills | Skill | 104 | yesterday | MIT | A | 59 | Claude Code, Codex |