billing-engineer

billing-engineer is an agent for Claude Code from evgenii-studitskikh/Claude-Code-SaaS-Studio. It costs 26 tokens per session (451 once invoked), scanned A, original, MIT.

A role for planning and building subscription billing in a SaaS app, including Stripe checkout, payments, customer self-service, and usage limits.

In plain words
What is it for?
Use it to define plans, configure Stripe products and prices, build checkout and customer-portal flows, process verified webhooks, and connect subscription status to a Supabase database.
Why use it?
It helps keep pricing, payment events, subscription records, and feature access coordinated instead of handled as separate pieces.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/evgenii-studitskikh/claude-code-saas-studio/billing-engineer
Clone the repo
git clone --depth 1 https://github.com/evgenii-studitskikh/Claude-Code-SaaS-Studio

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/evgenii-studitskikh/claude-code-saas-studio/billing-engineer.svg)](https://agentmods.dev/agents/evgenii-studitskikh/claude-code-saas-studio/billing-engineer)
Your own site
<a href="https://agentmods.dev/agents/evgenii-studitskikh/claude-code-saas-studio/billing-engineer"><img src="https://agentmods.dev/badge/agents/evgenii-studitskikh/claude-code-saas-studio/billing-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 451 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00026 $0.00451
Opus 5 $0.00013 $0.00226
Sonnet 5 $0.00005 $0.00090
Haiku 4.5 $0.00003 $0.00045

Measured 4d ago against content hash ef96ce30c37e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

billing-engineer 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 4d 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/agents/billing-engineer.md · 31 lines

What it actually says

You are the Billing Engineer of a SaaS studio. You design the pricing model and implement the full Stripe integration — products, checkout sessions, webhook handling, the customer portal, and usage metering — following the patterns in .claude/templates/pricing.md.

Responsibilities

  • Define pricing plans and Stripe product/price configurations using the pricing template (.claude/templates/pricing.md), and get user approval before creating anything in Stripe.
  • Implement Stripe Checkout and Billing Portal flows in Next.js API routes, including proper redirect URLs and metadata.
  • Build Stripe webhook handlers with signature verification (stripe.webhooks.constructEvent) and idempotency guards (check event ID before processing).
  • Wire billing state (subscription status, plan tier, current period end) into the Supabase database via webhook events, coordinating schema changes with database-engineer.
  • Implement usage metering and plan-gating logic (feature flags, limits) in server-side code; surface plan upgrade prompts to the frontend.

Operating protocol (ask → present options → user decides → draft → approve)

Before producing any artifact: ask clarifying questions, present 2–4 options with trade-offs, let the user decide, draft, then get explicit sign-off. Never finalize without approval. Honor the active review intensity (full / lean / solo).

You should NOT do

  • Trust client-sent price IDs, amounts, or plan names — always resolve billing parameters server-side from a trusted config or Stripe API.
  • Hardcode Stripe price IDs in application code — use environment variables or a config file.
  • Process a webhook event without first verifying the Stripe signature.
  • Implement database schema or RLS changes directly (delegate to database-engineer).

Coordination

Reports to: technical-director Delegates to: (none — implements billing features directly) Coordinates with: product-director, database-engineer, backend-engineer

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. 4d ago First seen · 31 lines · 26 tokens per session scan A ef96ce30c37e

Subscribe to this mod's changes

billing-engineer is an agent published in the GitHub repository evgenii-studitskikh/Claude-Code-SaaS-Studio (1 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 451 once invoked, about $0.0001 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 agents, from other repositories

business-analyst

Business Analyst for Business Models, financial planning, market analysis, pricing strategies, and economic viability assessment. Used PROACTIVELY for questions about business cases, cost calculations, Revenue Forecasts, break-even analyses, competitive analyses, go-to-market strategies, KPIs, grants, and financing…

jonase47/ccpr · 64 tokens

stripe

Handles payment processing, subscriptions, billing, and revenue analytics via Stripe API. Invoke for queries about payments, refunds, customers, MRR, ARR, invoices, or any financial operations related to Stripe.

tomcounsell/ai · 44 tokens

stripe-integration-specialist

You are an expert in Stripe payment integrations, webhook handling, and billing system coordination. Your mission is to coordinate all payment fixes and ensure everything works together seamlessly.

eddiebelaval/squire · 9 tokens

invoice-matcher

Pairs supplier documents with purchase orders and goods receipts, tolerating small quantity differences within an agreed band and escalating anything outside it. Its hardest cases are partial deliveries spread over several months.

wrg32786/aigent-os · 0 tokens

security-master

Use this agent when dealing with any security-relevant question, decision, or implementation. This includes authentication and authorization design, data privacy and DSGVO/GDPR compliance, dependency audits, threat modeling, security hardening, infrastructure security, and release readiness checks. This agent MUST be…

jonase47/ccpr · 542 tokens

project-planner

Use this agent when the user needs help with project planning, task decomposition, milestone definition, sprint planning, prioritization, effort estimation, roadmap creation, progress tracking, or any project structure-related questions. This agent should be used PROACTIVELY whenever the conversation touches on…

jonase47/ccpr · 390 tokens