Add channel discord embed
Skill yukihirop/nagi/.claude/skills/add-channel-discord-embed
nagi (凪): AI agent orchestration framework (remake nanoclaw)
npx -y skills add yukihirop/nagi --skill add-channel-discord-embedAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Switch Discord channel to Embed rich display for tool notifications. Triggers on "add discord embed", "enable discord embed", "discord embed", "rich discord", "discord rich display".
SKILL.md
2.7 KB, as published. Nobody here has run it
Switch to Discord Embed Display
Step 0: Language selection
Before proceeding with any other steps in this skill, ask the user which language to continue in using AskUserQuestion. Keep this initial prompt in English because the preferred language is not yet known.
- Question:
Which language should I continue in? - Options:
English,日本語 (Japanese)
Use the selected language for all subsequent user-facing messages and for every further AskUserQuestion prompt in this skill. Do not translate code, file paths, shell commands, or file contents.
Switch from plain text Discord notifications to Embed rich display. Tool notifications and thinking indicators will be shown as colored Discord Embeds instead of plain text.
Note: Embed is the default that ships with deploy/templates/host/entry.template.ts. Use this skill only if a previous customization downgraded the import (e.g. to @nagi/channel-discord) and you want to restore the default rich display.
Prerequisites
Discord must already be configured. If not, set up the Discord bot first.
Steps
1. Check current state
Read deploy/{ASSISTANT_NAME}/host/entry.ts and check which Discord import is used:
// Plain text
const { createDiscordFactory } = await import("@nagi/channel-discord");
// Embed (rich display — default)
const { createDiscordFactory } = await import("@nagi/channel-discord-embed");
If already using @nagi/channel-discord-embed, tell the user it's already enabled (this is the shipped default).
2. Switch import
In deploy/{ASSISTANT_NAME}/host/entry.ts, replace the Discord import:
// Before
const { createDiscordFactory } = await import("@nagi/channel-discord");
// After
const { createDiscordFactory } = await import("@nagi/channel-discord-embed");
No other changes needed — the factory function, config, and registration are identical.
3. Verify
pnpm exec tsc --noEmit
4. Restart nagi
launchctl kickstart -k gui/$(id -u)/com.nagi.{ASSISTANT_NAME}
sleep 2
launchctl list | grep com.nagi.{ASSISTANT_NAME}
5. Test
Tell user:
Send a message in Discord that triggers tool use. Tool notifications should now appear as colored Embeds instead of plain text.
Reverting to plain text
To switch back, reverse the import in deploy/{ASSISTANT_NAME}/host/entry.ts:
const { createDiscordFactory } = await import("@nagi/channel-discord");
Then restart nagi.