paddle-subscription-cancel

paddle-subscription-cancel is a skill for Claude Code from PaddleHQ/paddle-agent-skills. It costs 46 tokens per session (2,130 once invoked), scanned A, original, Apache-2.0.

A guide for adding subscription cancellation to a Next.js account or billing page using Paddle, a service for handling online subscriptions and payments. It covers the server-side action, login and ownership checks, and the difference between immediate cancellation and a cancellation scheduled for the end of a billing period.

In plain words
What is it for?
Use it to build a Cancel subscription button with a Next.js Server Action, safely call Paddle, refresh the account page, and work with customer, subscription, and webhook data.
Why use it?
It helps avoid exposing payment credentials in the browser or letting one customer cancel another customer’s subscription. It also prevents confusion between a canceled subscription and a future scheduled change.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the paddle plugin — 10 skills, 3 MCP servers shipped together

Good fit Use it to build a Cancel subscription button with a Next.js Server Action, safely call Paddle, refresh the account page, and work with customer, subscription, and webhook data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/paddlehq/paddle-agent-skills/subscription-cancel
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 PaddleHQ/paddle-agent-skills --skill subscription-cancel
Clone the repo
git clone --depth 1 https://github.com/PaddleHQ/paddle-agent-skills

Made for: Claude Code.

Or install paddle, the plugin that ships this one along with the rest of its 10 skills, 3 MCP servers.

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 paddle-subscription-cancel

README.md
[![agentmods](https://agentmods.dev/badge/skills/paddlehq/paddle-agent-skills/subscription-cancel/github.svg)](https://agentmods.dev/skills/paddlehq/paddle-agent-skills/subscription-cancel)
Your own site
<a href="https://agentmods.dev/skills/paddlehq/paddle-agent-skills/subscription-cancel"><img src="https://agentmods.dev/badge/skills/paddlehq/paddle-agent-skills/subscription-cancel/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 paddle-subscription-cancel

Your own site · 80×15
<a href="https://agentmods.dev/skills/paddlehq/paddle-agent-skills/subscription-cancel"><img src="https://agentmods.dev/badge/skills/paddlehq/paddle-agent-skills/subscription-cancel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,130 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00046 $0.02130
Opus 5 $0.00023 $0.01065
Sonnet 5 $0.00009 $0.00426
Haiku 4.5 $0.00005 $0.00213

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

Security

Grade A, and why

paddle-subscription-cancel 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 11d 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.

providers/claude/plugin/skills/subscription-cancel/SKILL.md · 150 lines

How it starts

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

Cancel a Paddle subscription from Next.js

When to use this skill

Use this skill when building the "Cancel subscription" button (or equivalent) on the authenticated user's billing or account page. It covers a Next.js 15 (App Router) Server Action that calls paddle.subscriptions.cancel() with the right options, the security checks every cancel action needs, what to do after the cancel succeeds, and the relationship between Paddle's canceled status and a scheduledChange block.

This is the initiating side of subscription cancellation. Pair it with:

  • subscription-sync for the receiving side — your webhook handler will get a subscription.updated event reflecting the schedule change, then a subscription.canceled event when the period actually ends.
  • webhooks if you haven't set up the webhook endpoint yet.

Prerequisites

  • A working Paddle account with at least one active subscription (sandbox is fine).
  • Server-side PADDLE_API_KEY available — this action runs in a Server Action, never in the browser.
  • A customers table and a subscriptions table mirrored from webhooks (see subscription-sync). You need to know which Paddle customer the authenticated user is, and which subscription they're trying to cancel.
  • An auth system. The examples use Supabase, but any session-based auth works.
NEXT_PUBLIC_PADDLE_ENV=sandbox             # or "production"
PADDLE_API_KEY=pdl_sdbx_apikey_...

NEXT_PUBLIC_SUPABASE_URL=...
NEXT_PUBLIC_SUPABASE_ANON_KEY=...
SUPABASE_SERVICE_ROLE_KEY=...              # or SUPABASE_SECRET_KEY (new opaque sb_secret_*)

How paddle.subscriptions.cancel works

const subscription = await paddle.subscriptions.cancel(subscriptionId, {
  effectiveFrom: "next_billing_period", // or "immediately"
});

effectiveFrom controls when the cancellation takes effect:

Value Meaning When to use
next_billing_period Cancellation is scheduled for the end of the current billing period. The status stays active until then; scheduledChange is set on the subscription. Default for a generic "Cancel subscription" button — the user paid for the period, let them keep it.
immediately Cancellation takes effect right now. Paddle prorates a refund for the unused portion. A different, much rarer flow ("Cancel and refund"). Surprises users if used as the default.

Read the full file on GitHub · 150 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. 11d ago First seen · 150 lines · 46 tokens per session scan A 6747d0c6e102

Subscribe to this mod's changes

paddle-subscription-cancel is a skill published in the GitHub repository PaddleHQ/paddle-agent-skills (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 2,130 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens

product-description-generator

E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…

nexscope-ai/eCommerce-Skills · 126 tokens

amazon-price-tracker

Amazon price monitoring and competitive pricing intelligence. Real-time price tracking, Buy Box analysis, promotion detection, and dynamic pricing strategy optimization. Use when the user asks about price monitoring, competitor pricing, Buy Box tracking, or pricing strategy.

nexscope-ai/Amazon-Skills · 51 tokens