python-storage-abstraction
Python Protocol-based storage abstraction pattern enabling dependency injection and testable file operations. Use this skill when implementing storage backends, adding file operations to services, or writing tests that need to avoid filesystem side effects. The pattern uses Python's typing.Protocol for structural subtyping, allowing any class with matching methods to satisfy the interface without explicit inheritance.
Installation and usage
Python Protocol-based storage abstraction pattern enabling dependency injection and testable file operations. Use this skill when implementing storage backends, adding file operations to services, or writing tests that need to avoid filesystem side effects. The pattern uses Python's typing.Protocol for structural subtyping, allowing any class with matching methods to satisfy the interface without explicit inheritance.
安裝後,您可以通過在終端運行以下命令來使用此技能:
skills use python-storage-abstraction