bot-developer

Design event-driven bot architectures with state machines and distributed rate limiters.

181|30|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/erichowens/some_claude_skills --skill bot-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bot-developer
Source: https://github.com/erichowens/some_claude_skills/tree/main/.claude/skills/bot-developer
Command: npx skills add https://github.com/erichowens/some_claude_skills --skill bot-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires redis-py, asyncpg, fastapi, python-telegram-bot, rapidfuzz.

What problem does it solve?

This Skill provides expert guidance and code for building production-grade automation bots for platforms like Discord, Telegram, and Slack. It addresses challenges like rate limiting, state management in conversations, and robust moderation, ensuring your bots are scalable, secure, and reliable.

Core Features & Use Cases

  • Production-Grade Architecture: Designs event-driven bot architectures, state machines for complex conversations, and distributed rate limiters for scalability.
  • Advanced Moderation Systems: Implements point-based escalation, automatic decay, and auto-moderation rules with features like spam detection and word filtering.
  • Platform-Specific Templates: Provides production templates for Discord.py and Telegram webhooks, including proper logging, resource management, and security checklists.
  • Use Case: You need to build a Discord bot with complex multi-turn conversations and robust moderation. This Skill can provide a state machine implementation for conversation flow, a distributed rate limiter to prevent API abuse, and an auto-moderation system to manage user behavior.

Quick Start

Provide a Python state machine implementation for a Discord bot to manage a multi-step user onboarding process.

Frequently Asked Questions about bot-developer

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

FAQPage Schema
How do I build a scalable Discord bot with rate limiting and moderation?

Rate limiting and moderation for Discord bots require distributed architectures using Redis for rate-limit state and PostgreSQL for audit trails. This Skill provides production templates with event-driven design, point-based escalation rules, and async handlers using FastAPI and discord.py to handle high-volume traffic reliably.

What's the best way to implement stateful multi-turn conversations in a Telegram bot?

Stateful conversations use finite state machines to track user flow across turns. This Skill provides Python state machine implementations with asyncpg for persistent state storage and python-telegram-bot webhooks, enabling complex onboarding, form collection, and branching logic without losing context.

Can I use FastAPI and asyncpg together for a production Slack bot backend?

Yes. FastAPI handles webhook routing and async request processing while asyncpg manages stateful data in PostgreSQL. This Skill covers platform-specific templates for Slack, including proper logging, resource cleanup, and security checklists for production deployment.

How do I prevent spam and abuse in a bot without manual intervention?

Auto-moderation systems combine word filtering, spam detection, and point-based user escalation with automatic decay over time. This Skill implements these rules in Redis and PostgreSQL with event-driven triggers, enabling bots to enforce policies autonomously across Discord, Telegram, and Slack.

What are the limitations of using Redis for rate limiting at scale?

Redis rate limiters scale well for single-node deployments but require clustering and careful key expiration strategy under extreme load. This Skill addresses distributed rate-limiting patterns, failover considerations, and PostgreSQL fallback options for scenarios where consistency outweighs pure speed.

Do I need both PostgreSQL and Redis for a production bot, or can I use one?

Both serve distinct roles: PostgreSQL provides durable audit trails and complex queries for moderation history; Redis handles fast, ephemeral state like rate-limit counters and session data. This Skill shows how to layer them for reliability, though single-database setups trade durability or latency.