Add channel slack block kit embed
Skill yukihirop/nagi/.claude/skills/add-channel-slack-block-kit-embed
nagi (凪): AI agent orchestration framework (remake nanoclaw)
npx -y skills add yukihirop/nagi --skill add-channel-slack-block-kit-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 Slack channel to Block Kit Embed rich display with colored left-border attachments. Triggers on "add slack embed", "enable slack embed", "slack block kit embed", "rich slack embed", "slack embed 表示".
SKILL.md
3.6 KB, as published. Nobody here has run it
Switch to Slack Block Kit 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 Slack rendering to the Block Kit Embed variant, which wraps Block Kit blocks in Slack attachments with a color field. This renders a colored vertical bar on the left of each message — matching the look of the Discord Embed display mode.
Note: Block Kit 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-slack or @nagi/channel-slack-block-kit) and you want to restore the default rich display.
Before (plain Block Kit): Formatted blocks without a colored side bar. After (Embed): Same Block Kit content, but each message has a colored left border — blurple for agent replies, per-tool colors for tool notifications, gray for thinking / 💰 cost footer.
Prerequisites
Slack must already be configured (either @nagi/channel-slack or @nagi/channel-slack-block-kit). If not, run /add-channel-slack first.
Steps
1. Check current state
Read deploy/{ASSISTANT_NAME}/host/entry.ts and check which Slack import is used:
// Plain text
const { createSlackFactory } = await import("@nagi/channel-slack");
// Block Kit (no colored bar)
const { createSlackFactory } = await import("@nagi/channel-slack-block-kit");
// Block Kit Embed (colored left bar — default; this skill)
const { createSlackFactory } = await import("@nagi/channel-slack-block-kit-embed");
If already using @nagi/channel-slack-block-kit-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 Slack import:
// Before
const { createSlackFactory } = await import("@nagi/channel-slack-block-kit");
// After
const { createSlackFactory } = await import("@nagi/channel-slack-block-kit-embed");
No other changes needed — the factory function, config, and registration are identical.
3. Verify
pnpm exec tsc --noEmit
TypeScript must compile without errors.
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 Slack (e.g.
@ai こんばんは). The agent reply should now appear with a blurple left border, and the cost footer (💰 ...) should appear right after with a gray left border. Tool notifications during the response get per-tool colors (Bash blue, Read green, etc.).
Reverting
To switch back to plain Block Kit (no colored bar):
const { createSlackFactory } = await import("@nagi/channel-slack-block-kit");
Or all the way back to plain text:
const { createSlackFactory } = await import("@nagi/channel-slack");
Then restart nagi.