# Python Development

> You MUST activate this skill when working on Python projects

- Skill: `sammcj/python-development` (Agent Skill)
- Install (CLI): `npx skillmds@latest add sammcj/python-development`
- Raw SKILL.md: https://api.skillmd.com/api/skills/sammcj/python-development/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: sammcj (https://skillmd.com/u/sammcj)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/sammcj/python-development

---


# Python

- Favour Python 3.14+ features. Use `uv` for .venv management. Use `uvx ty check` for type checking
- Type hints for all functions. Dataclasses for data structures. Pathlib over os.path. f-strings
- For standalone scripts that have a few dependencies, use PEP 723 to declare dependencies in a TOML block inside `# ///` markers (e.g. `# /// script\n# dependencies = [\n#   "beautifulsoup4",\n# ]\n# ///`)

