agentleFS
CarbeneAICarbeneAI/Forge/.claude/skills/DiscordAdmin/SKILL.md

DiscordAdmin

Skill9 starsChanged 6 months agoMITView on GitHub

Discord server administration and community management. USE WHEN user mentions discord admin, server management, discord moderation, community management, discord announcements, member management, role management, OR wants to manage the Cyber Defense Tactics Discord server.

  • Reads credentials

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Role Sync: - Add/remove roles based on subscription tier

    line 68
  2. Distinctive:

    Member Lookup: - Check if user is server member and their roles

    line 69
  3. Very specific:

    All requests require Authorization: Bot {BOT_TOKEN} header.

    line 111

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

DiscordAdmin

Discord server administration skill for managing the Cyber Defense Tactics community Discord server.

Workflow Routing

WorkflowTriggerFile
Announce"post announcement", "discord announcement"workflows/Announce.md
ModerateUser"kick", "ban", "mute", "warn user"workflows/ModerateUser.md
ManageRoles"add role", "remove role", "role sync"workflows/ManageRoles.md
ServerStats"discord stats", "member count", "server analytics"workflows/ServerStats.md

Configuration

Environment Variables (in ~/.claude/.env)

# Discord Bot (Cyber Defense Tactics)
DISCORD_BOT_TOKEN=your_bot_token_here
DISCORD_GUILD_ID=1462915757401706617

# Role IDs
DISCORD_ROLE_PREMIUM=1463398729972449352
DISCORD_ROLE_MENTORSHIP=1463399070298275873
DISCORD_ROLE_ENTERPRISE=1463399178506993685

Server Structure

Guild ID: 1462915757401706617

Channels (Public):

  • #welcome
  • #introductions
  • #general-discussion
  • #free-resources
  • #job-postings
  • #wins-and-celebrations

Channels (Premium - role-gated):

  • #premium-lounge
  • #detection-engineering
  • #ai-tools-and-tips
  • #career-strategy
  • #course-discussion

Channels (Mentorship - role-gated):

  • #mentorship-cohort
  • #mentor-office-hours (voice)

Role Hierarchy

RoleIDAuto-assigned
Premium1463398729972449352On premium subscription
Mentorship1463399070298275873On mentorship subscription
Enterprise1463399178506993685On enterprise subscription

Capabilities

Currently Implemented

  • Role Sync - Add/remove roles based on subscription tier
  • Member Lookup - Check if user is server member and their roles

Implemented Capabilities

  • Role Sync - Add/remove roles based on subscription tier
  • Member Lookup - Check if user is server member and their roles
  • Moderation - Timeout, kick, ban with audit logging
  • Announcements - Post messages and embeds to channels
  • Analytics - Server stats, member counts, role distribution

Planned Capabilities

  • Welcome - Auto-greet new members, send onboarding DM
  • AI Moderation - Auto-detect spam, toxicity, scam links
  • Real-time Gateway - WebSocket connection for live events

API Reference

Discord API v10

Base URL: https://discord.com/api/v10

Common Endpoints

// Get guild member
GET /guilds/{guild_id}/members/{user_id}

// Add role to member
PUT /guilds/{guild_id}/members/{user_id}/roles/{role_id}

// Remove role from member
DELETE /guilds/{guild_id}/members/{user_id}/roles/{role_id}

// Get guild channels
GET /guilds/{guild_id}/channels

// Send message to channel
POST /channels/{channel_id}/messages

// Get guild info
GET /guilds/{guild_id}

Authentication

All requests require Authorization: Bot {BOT_TOKEN} header.

Examples

Example 1: Post an announcement

User: "Post an announcement in the general channel about the new course launch"
→ Invokes Announce workflow
→ Formats message with branding
→ Posts to #general-discussion
→ Confirms with message link

Example 2: Check server stats

User: "How many members do we have in Discord?"
→ Invokes ServerStats workflow
→ Fetches guild info via API
→ Returns member count, online count, role distribution

Example 3: Sync a user's role

User: "Add premium role to Discord user 123456789"
→ Invokes ManageRoles workflow
→ Calls Discord API to add role
→ Confirms success

Existing Integration

The bot is already integrated with the Cyber Defense Tactics website:

  • Webhook: /api/webhooks/discord - handles role sync from Stripe subscriptions
  • Flow: Stripe webhook → Update DB tier → Sync Discord role

Security Notes

  • Bot token is stored in environment variables (never committed)
  • Internal API key required for webhook calls
  • Role management restricted to subscription-related roles
  • Admin commands require verification of user permissions

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.