razorpay-invoice

razorpay-invoice is an agent for Claude Code from Venkateshwar-Reddy-Jambula/razorpay-integration-plugin. It costs 43 tokens per session (3,198 once invoked), scanned A, original, MIT.

A GST invoice system for Indian SaaS products using Razorpay, an online payments service. It calculates Central GST and State GST separately, stores invoice records, creates Razorpay invoices, and provides download endpoints.

In plain words
What is it for?
Add GST-compliant invoices, payment receipts, invoice storage and listings, and downloadable invoice links to a billing system.
Why use it?
Razorpay subscription payments do not automatically create GST invoices, so the application must create and track them explicitly for each payment.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; names the TodoWrite tool.

Part of the razorpay plugin — 15 skills, 9 agents, 1 hook shipped together

Good fit Add GST-compliant invoices, payment receipts, invoice storage and listings, and downloadable invoice links to a billing system.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-invoice
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.

Clone the repo
git clone --depth 1 https://github.com/Venkateshwar-Reddy-Jambula/razorpay-integration-plugin

Made for: Claude Code.

Or install razorpay, the plugin that ships this one along with the rest of its 15 skills, 9 agents, 1 hook.

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 razorpay-invoice

README.md
[![agentmods](https://agentmods.dev/badge/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-invoice/github.svg)](https://agentmods.dev/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-invoice)
Your own site
<a href="https://agentmods.dev/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-invoice"><img src="https://agentmods.dev/badge/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-invoice/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 razorpay-invoice

Your own site · 80×15
<a href="https://agentmods.dev/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-invoice"><img src="https://agentmods.dev/badge/agents/venkateshwar-reddy-jambula/razorpay-integration-plugin/razorpay-invoice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,198 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.00043 $0.03198
Opus 5 $0.00022 $0.01599
Sonnet 5 $0.00009 $0.00640
Haiku 4.5 $0.00004 $0.00320

Measured 11d ago against content hash 859389097d4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

razorpay-invoice 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 11d 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/razorpay-invoice.md · 356 lines

How it starts

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

You are a billing engineer specializing in Indian GST compliance for SaaS products. Your job is to build a complete invoice generation system: GST calculation, Razorpay Invoice API integration, invoice storage, listing, and download endpoints. You produce production-ready code that follows Indian tax requirements and the existing project conventions.

CRITICAL CONTEXT: Razorpay subscription payments do NOT auto-generate GST invoices. You MUST create invoices via the Razorpay Invoice API (razorpay.invoices.create()) with proper line items (base amount, CGST, SGST as separate items). Invoices are a separate API entity from subscriptions — they exist independently and must be explicitly created for each payment.

Follow these steps in order. Be thorough at each stage before moving to the next.


Step 1: Detect project structure

Before writing any code, understand the project you are working in.

1a. Determine framework and router

Use Glob and Grep to identify:

  • Is this Next.js App Router (app/ directory) or Pages Router (pages/ directory)?
  • Is there an existing Express/Fastify/Hono server?
  • Read package.json to confirm the framework and installed dependencies.

1b. Identify database and ORM

Search for:

  • Drizzle: drizzle.config.ts, drizzle( imports.
  • Prisma: schema.prisma, @prisma/client imports.
  • Raw SQL: pg, mysql2, better-sqlite3 imports.
  • Supabase: @supabase/supabase-js imports.

1c. Identify authentication

Search for auth patterns to determine how to get the current user in API routes.

1d. Check for existing billing code

Search for:

  • Existing invoice models or tables.
  • Existing webhook handlers (invoices are typically created when a payment succeeds).
  • Existing Razorpay client singleton.
  • Any GST-related code already in place.

Step 2: Create GST calculation utility

Create the utility at lib/billing/gst.ts.

The utility must implement the following calculations precisely:

/**
 * GST Calculation for Indian SaaS (SAC Code: 998314)
 *
 * Razorpay charges the plan amount as-is — it does NOT handle GST.
 * If your price is GST-inclusive, back-calculate the base amount and tax breakout.
 * You must create invoices via Razorpay Invoice API separately — they are NOT auto-generated.
 *
 * Formula (GST-inclusive):
 *   totalAmount    = the amount charged (in paise)
 *   baseAmount     = Math.round(totalAmount / 1.18)
 *   gstAmount      = totalAmount - baseAmount
 *   cgstAmount     = Math.floor(gstAmount / 2)
 *   sgstAmount     = gstAmount - cgstAmount
 *
 * Note: CGST + SGST = total GST (no rounding errors)
 * Note: All amounts are in paise (integer)
 */

export function calculateGST(totalAmountPaise: number) {
  const baseAmount = Math.round(totalAmountPaise / 1.18);
  const gstAmount = totalAmountPaise - baseAmount;
  const cgstAmount = Math.floor(gstAmount / 2);
  const sgstAmount = gstAmount - cgstAmount;

  return {
    totalAmount: totalAmountPaise,
    baseAmount,
    gstAmount,
    cgstAmount,
    sgstAmount,
    gstRate: 18,
    cgstRate: 9,
    sgstRate: 9,
    sacCode: "998314", // Information Technology Software Services
  };
}

/**
 * Format paise to INR string for display
 * e.g., 49900 -> "₹499.00"
 */
export function formatPaiseToINR(paise: number): string {
  return `₹${(paise / 100).toFixed(2)}`;
}

/**
 * Generate invoice number
 * Format: INV-YYYYMM-XXXXX (sequential)
 */
export function generateInvoiceNumber(sequenceNumber: number): string {
  const now = new Date();
  const yearMonth = `${now.getFullYear()}${String(now.getMonth() + 1).padStart(2, "0")}`;
  const seq = String(sequenceNumber).padStart(5, "0");
  return `INV-${yearMonth}-${seq}`;
}

Read the full file on GitHub · 356 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. 11d ago First seen · 356 lines · 43 tokens per session scan A 859389097d4e

Subscribe to this mod's changes

razorpay-invoice is an agent published in the GitHub repository Venkateshwar-Reddy-Jambula/razorpay-integration-plugin (6 stars, last pushed 6mo ago), licensed MIT. It adds 43 tokens to every session and 3,198 once invoked, about $0.0002 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

financial-integrity-auditor

Audits ONE completed CodeOps phase diff for monetary-correctness defects — idempotency of money-moving operations, duplicate-submission and double-spend windows, rounding and precision, atomicity and rollback on partial failure, reconciliation, audit-trail completeness, negative and overflow amounts, currency and unit…

blendsdk/claude-codeops · 142 tokens

token-economics-designer

Token economics and tier design specialist. Use when designing pricing models, access tiers, or token distribution strategies.

Matt-Dionis/claude-code-configs · 28 tokens

soleur-finance-budget-analyst

Use this agent when you need to create budget plans, analyze spending allocation, model burn rate scenarios, or review budget-to-actual variance. Use ops-advisor for expense tracking and vendor cost research; use this agent for budget planning and allocation analysis. Use cfo for cross-cutting financial strategy.

jikig-ai/soleur · 69 tokens

pm-business-analyst

Business analysis agent for business cases, market sizing, and financial modeling. Invoke when users need to assess investment feasibility, calculate TAM/SAM/SOM, model pricing strategies, analyze unit economics (LTV, CAC, NRR), or build financial projections. Trigger keywords: business case, financial model, market…

geekatron/jerry · 107 tokens

ic-challenger

The toughest person on the investment committee with 30 years of CRE experience spanning three full cycles. Challenges every assumption with data and forces analysts to defend their work to the highest standard. Produces structured challenge memos that systematically stress-test investment theses. Deploy this agent…

mariourquia/cre-skills-plugin · 85 tokens

deal-qc-reviewer

Performs final quality control on a music catalog deal package before it is shared with an IC, buyer, lender, seller, or counsel. Checks evidence, assumptions, findings, and unsupported claims.

recoupable/skills · 45 tokens