Tgbot Test Skill — Testing skill for Claude Code
A Claude Code agent skill that tests Telegram bots end-to-end during development — from a real logged-in userbot account (Telethon), not mocks.
How to install Tgbot Test Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open xditya/tgbot-test-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Tgbot Test Skill does
A Claude Code agent skill that tests Telegram bots end-to-end during development — from a real logged-in userbot account (Telethon), not mocks.
Alternatives in Testing
- Debug — You are tasked with helping debug issues during manual testing or implementation 10k ★
- TDD Diagnostics.V1 — Follow strict TDD stages 272 ★
- Test Driven Development.SKILL — Enforces TDD discipline with RED-GREEN-REFACTOR cycle 262 ★
README
tgbot-test-skill
A [Claude Code](https://claude.com/claude-code) agent skill that tests Telegram bots end-to-end during development — from a **real logged-in userbot account** (Telethon), not mocks.
The agent discovers your bot's command handlers in the codebase, sends the actual commands from a user account, captures the bot's replies (including in-place edits and inline keyboards), clicks buttons, verifies everything against the handler code, and reports a pass/fail table. Attach it to a live dev session for a continuous edit → restart → re-test feedback loop.
What's inside
| Path | Purpose |
|---|---|
SKILL.md |
The skill — workflow, gotchas, troubleshooting |
scripts/tg_tester.py |
The driver: setup / check / send / click / run |
reference/handler-discovery.md |
Handler-registration grep patterns for ~30 bot frameworks (PTB, aiogram, Pyrogram, Telethon, grammY, Telegraf, teloxide, gotgbot, …) |
examples/sample-spec.json |
Example batch test spec |
Install
npx skills add xditya/tgbot-test-skill
Or manually: copy this repo into `~/.claude/skills/tg-bot-tester/` (global) or `/.claude/skills/tg-bot-tester/` (per project).
Requirements
- Python 3.8+ and
pip install -U telethon - Telegram API credentials from https://my.telegram.org/apps
- A Telegram account for the userbot — a spare/test account is strongly recommended
Quick start
# one-time interactive login (prompts for phone + login code)
python scripts/tg_tester.py setup
# verify
python scripts/tg_tester.py check
# probe a single command
python scripts/tg_tester.py send @MyDevBot "/start" --expect "(?i)welcome"
# run a batch spec
python scripts/tg_tester.py run examples/sample-spec.json --json results.json
Or just ask Claude Code: *"test my telegram bot"* — the skill auto-loads.
Security
`setup` stores your API ID, API hash, and session string in `~/.tg-bot-tester/credentials.json` (override the directory with `TG
Related Skills
Testing Best Practices
A Claude Code skill for enforcing testing best practices: TDD, property-based testing, real objects over mocks
Agent Shopping Arena
GPT-6 Sol vs Claude Opus 5.5: same Playwright harness, same 10 shopping tasks on real DTC stores, plus a live
Epic Dev Epic End Tests
Epic end-of-development test validation: NFR assessment, test quality review, and traceability quality gate
Piv
Self-recursive development loop with real auth testing, live DB research, 100% test pass requirements, and MAN
Ng Mocks Testing Skill
Claude Code skill for writing Angular unit tests with ng-mocks — MockBuilder, MockRender, NgRx effects, and an
Test Fixtures
Run this repo's LLM-based test fixtures (fixtures/scoring and fixtures/commands) end to end and report pass/fa
Related Agents
Chadi Integrator
Wave 2 integration specialist — joins parallel lanes: swaps frontend mocks for real API calls, wires env/crede
n8n Especialista
Construye y despliega workflows de n8n al estilo del Framework Bot (lemut_n8n): bots de Telegram con RAG, agen
Integration Test Author
Specialist for integration tests. Use for server actions against a real local Supabase, route handlers end-to-