discrawl

discrawl is a skill for Claude Code, Codex from openclaw/nix-openclaw-tools. It costs 24 tokens per session (649 once invoked), scanned C, original, MIT.

A tool that copies Discord server history into a local SQLite database, a small file-based database, so it can be searched offline. It can also import certain local Discord desktop cache data for direct-message recovery or search.

In plain words
What is it for?
Use it to sync or tail server messages, search messages and mentions, inspect channels and members, import supported local cache data, and publish or subscribe to archive snapshots.
Why use it?
It provides local searches and archives without depending on Discord’s built-in search, while preserving data for later queries.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to sync or tail server messages, search messages and mentions, inspect channels and members, import supported local cache data, and publish or subscribe to archive snapshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openclaw/nix-openclaw-tools/discrawl
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add openclaw/nix-openclaw-tools --skill discrawl
Clone the repo
git clone --depth 1 https://github.com/openclaw/nix-openclaw-tools

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for discrawl

README.md
[![agentmods](https://agentmods.dev/badge/skills/openclaw/nix-openclaw-tools/discrawl/github.svg)](https://agentmods.dev/skills/openclaw/nix-openclaw-tools/discrawl)
Your own site
<a href="https://agentmods.dev/skills/openclaw/nix-openclaw-tools/discrawl"><img src="https://agentmods.dev/badge/skills/openclaw/nix-openclaw-tools/discrawl/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for discrawl

Your own site · 80×15
<a href="https://agentmods.dev/skills/openclaw/nix-openclaw-tools/discrawl"><img src="https://agentmods.dev/badge/skills/openclaw/nix-openclaw-tools/discrawl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 649 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00649
Opus 5.5 $0.00010 $0.00260
Sonnet 5.5 $0.00005 $0.00130
Haiku 4.5 $0.00002 $0.00065

Measured 1mo ago against content hash 7a12b5bd321b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

discrawl scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

Desktop wiretap reads local artifacts; it must not extract credentials, use
tools/discrawl/skills/discrawl/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Discrawl

Use local Discord archives first. For recent/current questions, check discrawl status --json; use discrawl doctor for source/config readiness. Refresh only when stale, missing the requested scope, or explicitly requested.

discrawl sync --source wiretap  # local Discord Desktop artifacts
discrawl sync                   # configured source; bot API requires credentials

Use --full only for deliberate historical backfills. Do not interrupt another archive writer to resolve a busy/locked database. Resolve configured paths instead of assuming default macOS, XDG, or legacy locations.

Read Bounded Slices

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 suppresses git-share updates during read smokes. discrawl sql is read-only by default and accepts SQL arguments or stdin. Use it for exact counts/joins when normal reads are too coarse; never use --unsafe --confirm without an explicitly requested and reviewed database mutation. Consult subcommand help for filters. Report absolute date spans, channel/DM names, counts, freshness, and source gaps.

Source Boundaries

Desktop wiretap reads local artifacts; it must not extract credentials, use user tokens, call Discord as the user, or write Discord application storage. Bot sync needs configured bot credentials; never infer availability. Desktop DMs are local-only, not part of the published Git snapshot. Git-share snapshots must exclude secrets and @me DM rows.

For implementation work or a genuinely missing CLI feature, verify the checkout remote is openclaw/discrawl and follow its instructions. Do not assume a machine-specific historical checkout path.

ClawSweeper Sandbox

Use the sandbox reader only:

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

Read the full file on GitHub · 75 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -5 tokens per session scan A → C 7a12b5bd321b
  2. 2mo ago First seen · 75 lines · 29 tokens per session scan A fa38399b3159

Subscribe to this mod's changes

discrawl is a skill published in the GitHub repository openclaw/nix-openclaw-tools (54 stars, last pushed 3d ago), licensed MIT. It adds 24 tokens to every session and 649 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

discrawl compared with skills from other repositories

discrawl next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
discrawlopenclaw/nix-openclaw-toolsSkill543d agoMITC24Claude Code, Codex
create-prprisma/ormSkill48ktodayApache-2.0A48Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill31ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.8k4d agoApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
nornicdb-cypher-queriesorneryd/NornicDBSkill924todayMITA79Claude Code, Codex
volcengine-rds-postgresqlbytedance/agentkit-samplesSkill4843d agoApache-2.0A63Claude Code, Codex