Add channel slack block kit
Skill yukihirop/nagi/.claude/skills/add-channel-slack-block-kit
nagi (凪): AI agent orchestration framework (remake nanoclaw)
npx -y skills add yukihirop/nagi --skill add-channel-slack-block-kitAssembled 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 rich display for tool notifications. Triggers on "add block kit", "enable block kit", "slack block kit", "rich slack", "slack rich display".
SKILL.md
3.3 KB, as published. Nobody here has run it
Switch to Slack Block Kit 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 the Slack channel to plain Block Kit rich display. Tool notifications and thinking indicators are shown as formatted Slack blocks, but without the colored left-border attachments wrapper that the Embed variant adds.
Note: The shipped default is @nagi/channel-slack-block-kit-embed (Block Kit + colored left border). This skill is mostly used to switch down from Embed to plain Block Kit if you don't want the colored bar, or to switch up from @nagi/channel-slack (plain text). To restore the default Embed display, use /add-channel-slack-block-kit-embed.
Plain text: 🔧 \Bash: ls -la``
Block Kit: Rich card with tool name header, code block, and divider (no colored bar)
Block Kit Embed (default): Same Block Kit content with a colored left border per message
Prerequisites
Slack must already be configured. 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 (rich display, no colored bar — this skill)
const { createSlackFactory } = await import("@nagi/channel-slack-block-kit");
// Block Kit Embed (default — colored left bar)
const { createSlackFactory } = await import("@nagi/channel-slack-block-kit-embed");
If already using @nagi/channel-slack-block-kit, tell the user it's already enabled.
2. Switch import
In deploy/{ASSISTANT_NAME}/host/entry.ts, replace the Slack import:
// Before
const { createSlackFactory } = await import("@nagi/channel-slack");
// After
const { createSlackFactory } = await import("@nagi/channel-slack-block-kit");
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 that triggers tool use (e.g. ask the bot to read a file). Tool notifications should now appear as formatted blocks with headers and dividers instead of plain text.
Reverting to plain text
To switch back to plain text, reverse the import in deploy/{ASSISTANT_NAME}/host/entry.ts:
const { createSlackFactory } = await import("@nagi/channel-slack");
Then restart nagi.