# Python Style

> Enforce Python code style conventions (Black, isort, type hints)

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

---


# Python Style Skill

## Rules

1. Format all Python code with **Black** (line length 88).
2. Sort imports with **isort** (profile: black).
3. Add type hints to all function signatures.
4. Use `pathlib.Path` instead of `os.path` for file operations.
5. Prefer f-strings over `.format()` or `%` formatting.
6. Use `dataclasses` or `pydantic` models instead of plain dicts for structured data.

