From dev-skills
This skill should be used when the user asks to "set up discord", "configure discord bot", "install discord plugin dependencies", or wants to set up the prerequisites for the Claude Code Discord channel plugin including bun installation and shell alias configuration.
npx claudepluginhub aeghnnsw/cc-toolkit --plugin dev-skillsThis skill uses the workspace's default tool permissions.
Set up prerequisites for the Claude Code Discord channel plugin.
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Monitors deployed URLs for regressions in HTTP status, console errors, performance metrics, content, network, and APIs after deploys, merges, or upgrades.
Provides React and Next.js patterns for component composition, compound components, state management, data fetching, performance optimization, forms, routing, and accessible UIs.
Set up prerequisites for the Claude Code Discord channel plugin.
Check if bun is installed:
command -v bun
If bun is not found, install it:
curl -fsSL https://bun.sh/install | bash
After installation, detect the user's shell and add bun to the appropriate rc file:
echo $SHELL
export BUN_INSTALL="$HOME/.bun" and export PATH="$BUN_INSTALL/bin:$PATH" to ~/.zshrc~/.bashrcSkip this step if bun is already on PATH.
Check if the alias already exists in the user's shell rc file (~/.zshrc or ~/.bashrc based on Step 1).
If not present, add this alias:
alias dangercc-discord='DISCORD_STATE_DIR="$(pwd)/.claude/channels/discord" claude --dangerously-skip-permissions --channels plugin:discord@claude-plugins-official'
This alias launches Claude Code with:
--dangerously-skip-permissions for unattended operation--channels plugin:discord@claude-plugins-official to connect the Discord botDISCORD_STATE_DIR set to the current project directory so each project gets isolated Discord stateConfirm both are configured:
command -v bun && echo "bun: OK" || echo "bun: NOT FOUND"
Check the appropriate rc file (from Step 1) for the alias:
grep -q "dangercc-discord" ~/.zshrc 2>/dev/null || grep -q "dangercc-discord" ~/.bashrc 2>/dev/null && echo "alias: OK" || echo "alias: NOT FOUND"
Inform the user to restart their shell or run source on their rc file for changes to take effect.