subscription-billing-engineer

subscription-billing-engineer is an agent for Claude Code from avelikiy/great_cto. It costs 84 tokens per session (2,113 once invoked), scanned A, original, MIT.

A specialist who defines how subscription and usage-based billing should work with services such as Stripe Billing and Stripe Connect. It covers recurring plans, metering, proration, payment retries, taxes, refunds, disputes, and customer billing access.

In plain words
What is it for?
Use it to specify billing plans and tiers, usage measurement, upgrade and downgrade rules, trial conversion, tax handling, payment recovery, webhook reconciliation, customer portals, refunds, and disputes.
Why use it?
It helps prevent double charges, incorrect credits, missed payment recovery, unreconciled webhooks, and other billing errors before coding starts.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/log-verdict.sh subscription-billing-engineer <DONE|BLOCKED> auto contract=docs/billing/BILLING-<slug>.md.

Part of the great-cto plugin — 40 skills, 44 commands, 70 agents shipped together

Good fit Use it to specify billing plans and tiers, usage measurement, upgrade and downgrade rules, trial conversion, tax handling, payment recovery, webhook reconciliation, customer portals, refunds, and disputes.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/avelikiy/great_cto
agentmods
npx agentmods add agents/avelikiy/great_cto/subscription-billing-engineer

Made for: Claude Code.

Or install great-cto, the plugin that ships this one along with the rest of its 40 skills, 44 commands, 70 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/avelikiy/great_cto/subscription-billing-engineer.svg)](https://agentmods.dev/agents/avelikiy/great_cto/subscription-billing-engineer)
Your own site
<a href="https://agentmods.dev/agents/avelikiy/great_cto/subscription-billing-engineer"><img src="https://agentmods.dev/badge/agents/avelikiy/great_cto/subscription-billing-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,113 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.00084 $0.02113
Opus 5 $0.00042 $0.01056
Sonnet 5 $0.00017 $0.00423
Haiku 4.5 $0.00008 $0.00211

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

Security

Grade A, and why

subscription-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 2d 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.

agents/subscription-billing-engineer.md · 185 lines

How it starts

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

Subscription / Billing Engineer

You own the billing contract — how the product charges money, recurring or metered. Billing bugs are the most expensive kind: a broken proration or a missed dunning step is a direct revenue leak, and a double-charge is a churned customer plus a chargeback. You make billing correct, reconciled, and idempotent before senior-dev writes a line of it.

Pipeline position: architect → you → integrations-engineer (mechanics) → senior-dev Output: docs/billing/BILLING-{slug}.md (the contract) + Beads tasks.

Three billing failures that are not about correctness of arithmetic

Idempotency and ordering are different problems. An idempotent handler still applies a stale event when events arrive out of order — and they do, on retry, on replay, and whenever a provider redelivers. Order by the provider's event timestamp or sequence, never by arrival, and say so when a design replays a backlog.

Credits compound. Two changes inside one period can produce credits that together exceed what was actually charged. Bound the net adjustment by the amount collected for that period, and treat an upgrade-then-downgrade in the same cycle as the case that finds it.

A metered pipeline loses revenue silently. Usage counted in the app and reported to the biller later has a window in which an outage drops records with no artefact showing it happened. Reconcile against the provider's totals and make the discrepancy visible — an under-report leaves no error, only a smaller invoice.

Altitude (hard boundary)

Canonical boundary (decide-contract / implement-only-when-delegated / never-cross-domains): agents/_shared/contract-agent-altitude.md. This agent:

  • You decide the billing model: plans/tiers, metered vs flat, proration policy, trial→paid, dunning ladder, tax handling, refund/credit policy, and the subscription-state machine. You write it as the billing contract.
  • The raw Stripe webhook/idempotency mechanics are owned by integrations-engineer — you specify what must reconcile; they specify how the webhook is verified. Coordinate.
  • Card-data / payout / KYC compliance scope is owned by pci-reviewer (subscriptions) and marketplace-reviewer (Connect payouts). You hand them the scope; they sign it off.

Read the full file on GitHub · 185 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. 2d ago Changed 33bd236c4993
  2. 5d ago First seen · 185 lines · 84 tokens per session scan A b7c2b91f3936

Subscribe to this mod's changes

subscription-billing-engineer is an agent published in the GitHub repository avelikiy/great_cto (89 stars, last pushed yesterday), licensed MIT. It adds 84 tokens to every session and 2,113 once invoked, about $0.0004 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-03.

Related

Other agents, from other repositories

parallel-reviewer

Parallel code review using 4 specialist agents (elixir-reviewer, security-analyzer, testing-reviewer, verification-runner). Use for thorough review of significant changes.

oliver-kriska/claude-elixir-phoenix · 38 tokens

craft-code-reviewer-deep

Deep code review on Opus 4.8 for high-stakes PRs — release branches, security-sensitive code, large architectural changes, migrations, multi-service flows. Use when extra scrutiny is worth the token cost; use craft-code-reviewer for daily review.

michtio/craftcms-claude-skills · 62 tokens

fec-performance-optimizer

Front-end performance analysis and optimization specialization: Core Web Vitals, packaging volume, runtime and rendering, network and cache, memory leak troubleshooting; can cooperate with Lighthouse, Bundle analysis and Profiler. Use it when users mention page slowness, lag, first screen, package size, poor…

bovinphang/frontend-craft · 0 tokens

fec-code-reviewer

Senior review focusing on front-end code (React/Vue/Next/Nuxt, TypeScript, styles, client-side security). Delegate after writing or modifying the front-end; by default, only the review report will be output and placed, and the business code will not be modified directly. Press CRITICAL→LOW to check, control noise and…

bovinphang/frontend-craft · 95 tokens

fec-ui-checker

Use this subagent to troubleshoot visual defects, layout confusion, CSS issues, responsive exceptions, and inconsistencies between interaction and design in the front-end UI, and save the report as a Markdown file. Supports obtaining design data from Figma, Sketch, MasterGo, Pixso, Moko, and Mock, compares the design…

bovinphang/frontend-craft · 0 tokens

fec-figma-implementer

Focus on implementing the proxy of UI components accurately according to the design draft, and save the implementation report as a Markdown file. Supports six design tools: Figma, Sketch, MasterGo, Pixso, Ink Knife, and Mockup. Provide design draft links, selection screenshots or annotation data, automatically obtain…

bovinphang/frontend-craft · 0 tokens