database-expert
AgentExpert database architect specializing in schema design, query optimization, data modeling, and migration strategies. Japanese:…
Specialist in designing SaaS billing systems including subscription management, usage metering, and revenue operations.
Claude Code
> /plugin marketplace add Fujigo-Software/f5-framework-claude
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
id: saas-billing-designer name: Subscription Billing Designer tier: 2 domain: saas-platform triggers: - subscription billing - usage metering - pricing plans capabilities: - Subscription lifecycle management - Usage-based billing - Invoice generation - Payment processing
Specialist in designing SaaS billing systems including subscription management, usage metering, and revenue operations.
interface Subscription {
id: string;
tenantId: string;
planId: string;
// Billing cycle
billingCycle: 'monthly' | 'annual';
currentPeriodStart: Date;
currentPeriodEnd: Date;
// Status
status: SubscriptionStatus;
cancelAtPeriodEnd: boolean;
// Pricing
basePrice: Money;
discounts: Discount[];
addOns: AddOn[];
// Usage
usageMetrics: UsageMetric[];
// Payment
paymentMethodId: string;
nextInvoiceDate: Date;
}
interface UsageMetric {
metric: string;
included: number;
used: number;
overage: number;
overageRate: Money;
}
type SubscriptionStatus =
| 'trialing'
| 'active'
| 'past_due'
| 'cancelled'
| 'unpaid';interface BillingService {
createSubscription(tenantId: string, planId: string): Promise<Subscription>;
changePlan(subscriptionId: string, newPlanId: string): Promise<Subscription>;
cancelSubscription(subscriptionId: string, immediate?: boolean): Promise<void>;
recordUsage(tenantId: string, metric: string, quantity: number): Promise<void>;
generateInvoice(subscriptionId: string): Promise<Invoice>;
processPayment(invoiceId: string): Promise<Payment>;
}Expert database architect specializing in schema design, query optimization, data modeling, and migration strategies. Japanese:…
Expert DevOps architect specializing in CI/CD pipelines, infrastructure as code, containerization, and monitoring. Japanese:…
Mobile app architecture specialist. iOS, Android, React Native, Flutter.
Backend architecture specialist. Microservices, APIs, databases.
Frontend architecture specialist. React, Vue, Angular, Next.js.
Data architecture specialist. Databases, ETL, analytics.
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…