Community程式設計與開發github.com

Discrawl

Discord 歸檔工具:搜尋、同步最新訊息、私人訊息、摘要、TUI 與儲存庫/發行版操作。

Discrawl 是什麼?

Discrawl 是一款專為 Discord 使用者與開發者設計的本機歸檔與查詢工具。其主要優點在於能夠優先使用本機 Discord 歸檔資料來回答問題,僅在資料過時、遺失請求範圍或明確要求時,才從 Discord 伺服器擷取最新資料。該工具支援多種平台與使用情境:可透過讀取 Discord Desktop 的 Wiretap 工件(本機工件)進行操作,也可使用機器人 API 進行同步(需設定憑證)。此外,Discrawl 還提供 TUI(文字使用者介面)、私人訊息(DM)查詢、摘要功能以及儲存庫/發行版相關工作的支援。其核心運作機制包括使用 `discrawl sync` 指令進行同步,並透過 `discrawl search`、`discrawl messages` 等指令進行受限查詢。為避免干擾,它明確不應中斷正在進行的歸檔寫入作業,並建議使用 `DISCRAWL_NO_AUTO_UPDATE` 環境變數抑制唯讀查詢時的自動更新。ClawSweeper 沙箱提供一個隔離的唯讀查詢環境,用於測試與開發,且不應使用生產環境的組態檔。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/discrawl

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Discrawl 是做什麼的?

先使用本機 Discord 歸檔。對於最近/當前的問題,請檢查 discrawl status --json;並使用 discrawl doctor 檢查來源/組態的準備狀態。 僅在資料過時、缺少請求的範圍或明確要求時才重新整理。

discrawl sync --source wiretap  # 本機 Discord Desktop 工件
discrawl sync                   # 已設定的來源;機器人 API 需要憑證

僅在刻意進行歷史回溯填補時才使用 --full。請勿為了解決忙碌/鎖定的資料庫而中斷其他歸檔寫入程式。請解析已設定的路徑,而非假設預設的 macOS、XDG 或舊版位置。

讀取受限區塊

DISCRAWL_NO_AUTO_UPDATE=1 discrawl search --limit 20 "query"
discrawl messages --channel '<channel>' --days 7 --all
discrawl dms --last 20
DISCRAWL_NO_AUTO_UPDATE=1 discrawl --json sql "select count(*) as messages from messages;"

DISCRAWL_NO_AUTO_UPDATE=1 可在唯讀測試期間抑制 Git 共享的更新。 discrawl sql 預設為唯讀,接受 SQL 參數或 stdin。當一般讀取過於粗略時,請使用它來取得精確的計數/聯結;在沒有明確要求並審查過的資料庫變更情況下,切勿使用 --unsafe --confirm。查閱子命令的說明以取得過濾條件。請回報絕對日期範圍、頻道/DM 名稱、計數、新鮮度以及來源缺口。

來源邊界

Desktop Wiretap 讀取本機工件;它不得提取憑證、使用使用者權杖、以使用者身份呼叫 Discord 或寫入 Discord 應用程式儲存空間。機器人同步需要已設定的機器人憑證;切勿推測其可用性。Desktop DM 僅限本機,不屬於已發佈的 Git 快照。Git 共享快照必須排除機密資訊和 @me DM 行。

針對實作工作或真正缺少的 CLI 功能,請確認檢出遠端為 openclaw/discrawl 並遵循其指示。請勿假設特定機器的歷史檢出路徑。

ClawSweeper 沙箱

僅使用沙箱讀取器:

discrawl-sandbox search --limit 20 "query"
discrawl-sandbox messages --channel clawtributors --days 7 --all
discrawl-sandbox status --json

此讀取器將 https://github.com/openclaw/discord-store.git 匯入至 /root/clawsweeper-sandbox-workspace/.discrawl/discrawl.db,並設定 discord.token_source = "none"。發佈的 Git 快照已過濾為僅限公開頻道;請勿在沙箱化的公開 Discord 工作階段中使用 /root/.discrawl/config.toml 或豐富的寫入器資料庫。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

相關技能