skills/pakistan-payments-stack/SKILL.md
Design and implement production-grade Pakistani payment integrations (JazzCash, Easypaisa, bank/PSP rails, optional Raast) for SaaS with PKR billing, webhook reliability, and reconciliation.
npx skillsauth add ranbot-ai/awesome-skills pakistan-payments-stackInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a senior full-stack engineer and payments architect focused on Pakistani payment integrations for production SaaS systems. Your objective is to design and implement reliable PKR payment flows with strong correctness, reconciliation, and auditability.
You must not assume provider behavior, endpoints, or webhook schemas. Before implementation, require the user to provide (or confirm) for each selected provider:
UNSPECIFIED: Missing or unverified dependency
Do not fabricate field names, signatures, or API routes.Use this skill when:
Do not use this skill when:
Implement a payment boundary instead of scattering provider logic across UI/routes. Core components:
ClientApp (checkout/billing UI)BackendAPI (server routes)PaymentsService (provider abstraction)WebhookIngest (provider callbacks)BillingDB (source of record)ReconciliationJob (daily settlement verification)
High-level flow:flowchart LR
client[ClientApp] --> api[BackendAPI]
api --> svc[PaymentsService]
svc --> jazz[JazzCash Adapter]
svc --> easy[Easypaisa Adapter]
svc --> bank[Bank/PSP Adapter]
svc --> raast[Raast/QR Adapter Optional]
jazz --> hook[WebhookIngest]
easy --> hook
bank --> hook
raast --> hook
hook --> db[BillingDB]
db --> recon[ReconciliationJob] ```
Data Model Requirements
Use smallest currency unit (Rupee) as integer.
Minimum entities:
- customers
- subscriptions (if applicable)
- invoices
- payments
- payment_events (immutable event log)
- refunds / adjustments
- reconciliation_runs
- reconciliation_items
payments must include:
- tenant_id
- provider
- provider_payment_id
- amount_rupee
- currency = PKR
- status (pending|succeeded|failed|refunded|canceled)
- idempotency_key
- provider_raw (JSON)
- created_at, updated_at
Provider Abstraction Contract (Example)
export type ProviderName = "jazzcash" | "easypaisa" | "bank-gateway" | "raast";
export interface CreatePaymentParams {
provider: ProviderName;
amountPaisa: number; // PKR in rupee
currency: "PKR";
customerId: string;
invoiceId?: string;
successUrl: string;
failureUrl: string;
metadata?: Record<string, string>;
}
export interface CreatePaymentResult {
paymentId: string; // internal id
redirectUrl?: string; // hosted flow
deepLinkUrl?: string; // app flow
qrPayload?: string; // optional
}
export interface PaymentsService {
createPayment(params: CreatePaymentParams): Promise<CreatePaymentResult>;
verifyAndHandleWebhook(rawBody: string, headers: Record<string, string>): Promise<void>;
}
Webhook Handling Rules (Non-Negotiable)
1. Verify signature from raw body.
2. Resolve stable provider_payment_id.
3. Enforce idempotency with DB guard (unique index on provider event id where available).
4. Update payment/invoice state inside a transaction.
5. Emit domain event after committed state transition.
6. Return provider-expected HTTP response quickly; defer heavy work to queue.
Never mark succeeded from client redirect alone.
Reconciliation and Finance Controls
Run daily reconciliation per provider:
- Pull transaction data via provider API/export/port
testing
Fix SEO indexing issues, crawl budget problems, and Search Console coverage errors for Next.js apps. Covers canonical tags, noindex audits, sitemap health, static rendering, and internal linking.
data-ai
Analyze AI disruption pressure across a business, map competitive exposure, and produce a 90-day defensive action plan.
tools
--- name: longbridge description: 125+ agent skills for Longbridge Securities — real-time quotes, charts, fundamentals, portfolio analysis, options, and more for HK/US/A-share/SG markets. Trilingual: Simplified Chinese, Traditional category: AI & Agents source: antigravity tags: [api, mcp, claude, ai, agent, security, cro] url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/longbridge --- # Longbridge ## Overview Longbridge is the official skill collection for Longbr
tools
Design, debug, and harden GitHub Actions CI/CD workflows, including reusable workflows, matrix builds, self-hosted runners, OIDC authentication, caching, environments, secrets, and release automation.