discord-archive: Skill for Claude Code

.claude/skills/recall/SKILL.md

recall is a skill for Claude Code from wdwdev/discord-archive. It costs 102 tokens per session (1,756 once invoked), scanned A, original, MIT.

A retrieval skill for searching a stored archive of Discord messages, including users, servers, conversations, relationships, and attachments.

In plain words
What is it for?
Use it to locate messages, filter by people or dates, investigate server activity, reconstruct surrounding conversations, and retrieve archived media links.
Why use it?
It combines meaning-based search, database queries, conversation context, and interaction links to find relevant archived information.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is wdwdev/discord-archive's own configuration. It tells Claude Code how to work on discord-archive itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything discord-archive configures →

Reuse

Borrowing it

Nothing to install: this file belongs to wdwdev/discord-archive. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/wdwdev/discord-archive/main/.claude/skills/recall/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/wdwdev/discord-archive

Made for: Claude Code.

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 recall

README.md
[![agentmods](https://agentmods.dev/badge/skills/wdwdev/discord-archive/recall/github.svg)](https://agentmods.dev/skills/wdwdev/discord-archive/recall)
Your own site
<a href="https://agentmods.dev/skills/wdwdev/discord-archive/recall"><img src="https://agentmods.dev/badge/skills/wdwdev/discord-archive/recall/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 recall

Your own site · 80×15
<a href="https://agentmods.dev/skills/wdwdev/discord-archive/recall"><img src="https://agentmods.dev/badge/skills/wdwdev/discord-archive/recall.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00102 $0.01756
Opus 5.5 $0.00041 $0.00702
Sonnet 5.5 $0.00020 $0.00351
Haiku 4.5 $0.00010 $0.00176

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

Security

Grade A, and why

recall scanned grade A 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Pipeline: `sql_query` (find attachments) → `refresh_attachment_url` → `curl -sL URL -o /tmp/file` → `Read` tool to view
.claude/skills/recall/SKILL.md · 100 lines

How it starts

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

Discord Archive Recall

Retrieve information from a Discord message archive using semantic_search (vector similarity), graph_search (vector + interaction graph expansion), sql_query (read-only PostgreSQL), get_context_window (conversation around a message), and refresh_attachment_url.

Argument

$ARGUMENTS

Tools

semantic_search

Vector similarity search over message chunks.

  • Required: query (natural language)
  • Key params: limit (default 20), guild_id, channel_id, author_id, after/before (ISO datetime), has_attachments (bool — true finds image/media chunks), include_text (bool), include_message_ids (bool — needed to map a hit to attachments or a get_context_window anchor)
  • Always set include_text: true to avoid extra SQL round-trips.
  • Distance (squared L2 on unit vectors = 2 − 2·cosine; lower = more similar): < 0.65 strong, 0.65–0.90 useful, 0.90–1.05 weak — corroborate with SQL, ≥ 1.05 noise. A nonsense query floors at ~0.98, so anything ≥ 1.0 is no better than random. Judge distances within a result set too — they are not comparable across different instruction values or languages (ZH matches run ~0.1–0.3 lower than EN).
  • Query in the language of the target community. ZH→ZH retrieval is excellent; EN↔ZH does NOT bridge (an English query against a Chinese guild latches onto emoji shortcodes, filenames, and stray Latin tokens instead of meaning). Translate the query first.
  • Semantic search's niche is content whose wording you can't guess (self-descriptions, causal backstory, paraphrased memories). For facts reachable by keyword, a scoped SQL ILIKE is usually as good and cheaper. Semantic calls are expensive (seconds, not ms) — ground with SQL first, then spend them deliberately.

graph_search

Semantic search, then a second semantic search scoped to the seed authors' interaction neighborhood — surfaces on-topic chunks from the people the seeds talk to.

  • Required: query (natural language)
  • Key params: limit (default 20), expansion_hops (default 1), guild_id, include_text (boolean), min_edge_weight (default 2), max_distance (default 0.9 — expansion relevance gate)
  • Always set include_text: true to avoid extra SQL round-trips.
  • Returns two types of results, both with real distance: "source": "seed" (plain vector search) and "source": "graph_expansion" (chunks by graph neighbors that are also semantically on-topic; each carries edge_weight and expansion_hop).
  • How expansion works now: it walks the reply/mention graph from the seed authors to their connected users (bots and the "Deleted User" sentinel excluded), then runs the query again restricted to those users within the seeds' time window. So expansion is the neighbors' relevant chunks, not whatever their best-connected contacts happened to say. Expansion distances run a bit higher than seeds (the author restriction removes the globally-closest chunks) — judge them against the same calibration, and use max_distance to widen/tighten (raise toward 1.0 for recall, lower toward 0.8 for precision). If seeds themselves are weak, expansion is correctly empty.
  • Use it to pull in the other side of a discussion or a participant who phrased things differently, without a separate timeline query. For pure topic recall, semantic_search with a higher limit is still simpler.

Read the full file on GitHub · 100 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 100 lines · 102 tokens per session scan A 3b7d1dfd405d

Subscribe to this mod's changes

recall is a skill published in the GitHub repository wdwdev/discord-archive (2 stars, last pushed 4mo ago), licensed MIT. It adds 102 tokens to every session and 1,756 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

recall compared with skills from other repositories

recall next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
recallwdwdev/discord-archiveSkill24mo agoMITA102Claude Code
amazon aurora dsqlawslabs/mcpSkill9.9kyesterdayApache-2.0A46Claude Code
erp-sqlmicrosoft/Dataverse-skillsSkill254yesterdayMITA69Claude Code
dv-querymicrosoft/Dataverse-skillsSkill254yesterdayMITA82Claude Code
solr-semantic-searchgriddynamics/rosettaSkill370yesterdayApache-2.0A24Claude Code, Codex
haiku-ragggozad/haiku.ragSkill650yesterdayMITA76Claude Code
solr-schemagriddynamics/rosettaSkill370yesterdayApache-2.0A25Claude Code, Codex