Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

disclawdisclaw 搜索

Agent Skill

disclaw 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

16,040

周安装

689

GitHub Stars

公开资料未说明

下载量

5,622
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:disclaw(disclaw 搜索)
来源仓库:https://github.com/ofan/disclaw
安装命令:
openclaw skills install disclaw
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install disclaw

简介

以代码形式管理 Discord 频道结构与路由规则。

  • 自动化创建重命名删除频道类别等操作。disclaw 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 适用于多机器人协作环境下的频道治理场景。
  • 需具备服务器管理员权限方可执行变更动作。
  • 建议先在测试环境验证配置脚本安全性。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
disclaw
description
Manage Discord workspace structure and OpenClaw routing as code. Use when creating/renaming/deleting Discord channels, categories, threads, or managing agent-to-channel bindings. Triggers on: Discord channels, workspace structure, channel setup, routing, binding, disclaw.
metadata
openclaw
requires
bins
[disclaw]
config
[channels.discord.token]

Disclaw — Discord Structure as Code

Disclaw manages Discord workspace structure (categories, channels, threads) and OpenClaw agent-to-channel bindings as code via a YAML config file.

Disclaw vs Discord plugin: Disclaw manages *structure* (create/rename/delete channels, categories, threads; manage bindings and routing gates). The Discord plugin manages *messaging* (send/receive, reactions, pins, thread replies). They do not conflict.

Installation

npm install -g @ofan/disclaw
disclaw --version

Prerequisites

  1. Discord bot token must be in OpenClaw config at channels.discord.token
  2. Gateway API access — add to openclaw.json:
   { gateway: { tools: { allow: ["gateway"] } } }

This lets disclaw read/write config via the gateway API. Without it, disclaw falls back to CLI.

  1. Config file — create disclaw.yaml in the workspace (see format below)

Verify Setup

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

Config File Format

The config file (disclaw.yaml) declares the desired state of Discord workspace structure.

version: 1
managedBy: disclaw
guild: "YOUR_GUILD_ID"

channels:
  # Standalone channel (no category)
  - name: announcements
    topic: "Important announcements"

  # Category with channels
  - category: Engineering
    channels:
      - name: general
        threads: [Standup, Retro]
      - name: alerts
        topic: "Automated alerts only"

  # Another category
  - category: Support
    channels:
      - name: tickets
      - name: escalations

# OpenClaw agent bindings (optional)
openclaw:
  requireMention: false
  agents:
    main: general              # single channel
    siren: [general, alerts]   # multiple channels
    support:                   # with options
      channel: tickets
      requireMention: true

Key rules

  • guild is the Discord server ID (right-click server → Copy Server ID)
  • Channel names must be lowercase, no spaces (Discord enforces this)
  • Thread names can have spaces and mixed case
  • Agent bindings reference channel names from the channels section
  • requireMention controls whether the bot needs @mention to respond in that channel

Commands

disclaw diff — Show what would change

disclaw diff -c disclaw.yaml
disclaw diff -c disclaw.yaml --json          # structured output
disclaw diff -c disclaw.yaml --channel alerts # filter by channel

Shows: managed resources (create/update/delete/noop), unmanaged resources, unbound agents, stale agents, routing health warnings, and pinned messages.

disclaw apply — Apply changes (dry-run by default)

disclaw apply -c disclaw.yaml          # dry-run (shows what would change)
disclaw apply -c disclaw.yaml --yes    # actually apply changes
disclaw apply -c disclaw.yaml --prune --yes  # also delete unmanaged resources

Safety: Always takes a snapshot before mutating. Creates before deletes. Bindings and routing gates are updated atomically.

disclaw import — Import unmanaged Discord resources

disclaw import -c disclaw.yaml          # dry-run (shows what would be imported)
disclaw import -c disclaw.yaml --yes    # write to config file

Discovers Discord channels/categories/threads not in the config and adds them. Also finds unbound OpenClaw agents.

disclaw rollback — Restore from snapshot

disclaw rollback -c disclaw.yaml          # dry-run
disclaw rollback -c disclaw.yaml --yes    # actually rollback

Restores Discord state from the most recent pre-apply snapshot. Drift-aware (shows what changed since the snapshot).

disclaw validate — Validate config (no API calls)

disclaw validate -c disclaw.yaml
disclaw validate -c disclaw.yaml --json

Safe for CI. Checks: schema validity, empty names, duplicate channels/threads, binding refs pointing to non-existent channels.

Filter flags (diff, apply, import)

--category <names...>   # filter by category name
--channel <names...>    # filter by channel name
--thread <names...>     # filter by thread name
--agent <names...>      # filter by agent name
--json                  # structured JSON output

Gateway options (all commands except validate)

--gateway-url <url>     # override gateway URL (default: http://127.0.0.1:18789)
--gateway-token <token> # override gateway auth token

Also via env vars: OPENCLAW_GATEWAY_URL, OPENCLAW_GATEWAY_TOKEN.

Common Workflows

Add a new channel

  1. Edit disclaw.yaml — add channel under the appropriate category
  2. Validate: disclaw validate -c disclaw.yaml
  3. Preview: disclaw diff -c disclaw.yaml
  4. Apply: disclaw apply -c disclaw.yaml --yes

Bind an agent to a channel

  1. Edit disclaw.yaml — add entry under openclaw.agents
  2. Preview: disclaw diff -c disclaw.yaml
  3. Apply: disclaw apply -c disclaw.yaml --yes

This creates the binding AND allowlists the channel in routing gates automatically.

Import existing Discord channels

  1. Run: disclaw import -c disclaw.yaml (dry-run to preview)
  2. Review the output
  3. Run: disclaw import -c disclaw.yaml --yes (writes to config)
  4. Verify: disclaw diff -c disclaw.yaml

Delete a channel

  1. Remove the channel from disclaw.yaml
  2. Preview: disclaw apply -c disclaw.yaml --prune
  3. Apply: disclaw apply -c disclaw.yaml --prune --yes

Warning: --prune is required for deletions. Without it, removed channels are shown as "unmanaged" but not deleted.

Rename a channel

  1. Change the channel name in disclaw.yaml
  2. Preview: disclaw diff -c disclaw.yaml (shows delete old + create new)
  3. Apply: disclaw apply -c disclaw.yaml --yes

Note: Discord doesn't support true renames via API — disclaw creates the new channel and (with --prune) deletes the old one.

Troubleshooting

"Discord bot token not found"

  • Ensure channels.discord.token is set in openclaw.json
  • Or set DISCORD_BOT_TOKEN env var

"Gateway tool not available"

  • Add gateway.tools.allow: ["gateway"] to openclaw.json
  • Or disclaw will fall back to CLI automatically

"Gateway auth failed"

  • Check OPENCLAW_GATEWAY_TOKEN env var matches gateway.auth.token in config
  • Or pass --gateway-token <token>

"OpenClaw CLI timed out"

  • Check if the gateway is running: openclaw status
  • Check network: curl http://127.0.0.1:18789/

"Discord connection timed out"

  • Check internet connectivity
  • Verify bot token is valid
  • Try again (Discord API can be flaky)

"Permission denied" during apply

  • Bot needs: Manage Channels, Manage Threads permissions
  • Check bot role position in Discord server settings

Safety

  • Dry-run by default — all mutating commands require --yes
  • Snapshot before apply — automatic, saved to .disclaw/snapshots/
  • Rollback availabledisclaw rollback -c disclaw.yaml --yes
  • Managed-scope only — disclaw only touches resources in the config
  • Creates before deletes — safer ordering during apply
  • Validation — config is validated before any API calls

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.75%
按下载量换算5,158

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills