Use pathlib
Use pathlib instead of os.path for file system operations
CLAUDE.md
Use pathlib.Path instead of os.path for file system operations. Path objects are more readable, support operator overloading (/), and provide a consistent API across platforms.
Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.