agent-11: Skill for Claude Code

.claude/skills/saas-payments/SKILL.md

saas-payments is a skill for Claude Code from TheWayWithin/agent-11. It costs 4 tokens per session (4,513 once invoked), scanned A, original, MIT.

A payment-integration guide for Stripe, a service that processes online payments. It covers purchases, subscriptions, customer billing pages, usage-based charges, invoices, and payment webhooks, which are messages sent by Stripe about payment events.

In plain words
What is it for?
Use it to add one-time checkout, monthly or yearly subscriptions, customer self-service billing, metered billing for usage-based products, invoice tracking, and failed-payment handling.
Why use it?
It removes the need to design the full billing lifecycle from scratch, including failed payments and plan changes. It helps keep payment events and subscription status in sync with your application.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is TheWayWithin/agent-11's own configuration. It tells Claude Code how to work on agent-11 itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-11 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to TheWayWithin/agent-11. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/TheWayWithin/agent-11/main/.claude/skills/saas-payments/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/TheWayWithin/agent-11

Made for: Claude Code.

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 saas-payments

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/thewaywithin/agent-11/saas-payments"><img src="https://agentmods.dev/badge/skills/thewaywithin/agent-11/saas-payments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,513 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00004 $0.04513
Opus 5 $0.00002 $0.02256
Sonnet 5 $0.00001 $0.00903
Haiku 4.5 $0.00000 $0.00451

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

Security

Grade A, and why

saas-payments 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 3d 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.

.claude/skills/saas-payments/SKILL.md · 727 lines

How it starts

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

SaaS Payments & Stripe Integration

Capability

Implement production-ready payment processing with Stripe including one-time payments, recurring subscriptions, customer portal, metered billing, and webhook handling. This skill covers the complete billing lifecycle from checkout through subscription management.

Use Cases

  • One-time product purchases with Checkout
  • Subscription plans with monthly/yearly billing
  • Customer self-service portal for billing management
  • Usage-based/metered billing for API products
  • Invoice generation and payment tracking
  • Handling failed payments and dunning
  • Upgrading/downgrading subscription plans

Patterns

Stripe Checkout for One-Time Payments

When to use: Single purchases, credits, one-time fees

Implementation: Create Checkout session server-side, redirect customer to Stripe-hosted page.

// Create checkout session for one-time payment
async function createCheckoutSession(userId: string, priceId: string, quantity = 1) {
  // Get or create Stripe customer
  const customer = await getOrCreateStripeCustomer(userId);

  const session = await stripe.checkout.sessions.create({
    customer: customer.id,
    mode: 'payment',
    line_items: [
      {
        price: priceId, // price_xxx from Stripe Dashboard
        quantity,
      },
    ],
    success_url: `${process.env.APP_URL}/checkout/success?session_id={CHECKOUT_SESSION_ID}`,
    cancel_url: `${process.env.APP_URL}/checkout/cancel`,
    metadata: {
      userId, // Store for webhook processing
    },
    // Enable invoice for one-time payments
    invoice_creation: {
      enabled: true,
    },
  });

  return { url: session.url };
}

// Get or create Stripe customer linked to user
async function getOrCreateStripeCustomer(userId: string) {
  const user = await db.user.findUnique({ where: { id: userId } });

  if (user.stripeCustomerId) {
    return await stripe.customers.retrieve(user.stripeCustomerId);
  }

  const customer = await stripe.customers.create({
    email: user.email,
    name: user.name,
    metadata: {
      userId,
    },
  });

  await db.user.update({
    where: { id: userId },
    data: { stripeCustomerId: customer.id },
  });

  return customer;
}

Read the full file on GitHub · 727 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. 3d ago First seen · 727 lines · 4 tokens per session scan A 470aa98a03a9

Subscribe to this mod's changes

saas-payments is a skill published in the GitHub repository TheWayWithin/agent-11 (15 stars, last pushed 16d ago), licensed MIT. It adds 4 tokens to every session and 4,513 once invoked, about $0.0000 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-09-04.