[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CYF94FXGAF30CRJHN4ZVJ4":3,"skill-same:01M6CYF94FXGAF30CRJHN4ZVJ4":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M6CYF94FXGAF30CRJHN4ZVJ4","discord",null,"Discord Bot integration for sending messages, managing channels, and responding to events.\nUse when Bub needs to: (1) Send messages to Discord channels, (2) Create Discord bot with discord.py,\n(3) Handle Discord events (on_message, on_member_join, etc.), (4) Work with Discord webhooks,\nor (5) Any Discord-related functionality.","bubbuild\u002Fbub-contrib","bubbuild","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F264669564?v=4","01M6CYEYPWPQJBCRCMJ415277Z","Bub Build","01M6CYEYVZ5WFRV560SC5E6GKE",19,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Fbub-discord\u002Fsrc\u002Fskills\u002Fdiscord\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28],"bot","create","integration","messages","work","use","webhooks","discord bot","message","bub","2026-11-10 10:12:30",false,"---\nname: discord\ndescription: |\n  Discord Bot integration for sending messages, managing channels, and responding to events.\n  Use when Bub needs to: (1) Send messages to Discord channels, (2) Create Discord bot with discord.py,\n  (3) Handle Discord events (on_message, on_member_join, etc.), (4) Work with Discord webhooks,\n  or (5) Any Discord-related functionality.\nmetadata:\n  channel: discord\n---\n\n# Discord Bot Skill\n\nSend messages and interact with Discord using discord.py.\n\n## Response Contract (Important)\n\nWhen the user asks to send or draft a Discord message:\n\n- Return only the final message content intended for Discord.\n- Do not include action narration or meta text such as:\n  - \"I already prepared...\"\n  - \"I can switch to another version...\"\n  - \"If you want, I can...\"\n- Do not prepend or append explanatory wrappers around the message body.\n- If a style is requested (short, technical, casual), apply it directly in the final message.\n- Keep the message concise unless the user explicitly requests detail.\n\n## Quick Start\n\n```bash\n# Dependencies are declared in each script via PEP 723.\n# Paths are relative to this skill directory.\n# Run scripts directly with uv; it will resolve dependencies from the script header.\nuv run .\u002Fscripts\u002Fdiscord_send.py --help\nuv run .\u002Fscripts\u002Fdiscord_bot.py\n```\n\n## Sending Messages\n\n### Basic Message\n\n```python\nimport discord\nfrom discord.ext import commands\n\nintents = discord.Intents.default()\nintents.message_content = True\n\nbot = commands.Bot(command_prefix='!', intents=intents)\n\n@bot.event\nasync def on_ready():\n    channel = bot.get_channel(CHANNEL_ID)\n    await channel.send(\"Hello from Bub!\")\n```\n\n### Send to Channel by ID\n\n```python\nchannel = bot.get_channel(123456789)\nawait channel.send(\"Message\")\n```\n\n### Send to Thread\n\n```python\nthread = bot.get_channel(THREAD_ID)\nawait thread.send(\"Message in thread\")\n```\n\n### Embed Message\n\n```python\nembed = discord.Embed(\n    title=\"Title\",\n    description=\"Description\",\n    color=discord.Color.blue()\n)\nembed.add_field(name=\"Field\", value=\"Value\")\nawait channel.send(embed=embed)\n```\n\n## Using the Bot\n\n### Configuration\n\nSet environment variable:\n```bash\nexport BUB_DISCORD_TOKEN=\"your_token_here\"\n```\n\n### Running the Bot\n\n```python\nimport asyncio\nimport os\nfrom discord_bot import run_bot\n\nasync def main():\n    token = os.environ.get(\"BUB_DISCORD_TOKEN\")\n    await run_bot(token)\n\nasyncio.run(main())\n```\n\n## Common Patterns\n\n### Respond to Messages\n\n```python\n@bot.event\nasync def on_message(message):\n    if message.author.bot:\n        return\n    if \"hello\" in message.content.lower():\n        await message.reply(\"Hello!\")\n```\n\n### Command with Arguments\n\n```python\n@bot.command(name=\"echo\")\nasync def echo(ctx, *, text: str):\n    await ctx.send(text)\n```\n\n### Button Interaction\n\n```python\nfrom discord.ui import Button, View\n\nbutton = Button(label=\"Click me\", style=discord.ButtonStyle.primary)\nasync def callback(interaction):\n    await interaction.response.send_message(\"Clicked!\")\n\nbutton.callback = callback\nview = View()\nview.add_item(button)\nawait ctx.send(\"Click:\", view=view)\n```\n\n## Environment\n\n- `BUB_DISCORD_TOKEN`: Bot token from Discord Developer Portal\n","# Discord Bot Skill\n\nSend messages and interact with Discord using discord.py.\n\n## Response Contract (Important)\n\nWhen the user asks to send or draft a Discord message:\n\n- Return only the final message content intended for Discord.\n- Do not include action narration or meta text such as:\n  - \"I already prepared...\"\n  - \"I can switch to another version...\"\n  - \"If you want, I can...\"\n- Do not prepend or append explanatory wrappers around the message body.\n- If a style is requested (short, technical, casual), apply it directly in the final message.\n- Keep the message concise unless the user explicitly requests detail.\n\n## Quick Start\n\n```bash\n# Dependencies are declared in each script via PEP 723.\n# Paths are relative to this skill directory.\n# Run scripts directly with uv; it will resolve dependencies from the script header.\nuv run .\u002Fscripts\u002Fdiscord_send.py --help\nuv run .\u002Fscripts\u002Fdiscord_bot.py\n```\n\n## Sending Messages\n\n### Basic Message\n\n```python\nimport discord\nfrom discord.ext import commands\n\nintents = discord.Intents.default()\nintents.message_content = True\n\nbot = commands.Bot(command_prefix='!', intents=intents)\n\n@bot.event\nasync def on_ready():\n    channel = bot.get_channel(CHANNEL_ID)\n    await channel.send(\"Hello from Bub!\")\n```\n\n### Send to Channel by ID\n\n```python\nchannel = bot.get_channel(123456789)\nawait channel.send(\"Message\")\n```\n\n### Send to Thread\n\n```python\nthread = bot.get_channel(THREAD_ID)\nawait thread.send(\"Message in thread\")\n```\n\n### Embed Message\n\n```python\nembed = discord.Embed(\n    title=\"Title\",\n    description=\"Description\",\n    color=discord.Color.blue()\n)\nembed.add_field(name=\"Field\", value=\"Value\")\nawait channel.send(embed=embed)\n```\n\n## Using the Bot\n\n### Configuration\n\nSet environment variable:\n```bash\nexport BUB_DISCORD_TOKEN=\"your_token_here\"\n```\n\n### Running the Bot\n\n```python\nimport asyncio\nimport os\nfrom discord_bot import run_bot\n\nasync def main():\n    token = os.environ.get(\"BUB_DISCORD_TOKEN\")\n    await run_bot(token)\n\nasyncio.run(main())\n```\n\n## Common Patterns\n\n### Respond to Messages\n\n```python\n@bot.event\nasync def on_message(message):\n    if message.author.bot:\n        return\n    if \"hello\" in message.content.lower():\n        await message.reply(\"Hello!\")\n```\n\n### Command with Arguments\n\n```python\n@bot.command(name=\"echo\")\nasync def echo(ctx, *, text: str):\n    await ctx.send(text)\n```\n\n### Button Interaction\n\n```python\nfrom discord.ui import Button, View\n\nbutton = Button(label=\"Click me\", style=discord.ButtonStyle.primary)\nasync def callback(interaction):\n    await interaction.response.send_message(\"Clicked!\")\n\nbutton.callback = callback\nview = View()\nview.add_item(button)\nawait ctx.send(\"Click:\", view=view)\n```\n\n## Environment\n\n- `BUB_DISCORD_TOKEN`: Bot token from Discord Developer Portal\n",{"name":5,"metadata":34,"description":35},{"channel":5},"Discord Bot integration for sending messages, managing channels, and responding to events.\nUse when Bub needs to: (1) Send messages to Discord channels, (2) Create Discord bot with discord.py,\n(3) Handle Discord events (on_message, on_member_join, etc.), (4) Work with Discord webhooks,\nor (5) Any Discord-related functionality.\n","main","35c84fbc0b8339e5f3c94efb35a83adad292d067","packages\u002Fbub-discord\u002Fsrc\u002Fskills\u002Fdiscord",23,"https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib","https:\u002F\u002Fgithub.com\u002Fbubbuild","https:\u002F\u002Fbub.build","Bub it, build it.","2026-11-11 15:30:48",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add bubbuild\u002Fbub-contrib --skill discord",{"tool":51,"command":52},"bunx","bunx skills add bubbuild\u002Fbub-contrib --skill discord",{"tool":54,"command":55},"pnpm","pnpm dlx skills add bubbuild\u002Fbub-contrib --skill discord","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Fbub-discord\u002Fsrc\u002Fskills\u002Fdiscord\u002FSKILL.md",true,[59,65],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fdiscord_bot.py","SCRIPT","脚本",3697,"https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Fbub-discord\u002Fsrc\u002Fskills\u002Fdiscord\u002Fscripts\u002Fdiscord_bot.py",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fdiscord_send.py",1753,"https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Fbub-discord\u002Fsrc\u002Fskills\u002Fdiscord\u002Fscripts\u002Fdiscord_send.py",[70,95,104,123,136,143],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":29},"01M6CYFPNE130C5YPK6J05FK5G","tape-dataset-share-review","Export, filter, scan, and review shareable tape datasets produced by `tape-dataset-opendal`. Use when Codex needs to prepare Bub-generated tape data for public sharing, Hugging Face upload, external research handoff, or any review-sensitive export that must run CEL filtering, TruffleHog secret scanning on the staged artifact, and a final conservative LLM audit.","https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Ftape-dataset-opendal\u002Fsrc\u002Fskills\u002Ftape-dataset-share-review\u002FSKILL.md",[],[77,78,79,80,81,82,83,84,85,86,87,24,88,89,90,91,92,28,93,94],"tape dataset share review","share","review","codex","research","run","audit","sharing","trufflehog","generated","filtering","export","scanning","datasets","external research","scan","artifact","upload",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":29},"01M6CYFMSN49KPA44X7XR862F9","wecom","WeCom channel skill. Return normal replies directly. For proactive sends such as scheduled jobs, use the packaged wecom_send.py script.","https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Fbub-wecom\u002Fsrc\u002Fskills\u002Fwecom\u002FSKILL.md",[],[97,102,24,103],"channel","jobs",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":29},"01M6CYFH67JBZ9YEGQVDCFW3GV","slack","Slack skill for proactive outbound Slack communication: posting a message to a\nchannel or thread, editing an existing bot message, or adding an emoji reaction.\nUse when the bot needs to: (1) post a message somewhere OTHER than the current\nreply (e.g. a different channel, or a side note in the same thread),\n(2) edit a previously-sent bot message (e.g. a progress placeholder), or\n(3) acknowledge a message with a non-verbal emoji reaction.\nNOTE: normal replies to the current message are posted AUTOMATICALLY by the\nruntime — just answer as text. Reach for this skill only for proactive \u002F\nout-of-band sends and message edits.","https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Fbub-slack\u002Fsrc\u002Fskills\u002Fslack\u002FSKILL.md",[],[106,111,112,27,113,102,114,115,19,116,117,118,119,120,121,122,24],"runtime","outbound","emoji","reply","only","placeholder","communication","out-of-band","text","just","editing","edit",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":29},"01M6CYFENA72P45DFRZP9NVVM5","qq","QQ C2C and group channel skill. Use when Bub is handling a QQ conversation. In the default tool reply mode, reply by calling qq.send (text or media) and stay silent by not calling it. In direct reply mode, return the reply text; output exactly \u003Cno_reply\u002F> to stay silent.","https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Fbub-qq\u002Fsrc\u002Fskills\u002Fqq\u002FSKILL.md",[],[125,114,130,131,119,132,102,24,133,134,135,28],"Media","tool","direct","default","conversation","calling",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":29},"01M6CYFC5D1T5JETNW8E99FG73","feishu","Use this skill to respond to messages from feishu channel.","https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Fbub-feishu\u002Fsrc\u002Fskills\u002Ffeishu\u002FSKILL.md",[],[138,22,102,24],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":29},"01M6CYF72F9EBVVWSSFREAE9TR","dingtalk","DingTalk channel skill. When $dingtalk appears in message context, return your response as text\nand the framework will deliver it. For programmatic sends (e.g. progress updates), use dingtalk_send.","https:\u002F\u002Fgithub.com\u002Fbubbuild\u002Fbub-contrib\u002Fblob\u002Fmain\u002Fpackages\u002Fbub-dingtalk\u002Fsrc\u002Fskills\u002Fdingtalk\u002FSKILL.md",[],[145,119,150,102,24,27,151],"context","framework"]