From discord
Send messages, embeds, and files to Discord via webhook. Use when the user asks to send/share/notify Discord, post results to Discord, share images or experiment results to Discord, or any phrase like "디스코드로 보내", "Discord에 공유", "디스코드에 알려".
How this skill is triggered — by the user, by Claude, or both
Slash command
/discord:discordThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Claude Code에서 Discord webhook으로 메시지·embed·파일을 보내는 skill. CLI 의존성 없이 `curl` + `jq` 만 사용.
Claude Code에서 Discord webhook으로 메시지·embed·파일을 보내는 skill. CLI 의존성 없이 curl + jq 만 사용.
사용자가 다음과 같이 요청할 때:
~/.claude/discord-webhook.env 파일에 webhook URL 저장:
echo 'DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/ID/TOKEN' > ~/.claude/discord-webhook.env
chmod 600 ~/.claude/discord-webhook.env
설치 후 처음 실행 시 파일이 없다면 사용자에게 webhook URL 요청.
모든 명령은 먼저 source ~/.claude/discord-webhook.env 로 URL 로드.
source ~/.claude/discord-webhook.env
curl -s -X POST "$DISCORD_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg c "메시지 내용" '{content: $c}')"
source ~/.claude/discord-webhook.env
curl -s -X POST "$DISCORD_WEBHOOK_URL" \
-F 'payload_json={"content":"학습 결과 그래프"}' \
-F "file1=@/absolute/path/to/loss_curve.png"
source ~/.claude/discord-webhook.env
curl -s -X POST "$DISCORD_WEBHOOK_URL" \
-F 'payload_json={"content":"실험 결과 묶음"}' \
-F "file1=@/path/loss.png" \
-F "file2=@/path/accuracy.csv" \
-F "file3=@/path/confusion_matrix.png"
여러 metric을 inline field로 보기 좋게:
source ~/.claude/discord-webhook.env
curl -s -X POST "$DISCORD_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d "$(jq -n \
--arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
'{
embeds: [{
title: "✅ Experiment Done",
color: 5793266,
fields: [
{name: "🧪 Experiment", value: "Baseline vs Ours ablation", inline: false},
{name: "📊 PSNR (train)", value: "29.8", inline: true},
{name: "📊 PSNR (eval)", value: "28.1", inline: true},
{name: "📊 LPIPS", value: "0.14", inline: true},
{name: "💡 Finding", value: "Loss term X improves eval PSNR by +0.7", inline: false}
],
footer: {text: "8/8 runs OK · 760s · 1× A100"},
timestamp: $ts
}]
}')"
여러 줄 필요 없을 때만 사용. \n 줄바꿈 안 되니 multi-line 결과는 항상 #4 패턴 사용.
source ~/.claude/discord-webhook.env
curl -s -X POST "$DISCORD_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg t "제목" --arg d "한 줄 설명" \
'{embeds: [{title: $t, description: $d, color: 5793266}]}')"
source ~/.claude/discord-webhook.env
PAYLOAD=$(jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
'{embeds: [{
title: "✅ Result with image",
color: 5793266,
fields: [{name: "PSNR", value: "29.8", inline: true}],
image: {url: "attachment://render.png"},
timestamp: $ts
}]}')
curl -s -X POST "$DISCORD_WEBHOOK_URL" \
-F "payload_json=$PAYLOAD" \
-F "file1=@/path/to/render.png"
| 상황 | 색상 | 값 |
|---|---|---|
| 성공 / 완료 | 초록 | 5793266 |
| 실패 / 에러 | 빨강 | 15548997 |
| 정보 | 파랑 | 3447003 |
| 실험 / 분석 | 보라 | 7506394 |
| 경고 | 주황 | 15105570 |
/Users/creamnuts/...)fields 사용. --embed 단순 패턴은 \n 렌더링 안 됨~/.claude/discord-webhook.env 생성 안내Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub creamnuts/claude-discord-skill --plugin discord