discord-message-guard

discord-message-guard is a skill for Claude Code, Codex from wanikua/danghuangshang. It costs 0 tokens per session (63 once invoked), scanned A, original, MIT.

A message-filtering layer for Discord, a chat platform, that checks messages before they reach AI agents. It can apply spam filters, per-user or per-channel rate limits, moderation hooks, and blocking patterns.

In plain words
What is it for?
Filtering Discord traffic, limiting message frequency, connecting moderation checks, and blocking messages that match configured patterns.
Why use it?
It prevents unwanted or excessive messages from being passed directly to agents.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Filtering Discord traffic, limiting message frequency, connecting moderation checks, and blocking messages that match configured patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wanikua/danghuangshang/discord-message-guard
About the project

danghuangshang is a multi-agent collaboration system that organizes specialized AI agents into a hierarchy modeled on historical Chinese government institutions. Users delegate tasks to these agents through platforms such as Discord or Feishu, with roles for coordination, coding, review, memory, and automation. Its catalogue entries are the project's agents and skills.

wanikua/danghuangshang · 2,701 stars · on GitHub · danghuangshang.com

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 wanikua/danghuangshang --skill discord-message-guard
Clone the repo
git clone --depth 1 https://github.com/wanikua/danghuangshang

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 discord-message-guard

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wanikua/danghuangshang/discord-message-guard"><img src="https://agentmods.dev/badge/skills/wanikua/danghuangshang/discord-message-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 63 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.00063
Opus 5 $0.00000 $0.00032
Sonnet 5 $0.00000 $0.00013
Haiku 4.5 $0.00000 $0.00006

Measured 12d ago against content hash 76f880ce6518, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

discord-message-guard 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 12d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (src/CleanHistoryManager.ts, src/DiscordMessageGuard.ts, src/index.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/discord-message-guard/SKILL.md · 15 lines

What it actually says

Discord Message Guard

Middleware skill that filters and guards Discord messages before they reach agents.

Capabilities

  • Filter spam and unwanted messages
  • Rate limiting per user/channel
  • Content moderation hooks
  • Pattern-based message blocking

Usage

This skill is automatically loaded when configured. No manual invocation needed.

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. 12d ago First seen · 15 lines · 0 tokens per session scan A 76f880ce6518

Subscribe to this mod's changes

discord-message-guard is a skill published in the GitHub repository wanikua/danghuangshang (2,701 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 63 tokens. 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

setup-discord-multibot

Configure or extend a multi-bot Discord setup for Claude Code, where each project directory is bridged to its own dedicated Discord bot. Use when the user wants to (a) add a new Discord bot for a new project, (b) initially set up the per-project Discord architecture, (c) pair a bot when the official /discord:access…

Lihan-Zhong/claude-code-discord-multibot · 179 tokens

npm-package

Opinionated TypeScript npm package template for ESM packages. Enforces src→dist builds with tsc, strict TypeScript defaults, explicit exports, and publish-safe package metadata. Relative source imports must use .ts or .tsx (never .js); tsc rewrites them via rewriteRelativeImportExtensions. Use this when creating or…

remorses/kimaki · 78 tokens

new-skill

Best practices for creating a SKILL.md file. Covers file structure, frontmatter, writing style, and where to place skills in a repository. Use when the user wants to create a new skill, update an existing skill, write a SKILL.md, or asks how skills work.

remorses/kimaki · 61 tokens

discord-expert

Expert in Discord bot development using discord.js and discord.py, slash commands, embeds, voice channels, moderation, and bot deployment. Use when the user mentions communication, community, bots, API, Discord bot, or discord.js, or when the task involves Discord Platform, Bot Development, Discord.js Bot, or…

personamanagmentlayer/pcl · 70 tokens

switch

How to take part in a Switch room. Load this skill before your first Switch action and whenever Switch comes up — the user mentions Switch, a Switch room or another Switch agent; you are asked to list, join, read or post in a room, create a room or room group, work with references, links or roles, or inspect an agent…

sandbox-quantum/switch · 125 tokens

discord-moderation

Moderation workflow for Discord guilds. Covers ban/kick/timeout operations, audit log review, ban list management, and role-based access control.

sandraschi/discord-mcp · 0 tokens