.agents/skills/dignified-python/references/checklists.md
Read when: Final review before committing Python code, need quick lookup of requirements
try/excepttry/except around the authoritative operation clearer?Default: Let exceptions bubble up
.exists() because filesystem presence matters for this operation?.resolve(), did I pass strict=True?.is_relative_to() as a boolean check instead of wrapping it for ValueError?pathlib.Path, not os.path?encoding="utf-8"?typing.cast()Default: Always add runtime assertion before cast when cost is trivial
Default for internal application code you own: ABC. Default for external library facades: Protocol.
Default: Break the API and migrate callsites immediately
Default: Module-level imports
__all__ exports?Default: Import from canonical location, never re-export
Default: Inline single-use computations at the call site; access object attributes directly
Default: Require explicit values; eliminate unused defaults
* after the first (or ctx) parameter?self/ctx positional?Default: All parameters after the first should be keyword-only
Path() construction)?If any answer is "yes", wrap in a @cache-decorated function instead.