The Cashfree Agent Skills CLI loads Cashfree Payments product knowledge directly into your AI coding assistant. A single command installs a full set of skill files (concise markdown documents covering every Cashfree product: PG, Payouts, Subscriptions, Secure ID, Cross Border, Settlements, Auto Collect, and more), plus a manifest that tells the assistant which skill to read for a given user intent. Each skill is split into two files:Documentation Index
Fetch the complete documentation index at: https://www.cashfree.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
SKILL.md: the core happy path for the product (when to use, core workflow, security rules, testing, quick diagnostic).references/REFERENCE.md: the deep reference (full field schemas, per-language SDK code, webhook payloads, troubleshooting).
SKILL.md first and only pulls from REFERENCE.md when it needs deeper detail, keeping answers fast and accurate.
Quick start
Run the following command in your project root. You’ll be prompted to select which AI assistants to configure:Supported assistants
The CLI supports every mainstream AI coding environment. Each one has its own convention for where skill files and the manifest live; the CLI writes to the correct location automatically.| Assistant | Skills directory | Manifest file |
|---|---|---|
| Claude Code | .claude/skills/cashfree-skills/ | CLAUDE.md (project root) |
| Cursor | .cursor/cashfree-skills/ | .cursor/rules/cashfree.mdc |
| OpenCode | .opencode/skills/cashfree-skills/ | AGENTS.md (project root) |
| VS Code Copilot | .github/skills/cashfree-skills/ | .github/copilot-instructions.md |
| GitHub Copilot CLI | .github/skills/cashfree-skills/ | .github/copilot-instructions.md |
| Gemini CLI | .gemini/skills/cashfree-skills/ | GEMINI.md (project root) |
| Antigravity | .agent/skills/cashfree-skills/ | AGENTS.md (project root) |
| OpenAI Codex CLI | .agents/skills/cashfree-skills/ | AGENTS.md (project root) |
Installation
Interactive setup
The easiest way to get started is to run the CLI interactively and pick one or more assistants from the prompt:You’ll see a multi-select list with every supported assistant; tick the ones you use and press Enter.
Non-interactive / CI setup
Pass Valid
--frameworks with a comma-separated list to skip the prompt. This is useful in CI, postinstall hooks, or monorepo bootstrap scripts:--frameworks values: claude-code, cursor, opencode, vscode-copilot, copilot-cli, gemini-cli, antigravity, codex.What gets installed
A single command creates the full skills tree and a routing manifest for every selected assistant.Skills directory structure
The CLI installs a structured tree of skill files organised by product and concern. Below is the full directory layout showing everySKILL.md and REFERENCE.md file that gets created.
View full directory tree
View full directory tree
The manifest file
In addition to the skill files, the CLI writes a manifest to the location your assistant conventionally reads for project instructions. The manifest acts as a routing table, directing the assistant to the correct skill file for each query. The CLI writes the manifest to different locations depending on the assistant (for example,CLAUDE.md for Claude Code, .cursor/rules/cashfree.mdc for Cursor, AGENTS.md for OpenCode / Codex / Antigravity).
The manifest:
- Instructs the assistant to read
getting-started/SKILL.mdfirst when a user is new to Cashfree. - Contains a skill map: a table routing user intents (e.g. “accept payments on mobile”, “respond to a dispute”, “migrate from Razorpay”) to the correct skill file.
- Reminds the assistant to read
validation-and-testing/SKILL.mdafter generating integration code.
.mdc format with Cursor’s metadata frontmatter. For every other assistant, it’s plain Markdown.
How AI assistants use the skills
When you ask a Cashfree-related question, your AI assistant follows a four-step process to locate and deliver the most relevant information.Manifest lookup
On any Cashfree-related question, the assistant first consults the manifest’s skill map to find the matching
SKILL.md.Core skill read
The assistant reads that
SKILL.md for the happy path, scope boundaries, and core workflow.Deep reference (as needed)
If the question needs field-level detail, per-language SDK code, or edge-case troubleshooting, the assistant pulls the corresponding
references/REFERENCE.md.Example interactions
The following examples illustrate how an AI assistant uses the skill files to answer common Cashfree integration questions.View example interactions
View example interactions
Skill index
The table below lists every skill included in the installation, grouped by category. Expand each group to see the individual skills and what they cover.Onboarding
Onboarding
- getting-started: merchant account setup, API key retrieval, sandbox vs. production config, environment variables.
- eligible-payment-modes: how to check which payment methods (UPI / cards / net banking / wallets / paylater / EMI) are enabled for the merchant.
Payment Gateway (PG)
Payment Gateway (PG)
- pg: PG overview and sub-skill index.
- pg/apis: server-to-server REST API integration (any backend language).
- pg/backend-sdks: official SDKs for Node.js, Python, Java, Go, PHP, .NET.
- pg/mobile-sdks: Android, iOS, React Native, Flutter, Cordova / Capacitor.
- pg/web-sdk: Cashfree.js v3 Drop-in and Elements (headless) for React, Vue, Next.js, Angular.
- pg/webhooks: signature verification, event bifurcation, full payload schemas.
- pg/go-live: production checklist, domain whitelisting, integrity checks.
- pg/refunds: full / partial / multi-refunds,
INSTANTvsSTANDARD, refund webhook. - pg/disputes: chargeback lifecycle, accept vs. contest, evidence submission, SLAs.
- pg/payment-links: hosted URLs, partial payments, auto-reminders.
- pg/token-vault: RBI-compliant card tokenization (saved cards, card-on-file, cryptograms).
- pg/easy-split: marketplace splits, vendor management, static vs. dynamic splits.
- pg/offers: bank/BIN/issuer offers, discounts, cashback, no-cost EMI.
Other products
Other products
- secure-id: KYC / verification (bank account, PAN, GSTIN, Aadhaar, DigiLocker).
- subscriptions: plans, mandates, recurring charge lifecycle, pause / resume / cancel.
- cross-border: international payments and currency handling.
- payouts: bulk disbursements, beneficiary management, V1 / V2 auth.
- settlements-and-reconciliation: settlement cycle, recon APIs, UTR matching, finance ops.
- auto-collect: virtual bank accounts, static UPI VPAs, QR codes for inbound collection.
Migration skills
Migration skills
- migrate-from-razorpay: Razorpay → Cashfree migration: concept map, 7-step cutover, code diffs.
- migrate-from-juspay: Juspay → Cashfree migration: orchestrator exit, session/payment-session mapping, webhook rewrites.
Validation & debugging
Validation & debugging
- validation-and-testing: sandbox test data (cards, UPI VPAs), post-integration checklist.
- common-mistakes: diagnostic guide: signature mismatches, IP whitelisting, mobile SDK callbacks, rate limits, go-live pitfalls.
Resources
Explore additional resources to help you get started with the Cashfree Agent Skills.GitHub Repository
View the source code, report issues, and contribute to the toolkit.
npm Package
Package details, install metadata, and version history on npm.
Troubleshooting
If you encounter issues during or after installation, expand the relevant section below for guidance.Assistant doesn't see the skills after install
Assistant doesn't see the skills after install
- Restart the assistant (or reload the IDE window). Most AI coding assistants only scan skill directories at startup.
- Verify files were written: check that
cashfree-skills/exists under the correct base directory for your assistant (see the “Supported assistants” table above). - Verify the manifest: open the manifest file (e.g.
CLAUDE.md,.cursor/rules/cashfree.mdc,AGENTS.md) and confirm the “Cashfree Payments Integration Skills” section is present. Without the manifest, the assistant has no routing table.
Unknown framework error
Unknown framework error
The
--frameworks flag accepts only these values: claude-code, cursor, opencode, vscode-copilot, copilot-cli, gemini-cli, antigravity, codex. Double-check for typos or extra whitespace in the comma-separated list.Permission errors (EACCES)
Permission errors (EACCES)
If you see
EACCES when running the command, check that your current user has write permissions on the project path passed via --path (defaulting to the working directory). Avoid sudo with npx; fix folder ownership instead (chown -R $USER .). On CI, ensure the workspace step runs before the skills install step.Node.js or npx version issues
Node.js or npx version issues
The CLI requires Node.js ≥ 18. If
npx @cashfreepayments/agent-skills fails with an unexpected syntax error, upgrade Node (nvm install --lts works in most setups) and retry.