[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DG11VTJN5XZCP1Y57FZ585":3,"skill-same:01M6DG11VTJN5XZCP1Y57FZ585":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":13,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M6DG11VTJN5XZCP1Y57FZ585","add-discord",null,"Add Discord bot channel integration to NanoClaw.","mbaker95\u002Fnanodex","mbaker95","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11398294?v=4","01M6DFXVNAJHZG78Y2D700Y6V3","01M6DFXVTTW83QGKTJ9FJ5YCH5",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmbaker95\u002Fnanodex\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-discord\u002FSKILL.md",[],[18,19,20,21,22,23,24],"discord","add discord","bot","integration","channel","discord bot","channel integration","2026-11-10 10:12:30",false,"---\nname: add-discord\ndescription: Add Discord bot channel integration to NanoClaw.\n---\n\n# Add Discord Channel\n\nThis skill adds Discord support to NanoClaw, then walks through interactive setup.\n\n## Phase 1: Pre-flight\n\n### Check if already applied\n\nCheck if `src\u002Fchannels\u002Fdiscord.ts` exists. If it does, skip to Phase 3 (Setup). The code changes are already in place.\n\n### Ask the user\n\nUse `AskUserQuestion` to collect configuration:\n\nAskUserQuestion: Do you have a Discord bot token, or do you need to create one?\n\nIf they have one, collect it now. If not, we'll create one in Phase 3.\n\n## Phase 2: Apply Code Changes\n\n### Ensure channel remote\n\n```bash\ngit remote -v\n```\n\nIf `discord` is missing, add it:\n\n```bash\ngit remote add discord https:\u002F\u002Fgithub.com\u002Fqwibitai\u002Fnanoclaw-discord.git\n```\n\n### Merge the skill branch\n\n```bash\ngit fetch discord main\ngit merge discord\u002Fmain\n```\n\nThis merges in:\n- `src\u002Fchannels\u002Fdiscord.ts` (DiscordChannel class with self-registration via `registerChannel`)\n- `src\u002Fchannels\u002Fdiscord.test.ts` (unit tests with discord.js mock)\n- `import '.\u002Fdiscord.js'` appended to the channel barrel file `src\u002Fchannels\u002Findex.ts`\n- `discord.js` npm dependency in `package.json`\n- `DISCORD_BOT_TOKEN` in `.env.example`\n\nIf the merge reports conflicts, resolve them by reading the conflicted files and understanding the intent of both sides.\n\n### Validate code changes\n\n```bash\nnpm install\nnpm run build\nnpx vitest run src\u002Fchannels\u002Fdiscord.test.ts\n```\n\nAll tests must pass (including the new Discord tests) and build must be clean before proceeding.\n\n## Phase 3: Setup\n\n### Create Discord Bot (if needed)\n\nIf the user doesn't have a bot token, tell them:\n\n> I need you to create a Discord bot:\n>\n> 1. Go to the [Discord Developer Portal](https:\u002F\u002Fdiscord.com\u002Fdevelopers\u002Fapplications)\n> 2. Click **New Application** and give it a name (e.g., \"Andy Assistant\")\n> 3. Go to the **Bot** tab on the left sidebar\n> 4. Click **Reset Token** to generate a new bot token — copy it immediately (you can only see it once)\n> 5. Under **Privileged Gateway Intents**, enable:\n>    - **Message Content Intent** (required to read message text)\n>    - **Server Members Intent** (optional, for member display names)\n> 6. Go to **OAuth2** > **URL Generator**:\n>    - Scopes: select `bot`\n>    - Bot Permissions: select `Send Messages`, `Read Message History`, `View Channels`\n>    - Copy the generated URL and open it in your browser to invite the bot to your server\n\nWait for the user to provide the token.\n\n### Configure environment\n\nAdd to `.env`:\n\n```bash\nDISCORD_BOT_TOKEN=\u003Ctheir-token>\n```\n\nChannels auto-enable when their credentials are present — no extra configuration needed.\n\nSync to container environment:\n\n```bash\nmkdir -p data\u002Fenv && cp .env data\u002Fenv\u002Fenv\n```\n\nThe container reads environment from `data\u002Fenv\u002Fenv`, not `.env` directly.\n\n### Build and restart\n\n```bash\nnpm run build\nlaunchctl kickstart -k gui\u002F$(id -u)\u002Fcom.nanoclaw\n```\n\n## Phase 4: Registration\n\n### Get Channel ID\n\nTell the user:\n\n> To get the channel ID for registration:\n>\n> 1. In Discord, go to **User Settings** > **Advanced** > Enable **Developer Mode**\n> 2. Right-click the text channel you want the bot to respond in\n> 3. Click **Copy Channel ID**\n>\n> The channel ID will be a long number like `1234567890123456`.\n\nWait for the user to provide the channel ID (format: `dc:1234567890123456`).\n\n### Register the channel\n\nThe channel ID, name, and folder name are needed. Use `npx tsx setup\u002Findex.ts --step register` with the appropriate flags.\n\nFor a main channel (responds to all messages):\n\n```bash\nnpx tsx setup\u002Findex.ts --step register -- --jid \"dc:\u003Cchannel-id>\" --name \"\u003Cserver-name> #\u003Cchannel-name>\" --folder \"discord_main\" --trigger \"@${ASSISTANT_NAME}\" --channel discord --no-trigger-required --is-main\n```\n\nFor additional channels (trigger-only):\n\n```bash\nnpx tsx setup\u002Findex.ts --step register -- --jid \"dc:\u003Cchannel-id>\" --name \"\u003Cserver-name> #\u003Cchannel-name>\" --folder \"discord_\u003Cchannel-name>\" --trigger \"@${ASSISTANT_NAME}\" --channel discord\n```\n\n## Phase 5: Verify\n\n### Test the connection\n\nTell the user:\n\n> Send a message in your registered Discord channel:\n> - For main channel: Any message works\n> - For non-main: @mention the bot in Discord\n>\n> The bot should respond within a few seconds.\n\n### Check logs if needed\n\n```bash\ntail -f logs\u002Fnanoclaw.log\n```\n\n## Troubleshooting\n\n### Bot not responding\n\n1. Check `DISCORD_BOT_TOKEN` is set in `.env` AND synced to `data\u002Fenv\u002Fenv`\n2. Check channel is registered: `sqlite3 store\u002Fmessages.db \"SELECT * FROM registered_groups WHERE jid LIKE 'dc:%'\"`\n3. For non-main channels: message must include trigger pattern (@mention the bot)\n4. Service is running: `launchctl list | grep nanoclaw`\n5. Verify the bot has been invited to the server (check OAuth2 URL was used)\n\n### Bot only responds to @mentions\n\nThis is the default behavior for non-main channels (`requiresTrigger: true`). To change:\n- Update the registered group's `requiresTrigger` to `false`\n- Or register the channel as the main channel\n\n### Message Content Intent not enabled\n\nIf the bot connects but can't read messages, ensure:\n1. Go to [Discord Developer Portal](https:\u002F\u002Fdiscord.com\u002Fdevelopers\u002Fapplications)\n2. Select your application > **Bot** tab\n3. Under **Privileged Gateway Intents**, enable **Message Content Intent**\n4. Restart NanoClaw\n\n### Getting Channel ID\n\nIf you can't copy the channel ID:\n- Ensure **Developer Mode** is enabled: User Settings > Advanced > Developer Mode\n- Right-click the channel name in the server sidebar > Copy Channel ID\n\n## After Setup\n\nThe Discord bot supports:\n- Text messages in registered channels\n- Attachment descriptions (images, videos, files shown as placeholders)\n- Reply context (shows who the user is replying to)\n- @mention translation (Discord `\u003C@botId>` → NanoClaw trigger format)\n- Message splitting for responses over 2000 characters\n- Typing indicators while the agent processes\n","# Add Discord Channel\n\nThis skill adds Discord support to NanoClaw, then walks through interactive setup.\n\n## Phase 1: Pre-flight\n\n### Check if already applied\n\nCheck if `src\u002Fchannels\u002Fdiscord.ts` exists. If it does, skip to Phase 3 (Setup). The code changes are already in place.\n\n### Ask the user\n\nUse `AskUserQuestion` to collect configuration:\n\nAskUserQuestion: Do you have a Discord bot token, or do you need to create one?\n\nIf they have one, collect it now. If not, we'll create one in Phase 3.\n\n## Phase 2: Apply Code Changes\n\n### Ensure channel remote\n\n```bash\ngit remote -v\n```\n\nIf `discord` is missing, add it:\n\n```bash\ngit remote add discord https:\u002F\u002Fgithub.com\u002Fqwibitai\u002Fnanoclaw-discord.git\n```\n\n### Merge the skill branch\n\n```bash\ngit fetch discord main\ngit merge discord\u002Fmain\n```\n\nThis merges in:\n- `src\u002Fchannels\u002Fdiscord.ts` (DiscordChannel class with self-registration via `registerChannel`)\n- `src\u002Fchannels\u002Fdiscord.test.ts` (unit tests with discord.js mock)\n- `import '.\u002Fdiscord.js'` appended to the channel barrel file `src\u002Fchannels\u002Findex.ts`\n- `discord.js` npm dependency in `package.json`\n- `DISCORD_BOT_TOKEN` in `.env.example`\n\nIf the merge reports conflicts, resolve them by reading the conflicted files and understanding the intent of both sides.\n\n### Validate code changes\n\n```bash\nnpm install\nnpm run build\nnpx vitest run src\u002Fchannels\u002Fdiscord.test.ts\n```\n\nAll tests must pass (including the new Discord tests) and build must be clean before proceeding.\n\n## Phase 3: Setup\n\n### Create Discord Bot (if needed)\n\nIf the user doesn't have a bot token, tell them:\n\n> I need you to create a Discord bot:\n>\n> 1. Go to the [Discord Developer Portal](https:\u002F\u002Fdiscord.com\u002Fdevelopers\u002Fapplications)\n> 2. Click **New Application** and give it a name (e.g., \"Andy Assistant\")\n> 3. Go to the **Bot** tab on the left sidebar\n> 4. Click **Reset Token** to generate a new bot token — copy it immediately (you can only see it once)\n> 5. Under **Privileged Gateway Intents**, enable:\n>    - **Message Content Intent** (required to read message text)\n>    - **Server Members Intent** (optional, for member display names)\n> 6. Go to **OAuth2** > **URL Generator**:\n>    - Scopes: select `bot`\n>    - Bot Permissions: select `Send Messages`, `Read Message History`, `View Channels`\n>    - Copy the generated URL and open it in your browser to invite the bot to your server\n\nWait for the user to provide the token.\n\n### Configure environment\n\nAdd to `.env`:\n\n```bash\nDISCORD_BOT_TOKEN=\u003Ctheir-token>\n```\n\nChannels auto-enable when their credentials are present — no extra configuration needed.\n\nSync to container environment:\n\n```bash\nmkdir -p data\u002Fenv && cp .env data\u002Fenv\u002Fenv\n```\n\nThe container reads environment from `data\u002Fenv\u002Fenv`, not `.env` directly.\n\n### Build and restart\n\n```bash\nnpm run build\nlaunchctl kickstart -k gui\u002F$(id -u)\u002Fcom.nanoclaw\n```\n\n## Phase 4: Registration\n\n### Get Channel ID\n\nTell the user:\n\n> To get the channel ID for registration:\n>\n> 1. In Discord, go to **User Settings** > **Advanced** > Enable **Developer Mode**\n> 2. Right-click the text channel you want the bot to respond in\n> 3. Click **Copy Channel ID**\n>\n> The channel ID will be a long number like `1234567890123456`.\n\nWait for the user to provide the channel ID (format: `dc:1234567890123456`).\n\n### Register the channel\n\nThe channel ID, name, and folder name are needed. Use `npx tsx setup\u002Findex.ts --step register` with the appropriate flags.\n\nFor a main channel (responds to all messages):\n\n```bash\nnpx tsx setup\u002Findex.ts --step register -- --jid \"dc:\u003Cchannel-id>\" --name \"\u003Cserver-name> #\u003Cchannel-name>\" --folder \"discord_main\" --trigger \"@${ASSISTANT_NAME}\" --channel discord --no-trigger-required --is-main\n```\n\nFor additional channels (trigger-only):\n\n```bash\nnpx tsx setup\u002Findex.ts --step register -- --jid \"dc:\u003Cchannel-id>\" --name \"\u003Cserver-name> #\u003Cchannel-name>\" --folder \"discord_\u003Cchannel-name>\" --trigger \"@${ASSISTANT_NAME}\" --channel discord\n```\n\n## Phase 5: Verify\n\n### Test the connection\n\nTell the user:\n\n> Send a message in your registered Discord channel:\n> - For main channel: Any message works\n> - For non-main: @mention the bot in Discord\n>\n> The bot should respond within a few seconds.\n\n### Check logs if needed\n\n```bash\ntail -f logs\u002Fnanoclaw.log\n```\n\n## Troubleshooting\n\n### Bot not responding\n\n1. Check `DISCORD_BOT_TOKEN` is set in `.env` AND synced to `data\u002Fenv\u002Fenv`\n2. Check channel is registered: `sqlite3 store\u002Fmessages.db \"SELECT * FROM registered_groups WHERE jid LIKE 'dc:%'\"`\n3. For non-main channels: message must include trigger pattern (@mention the bot)\n4. Service is running: `launchctl list | grep nanoclaw`\n5. Verify the bot has been invited to the server (check OAuth2 URL was used)\n\n### Bot only responds to @mentions\n\nThis is the default behavior for non-main channels (`requiresTrigger: true`). To change:\n- Update the registered group's `requiresTrigger` to `false`\n- Or register the channel as the main channel\n\n### Message Content Intent not enabled\n\nIf the bot connects but can't read messages, ensure:\n1. Go to [Discord Developer Portal](https:\u002F\u002Fdiscord.com\u002Fdevelopers\u002Fapplications)\n2. Select your application > **Bot** tab\n3. Under **Privileged Gateway Intents**, enable **Message Content Intent**\n4. Restart NanoClaw\n\n### Getting Channel ID\n\nIf you can't copy the channel ID:\n- Ensure **Developer Mode** is enabled: User Settings > Advanced > Developer Mode\n- Right-click the channel name in the server sidebar > Copy Channel ID\n\n## After Setup\n\nThe Discord bot supports:\n- Text messages in registered channels\n- Attachment descriptions (images, videos, files shown as placeholders)\n- Reply context (shows who the user is replying to)\n- @mention translation (Discord `\u003C@botId>` → NanoClaw trigger format)\n- Message splitting for responses over 2000 characters\n- Typing indicators while the agent processes\n",{"name":5,"description":7},"main","b6b2f4d4a0c7243409d1684119a6772629bfeba6",".claude\u002Fskills\u002Fadd-discord","https:\u002F\u002Fgithub.com\u002Fmbaker95\u002Fnanodex","https:\u002F\u002Fgithub.com\u002Fmbaker95","2026-03-12 23:02:12",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add mbaker95\u002Fnanodex --skill add-discord",{"tool":42,"command":43},"bunx","bunx skills add mbaker95\u002Fnanodex --skill add-discord",{"tool":45,"command":46},"pnpm","pnpm dlx skills add mbaker95\u002Fnanodex --skill add-discord","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmbaker95\u002Fnanodex\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-discord\u002FSKILL.md",true,[],[51,82,100,123,135,147],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":62,"publishedAt":25},"01M6DG2XYNH5XV7XGTJJ1SF0TG","agent-browser","Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data, and test web pages. Use whenever a browser would be useful, not just when the user explicitly asks.","https:\u002F\u002Fgithub.com\u002Fmbaker95\u002Fnanodex\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fagent-browser\u002FSKILL.md",[57],{"categoryNo":58,"categoryName":59,"taxonomyType":60,"taxonomyTypeDesc":61},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81],"agent browser","browser","pages","forms","task","test web","take","use","extract","data","user","read","screenshots","research","test","web","just","Bash","browse",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":91,"publishedAt":25},"01M6DG2TPZAT3SMWSYFJ3K82TE","x-integration","X (Twitter) integration for NanoClaw. Post tweets, like, reply, retweet, and quote. Use for setup, testing, or troubleshooting X functionality. Triggers on \"setup x\", \"x integration\", \"twitter\", \"post tweet\", \"tweet\".","https:\u002F\u002Fgithub.com\u002Fmbaker95\u002Fnanodex\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fx-integration\u002FSKILL.md",[88],{"categoryNo":89,"categoryName":90,"taxonomyType":60,"taxonomyTypeDesc":61},"01JBSEEDCAT000000000000008","测试与质量",[92,21,70,93,94,95,96,97,98,99],"x integration","testing","setup","troubleshooting","twitter","reply","quote","triggers",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":25},"01M6DG2Q4BJQ046BZSR9N7GZ72","use-local-whisper","Use when the user wants local voice transcription instead of OpenAI Whisper API. Switches to whisper.cpp running on Apple Silicon. WhatsApp only for now. Requires voice-transcription skill to be applied first.","https:\u002F\u002Fgithub.com\u002Fmbaker95\u002Fnanodex\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fuse-local-whisper\u002FSKILL.md",[],[107,108,70,109,110,111,112,113,73,114,115,116,117,118,119,120,121,122],"whisper","local whisper","local","use local whisper","apple","openai whisper","only","voice","apple silicon","api","first","openai","cpp","transcription","openai whisper api","whatsapp",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":25},"01M6DG2N2Z1V8VV4MQFRKFAQV0","update-skills","Check for and apply updates to installed skill branches from upstream.","https:\u002F\u002Fgithub.com\u002Fmbaker95\u002Fnanodex\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fupdate-skills\u002FSKILL.md",[],[130,131,132,133,134],"update","update skills","upstream","branches","check",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":25},"01M6DG2J5D7Y3R2BF8V87XZAXF","update-nanoclaw","Efficiently bring upstream NanoClaw updates into a customized install, with preview, selective cherry-pick, and low token usage.","https:\u002F\u002Fgithub.com\u002Fmbaker95\u002Fnanodex\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fupdate-nanoclaw\u002FSKILL.md",[],[130,142,143,144,132,145,146],"update nanoclaw","install","pick","token","preview",{"skillNo":148,"name":94,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":25},"01M6DG2FN7S7DVD337CNT5Y67D","Run initial NanoClaw setup. Use when user wants to install dependencies, authenticate messaging channels, register their main channel, or start the background services. Triggers on \"setup\", \"install\", \"configure nanoclaw\", or first-time setup requests.","https:\u002F\u002Fgithub.com\u002Fmbaker95\u002Fnanodex\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsetup\u002FSKILL.md",[],[94,143,99,153,154,30,70,22,73,155,117,156,157,158,159],"time","dependencies","configure","services","start","messaging","run"]