- Home
- Skills
- Sidetoolco
- Org Charts
- Python Pro
python-pro_skill
1
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill sidetoolco/org-charts --skill python-pro- SKILL.md1.4 KB
Overview
This skill makes you productive with idiomatic, high-performance Python. I provide refactoring, advanced feature implementations (decorators, metaclasses, async), and rigorous testing to deliver maintainable code. The focus is on clear type-hinted code, measurable performance gains, and pragmatic design patterns.
How this skill works
I inspect your codebase or snippet, identify hotspots and anti-patterns, and propose concrete changes using Python best practices. Deliverables include rewritten modules with type hints, pytest suites and fixtures, simple benchmarks, and profiling summaries when required. I prefer standard library solutions first and introduce third-party tools only when they add clear value.
When to use it
- Refactoring legacy Python to be more idiomatic and maintainable
- Optimizing CPU or memory bottlenecks in critical code paths
- Implementing advanced patterns: decorators, descriptors, metaclasses
- Converting synchronous code to async/await or adding concurrency
- Raising test coverage and adding robust edge-case tests
Best practices
- Follow PEP 8 and type hints; run mypy and linters as part of CI
- Prefer composition and small, single-responsibility functions
- Use generators and streaming APIs for large datasets to save memory
- Add focused benchmarks and profile before optimizing
- Write pytest tests with fixtures and mocks for deterministic behavior
Example use cases
- Refactor a tangled module into clean classes/functions with type hints and comprehensive tests
- Add async/await support to I/O-bound services and provide concurrency patterns
- Create a decorator-based caching layer with configurable expiration and tests
- Profile an algorithmic hotspot, propose algorithmic or data-structure changes, and show benchmark improvements
- Design and implement dependency-injection patterns for easier testing and extensibility
FAQ
I prefer non-breaking changes. If API changes are needed, I document migration steps and provide compatibility shims where practical.
Which profiling tools do you use?
I use the standard library's timeit and cProfile for quick analysis, psutil for resource measurement, and recommend pyinstrument or scalene for deeper insights when needed.