Skip to main content

Overview

Agent Skills are reusable capabilities that enhance what AI coding assistants can do when working with Dodo Payments. They provide procedural knowledge and best practices that help agents accomplish specific tasks more effectively - from integrating checkout flows to setting up usage-based billing.
Think of skills as plugins for your AI assistant. They teach your agent how to implement Dodo Payments features correctly, following our recommended patterns and best practices.
Skills work with any MCP-compatible AI agent, including:
  • Claude Code - Anthropic’s CLI coding assistant
  • OpenCode - Open source AI coding agent
  • Cursor - AI-first code editor
  • Other MCP clients - Any agent supporting the skills protocol

Available Skills

SkillDescription
dodo-best-practicesComprehensive guide to integrating Dodo Payments with best practices
webhook-integrationSetting up and handling webhooks for payment events
subscription-integrationImplementing subscription billing flows
checkout-integrationCreating checkout sessions and payment flows
usage-based-billingImplementing metered billing with events and meters
billing-sdkUsing BillingSDK React components
license-keysManaging license keys for digital products

Installation

Choose your preferred installation method based on your AI coding assistant.
Install skills using the universal skills CLI that works with any MCP-compatible agent:
# Install all Dodo Payments skills
npx skills add dodopayments/skills
Or install individual skills as needed:
# Best practices guide
npx skills add dodopayments/skills/dodo-best-practices

# Webhook integration
npx skills add dodopayments/skills/webhook-integration

# Subscription billing
npx skills add dodopayments/skills/subscription-integration

# Checkout flows
npx skills add dodopayments/skills/checkout-integration

# Usage-based billing
npx skills add dodopayments/skills/usage-based-billing

# BillingSDK components
npx skills add dodopayments/skills/billing-sdk

# License key management
npx skills add dodopayments/skills/license-keys
Install only the skills you need to keep your agent focused and reduce context overhead.

Using Skills

Once installed, your AI assistant can leverage these skills when you ask it to implement Dodo Payments features. Here are some example prompts:

Best Practices

Help me integrate Dodo Payments into my Next.js app following best practices

Webhooks

Set up webhook handlers for payment and subscription events

Subscriptions

Implement a subscription flow with free trial and multiple pricing tiers

Checkout

Create a checkout session for my SaaS product

Usage-Based Billing

Add usage-based billing to track API calls for my AI product

BillingSDK

Add a pricing page using BillingSDK components

License Keys

Implement license key validation for my desktop app

How Skills Work

Skills provide your AI assistant with:
  1. Procedural Knowledge - Step-by-step instructions for implementing features
  2. Code Templates - Production-ready code patterns and snippets
  3. Best Practices - Recommended approaches for security, error handling, and UX
  4. Context Awareness - Understanding of how different Dodo Payments features work together
When you ask your AI assistant to implement a feature, it uses the relevant skill to:
  • Understand the correct implementation approach
  • Generate accurate, working code
  • Follow Dodo Payments conventions
  • Handle edge cases and errors properly
Skills complement the MCP Server and Sentra. Use MCP for API operations, Sentra for guided integration, and Skills for enhanced AI assistant capabilities.

Comparison with Other Tools

ToolPurposeBest For
Agent SkillsEnhance AI assistant knowledgeAI-assisted development with any MCP client
MCP ServerExecute API operationsDirect API access from AI assistants
SentraGuided integration assistantInteractive billing integration in IDE

Resources