discrawl

discrawl is a skill for Claude Code, Codex from moltis-org/moltis. It costs 42 tokens per session (940 once invoked), scanned A, original, MIT.

A command-line archive for Discord servers, which stores channels, threads, messages, and members locally for offline searching and inspection.

In plain words
What is it for?
Use it to synchronise server data, import local caches, search messages with text or meaning-based queries, inspect members and threads, and keep database snapshots under Git.
Why use it?
It makes historical Discord content easier to preserve and search without repeatedly browsing the live server.

Skill for Claude CodeCodex

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

About the project

Moltis is a persistent personal agent server written in Rust that runs on hardware controlled by its user. It provides an AI agent with sandboxed command execution, model-provider connections, memory, voice, scheduling, messaging integrations, browser automation, and MCP tools. Its catalogue add-ons extend the agent’s workflows and available tools.

moltis-org/moltis · 2,845 stars · on GitHub · moltis.org

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.

agentmods
npx agentmods add skills/moltis-org/moltis/discrawl
Any agent
npx skills add moltis-org/moltis --skill discrawl
Clone the repo
git clone --depth 1 https://github.com/moltis-org/moltis

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/moltis-org/moltis/discrawl.svg)](https://agentmods.dev/skills/moltis-org/moltis/discrawl)
Your own site
<a href="https://agentmods.dev/skills/moltis-org/moltis/discrawl"><img src="https://agentmods.dev/badge/skills/moltis-org/moltis/discrawl.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 940 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00042 $0.00940
Opus 5 $0.00021 $0.00470
Sonnet 5 $0.00008 $0.00188
Haiku 4.5 $0.00004 $0.00094

Measured 6d ago against content hash 9111afd9bd6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

discrawl scanned grade A with 0 findings 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

crates/skills/src/assets/messaging/discrawl/SKILL.md · 130 lines

How it starts

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

discrawl — Discord Guild Archive

discrawl mirrors Discord guild data (channels, threads, messages, members) into a local SQLite database for offline search and inspection.

This is different from the discord channel skill — discrawl is for archiving and searching historical guild data; the discord channel skill is for sending messages via Moltis.

Secret Safety (MANDATORY)

  • Never read, print, or send Discord bot tokens to LLM context.
  • Never ask the user to paste tokens into chat.
  • The user must set DISCORD_BOT_TOKEN in their environment or Moltis credential store manually.
  • To verify credentials, only use: discrawl doctor.

One-Time User Setup (user runs these outside the agent)

  1. Create a Discord application at https://discord.com/developers/applications
  2. Create a bot user and copy the bot token
  3. Set the token:
    • Via env var: export DISCORD_BOT_TOKEN=<token>
    • Via Moltis credential store (web UI → Settings → Environment Variables)
    • Via discrawl config: ~/.discrawl/config.toml
  4. Invite the bot to target guilds with message read permissions
  5. Verify: discrawl doctor

Health Check

discrawl doctor

Sync Guild Data

discrawl sync --guild <guild_id>
discrawl sync --guild <guild_id> --full    # Full resync
discrawl sync --all                         # All configured guilds

List Guilds and Channels

discrawl guilds
discrawl guilds --json
discrawl channels --guild <guild_id>
discrawl channels --guild <guild_id> --json

Search Messages

discrawl search "query"
discrawl search "query" --guild <guild_id>
discrawl search "query" --channel <channel_id> --limit 20
discrawl search "query" --json
discrawl search "query" --after 2026-01-01 --before 2026-04-28

Export and Backup

discrawl snapshot --guild <guild_id>             # NDJSON snapshot for Git backup
discrawl snapshot --guild <guild_id> --output /path/to/export/

SQL Queries

discrawl sql "SELECT * FROM messages WHERE content LIKE '%keyword%' ORDER BY timestamp DESC LIMIT 10"

Read the full file on GitHub · 130 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. 6d ago First seen · 130 lines · 42 tokens per session scan A 9111afd9bd6b

Subscribe to this mod's changes

discrawl is a skill published in the GitHub repository moltis-org/moltis (2,845 stars, last pushed 3d ago), licensed MIT. It adds 42 tokens to every session and 940 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

slack-agent-flow

Let an existing Slack agent create new agents that arrive as their own Slack bots — provisioned app, operator DM, and a shared three-way room, hot-started without a host restart.

nanocoai/nanoclaw · 43 tokens

add-codex

Use Codex (OpenAI's codex app-server) as a full agent provider — planning, tool orchestration, MCP tools, server-side history, session resume — alongside or instead of Claude. ChatGPT subscription or OpenAI API key, vault-only via OneCLI. Per-group via ncl groups config update --provider codex. Distinct from using…

nanocoai/nanoclaw · 91 tokens

youtube-search

Use when the user wants to find YouTube content on any topic: searching for videos or channels, finding creators who cover a subject, discovering tutorials, talks, or expert discussions, or looking up a channel by name or handle. Also use proactively when the user wants to research a topic and YouTube is a good…

ZeroPointRepo/youtube-skills · 78 tokens

slack-tools

Slack workspace management and automation specialist.

RightNow-AI/openfang · 10 tokens

review-pr

Walk Sean through an incoming waku-agent PR or issue and present it his way — four fixed sections: what this is, why it matters, how HE can test it with you as copilot, and are we ready to merge / reply / close and why. Use whenever Sean asks to look at, test, triage, or decide on a pull request or an issue, and…

ShenSeanChen/waku-agent · 93 tokens

openapi-expert

OpenAPI/Swagger expert for API specification design, validation, and code generation.

RightNow-AI/openfang · 20 tokens