paddle-subscription-update

paddle-subscription-update is a skill for Claude Code from PaddleHQ/paddle-agent-skills. It costs 48 tokens per session (5,221 once invoked), scanned A, original, Apache-2.0.

A Next.js server-side workflow for changing a user's Paddle subscription plan. Paddle is a billing service, and a server action is code that runs securely on the server after a user request.

In plain words
What is it for?
Use it to build upgrade or downgrade actions for authenticated users switching between Paddle prices, with a preview before confirming the change.
Why use it?
It covers the checks and billing rules needed to change plans safely, including account ownership, prorated billing, and replacing the selected subscription item.

Skill for Claude Code

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

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

Good fit Use it to build upgrade or downgrade actions for authenticated users switching between Paddle prices, with a preview before confirming the change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/paddlehq/paddle-agent-skills/subscription-update
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-update
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 13 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-update

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/paddlehq/paddle-agent-skills/subscription-update"><img src="https://agentmods.dev/badge/skills/paddlehq/paddle-agent-skills/subscription-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,221 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.00048 $0.05221
Opus 5.5 $0.00019 $0.02088
Sonnet 5.5 $0.00010 $0.01044
Haiku 4.5 $0.00005 $0.00522

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

Security

Grade A, and why

paddle-subscription-update 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.

providers/claude/plugin/skills/subscription-update/SKILL.md · 338 lines

How it starts

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

Update a Paddle subscription's plan from Next.js

When to use this skill

Use this skill when building "Upgrade plan," "Switch tier," or "Change subscription" actions in your authenticated user's billing UI. It covers a Next.js 15 (App Router) Server Action that calls paddle.subscriptions.update(), the five prorationBillingMode choices and when to pick each, the replace not append semantics of the items array, and the security checks every plan-change action needs.

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

  • subscription-sync — your webhook handler will get a subscription.updated event after the change. Your DB mirror picks up the new plan, status, and pricing.
  • subscription-cancel — same auth/ownership shape; if you're building both, share the helpers.

Prerequisites

  • A Paddle account with at least two prices the user can switch between (e.g. monthly Starter and monthly Pro). Sandbox is fine.
  • Server-side PADDLE_API_KEY available — Server Action only. The key needs the subscription.write permission (for update and activate). previewUpdate only needs subscription.read, which write includes.
  • Customer + subscription state mirrored from webhooks (see subscription-sync).
  • An auth system. Examples use Supabase.
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_*)

Supabase helpers

The action uses two server-side Supabase clients. These match the Paddle Next.js starter kit; if your project already has equivalent helpers, use those instead.

// src/utils/supabase/server.ts — the signed-in user's session (anon key + cookies)
import { createServerClient } from "@supabase/ssr";
import { cookies } from "next/headers";

export async function createClient() {
  const cookieStore = await cookies();

  return createServerClient(
    process.env.NEXT_PUBLIC_SUPABASE_URL!,
    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
    {
      cookies: {
        getAll() {
          return cookieStore.getAll();
        },
        setAll(cookiesToSet) {
          try {
            cookiesToSet.forEach(({ name, value, options }) =>
              cookieStore.set(name, value, options),
            );
          } catch {
            // Called from a Server Component. Safe to ignore if middleware refreshes sessions.
          }
        },
      },
    },
  );
}

Read the full file on GitHub · 338 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. 1mo ago Changed · +96 lines 19b6be4db805
  2. 3mo ago First seen · 242 lines · 48 tokens per session scan A baa8cfc235a0

Subscribe to this mod's changes

paddle-subscription-update is a skill published in the GitHub repository PaddleHQ/paddle-agent-skills (9 stars, last pushed 9d ago), licensed Apache-2.0. It adds 48 tokens to every session and 5,221 once invoked, about $0.0002 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.

Related

paddle-subscription-update compared with skills from other repositories

paddle-subscription-update next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
paddle-subscription-updatePaddleHQ/paddle-agent-skillsSkill99d agoApache-2.0A48Claude Code
x402browser-use/browser-useSkill123ktodayMITA166Claude Code
tushareHKUDS/Vibe-TradingSkill39ktodayMITA79Claude Code, Codex
hyperliquid-websocketgalleonlabs/hypergrok-trading-deskSkill641yesterdayMITA89Claude Code
wechatpay-payment-integrationwechatpay-apiv3/wechatpay-skillsSkill38013d agoMITA330Claude Code, Codex
build-a-stripe-integrationsuperset-sh/supersetSkill17k3d agoMITA74Claude Code
freee-api-skillfreee/freee-mcpSkill525todayApache-2.0A397Claude Code