dot_claude/skills/python-expert/SKILL.md
Use when needing idiomatic, high-performance Python (3.14+) guidance using the Astral stack (uv, ruff, ty).
npx skillsauth add nijaru/dotfiles python-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
uv for management, ruff for linting/formatting, ty for type checking.pip: All dependencies and environments are managed via uv.threading.ruff check, ruff format, and ty check.| Task | Command | Standard |
| :--- | :--- | :--- |
| Add Dep | uv add <package> | Automatically syncs uv.lock. |
| Lint/Format | uv run ruff check --fix && uv run ruff format | Combined step for all files. |
| Type Check | uv run ty check . | 100x faster than mypy. High signal. |
| Run | uv run <script.py> | Implicit environment management. |
threading: Use standard threads for heavy CPU tasks previously requiring multiprocessing.t"..." (PEP 750) for safe interpolation (SQL, HTML).pyproject.toml is the only source of truth. No requirements.txt, setup.py, or tox.ini.ruff).ruff (isort rules enabled).t-strings for structured data only.ty is authoritative over mypy.ruff check --all-features.ruff format.uv run pytest.uv run.| Excuse | Reality |
| :--- | :--- |
| "I'll use pip" | Violates project isolation. Always use uv. |
| "Mypy said it's okay" | ty is faster and more accurate for 2026 idioms. Use ty. |
| "GIL is blocking" | You're on Python 3.14. Enable free-threaded mode and use threads. |
development
Use after completing a bug fix, feature, refactor, or tk task when the first implementation taught enough context to replace it with a simpler, cleaner, or more coherent version before finalizing.
development
Use when writing, migrating, or reviewing Zig code across recent stable versions (0.14-0.16), especially to correct stale syntax or stdlib, build.zig, allocator, formatting, or runtime API knowledge.
documentation
Use when reviewing or revising text (prose, docs, commits) to remove AI patterns and improve voice/clarity.
content-media
Use when fetching X/Twitter post content by URL, or searching for recent X posts.