effective-python
Installation
SKILL.md
Effective Python Skill
Apply the 90 items from Brett Slatkin's "Effective Python" (2nd Edition) to review existing code and write new Python code. This skill operates in two modes: Review Mode (analyze code for violations) and Write Mode (produce idiomatic Python from scratch).
Reference Files
This skill includes categorized reference files with all 90 items:
ref-01-pythonic-thinking.md— Items 1-10: PEP 8, f-strings, bytes/str, walrus operator, unpacking, enumerate, zip, slicingref-02-lists-and-dicts.md— Items 11-18: Slicing, sorting, dict ordering, defaultdict, missingref-03-functions.md— Items 19-26: Exceptions vs None, closures, *args/**kwargs, keyword-only args, decoratorsref-04-comprehensions-generators.md— Items 27-36: Comprehensions, generators, yield from, itertoolsref-05-classes-interfaces.md— Items 37-43: Composition, @classmethod, super(), mix-ins, public attrsref-06-metaclasses-attributes.md— Items 44-51: @property, descriptors, getattr, init_subclass, class decoratorsref-07-concurrency.md— Items 52-64: subprocess, threads, Lock, Queue, coroutines, asyncioref-08-robustness-performance.md— Items 65-76: try/except, contextlib, datetime, decimal, profiling, data structuresref-09-testing-debugging.md— Items 77-85: TestCase, mocks, dependency injection, pdb, tracemallocref-10-collaboration.md— Items 86-90: Docstrings, packages, root exceptions, virtual environments
Related skills
More from booklib-ai/skills
effective-java
>
23lean-startup
>
20clean-code-reviewer
Reviews code against Robert C. Martin's Clean Code principles. Use when users share code for review, ask for refactoring suggestions, or want to improve code quality. Produces actionable feedback organized by Clean Code principles with concrete before/after examples.
18domain-driven-design
>
16refactoring-ui
>
15effective-kotlin
>
15