Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

opencode-discord-threadopencode Discord thread 搜索

Agent Skill

用于处理 Discord 服务器、频道、消息、成员和机器人交互。它适合让 Agent 辅助查询社区对话、整理频道内容、发布通知或管理基础协作流程。使用时需要确认 bot 权限、频道可见范围和服务器规则;涉及删除消息、管理成员、批量通知或读取私密频道时,应先获得明确授权并控制操作范围。

总安装

2,497

周安装

102

GitHub Stars

公开资料未说明

下载量

775
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install opencode-discord-thread

简介

当 OpenClaw 需要将编码任务交给 OpenCode、保持 OpenCode 运行模型与 Z.AI 编码计划/GLM 计划兼容以及镜像执行时,请使用此技能。

SKILL.md

name
opencode-discord-thread
description
Use this skill when OpenClaw should hand a coding task to OpenCode, keep the OpenCode run model-compatible with Z.AI Coding Plan / GLM plans, and mirror execution progress into a Discord thread for live review.
metadata
owner
openclaw
runtime
python-stdlib
compatibility
OpenClaw, OpenCode, Discord threads, Z.AI Coding Plan

OpenCode Discord Thread

Use this skill when the user wants OpenClaw to delegate coding work to a local OpenCode run and keep that run visible in Discord.

This skill is optimized for Z.AI Coding Plan workflows. Do not hard-code a stale GLM model id. Prefer an authenticated Z.AI Coding Plan provider and let the caller pass the exact model explicitly when needed.

When to use it

Use this skill when all of the following are true:

  1. OpenClaw is expected to offload coding to OpenCode instead of doing the edit loop directly.
  2. Progress needs to be mirrored into an existing Discord thread or a new thread in a Discord channel.
  3. The environment already has opencode installed and authenticated, ideally through opencode auth login with Z.AI Coding Plan.

Avoid this skill when:

  1. The task is small enough for OpenClaw to complete directly.
  2. Discord streaming is not needed.
  3. The machine cannot reach Discord or OpenCode is not installed.

Workflow

  1. Confirm that the repository path, Discord target, and OpenCode prompt are known.
  2. Prefer reusing a warm OpenCode backend with --attach http://host:port when available.
  3. Pass the exact model only if the caller already knows the current Z.AI Coding Plan model id.
  4. Use scripts/run_opencode_discord_bridge.py to launch opencode run --format json, summarize event output, and mirror that stream into Discord.
  5. Treat Discord as an observer surface, not the source of truth. The repository remains local and OpenCode performs the code changes locally.

Z.AI Coding Plan guidance

For compatibility with Z.AI Coding Plan:

  1. Authenticate OpenCode with the Z.AI Coding Plan provider rather than assuming a generic provider entry.
  2. Discover currently available plan-backed models with opencode models or inside OpenCode via /models.
  3. Pass --model provider/model only after discovery or when the operator already knows the right id.
  4. If no model is provided, let OpenCode use its configured default model.

This keeps the skill resilient when Z.AI changes the exact GLM model catalog.

Discord targeting

The bridge supports two modes:

  1. Existing thread: pass --thread-id.
  2. Create a new public thread from a parent channel: pass --parent-channel-id and optionally --thread-name.

The bridge posts a header message, keeps a rolling status message updated during execution, then posts the final summary and any remaining transcript chunks.

Commands

Existing thread:

python3 skills/opencode-discord-thread/scripts/run_opencode_discord_bridge.py \
  --repo /path/to/repo \
  --thread-id 123456789012345678 \
  --prompt "Implement the requested feature and run relevant tests." \
  --model zai/glm-4.5

Create a new thread from a parent channel:

python3 skills/opencode-discord-thread/scripts/run_opencode_discord_bridge.py \
  --repo /path/to/repo \
  --parent-channel-id 123456789012345678 \
  --thread-name "OpenCode: feature work" \
  --prompt-file /tmp/opencode_prompt.txt

Reuse a warm OpenCode server:

python3 skills/opencode-discord-thread/scripts/run_opencode_discord_bridge.py \
  --repo /path/to/repo \
  --thread-id 123456789012345678 \
  --attach http://127.0.0.1:4096 \
  --prompt "Continue the current implementation and summarize the diff."

Required environment

The bridge reads:

  1. DISCORD_BOT_TOKEN for Discord API access.
  2. Any provider credentials OpenCode already uses, such as the Z.AI Coding Plan credential stored by opencode auth login.

Failure handling

If the bridge fails:

  1. Check opencode --version.
  2. Check opencode auth list.
  3. Confirm the bot can post in the target Discord channel or thread.
  4. Confirm the thread is not locked or archived.
  5. Read references/opencode_discord_bridge.md for the operational details and argument behavior.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

87.03%
按下载量换算674

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills