Pine LabsDOCS

Pine Labs Agent Skills

Install Pine Labs payment knowledge into AI coding assistants. Get product-aware guidance for checkout, callbacks and refunds.

Build Pine Labs payment integrations faster with AI coding assistants.

Pine Labs Agent Skills add product-specific payment knowledge to your AI coding environment. The installed skills help your assistant understand Pine Labs APIs, payment flows, security requirements, and implementation best practices while you write or review integration code.

Instead of generating generic payment code, your coding assistant can use Pine Labs-specific implementation guidance for checkout, orders, webhooks, refunds, payouts, subscriptions, and other payment workflows.

Why use Pine Labs Agent Skills?

Generic AI assistants know how to write code, but they don't know Pine Labs-specific implementation rules. Without product context, assistants produce code that compiles but may:

  • Skip callback signature verification
  • Mix UAT and production endpoints
  • Expose credentials in frontend code
  • Retry financial operations without idempotency
  • Treat browser redirects as final payment confirmation

Agent Skills give the assistant the judgment layer it needs to avoid these common integration mistakes.

Get started

Install Pine Labs Agent Skills into your project with a single command:

Bash
npx pinelabs-agent-skills-cli add skills

The CLI prompts for which assistant frameworks to configure, writes skill files into the project, and updates framework manifests.

For non-interactive setup:

Bash
npx pinelabs-agent-skills-cli add skills --frameworks claude-code --yes
Install Agent Skills →

Supported AI coding assistants

Agent Skills support nine AI coding assistants:

  • Claude Code — Anthropic
  • Cursor — AI-first editor
  • VS Code Copilot — GitHub
  • Gemini CLI — Google
  • Kiro — AWS
  • OpenCode — Open source
  • GitHub Copilot CLI — GitHub
  • Codex CLI — OpenAI
  • Antigravity — AI assistant

What Agent Skills add to your AI assistant

API and integration guidance

Identify the relevant Pine Labs API and implementation pattern for your task.

Security-first implementation

Apply secure patterns for credentials, callbacks, tokens, payment data, and sensitive information.

Sandbox-first development

Use UAT for development and testing before moving an integration to production.

Payment operation safety

Apply idempotency patterns for money-moving operations and avoid unsafe retry behaviour.

Production readiness

Review integrations for common go-live issues, including environment configuration, callback verification, credential exposure, and payment confirmation.

What's included?

The installation adds Pine Labs payment skills to your project.

Structure
pinelabs-skills/ ā”œā”€ā”€ SKILL.md <- Root router, global safety rules, and integration flow ā”œā”€ā”€ .pinelabs-skills-version.json <- Version marker for doctor/update stale-install detection ā”œā”€ā”€ validation-and-testing.md <- UAT, negative testing, webhook, refund, and release evidence checklist ā”œā”€ā”€ validation-and-testing/ <- Focused checkout, refund, webhook, SDK, subscription, and settlement test guides │ ā”œā”€ā”€ checkout-orders.md <- Idempotency, timeout, duplicate, callback, and final-state tests │ ā”œā”€ā”€ refunds.md <- Full/partial refund, timeout, duplicate, and reconciliation tests │ ā”œā”€ā”€ webhooks.md <- Signature, replay, duplicate, and ordering tests │ ā”œā”€ā”€ mobile-web-sdks.md <- Callback, cancellation, interruption, and recovery tests │ ā”œā”€ā”€ subscriptions.md <- Plan, presentation, retry, and lifecycle tests │ └── settlements.md <- Payout, split-release, UTR, and delayed-settlement tests ā”œā”€ā”€ go-live.md <- Production readiness gates and rollout checklist ā”œā”€ā”€ webhooks.md <- Raw-body, signature verification, replay, and idempotency guidance ā”œā”€ā”€ common-mistakes.md <- Review checklist for unsafe or brittle integration patterns ā”œā”€ā”€ upgrade-advisor.md <- Update flow for current, stale, and legacy installed skills ā”œā”€ā”€ upgrade-advisor/ <- Installer and integration upgrade routes with source-verified release checks │ ā”œā”€ā”€ installer.md <- Version marker, managed manifest, and catalog update workflow │ └── integration.md <- SDK/API/OpenAPI upgrade, regression, and rollback workflow ā”œā”€ā”€ migration-guides/ <- Provider migration routing and concept maps │ ā”œā”€ā”€ README.md <- Migration guide router │ ā”œā”€ā”€ razorpay-reference.md <- Credentials, lifecycle, webhook, refund, and reconciliation mapping │ └── *.md <- Provider-specific migration workflows ā”œā”€ā”€ evals/ <- Workflow evaluation prompts for safe assistant routing │ ā”œā”€ā”€ validation-and-testing.evals.json <- Duplicate, replay, pending callback, and refund-timeout prompts │ ā”œā”€ā”€ common-mistakes.evals.json <- Credential and frontend-fulfillment prompts │ ā”œā”€ā”€ migration-razorpay.evals.json <- Legacy-order routing and rollback prompt │ └── upgrade-advisor.evals.json <- Source-verified SDK upgrade prompt ā”œā”€ā”€ getting-started/ <- Domain folder for onboarding and auth │ ā”œā”€ā”€ README.md <- Domain router for setup and environment basics │ ā”œā”€ā”€ authentication.md <- OAuth token generation and credential handling │ ā”œā”€ā”€ dashboard-signup-and-token.md <- Dashboard signup, API key setup, and first token guidance │ └── references/REFERENCE.md <- Index for getting-started skill files ā”œā”€ā”€ payments/ <- Payment gateway domain folder │ ā”œā”€ā”€ README.md <- Domain router for payment gateway scenarios │ ā”œā”€ā”€ orders.md <- Order creation, fetch, capture, cancel lifecycle │ ā”œā”€ā”€ checkout.md <- Hosted checkout and redirect flow guidance │ ā”œā”€ā”€ card-payments.md <- Card payment APIs including auth/capture flow │ ā”œā”€ā”€ upi-payments.md <- UPI collect/intent/QR payment implementations │ ā”œā”€ā”€ netbanking.md <- Net banking payment option integration │ ā”œā”€ā”€ wallet.md <- Wallet payment option integration │ ā”œā”€ā”€ payment-links.md <- Payment link creation and lifecycle actions │ ā”œā”€ā”€ payment-option.md <- Payment option eligibility and UPI VPA lookup │ ā”œā”€ā”€ customers.md <- Customer profile create/fetch/update workflows │ ā”œā”€ā”€ tokenization.md <- Card/network token create/fetch/delete workflows │ ā”œā”€ā”€ convenience-fee.md <- Convenience fee calculation flows │ ā”œā”€ā”€ pay-by-points.md <- Reward points eligibility and redemption │ ā”œā”€ā”€ affordability-suite.md <- EMI/offer discovery and affordability checks │ ā”œā”€ā”€ bnpl.md <- BNPL payment journey and controls │ ā”œā”€ā”€ apple-pay.md <- Apple Pay payment authorization flow │ ā”œā”€ā”€ brand-wallet.md <- Brand wallet lifecycle and balance operations │ ā”œā”€ā”€ brand-wallet-payments.md <- Wallet-funded payments and load-money flows │ ā”œā”€ā”€ international-payments.md <- Cross-border payments and conversion support │ ā”œā”€ā”€ e-challans.md <- E-challan create/retrieve/download flows │ ā”œā”€ā”€ upi-reserve-pay.md <- Fund-blocking and reserve-pay workflows │ ā”œā”€ā”€ mobile-sdks/ <- Native mobile SDK guidance group │ │ ā”œā”€ā”€ README.md <- Router: asks Android/iOS/Flutter when platform is unspecified │ │ ā”œā”€ā”€ android.md <- Android native SDK integration guidance │ │ ā”œā”€ā”€ ios.md <- iOS native SDK integration guidance │ │ └── flutter.md <- Flutter native SDK integration guidance │ ā”œā”€ā”€ web-sdks/ <- WebView/browser SDK guidance group │ │ ā”œā”€ā”€ README.md <- Router: asks Android/iOS/Flutter/React Native when unspecified │ │ ā”œā”€ā”€ android.md <- Android web SDK integration guidance │ │ ā”œā”€ā”€ ios.md <- iOS web SDK integration guidance │ │ ā”œā”€ā”€ flutter.md <- Flutter web SDK integration guidance │ │ ā”œā”€ā”€ react-native.md <- React Native web SDK integration guidance │ │ └── faqs.md <- Web SDK troubleshooting and FAQs │ └── references/REFERENCE.md <- Index for payments skill files ā”œā”€ā”€ settlements/ <- Settlements and fund movement domain folder │ ā”œā”€ā”€ README.md <- Domain router for refunds/payouts/settlements │ ā”œā”€ā”€ refunds.md <- Refund initiation and status handling │ ā”œā”€ā”€ payouts.md <- Payout balance, bulk, and scheduled operations │ ā”œā”€ā”€ settlements.md <- Settlement fetch and reconciliation guidance │ ā”œā”€ā”€ split-settlements.md <- Multi-party settlement release/cancel flows │ └── references/REFERENCE.md <- Index for settlement skill files ā”œā”€ā”€ subscriptions/ <- Recurring payments domain folder │ ā”œā”€ā”€ README.md <- Domain router for recurring billing │ ā”œā”€ā”€ subscriptions-plans.md <- Plan creation and management │ ā”œā”€ā”€ subscriptions-subscriptions.md <- Subscription lifecycle APIs (create/pause/resume/cancel) │ ā”œā”€ā”€ subscriptions-presentations.md <- Debit presentation and retry operations │ └── references/REFERENCE.md <- Index for subscriptions skill files └── p3p/ <- P3P x402 and UPI ReservePay domain folder ā”œā”€ā”€ README.md <- Domain router for P3P pay and SDK integration ā”œā”€ā”€ pay.md <- CLI-driven mandate, PPT token, and debit guidance ā”œā”€ā”€ sdk-integration.md <- x402 SDK integration guidance for apps ā”œā”€ā”€ references/ <- CLI and SDK reference files plus domain index ā”œā”€ā”€ templates/ <- Next.js, Express, Python, and vanilla client templates └── evals/p3p-pay.evals.json <- P3P pay skill evaluation cases

