Split the function into focused helpers with an explicit boundary between concerns: validate input, gather data through a persistence collaborator, compute pure policy, render Markdown, and send through a Telegram transport. Pass collaborators in, keep side effects at the edges, and test the helpers and orchestration separately.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Python Best Practices?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-python-best-practices)
Split the function into focused helpers with an explicit boundary between concerns: validate input, gather data through a persistence collaborator, compute pure policy, render Markdown, and send through a Telegram transport. Pass collaborators in, keep side effects at the edges, and test the helpers and orchestration separately.