Disclaw for Openclaw

Disclaw allows developers to manage Discord categories, channels, threads, and AI agent routing using a declarative YAML configuration file.

ofan
v1.1.2
Feb 26, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install disclaw

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install disclaw using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Disclaw?

Disclaw is a specialized infrastructure-as-code tool designed specifically for the Discord ecosystem. While traditional plugins focus on the content of messages, Disclaw focuses on the architecture of the workspace itself. It enables developers using Openclaw Skills to define their server structure—including categories, channels, and complex thread hierarchies—within a version-controlled YAML file.

This approach ensures that your agent environments are reproducible, consistent, and easily manageable. By treating Discord channels as managed resources, Disclaw simplifies the process of binding specific AI agents to specific communication hubs, providing a robust layer of organization for any complex Openclaw Skills implementation.

Disclaw Use Cases

  • Automating the creation and naming of Discord categories and channels for new projects.
  • Managing OpenClaw agent-to-channel bindings to strictly control AI response environments.
  • Syncing existing Discord server structures into a configuration file for version control.
  • Performing dry-run audits of Discord server state to identify unmanaged or stale resources.
  • Rapidly rolling back workspace changes to a known good state using automated snapshots.

How Disclaw Works

  1. The developer defines the desired workspace state in a disclaw.yaml file, specifying guilds, channels, and agent permissions.
  2. Disclaw validates the configuration to ensure it meets both Discord's API requirements and the logical needs of Openclaw Skills.
  3. The tool generates a diff to show exactly what changes (creations, updates, or deletions) will occur on the live server.
  4. Before any mutation, Disclaw creates a safety snapshot of the current Discord structure to allow for emergency rollbacks.
  5. The tool executes the changes via the Discord API and updates OpenClaw routing gates atomically to ensure agents are immediately correctly bound.

Disclaw Setup

To begin using Disclaw with your Openclaw Skills, install the package via npm:

npm install -g @ofan/disclaw

Ensure your Discord bot token is added to your configuration and that the Gateway API is enabled in openclaw.json:

{ "gateway": { "tools": { "allow": ["gateway"] } } }

Create your disclaw.yaml and verify the connection:

disclaw validate -c disclaw.yaml
disclaw diff -c disclaw.yaml

Disclaw Data Schema & Taxonomy

Disclaw manages data through a declarative YAML schema and local metadata snapshots to maintain the integrity of Openclaw Skills environments:

Component Type Description
guild String The unique ID of the Discord server being managed.
channels Array A list of category and channel objects including topics and threads.
openclaw.agents Mapping Maps agent names to specific channel names for automated routing.
.disclaw/snapshots/ Directory Stores JSON files representing the state of the server before the last apply command.

Disclaw Advanced Features

  • Automated routing gate updates that allowlist channels for agents without manual configuration.
  • Support for the --prune flag to ensure the live Discord environment perfectly matches the YAML source of truth.
  • Drift-aware rollback system that identifies changes made to the server since the last managed update.
  • Filterable commands allowing developers to apply changes only to specific categories, channels, or agents.
  • Native integration with the OpenClaw Gateway API for seamless configuration reading and writing.

SKILL.md


Loading

Related Openclaw Skills

Featured*