> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Skills

> Enhance your AI coding assistants with official Dodo Payments skills for seamless payment integrations, webhook handling, and billing flows.

## 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.

<Info>
  **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.
</Info>

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

| Skill                                                                                                               | Description                                                              |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [dodo-best-practices](https://github.com/dodopayments/skills/tree/main/dodo-payments/best-practices)                | Comprehensive guide to integrating Dodo Payments with best practices     |
| [webhook-integration](https://github.com/dodopayments/skills/tree/main/dodo-payments/webhook-integration)           | Setting up and handling webhooks for payment events                      |
| [subscription-integration](https://github.com/dodopayments/skills/tree/main/dodo-payments/subscription-integration) | Implementing subscription billing flows                                  |
| [checkout-integration](https://github.com/dodopayments/skills/tree/main/dodo-payments/checkout-integration)         | Creating checkout sessions and payment flows                             |
| [usage-based-billing](https://github.com/dodopayments/skills/tree/main/dodo-payments/usage-based-billing)           | Implementing metered billing with events and meters                      |
| [billing-sdk](https://github.com/dodopayments/skills/tree/main/dodo-payments/billing-sdk)                           | Using BillingSDK React components                                        |
| [license-keys](https://github.com/dodopayments/skills/tree/main/dodo-payments/license-keys)                         | Managing license keys for digital products                               |
| [credit-based-billing](https://github.com/dodopayments/skills/tree/main/dodo-payments/credit-based-billing)         | Implementing credit entitlements, balances, and metered credit deduction |

## Installation

Choose your preferred installation method based on your AI coding assistant.

<Tabs>
  <Tab title="Agent Plugin (recommended)">
    Si vous utilisez Claude Code, Codex CLI, Cursor ou OpenCode, le [Plugin Dodo Agent](/developer-resources/build-with-ai-coding-agents) installe toutes les huit compétences plus les deux serveurs MCP en une seule étape. Les compétences se chargent automatiquement lorsque votre agent détecte une tâche pertinente.

    Voir le [guide des agents de codage IA](/developer-resources/build-with-ai-coding-agents) pour les commandes d'installation par agent.
  </Tab>

  <Tab title="Skills CLI">
    Installez les compétences en utilisant le CLI universel qui fonctionne avec n'importe quel agent compatible MCP :

    ```bash theme={null}
    # Install all Dodo Payments skills
    npx skills add dodopayments/skills
    ```

    Ou installez des compétences individuelles selon les besoins :

    ```bash theme={null}
    # Best practices guide
    npx skills add dodopayments/skills/dodo-payments/best-practices

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

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

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

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

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

    # License key management
    npx skills add dodopayments/skills/dodo-payments/license-keys

    # Credit-based billing
    npx skills add dodopayments/skills/dodo-payments/credit-based-billing
    ```

    <Tip>
      Installez uniquement les compétences dont vous avez besoin pour garder votre agent concentré et réduire l'encombrement contextuel.
    </Tip>
  </Tab>

  <Tab title="Claude Code">
    Ajoutez le marché des compétences Dodo Payments à Claude Code :

    ```bash theme={null}
    /plugin marketplace add dodopayments/skills
    ```

    Ensuite, installez des plugins individuels :

    ```bash theme={null}
    # Install best practices
    /plugin install dodo-best-practices

    # Install webhook integration
    /plugin install webhook-integration

    # Install subscription integration
    /plugin install subscription-integration

    # Install checkout integration
    /plugin install checkout-integration

    # Install usage-based billing
    /plugin install usage-based-billing

    # Install BillingSDK
    /plugin install billing-sdk

    # Install license keys
    /plugin install license-keys

    # Install credit-based billing
    /plugin install credit-based-billing
    ```
  </Tab>

  <Tab title="OpenCode">
    Les compétences sont automatiquement disponibles lorsqu'elles sont configurées dans vos paramètres OpenCode. Ajoutez le référentiel de compétences Dodo Payments à votre configuration :

    ```json theme={null}
    {
      "skills": {
        "repositories": [
          "dodopayments/skills"
        ]
      }
    }
    ```
  </Tab>
</Tabs>

## Utilisation des compétences

Une fois installées, votre assistant IA peut utiliser ces compétences lorsque vous lui demandez de mettre en place des fonctionnalités de Dodo Payments. Voici quelques invites d'exemple :

### Meilleures pratiques

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

### Webhooks

```
Set up webhook handlers for payment and subscription events
```

### Abonnements

```
Implement a subscription flow with free trial and multiple pricing tiers
```

### Paiement

```
Create a checkout session for my SaaS product
```

### Facturation basée sur l'utilisation

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

### BillingSDK

```
Add a pricing page using BillingSDK components
```

### Clés de licence

```
Implement license key validation for my desktop app
```

### Facturation basée sur le crédit

```
Set up credit entitlements and metered credit deduction for my AI product
```

## Comment fonctionnent les compétences

Les compétences fournissent à votre assistant IA :

1. **Connaissance procédurale** - Instructions étape par étape pour mettre en œuvre des fonctionnalités
2. **Modèles de code** - Modèles et extraits de code prêts pour la production
3. **Meilleures pratiques** - Approches recommandées pour la sécurité, la gestion des erreurs et l'UX
4. **Conscience contextuelle** - Compréhension de la manière dont les différentes fonctionnalités de Dodo Payments fonctionnent ensemble

Lorsque vous demandez à votre assistant IA de mettre en œuvre une fonctionnalité, il utilise la compétence pertinente pour :

* Comprendre la bonne approche de mise en œuvre
* Générer un code précis et opérationnel
* Suivre les conventions de Dodo Payments
* Gérer correctement les cas limites et les erreurs

<Note>
  Les compétences complètent le [Serveur MCP](/developer-resources/mcp-server) et [Sentra](/developer-resources/sentra). Utilisez MCP pour les opérations API, Sentra pour l'intégration guidée et les compétences pour des capacités améliorées de l'assistant IA.
</Note>

## Comparaison avec d'autres outils

| Outil                   | Objectif                                      | Idéal pour                                                    |
| ----------------------- | --------------------------------------------- | ------------------------------------------------------------- |
| **Compétences d'agent** | Améliorer les connaissances de l'assistant IA | Développement assisté par l'IA avec n'importe quel client MCP |
| **Serveur MCP**         | Exécuter des opérations API                   | Accès direct à l'API depuis les assistants IA                 |
| **Sentra**              | Assistant d'intégration guidée                | Intégration interactive de la facturation dans l'IDE          |

## Ressources

<CardGroup cols={2}>
  <Card title="Skills Repository" icon="github" href="https://github.com/dodopayments/skills">
    Parcourez le code source et contribuez aux compétences Dodo Payments
  </Card>

  <Card title="MCP Server" icon="server" href="/developer-resources/mcp-server">
    Permettre aux assistants IA d'exécuter des opérations API Dodo Payments
  </Card>

  <Card title="Sentra" icon="wand-magic-sparkles" href="/developer-resources/sentra">
    Assistant de facturation alimenté par l'IA pour votre IDE
  </Card>

  <Card title="Discord Community" icon="discord" href="https://discord.gg/bYqAp4ayYh">
    Obtenez de l'aide et partagez vos commentaires avec la communauté
  </Card>
</CardGroup>
