bot-module-development

Create Open Guard Discord bot protection modules with commands, events, and database entities.

Updated Jan 9, 2026
One-click install
npx skills add https://github.com/ErdemGKSL/open-guard-rs --skill bot-module-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bot-module-development
Source: https://github.com/ErdemGKSL/open-guard-rs/tree/main/.opencode/skill/bot-module-development
Command: npx skills add https://github.com/ErdemGKSL/open-guard-rs --skill bot-module-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers in creating new protection modules for the Open Guard Discord bot, outlining structured module development, testing, and integration practices.

Core Features & Use Cases

  • Module scaffolding: Create a modular skeleton with commands, events, and database entities.
  • Registration & configuration: Add module registration, config options, and enablement checks.
  • Event-driven protection: Implement event handlers for Discord events and enforcement logic.
  • Safe interaction patterns: Enforce non-blocking command handlers and separate interaction handling.

Quick Start

Create a new protection module named "my_module" with a commands folder, an events folder, and module registration. Then implement a basic command and a simple event handler following the patterns shown in this skill, and wire it into the module loader.

Frequently Asked Questions about bot-module-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Discord bot module for Open Guard in Rust?

To build a Discord bot module for Open Guard, create a modular skeleton with commands, events, and database entities, then wire it into the module loader following project conventions.

How do I register and configure a new protection module in an existing Rust Discord bot?

You register and configure a protection module by adding module registration, defining config options, and implementing enablement checks to ensure the module operates safely within the bot.

Do I need Rust tooling to develop Open Guard protection modules?

Yes, developing Open Guard protection modules requires Rust tooling and adherence to repository project conventions, including safe interaction patterns and non-blocking command handlers.

What is event-driven protection logic in Discord bot module development?

Event-driven protection logic involves implementing event handlers for Discord events and enforcement rules, ensuring commands remain non-blocking and interaction handling is separated.

What's the best way to structure database entities and migrations for a Discord bot module?

The best way to structure database entities and migrations is to include them directly within the module scaffolding, ensuring commands, events, and data access are modular and isolated.

Why should I separate interaction handling when creating Discord bot command handlers?

Separating interaction handling enforces non-blocking command handlers, preventing the bot from freezing during enforcement logic and maintaining safe interaction patterns.