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.
npx skills add Venkateshwar-Reddy-Jambula/razorpay-integration-plugin --skill metricsgit clone --depth 1 https://github.com/Venkateshwar-Reddy-Jambula/razorpay-integration-pluginWrote 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.
[](https://agentmods.dev/skills/venkateshwar-reddy-jambula/razorpay-integration-plugin/metrics)<a href="https://agentmods.dev/skills/venkateshwar-reddy-jambula/razorpay-integration-plugin/metrics"><img src="https://agentmods.dev/badge/skills/venkateshwar-reddy-jambula/razorpay-integration-plugin/metrics/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.
<a href="https://agentmods.dev/skills/venkateshwar-reddy-jambula/razorpay-integration-plugin/metrics"><img src="https://agentmods.dev/badge/skills/venkateshwar-reddy-jambula/razorpay-integration-plugin/metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.04674 |
| Opus 5.5 | $0.00026 | $0.01870 |
| Sonnet 5.5 | $0.00013 | $0.00935 |
| Haiku 4.5 | $0.00006 | $0.00467 |
Grade A, and why
metrics 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 1mo 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(sub.plan_id); How it starts
The opening of the file, as written. The whole thing — 573 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Razorpay Business Metrics
Calculate key SaaS metrics from your Razorpay subscription and payment data. Includes both database queries (fast, for dashboards) and API-based approaches (accurate, for reconciliation).
MRR (Monthly Recurring Revenue)
Database Approach (Fast)
// lib/metrics/mrr.ts
import { db } from "@/lib/db";
interface MRRResult {
mrr: number; // in paise
mrrDisplay: string; // formatted in rupees
activeCount: number;
breakdown: { planKey: string; count: number; mrr: number }[];
}
export async function calculateMRR(): Promise<MRRResult> {
// Query active subscriptions with plan details
const subscriptions = await db.subscription.findMany({
where: { status: "active" },
select: {
planKey: true,
amount: true, // amount in paise
period: true, // "monthly" | "yearly"
},
});
let totalMRR = 0;
const planMap = new Map<string, { count: number; mrr: number }>();
for (const sub of subscriptions) {
// Convert yearly to monthly contribution
const monthlyAmount = sub.period === "yearly"
? Math.round(sub.amount / 12)
: sub.amount;
totalMRR += monthlyAmount;
const existing = planMap.get(sub.planKey) || { count: 0, mrr: 0 };
planMap.set(sub.planKey, {
count: existing.count + 1,
mrr: existing.mrr + monthlyAmount,
});
}
const breakdown = Array.from(planMap.entries()).map(([planKey, data]) => ({
planKey,
...data,
}));
return {
mrr: totalMRR,
mrrDisplay: `₹${(totalMRR / 100).toLocaleString("en-IN")}`,
activeCount: subscriptions.length,
breakdown,
};
}
Razorpay API Approach (Accurate)
// lib/metrics/mrr-api.ts
import { razorpay } from "@/lib/razorpay";
export async function calculateMRRFromAPI(): Promise<number> {
let totalMRR = 0;
let skip = 0;
const count = 100; // max per request
// Fetch all plans first to know their periods
const plansRes = await razorpay.plans.all({ count: 100 });
const planPeriods = new Map<string, string>();
for (const plan of plansRes.items) {
planPeriods.set(plan.id, plan.period); // "monthly" | "yearly" | "weekly" | "daily"
}
// Paginate through all active subscriptions
while (true) {
const res = await razorpay.subscriptions.all({ count, skip });
const active = res.items.filter((s: any) => s.status === "active");
for (const sub of active) {
const plan = await razorpay.plans.fetch(sub.plan_id);
const amount = plan.item.amount * (sub.quantity || 1);
// Normalize to monthly
const period = planPeriods.get(sub.plan_id) || plan.period;
if (period === "yearly") {
totalMRR += Math.round(amount / 12);
} else if (period === "weekly") {
totalMRR += Math.round(amount * 4.33);
} else if (period === "daily") {
totalMRR += Math.round(amount * 30);
} else {
totalMRR += amount; // monthly
}
}
if (res.items.length < count) break;
skip += count;
}
return totalMRR; // in paise
}
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.
- 1mo ago First seen · 573 lines · 65 tokens per session scan A 05d19d001e5d
metrics is a skill published in the GitHub repository Venkateshwar-Reddy-Jambula/razorpay-integration-plugin (6 stars, last pushed 7mo ago), licensed MIT. It adds 65 tokens to every session and 4,674 once invoked, about $0.0003 per session on Opus 5.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.
Other skills, from other repositories
sector-rotation
An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.
twitter-reader
Read Twitter/X for financial research through opencli: the user's home timeline, tweet search, trending topics, bookmarks, a user's recent tweets, threads, articles, profiles, followers and following, and notifications. Use this skill whenever the user wants to know what people are saying on Twitter/X or fintwit about…
strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
energy-procurement
Codified expertise for electricity and gas procurement, tariff optimization, demand charge management, renewable PPA evaluation, and multi-facility energy cost management. Informed by energy procurement managers with 15+ years experience at large commercial and industrial consumers. Includes market structure analysis…
airdrop-hunting-guide
Guide to finding and qualifying for crypto airdrops — eligibility criteria, farming strategies, on-chain activity requirements, Sybil detection avoidance, and tracking tools. Use when helping users understand airdrops, check eligibility, or plan participation strategies.
china-portfolio-monitoring
A monitoring framework for tracking the financial results, operating measures, strategic milestones, and risks of companies held by China-focused private-equity funds. It uses measures such as revenue growth, margins, debt, cash flow, and return on equity.