AI Copilot Skill
Integrate DonutMe payments 10× faster with AI-assisted development. Our Copilot Skill provides your coding agent with full platform knowledge — API endpoints, webhook verification, error handling, and even automated project setup.
What is DonutMe SkillHub?
DonutMe SkillHub is a Copilot Skill (also known as an "Agent Instruction Pack") that equips your AI coding assistant (GitHub Copilot, Cursor, Windsurf, etc.) with deep knowledge of the DonutMe platform. Once installed, your agent can:
- Generate correct API integration code on first try
- Set up webhook signature verification in any language
- Create checkout session flows with proper error handling
- Automatically create projects and payment plans via API
- Diagnose errors using our error code reference
Installation
Global (All Projects)
Shell
# macOS / Linux
-pink-400">mkdir -p ~/.agents/skills/donutme && \
-pink-400">curl -sL https:-lime-400">"text-neutral-500">//github.com/DonutMe/DonutMe-SkillHub/archive/refs/heads/main.tar.gz | \
tar -xz --strip-components=1 -C ~/.agents/skills/donutme
# Or clone directly
-pink-400">git clone https:-lime-400">"text-neutral-500">//github.com/DonutMe/DonutMe-SkillHub.-pink-400">git ~/.agents/skills/donutmePer-Project
Shell
# Inside your project root
-pink-400">git clone https:-lime-400">"text-neutral-500">//github.com/DonutMe/DonutMe-SkillHub.-pink-400">git .agents/skills/donutme
# Add to .gitignore if you don't want to commit it
-pink-400">echo -lime-400">".agents/skills/donutme" >> .gitignoreVS Code Manual Setup
- Open VS Code Settings (
Cmd+,) - Search for
github.copilot.chat.codeGeneration.instructions - Add a file entry pointing to the
SKILL.mdpath
Capabilities
1. Code Generation
Ask your agent anything DonutMe-related:
"Create a checkout session for my Next.js app"
"Add webhook signature verification to my Express server"
"How do I query transactions with the DonutMe API?"2. Automated Project Setup (Agentic Mode)
Your agent can autonomously perform multi-step tasks:
"Create a new DonutMe project called 'Coffee Shop' and set up a $5 payment plan"
"Set up my project with webhook URL https:">//myapp.com/webhooks/donutme"
"Create a variable-price donation plan with $1-$100 range"The agent will:
- Call
POST /v1/projectsto create the project - Call
POST /v1/projects/:id/payment-plansto create the plan - Return the checkout URL ready to use
3. Diagnostics
"Why am I getting INSUFFICIENT_SCOPES on my API key?"
"My webhook isn't receiving events — help me debug"
"What does error code PROJECT_SUSPENDED mean?"Trigger Keywords
The skill activates when your prompt includes:
| Keyword | Example |
|---|---|
donutme | "How do I integrate DonutMe?" |
dm_ | "My dm_live_abc... key returns 403" |
crypto payment | "Add crypto payment to my app" |
checkout session | "Create a checkout session" |
payment plan | "Set up a payment plan" |
webhook signature | "Verify webhook signature" |
x-donutme-signature | "Parse the x-donutme-signature header" |
Supported Languages
The skill generates idiomatic code for:
- TypeScript / JavaScript (Node.js, Next.js, Express, Fastify)
- Python (Flask, Django, FastAPI)
- Go (net/http, Gin, Fiber)
- Ruby, PHP, Rust, and any language with HTTP + HMAC support
What the Agent Knows
| Topic | Coverage |
|---|---|
| REST API | All endpoints, auth methods, pagination, rate limits |
| Checkout | Session creation, redirect, iframe embed, postMessage |
| Webhooks | Signature verification, events, retry policy, secret rotation |
| Errors | Full error code table with resolutions |
| Security | API key scopes, IP allowlists, timing-safe compare |
| Smart Contract | DonutMePayment v1.8.0 ABI, supported chains |
Source & Contribution
- Repository: github.com/DonutMe/DonutMe-SkillHub
- License: MIT
- Issues: Report problems or request new capabilities via GitHub Issues