/harness-core:discord-notifyfrom harness-core
Push a progress notification to the user's Discord via the shared `discord-bot` CLI. Use when a milestone lands (phase complete, build green, cutover done), an unexpected incident is detected, or an ETA moves by hours — especially while the user is away from the pane. Also use when asked to "notify", "報告して", "Discord に流して". NOT for routine turn-by-turn status: the user is reading the pane, and time-driven pings train them to ignore it.
Ships in harness-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
discord-bot is the canonical CLI (bot API, claude_code identity, unified
2026-05-25). Server GUILD_ID 1498858889335144497 ("Mafutsu Dev"); the token
lives in sops discord.enc.yaml as DISCORD_BOT_TOKEN + DISCORD_GUILD_ID.
discord-bot post <github-repo-name> "message" # channel name == repo name
discord-bot list # enumerate channels
Example: discord-bot post PRS-LLM "milestone msg"
Milestone-driven, not time-driven:
The user's working hours are JST 10:00-19:00. Inside that window they respond quickly, so a milestone ping is worth it. Outside it, expect 11h+ before it is read — batch to milestones only, and let work that finishes before 10:00 wait.
A bold headline plus a code block:
**🎯 [milestone]**
✅ DONE — what landed 🔄 NOW — what is running ⏳ NEXT — what follows + ETA
Optionally add 🗺️ Roadmap.
~/.local/bin/{discord-notify,discord-bot} on chichibu, laddie,
and mars.scp the binary plus the sops
file if you need it there.discord-notify is a compatibility shim: a thin wrapper around
discord-bot post PRS-LLM, kept so 25+ existing callers stay untouched. New
scripts should invoke discord-bot post <tag> directly.Without Manage Channels permission and with no #<repo> channel present, the
post degrades to the first text channel with a **[<repo>]** prefix. Creating
the channel later switches it back to direct posting automatically. Granting the
bot role Manage Channels + Manage Webhooks + Send Messages + View Channels (or
Administrator) enables channel auto-creation.
Old webhook implementation:
~/sanada_backup_persistent/discord_notify_retirement_20260525/discord-notify.pre-shim.bak
Never echo the token. It is referenced only through sops exec-env; the CLI
resolves it itself, so no invocation here should mention the value.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hrmtz/claude-harness --plugin harness-core