add-discord — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited add-discord (Agent Skill) and scored it 96/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 1 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 1 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Adds Discord bot support via the Chat SDK bridge.
NanoClaw doesn't ship channels in trunk. This skill copies the Discord adapter in from the channels branch.
Skip to Credentials if all of these are already in place:
src/channels/discord.ts existssrc/channels/discord-registration.test.ts existssrc/channels/index.ts contains import './discord.js';@chat-adapter/discord is listed in package.json dependenciesOtherwise continue. Every step below is safe to re-run.
git fetch origin channelsgit show origin/channels:src/channels/discord.ts > src/channels/discord.ts
git show origin/channels:src/channels/discord-registration.test.ts > src/channels/discord-registration.test.tsAppend to src/channels/index.ts (skip if the line is already present):
import './discord.js';pnpm install @chat-adapter/[email protected]pnpm run build
pnpm exec vitest run src/channels/discord-registration.test.tsBoth must be clean before proceeding. discord-registration.test.ts is the one integration test: it imports the real channel barrel and asserts the registry contains discord. It goes red if the import './discord.js'; line is deleted or drifts, if the barrel fails to evaluate, or if @chat-adapter/discord isn't installed (the import throws) — so it also implicitly verifies the dependency from step 4. The adapter also calls core's createChatSdkBridge(...); that typed core-API consumption is guarded by pnpm run build.
botSend Messages, Read Message History, Add Reactions, Attach Files, Use Slash CommandsAll three values are required — the adapter will fail to start without DISCORD_PUBLIC_KEY and DISCORD_APPLICATION_ID.
Add to .env:
DISCORD_BOT_TOKEN=your-bot-token
DISCORD_APPLICATION_ID=your-application-id
DISCORD_PUBLIC_KEY=your-public-keySync to container: mkdir -p data/env && cp .env data/env/env
If you're in the middle of /setup, return to the setup flow now.
Otherwise, run /manage-channels to wire this channel to an agent group.
discorddiscord:{guildId}:{channelId} — both IDs are required.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.