OpenClaw ChatOps — Workspace Init (Discord)
Create a usable workspace in a Discord guild by creating a category + channels and publishing the Channel Contracts as pinned operational UI.
Inputs to confirm (ask only if missing)
- •Target guild (if ambiguous).
- •Category name (default:
openclaw-chatops). - •Channel set (default:
updates,research,work,qa). - •Whether to reuse an existing category/channels or create new.
Do NOT bikeshed naming. If the user did not specify, use defaults.
Procedure
- •Resolve target guild/channel ids
- •Use
message.channel-info/message.channel-listif you need ids.
- •Create (or reuse) the workspace category
- •Use
message.category-createwhen category does not exist.
- •Create (or reuse) the channels under the category
- •Use
message.channel-createwithparentId=<categoryId>. - •Keep channels minimal; do not create extra channels unless requested.
- •Set each channel Topic (one-line responsibility)
- •Use
message.channel-editwithtopic=.... - •Keep topics short; channel topics are not hard rules.
- •Pin operational rules to each channel
- •Post a single “Rules” message in each channel, then
message.pinit. - •The pinned text MUST be skimmable: responsibilities + MUST/MUST NOT.
- •In Discord pins, always include full GitHub URLs (not repo-relative paths):
- •
docs/channel-contracts.md - •
docs/index-and-status.md
- •
- •Create and pin an index message
- •In
updates, post an “Index / How to use this workspace” message and pin it. - •Include:
- •Where to post tasks (work/qa/research)
- •The rule: “every task is a thread”
- •How outcomes flow back to
updates
- •Verify permissions / visibility (best-effort)
- •Confirm the bot can: create threads, send messages, pin messages.
- •If the bot appears silent in guild channels, check
requireMentionand mentionPatterns in OpenClaw Discord config. - •If you detect missing permissions, report the exact missing capability and the minimal Discord permission fix.
- •Tooling/permission notes: see
docs/openclaw-tooling-notes.md.
Output (what success looks like)
- •A category with the standard channels exists.
- •Each channel has a topic and a pinned “Rules” message.
- •
updateshas a pinned “Index” message.
Trigger phrases (examples)
Natural language:
- •“把这个服务器初始化成 OpenClaw 的工作区”
- •“帮我创建一个标准的 updates/research/work/qa 频道结构并置顶规则”
Command-style (convention; not required):
- •Use the skill slash command (auto-exposed by OpenClaw):
/openclaw_chatops_init - •Or use the generic runner:
/skill openclaw-chatops-init <your request> - •Text-command convention (if you do not want native slash):
init workspace/chatops init
Guardrails
- •Never delete or rename existing channels/categories unless explicitly asked.
- •If a channel already has important pins, add a new pin but do not unpin existing content.