agent-11: Skill for Claude Code

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

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

A subscription and billing implementation guide for software-as-a-service products. It covers trials, plan changes, usage limits, payment status, invoices, and failed payments.

In plain words
What is it for?
Use it to build trial conversion, upgrades and downgrades, quota enforcement, billing history, payment webhooks, and failed-payment recovery.
Why use it?
It provides patterns for keeping customer access, quotas, and subscription records in sync with a payment provider.

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-billing/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-billing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/thewaywithin/agent-11/saas-billing"><img src="https://agentmods.dev/badge/skills/thewaywithin/agent-11/saas-billing.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 2,427 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.02427
Opus 5 $0.00002 $0.01213
Sonnet 5 $0.00001 $0.00485
Haiku 4.5 $0.00000 $0.00243

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

Security

Grade A, and why

saas-billing 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-billing/SKILL.md · 370 lines

How it starts

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

SaaS Billing & Subscription Management

Capability

Implement subscription lifecycle management, plan enforcement, usage tracking, and billing operations. Covers trial periods, plan changes, quota enforcement, and subscription status synchronization with payment providers.

Use Cases

  • Trial period management with conversion tracking
  • Plan upgrades and downgrades with proration
  • Usage quota tracking and enforcement
  • Subscription status webhooks handling
  • Billing history and invoice access
  • Failed payment recovery (dunning)

Patterns

Plan Definition & Enforcement

When to use: Enforce feature access and limits based on subscription tier

Implementation: Define plans with features and limits, check against current subscription.

// Plan definitions
const PLANS = {
  free: {
    id: 'free',
    name: 'Free',
    price: 0,
    limits: {
      projects: 3,
      teamMembers: 1,
      storageGb: 1,
      apiRequestsPerMonth: 1000
    },
    features: ['basic_analytics']
  },
  pro: {
    id: 'pro',
    name: 'Pro',
    stripePriceId: 'price_pro_monthly',
    price: 29,
    limits: {
      projects: 25,
      teamMembers: 10,
      storageGb: 50,
      apiRequestsPerMonth: 50000
    },
    features: ['basic_analytics', 'advanced_analytics', 'api_access', 'priority_support']
  },
  enterprise: {
    id: 'enterprise',
    name: 'Enterprise',
    stripePriceId: 'price_enterprise_monthly',
    price: 99,
    limits: {
      projects: -1, // unlimited
      teamMembers: -1,
      storageGb: 500,
      apiRequestsPerMonth: -1
    },
    features: ['basic_analytics', 'advanced_analytics', 'api_access', 'priority_support', 'sso', 'audit_logs', 'custom_integrations']
  }
} as const;

// Check feature access
function hasFeature(orgPlan: string, feature: string): boolean {
  const plan = PLANS[orgPlan];
  return plan?.features.includes(feature) ?? false;
}

// Check limit
function checkLimit(orgPlan: string, resource: string, current: number): boolean {
  const plan = PLANS[orgPlan];
  const limit = plan?.limits[resource];
  if (limit === -1) return true; // unlimited
  return current < limit;
}

// Middleware for feature gating
async function requireFeature(feature: string) {
  return async (req: Request, next: NextFunction) => {
    const org = req.tenant;
    if (!hasFeature(org.plan, feature)) {
      throw new PaymentRequiredError(
        `Upgrade to access ${feature}`,
        { requiredPlan: getMinimumPlanForFeature(feature) }
      );
    }
    return next();
  };
}

Read the full file on GitHub · 370 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 · 370 lines · 4 tokens per session scan A 76225c07977e

Subscribe to this mod's changes

saas-billing 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 2,427 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.

Related

Other skills, from other repositories

business-case

Business case analysis with ROI, NPV, IRR, payback period, and TCO calculations for investment decisions. Use when building financial justification, cost-benefit analysis, build-vs-buy comparisons, or sensitivity analysis.

yonatangross/orchestkit · 48 tokens

finance-expert

Expert-level financial systems, FinTech, banking, payments, and financial technology. Use when the user mentions fintech, banking, payments, trading, or accounting, or when the task involves Financial Systems, FinTech Stack, Key Challenges, or Data Handling.

personamanagmentlayer/pcl · 55 tokens

ensemble-beads-build

Drive an existing bead hierarchy to completion through the full builder, code-review, and close pipeline (Codex skill for /ensemble:beads-build).

FortiumPartners/ensemble · 35 tokens

flyio

Version: 1.0.0 | Target Size: <25KB | Purpose: Fast reference for Fly.io deployments and global application distribution.

FortiumPartners/ensemble · 0 tokens

agent-card

Manage virtual Visa cards for AI agents with AgentCard. Fund a wallet with Apple Pay or Google Pay, create single-use or multi-use cards, check balances, view credentials, pay for things, shop and check out at merchants like DoorDash, close cards, manage plans, and get support. Use when the user wants to create or…

tiny-agent-company/agent-card-skill · 106 tokens

skills

Version: 1.0.0 Target: .NET 8.0+ with Blazor Server/WebAssembly UI Library: Microsoft Fluent UI Blazor Components Purpose: Fast lookup for common Blazor patterns and best practices.

FortiumPartners/ensemble · 0 tokens