Search

PythonReactSEOPDF
OpenClaw

discord-context

Sync and cache per-thread context for Discord Forum channels. Use when handling /discord-context commands to poll active threads, list cached context, inspect a thread cache, or link a thread to a memory QMD file.

demitrim0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install demitrim/discord-context

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

discord-context

Run node {baseDir}/scripts/discord-context-cli.js <command> ....

Commands

  • poll [--guild <id>] [--forum <id>] [--workspace <path>]

    • Pull active threads from Discord and refresh cache for new/updated threads.
    • Requires DISCORD_TOKEN plus guild/forum IDs (flags or env vars).
  • context [threadId] [--workspace <path>] [--json]

    • Without threadId: list cached threads.
    • With threadId: print cached context and metadata for one thread.
  • link <threadId> <qmdName> [--workspace <path>]

    • Link a thread to memory/<qmdName>.md and refresh cached context text.

Environment

  • DISCORD_TOKEN (required for poll)
  • DISCORD_GUILD_ID (default guild id for poll)
  • DISCORD_FORUM_CHANNEL_ID (default forum id for poll)
  • OPENCLAW_WORKSPACE (defaults to ~/.openclaw/workspace)

Security Rules

  • Never hardcode Discord tokens.
  • Accept only numeric thread/guild/forum IDs.
  • Accept only [a-zA-Z0-9_-]+ for qmdName.
  • Keep all reads/writes inside the workspace memory/ tree.

Paths

  • Cache metadata: memory/discord-cache/thread-<id>.json
  • Cache text: memory/discord-cache/thread-<id>-context.txt
  • Source context files: memory/*.md

Source information

Source
github
Repository
openclaw/skills
Path
skills/demitrim/discord-context
Version
—
Commit
982748e9ee238e3f6b1cca75b5596f479f84f443
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# discord-context

Run `node {baseDir}/scripts/discord-context-cli.js <command> ...`.

## Commands

- `poll [--guild <id>] [--forum <id>] [--workspace <path>]`
  - Pull active threads from Discord and refresh cache for new/updated threads.
  - Requires `DISCORD_TOKEN` plus guild/forum IDs (flags or env vars).

- `context [threadId] [--workspace <path>] [--json]`
  - Without `threadId`: list cached threads.
  - With `threadId`: print cached context and metadata for one thread.

- `link <threadId> <qmdName> [--workspace <path>]`
  - Link a thread to `memory/<qmdName>.md` and refresh cached context text.

## Environment

- `DISCORD_TOKEN` (required for `poll`)
- `DISCORD_GUILD_ID` (default guild id for `poll`)
- `DISCORD_FORUM_CHANNEL_ID` (default forum id for `poll`)
- `OPENCLAW_WORKSPACE` (defaults to `~/.openclaw/workspace`)

## Security Rules

- Never hardcode Discord tokens.
- Accept only numeric thread/guild/forum IDs.
- Accept only `[a-zA-Z0-9_-]+` for `qmdName`.
- Keep all reads/writes inside the workspace `memory/` tree.

## Paths

- Cache metadata: `memory/discord-cache/thread-<id>.json`
- Cache text: `memory/discord-cache/thread-<id>-context.txt`
- Source context files: `memory/*.md`

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.