pyrofork-docs
Pyrofork Documentation Skill
This skill is a reusable, documentation-first operating guide for Pyrofork. Use it to implement features, answer questions, debug issues, and generate correct examples without needing the full docs site.
Core operating rules
- Prefer asynchronous usage (
async def,await,async with Client(...)) unless a clear sync requirement exists. - Treat
Clientlifecycle explicitly:- one-shot scripts:
async with Client(...) - long-running bots: decorators/handlers +
app.run()
- one-shot scripts:
- Handle API failures explicitly; never swallow broad
RPCErrorwithout logging/feedback. - For update routing, design filters + groups intentionally (
group, propagation control). - Keep session handling safe: never run multiple processes against the same
.sessionfile.
Fast task routing
Pick reference files based on task type:
More from edm115/skills
pyrofork-api
Use when implementing, debugging, or reviewing Pyrofork API usage and internals from docs/source/api, including Client, handlers, decorators, filters, enums, and RPC error catalogs. Triggers on requests for exact signatures, parameters, types, enum values, filter behavior, or handler/decorator wiring.
4pyrofork-best-practices
Use when building Telegram automations with Pyrofork and needing practical patterns for handlers, filters, plugins, raw API usage, and reliability.
4pyrofork-api-full-reference
Offline API backup skill for Pyrofork, extracted from source docstrings across pyrogram modules. Warning - the content is massive and should be queried with tools like `rg`/`grep` for specific references rather than read sequentially. Only load sections relevant to your needs.
3rtk
Must use whenever you're about to run a command in the terminal to have faster and more efficient output, all while reducing tokens in your context window.
1