programming/python-patterns/SKILL.md
Pythonic patterns and best practices for writing readable, robust Python: typing, error handling, data modeling, iteration, resource management, project layout, and tooling. Use when writing or reviewing Python code and APIs.
npx skillsauth add aeondave/malskill python-patternsInstall 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.
This skill is for day-to-day Python code quality: readability, correctness, maintainability.
If you are doing asyncio-heavy work, prefer python-async-patterns for structured concurrency, cancellation, and backpressure.
raise ... from e).None sentinel usedis None / is not None (not == None)except clauses; no bare except:pathlib.Path where appropriateLoad on demand:
references/typing.md — modern typing (3.11), aliases, Protocol, genericsreferences/errors.md — exception hygiene, custom errors, chaining, boundariesreferences/data-models.md — dataclasses, NamedTuple, immutability, validationreferences/iteration.md — comprehensions vs loops, generators, itertoolsreferences/resources.md — context managers, cleanup, temp filesreferences/performance.md — simple perf rules (avoid premature optimization)references/layout-tooling.md — project layout, ruff/mypy/pytest notesdevelopment
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.