Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By DIO0550v1.0.1MITIn 1 marketplace
PR 作成・コミット・push・タスク完了を Discord Webhook に通知する hook プラグイン
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
PR の作成・コミット (Fix)・push・タスク完了を Discord に通知する Claude Code hook プラグインです。
hook は通知パターンごとにスクリプトが分かれており、hooks/hooks.json に登録されているものだけが動きます。
| パターン | hook | 内容 |
|---|---|---|
| PR 作成 | notify-pr.sh(PostToolUse: Bash / mcp__github__create_pull_request) | gh pr create または GitHub MCP での PR 作成を検知。出力から PR の URL が取得できた場合は通知に含める |
| コミット (Fix) | notify-commit.sh(PostToolUse: Bash) | git commit を検知し、直近のコミットメッセージを添えて通知 |
| push | notify-push.sh(PostToolUse: Bash) | git push を検知し、現在のブランチ名を添えて通知 |
| タスク完了 | notify-stop.sh(Stop) | Claude が応答を完了したタイミングで通知 |
git commit && git push のような複合コマンドでは、影響の大きいパターン(PR 作成 > push > コミット)だけが通知します。
すべての通知は hooks/lib/common.sh の send_embed が生成する共通の embed フォーマットで送られます。各 hook が渡すのはイベント名・詳細・色(と PR 作成時は PR URL)だけです。リポジトリ名は origin の URL から owner/repo 形式で取得し、リモートが取得できない場合のみプロジェクトディレクトリ名を使います。
レイアウト方針:
owner/repo の場合は GitHub のリポジトリページへリンクしますgh CLI もしくは GitHub API($GITHUB_TOKEN が必要)で解決し、取得できた場合のみ 🔀 Pull Request として本文末尾にリンクします┌────────────────────────────────────────┐
│ owner/my-repo │ ← タイトル(リポジトリ、クリックで GitHub へ)
│ ### ⬆️ push 完了 │ ← 本文の見出し(イベント名)
│ **🌿 `feature/awesome-branch`** │ ← ブランチを太字+絵文字で強調
│ │
│ リモートへ push しました。 │ ← 詳細
│ │
│ 🔀 Pull Request │ ← 現在ブランチの PR リンク(取得できた場合)
│ ────────────────────────────────────── │
│ session: abc12345 2026-07-19 14:00│ ← footer(小さく)+タイムスタンプ
└────────────────────────────────────────┘
| パターン | イベント名(見出し) | 色 | 詳細 |
|---|---|---|---|
| PR 作成 | 🔀 PR 作成 | 紫 | 作成直後のツール出力から取得した PR URL |
| コミット (Fix) | 🔧 コミット (Fix) | 黄 | 直近のコミットメッセージ |
| push | ⬆️ push 完了 | 青 | 「リモートへ push しました。」 |
| タスク完了 | ✅ タスク完了 | 緑 | 「Claude が応答を完了しました。」 |
PR 作成通知以外(コミット・push・タスク完了)でも、現在のブランチに open な PR が存在すればリンクを追加します。解決順は次のとおりで、どちらも失敗した場合は PR リンクを付けずに通知を送ります(通知自体は必ず送られます)。
gh CLI が使えて認証済み: gh pr view <branch> --json urlGITHUB_TOKEN が設定されている: GitHub REST API GET /repos/{owner}/{repo}/pulls?head={owner}:{branch}&state=openexport DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/xxxx/yyyy"
DISCORD_WEBHOOK_URL が未設定の場合、hook は何もせず正常終了します(作業をブロックしません)。通知の送信に失敗した場合も同様です。
注意: Webhook URL は秘密情報です。リポジトリ管理下のファイルには書き込まず、環境変数で管理してください。
通知パターンの ON/OFF などの非秘密設定は、ワークスペースの .plugin-workspace/discord-notifier/config.json で行います。setup スキルを実行すると、パターンを選んでこのファイルを作成できます。
{
"enabled": true,
"events": {
"pr": true,
"commit": true,
"push": true,
"stop": true
}
}
| キー | 内容 | 既定値 |
|---|---|---|
enabled | 全体の ON/OFF。環境変数 DISCORD_NOTIFY_ENABLED(false / 0 / no / off)が設定されていればそちらが優先 | true |
events.pr | PR 作成の通知 | true |
events.commit | コミット (Fix) の通知 | true |
events.push | push の通知 | true |
events.stop | タスク完了の通知 | true |
DISCORD_WEBHOOK_URL でのみ受け取ります.plugin-workspace/ はワークスペースローカルな設定置き場のため Git 管理外にしてくださいgit worktree 内で hook が発火した場合も、設定ファイルはリポジトリのメイン working tree にある .plugin-workspace/discord-notifier/config.json が参照されます。通知に載るブランチ・コミットメッセージは worktree の HEAD が使われますhook スクリプト自体は worktree からの発火に対応済みで、ブランチ名・コミットメッセージ・設定ファイルはすべて main working tree 側を正しく参照します(git rev-parse --git-common-dir の親を workspace root として使う)。それでも worktree で通知が来ない場合、原因は Claude Code 側がプラグインをロードしていない可能性が高いです。
Claude Code のプラグイン有効化情報(enabledPlugins などの設定)は、インストール時に指定したスコープに応じて次のいずれかに書かれます:
| スコープ | 書き込み先 | worktree からの見え方 |
|---|---|---|
| user | ~/.claude/settings.json | どの worktree からも常に読まれる(推奨) |
| project | <repo>/.claude/settings.json | worktree の直下に .claude/settings.json が無いと読まれない |
| local | <repo>/.claude/settings.local.json | worktree ではなく main working tree 側だけ読まれる(設定次第) |
チェックしてみる:
~/.claude/settings.json に discord-notifier を含む enabledPlugins があるか確認する.claude/settings.json / .claude/settings.local.json に入っている可能性が高いclaude 起動後に /plugin list で discord-notifier が「enabled」になっているかを worktree の cwd で確認する回避策(いずれか):
/plugin install discord-notifier@d-market-workflow --scope user のように user スコープで入れる。以後 worktree でも常にロードされます.claude/settings.json を worktree に共有する(例: ln -s ../<main>/.claude .claude を worktree のルートに置く).claude/settings.json に enabledPlugins を書いて Git にコミットする(同じリポジトリを clone した全員に有効化される点だけ注意)Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub dio0550/d-market-workflow --plugin discord-notifierPlugins from other owners that cover similar ground