The package includes:

  • Best-practices skill — security, routing, UAT, idempotency, and production guidance
  • API-area reference skills — payment-specific guidance for APIs and workflows
  • P3P skills — x402/UPI ReservePay guidance for agent payments and SDK integration
  • Workflow guides — validation checklists, go-live gates, migration guides, and upgrade paths

The assistant starts with the best-practices guidance and loads the relevant API reference based on your task.

Explore available skills →

Security defaults

Pine Labs Agent Skills apply security-first guidance to help developers build and review payment integrations safely.

Follow secure payment practices
  • Use UAT for development and testing
    Build and validate integrations against the UAT environment before moving to production.

  • Keep credentials server-side
    Store PINELABS_CLIENT_ID and PINELABS_CLIENT_SECRET in a secure server-side environment. Never expose secrets in frontend code or client-side bundles.

  • Verify callback signatures
    Always verify callback or webhook signatures before processing payment events or updating transaction status.

  • Use idempotency for money-moving operations
    Use idempotency keys for operations such as payments, refunds, and other financial transactions to prevent unintended duplicate processing.

  • Protect sensitive data
    Never log secrets, access tokens, card data, or sensitive PII. Review application and debugging logs before sharing or storing them.

  • Confirm production actions
    Require explicit confirmation before executing production payment operations or making changes that can affect live transactions.

  • No telemetry
    The installer does not collect telemetry. It only writes local skill files and managed manifest blocks in the project path you choose.

How Agent Skills differ from MCP Server

Agent SkillsMCP Server
What it providesProduct knowledge and implementation guidanceLive tool access to Pine Labs APIs
How it worksLocal skill files in your projectHosted server with natural language execution
Best forWriting and reviewing integration codeQuerying, testing, and executing APIs directly

They are complementary. Agent Skills tell the assistant how to do Pine Labs work correctly. MCP Server lets the assistant do Pine Labs work directly.

For most developers, Agent Skills are the better starting point — you need guidance before you need live tool access.

Package details

PropertyValue
npm packagepinelabs-agent-skills-cli
Binarypinelabs-agent-skills
Node.js18 or newer
LicenseMIT
Unpacked size~722 kB

Resources