> ## 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)">
    Wenn Sie Claude Code, Codex CLI, Cursor oder OpenCode verwenden, installiert das [Dodo Agent Plugin](/developer-resources/build-with-ai-coding-agents) alle acht Skills plus beide MCP-Server in einem Schritt. Skills werden automatisch geladen, wenn Ihr Agent eine relevante Aufgabe erkennt.

    Siehe den [AI Coding Agents Guide](/developer-resources/build-with-ai-coding-agents) für installationsspezifische Befehle.
  </Tab>

  <Tab title="Skills CLI">
    Installieren Sie Skills mit dem universellen Skills-CLI, das mit jedem MCP-kompatiblen Agenten funktioniert:

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

    Oder installieren Sie einzelne Skills nach Bedarf:

    ```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>
      Installieren Sie nur die Skills, die Sie benötigen, um Ihren Agenten fokussiert zu halten und den Kontext-Overhead zu reduzieren.
    </Tip>
  </Tab>

  <Tab title="Claude Code">
    Fügen Sie den Dodo Payments Skills-Marktplatz zu Claude Code hinzu:

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

    Dann einzelne Plugins installieren:

    ```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">
    Skills sind automatisch verfügbar, wenn sie in Ihren OpenCode-Einstellungen konfiguriert sind. Fügen Sie das Dodo Payments Skills-Repository zu Ihrer Konfiguration hinzu:

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

## Skills verwenden

Sobald installiert, kann Ihr KI-Assistent diese Skills nutzen, wenn Sie ihn bitten, Dodo Payments-Funktionen zu implementieren. Hier sind einige Beispielanfragen:

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

### Abonnements

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

### Checkout

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

### Verbrauchsabhängige Abrechnung

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

### BillingSDK

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

### Lizenzschlüssel

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

### Kreditbasierte Abrechnung

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

## Wie Skills funktionieren

Skills bieten Ihrem KI-Assistenten:

1. **Prozedurales Wissen** - Schritt-für-Schritt-Anleitungen zur Implementierung von Funktionen
2. **Code-Vorlagen** - Produktreife Code-Muster und Snippets
3. **Best Practices** - Empfohlene Ansätze für Sicherheit, Fehlerbehandlung und UX
4. **Kontextbewusstsein** - Verständnis dafür, wie verschiedene Dodo Payments-Funktionen zusammenarbeiten

Wenn Sie Ihren KI-Assistenten bitten, eine Funktion zu implementieren, nutzt er den entsprechenden Skill um:

* Den korrekten Implementierungsansatz zu verstehen
* Akkuraten, funktionierenden Code zu generieren
* Dodo Payments-Konventionen zu befolgen
* Randfälle und Fehler richtig zu behandeln

<Note>
  Skills ergänzen den [MCP-Server](/developer-resources/mcp-server) und [Sentra](/developer-resources/sentra). Verwenden Sie MCP für API-Operationen, Sentra für geführte Integration und Skills für erweiterte KI-Assistenten-Funktionen.
</Note>

## Vergleich mit anderen Tools

| Tool             | Zweck                                      | Am besten geeignet für                           |
| ---------------- | ------------------------------------------ | ------------------------------------------------ |
| **Agent Skills** | Erweiterung des Wissens des KI-Assistenten | KI-unterstützte Entwicklung mit jedem MCP-Client |
| **MCP Server**   | Ausführung von API-Operationen             | Direkter API-Zugriff von KI-Assistenten          |
| **Sentra**       | Geführter Integrationsassistent            | Interaktive Abrechnungsintegration in der IDE    |

## Ressourcen

<CardGroup cols={2}>
  <Card title="Skills Repository" icon="github" href="https://github.com/dodopayments/skills">
    Durchsuchen Sie den Quellcode und tragen Sie zu den Dodo Payments-Skills bei
  </Card>

  <Card title="MCP Server" icon="server" href="/developer-resources/mcp-server">
    Ermöglichen Sie KI-Assistenten, Dodo Payments API-Operationen auszuführen
  </Card>

  <Card title="Sentra" icon="wand-magic-sparkles" href="/developer-resources/sentra">
    KI-gestützter Abrechnungsassistent für Ihre IDE
  </Card>

  <Card title="Discord Community" icon="discord" href="https://discord.gg/bYqAp4ayYh">
    Holen Sie sich Hilfe und teilen Sie Feedback mit der Community
  </Card>
</CardGroup>
