소스 정보
- 저장소
- vellum-ai/vellum-assistant
- 최근 소스 활동
- 2026년 7월 2일 13:30
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1,091
- 포크
- 160
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/vellum-ai/vellum-assistant --skill mailgun-setup명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | mailgun-setup |
| description | Set up and send emails via a user-provided Mailgun account (BYO email provider) |
| compatibility | Designed for Vellum personal assistants |
| metadata | {"icon":"assets/icon.svg","emoji":"📬","vellum":{"category":"email","display-name":"Mailgun Email Setup","user-invocable":true}} |
Send emails through the user's own Mailgun account. The user provides their Mailgun API key and domain, and you send via their infrastructure.
Before starting, check whether Mailgun is already configured:
bun skills/mailgun-setup/scripts/check-config.ts
The script outputs JSON: { "configured": boolean, "hasApiKey": boolean, "hasWebhookKey": boolean, "details": string }.
configured is true — Mailgun is already set up. Offer to verify the connection or reconfigure.configured is false — continue to Step 1.Run the store script to securely collect the API key:
bun skills/mailgun-setup/scripts/store-api-key.ts
The script opens a secure credential prompt, stores the key, and exits. If it exits 0, the key is stored. Exit code 130 means the user cancelled the prompt — nothing was stored; that's a valid choice, not an error, so ask whether they'd like to try again rather than treating it as a failure. Any other non-zero exit is a real failure. Never ask for the key in chat.
Note: Mailgun uses HTTP Basic Auth with username api and the API key as the password. The credential proxy cannot construct Basic Auth headers automatically. Instead, use curl -u "api:$KEY" in bash commands — retrieve the key from the vault at runtime. See the sending examples below.
After storing the API key, automatically detect the user's domain — don't ask them for it. Retrieve the API key from the vault and call the Mailgun Domains API:
curl -s --user "api:$MAILGUN_API_KEY" \
https://api.mailgun.net/v4/domains?state=active
The response contains an items array of domain objects with name and state fields. Pick the first domain with "state": "active". If no active domains are found, try the EU endpoint (https://api.eu.mailgun.net/v4/domains?state=active). If still none, tell the user they need to verify a domain in their Mailgun dashboard first.
Use hi@<domain> as the default sender address. Remember the domain and region (US/EU) for future sends.
Confirm the API key works by checking the domain response returned in Step 2. A successful response (HTTP 200) with domain data confirms the connection.
If the user also wants to receive emails via Mailgun, run the webhook setup script:
bun skills/mailgun-setup/scripts/setup-webhook.ts --domain "<verified domain>" [--region eu]
This script:
If the script fails because no public base URL is configured (self-hosted only), load the public-ingress skill to walk the user through setting one up, then retry.
Summarize with the completed checklist:
"Setup complete!
✅ API key configured
✅ Domain detected: <domain> (region: US/EU)
✅ Connection verified
{webhook_line}
Default sender: hi@<domain>"
For {webhook_line}:
✅ Inbound route and webhook signing key configured⬜ Webhook — run setup again to enable inbound emailUse bash with curl to call the Mailgun API. Pass the API key via -u for Basic Auth:
curl -s --user "api:$MAILGUN_API_KEY" \
https://api.mailgun.net/v3/DOMAIN/messages \
-F from="Name <sender@example.com>" \
-F to="recipient@example.com" \
-F subject="Hello" \
-F text="Plain text body" \
-F html="<p>HTML body</p>"
Replace DOMAIN with the user's Mailgun sending domain.
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | ✅ | Sender address ("Name <email>" format) |
to | string | ✅ | Recipient(s), comma-separated for multiple |
subject | string | ✅ | Email subject |
text | string | Plain text body | |
html | string | HTML body | |
cc | string | CC recipients, comma-separated | |
bcc | string | BCC recipients, comma-separated | |
h:Reply-To | string | Reply-to address | |
h:In-Reply-To | string | Message-ID of parent (for threading) | |
h:References | string | Space-separated chain of ancestor Message-IDs |
To reply in a thread, include custom headers:
curl -s --user "api:$MAILGUN_API_KEY" \
https://api.mailgun.net/v3/DOMAIN/messages \
-F from="bot@example.com" \
-F to="user@example.com" \
-F subject="Re: Original subject" \
-F text="Reply body" \
-F "h:In-Reply-To=<original-message-id>" \
-F "h:References=<original-message-id>"
Success returns { "id": "<message-id>", "message": "Queued. Thank you." } with HTTP 200.
Errors return { "message": "error description" } with 4xx/5xx status.
Mailgun has US and EU regions:
https://api.mailgun.net/v3/DOMAIN/messageshttps://api.eu.mailgun.net/v3/DOMAIN/messagesAsk the user which region their account uses if sends fail with 401.
from address must be from the user's verified Mailgun domain.hi@<domain> — use this unless the user specifies otherwise.text for plain text, html for rich formatting. Provide both when possible.