brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
create-discord-botCreate a Discord server and bot application with browser automation, collect the bot token, server ID, and user ID, then save credentials to .env via the keys-safe-guard skill. Skip if OPENCLAW_DISCORD_BOT_TOKEN is already set. Use for any project that needs a Discord bot.
Independent GitHub snapshot · Automated classification · Original documentation governs
Automate as much of the Discord setup flow as possible through the official Discord web UI,
then securely save the bot token, server ID, and user ID to config/.env.
config/.envkeys-safe-guard and never print the full token valuekeys-safe-guardweb browser agent skillAs an expert in your assigned roles, you must announce your actions before performing them using the following format:
As a {Role, and Role-XYZ if have more roles}, I will {action description}
web browser agent skill is readyhttps://discord.com and https://discord.com/developersWhen this skill is used in a workflow agent node:
Check if the token is already saved:
keys-safe-guard to get OPENCLAW_DISCORD_BOT_TOKEN.If the output shows a non-empty value, ask user whether to skip or replace it.
Only ask the user for manual help if you cannot finish a step or need to verify as a human.
Use skill keys-safe-guard to get OPENCLAW_DISCORD_BOT_TOKEN.
If set and user confirms to keep it, skip.
Security notice: About to open discord.com and discord.com/developers. Confirm these are trusted before proceeding.
Default to this execution model:
Do not ask the user to manually click through routine setup pages when AI can do it.
Open Discord in a headed browser (web browser agent skill):
https://discord.com/channels/@me
AI should:
skillpilot or a project-specific name depending on the workflow purposeServer Settings menuAdd a Server button in the left tool barOpenClaw or SkillPilot depending on the workflow purposeOpen by web browser agent skill: https://discord.com/developers/applications
AI should perform:
skip in the onboard screen if have, and go to the developer portal directly.OpenClaw or SkillPilot depending on the context) → Create (Tick the acccept terms checkbox first on behalf of the user)create button in the top right) if the current bot is not avaibleToken handling rules:
AI should perform in Developer Portal:
bot, applications.commandsThen continue the invite flow:
If Discord shows CAPTCHA or extra anti-abuse verification, pause and ask the user to complete only that step.
AI should try to collect IDs with the least manual work:
If Discord blocks automated copy or context-menu access, ask the user only for the missing values:
https://discord.com/channels/{SERVER_ID}/{CHANNEL_ID}Right-click server icon → Privacy Settings → toggle Direct Messages ON if it is OFF
Use skill keys-safe-guard to save:
OPENCLAW_DISCORD_BOT_TOKEN=<bot-token>OPENCLAW_DISCORD_SERVER_ID=<server-id>OPENCLAW_DISCORD_USER_ID=<user-id>Then use skill keys-safe-guard to get:
OPENCLAW_DISCORD_SERVER_IDOPENCLAW_DISCORD_USER_IDConfirm the token is set without printing its value. Report only whether OPENCLAW_DISCORD_BOT_TOKEN is present.
When config/.env is protected by key safe guard:
keys-safe-guard; that skill handles the correct elevation flowkeys-safe-guard; it should use the native GUI permission dialog behaviorDo not claim the command is stuck. Wait for the GUI dialog or terminal sudo prompt to be completed.
Output result as plain text. If the user asked to save it to a file, write it there.
Plain text result shown to user:
Discord bot: created and configured
Bot token: saved to config/.env (not shown)
Server ID: <id>
User ID: <id>
DM policy: enabled