customer-portal

customer-portal is a skill for Claude Code from Venkateshwar-Reddy-Jambula/razorpay-integration-plugin. It costs 62 tokens per session (6,417 once invoked), scanned A, original, MIT.

A customer-facing billing portal built around Razorpay, an online payments service. It lets users view subscriptions and payment history, download invoices, cancel or reactivate service, and update payment details.

In plain words
What is it for?
Add a billing or account-settings page where customers can manage subscriptions, invoices, payments, and payment methods.
Why use it?
Razorpay does not provide a ready-made customer portal, so these account-management functions need to be built into the application.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

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

Good fit Add a billing or account-settings page where customers can manage subscriptions, invoices, payments, and payment methods.

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

Any agent
npx skills add Venkateshwar-Reddy-Jambula/razorpay-integration-plugin --skill customer-portal
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 customer-portal

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/venkateshwar-reddy-jambula/razorpay-integration-plugin/customer-portal"><img src="https://agentmods.dev/badge/skills/venkateshwar-reddy-jambula/razorpay-integration-plugin/customer-portal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,417 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00062 $0.06417
Opus 5 $0.00031 $0.03209
Sonnet 5 $0.00012 $0.01283
Haiku 4.5 $0.00006 $0.00642

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

Security

Grade A, and why

customer-portal scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const plan = await razorpay.plans.fetch(rzpSub.plan_id);
skills/customer-portal/SKILL.md · 811 lines

How it starts

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

Self-Service Customer Billing Portal

Build a complete customer-facing billing portal with Razorpay. Unlike Stripe, Razorpay has no built-in customer portal — you build each piece yourself.

Covers: billing status, payment history, cancel/reactivate, invoice download, and payment method update.

1. Billing Status API Route

Returns the current subscription state for display on the billing page.

// app/api/billing/status/route.ts
import { razorpay } from "@/lib/razorpay";

export async function GET(request: Request) {
  const user = await getAuthenticatedUser(request);
  if (!user) return new Response("Unauthorized", { status: 401 });

  try {
    const subscription = await getActiveSubscriptionByUserId(user.id);
    if (!subscription) {
      return Response.json({ active: false, subscription: null });
    }

    // Fetch fresh details from Razorpay (cache this — plan details rarely change)
    const rzpSub = await razorpay.subscriptions.fetch(
      subscription.razorpaySubscriptionId
    );

    // Fetch plan details for display name and amount
    const plan = await razorpay.plans.fetch(rzpSub.plan_id);

    // Fetch recent payments for this subscription
    const payments = await db
      .select()
      .from(paymentsTable)
      .where(eq(paymentsTable.subscriptionId, subscription.id))
      .orderBy(desc(paymentsTable.createdAt))
      .limit(5);

    // Fetch pending invoices if any
    let pendingInvoices: any[] = [];
    try {
      const invoices = await razorpay.invoices.all({
        subscription_id: subscription.razorpaySubscriptionId,
        status: "issued",
      });
      pendingInvoices = invoices.items || [];
    } catch {
      // Invoices endpoint may not return results for all subscriptions
    }

    return Response.json({
      active: ["active", "authenticated"].includes(rzpSub.status),
      subscription: {
        planName: plan.item.name,
        status: rzpSub.status,
        // current_period_end is Unix seconds — convert for display
        nextBillingDate: rzpSub.current_end
          ? new Date(rzpSub.current_end * 1000).toISOString()
          : null,
        amountPaise: plan.item.amount,
        currency: plan.item.currency,
        cancelledAt: rzpSub.ended_at
          ? new Date(rzpSub.ended_at * 1000).toISOString()
          : null,
      },
      recentPayments: payments,
      pendingInvoices: pendingInvoices.map((inv: any) => ({
        id: inv.id,
        amountPaise: inv.amount,
        status: inv.status,
        shortUrl: inv.short_url,
        issuedAt: inv.issued_at
          ? new Date(inv.issued_at * 1000).toISOString()
          : null,
      })),
    });
  } catch (error) {
    console.error("Failed to fetch billing status:", error);
    return Response.json({ error: "Something went wrong" }, { status: 500 });
  }
}

Read the full file on GitHub · 811 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. 12d ago First seen · 811 lines · 62 tokens per session scan A a649dcbcf287

Subscribe to this mod's changes

customer-portal is a skill published in the GitHub repository Venkateshwar-Reddy-Jambula/razorpay-integration-plugin (6 stars, last pushed 6mo ago), licensed MIT. It adds 62 tokens to every session and 6,417 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

asc-ppp-pricing

Set territory-specific pricing for subscriptions and in-app purchases using current asc setup, pricing summary, price import, and price schedule commands. Use when adjusting prices by country or implementing localized PPP strategies.

rorkai/app-store-connect-cli-skills · 45 tokens

stripe

Stripe API integration with managed OAuth. Manage customers, subscriptions, invoices, products, prices, and payments. Use this skill when users want to process payments, manage billing, or handle subscriptions with Stripe. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).…

CraftOS-dev/CraftBot · 79 tokens

etsy-pricing-strategy

Etsy pricing — cost calculation, competitor pricing, perceived value, shipping cost integration, sales and coupons.

nexscope-ai/eCommerce-Skills · 26 tokens

amazon-wholesale-sourcing

Wholesale product sourcing — supplier discovery, negotiation, MOQ optimization, margin analysis.

nexscope-ai/Amazon-Skills · 20 tokens

ai-slop

Operational rubric that turns "don't make AI slop" into observable properties, severity levels, evidence requirements, and repair actions for interface design. Use as the reference rubric when building or reviewing marketing sites, product interfaces, dashboards, portfolios, or e-commerce pages, especially alongside…

waybarrios/opencode-power-pack · 61 tokens

payment-processor

Skill "payment-processor" from Signal-Execution-Labs/forex-trading-ai-agent, covering payment processor skill, supported services, capabilities, view balances and get all balances.

Signal-Execution-Labs/forex-trading-ai-agent · 0 tokens