# Python Code

> Python development best practices, PEP 8, and modern Python features

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

---


# Python Code Skill

This skill is specialized for Python development, focusing on idiomatic Python (Pythonic code), performance, and typing.

## When to use this skill
- When writing or refactoring Python code (Django, FastAPI, Flask, Pandas, etc.).
- When utilizing Python's specific features like list comprehensions, generators, context managers.
- When integrating PEP 8 standards or type hints (mypy/pydantic).

## Guidelines
- Write "Pythonic" code. Use built-in functions and standard libraries where appropriate.
- Use explicit type hints for better Developer Experience (DX) and tooling support.
- Handle exceptions specifically rather than using bare `except:` clauses.
- Use virtual environments (venv, poerty, conda) for dependency management.

