tg-bot-dev

Develop and maintain Telegram bot code with modularity and test-driven practices.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/kvcop/ai-kb-assistant --skill tg-bot-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tg-bot-dev
Source: https://github.com/kvcop/ai-kb-assistant/tree/main/.codex/skills/tg-bot-dev
Command: npx skills add https://github.com/kvcop/ai-kb-assistant --skill tg-bot-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the development and maintenance of the Telegram bot, ensuring changes are modular, well-tested, and frequently committed.

Core Features & Use Cases

  • Modular Development: Encourages keeping different bot components (router, keyboards, app, state) separate and focused.
  • Testing Integration: Emphasizes writing unit tests alongside new features for robust code.
  • Refactoring: Promotes lazy refactoring for small improvements and planning for larger ones.
  • Use Case: When adding a new command to the Telegram bot, use this skill to guide the implementation process, ensuring it's testable and adheres to the established principles.

Quick Start

Use the tg-bot-dev skill to implement a new callback handler in the Telegram bot.

Frequently Asked Questions about tg-bot-dev

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

FAQPage Schema
How do I maintain modularity when adding new commands to a Telegram bot?

To maintain Telegram bot modularity, keep router, keyboards, app, and state components separate and focused. This separation enforces clean architecture boundaries during development and ensures new commands remain isolated, testable, and easy to refactor.

What is control-plane vs work-plane separation in Telegram bot development?

Control-plane vs work-plane separation in Telegram bot development divides routing and state management from task execution like queue processing. This architectural pattern isolates callback data hygiene and workflow logic, yielding more maintainable and robust bot operations.

How do I implement test-driven development for Telegram bot callback handlers?

Implement test-driven development for Telegram bot callback handlers by writing unit tests alongside new features. Establish testing integration early to validate callback data hygiene and state persistence before deploying updates to the bot.

When should I refactor Telegram bot code during maintenance?

Refactor Telegram bot code during maintenance by applying lazy refactoring for small immediate improvements and planning structured phases for larger changes. Frequent commits ensure refactoring strategies remain safe and do not break existing bot commands.

Does Telegram bot state persistence require queue processing?

Telegram bot state persistence does not strictly require queue processing, but integrating queue processing supports development workflows for background tasks. Combining them ensures callback data hygiene and reliable execution of complex bot commands.

What are the limitations of lazy refactoring for Telegram bot maintenance?

The limitation of lazy refactoring for Telegram bot maintenance is its restriction to small, isolated improvements. Larger structural changes to bot commands or state persistence require planned refactoring strategies to avoid degrading modularity.