Extract a Module
For pulling a feature into its own module From the Modular Architecture AI Coding Building Block.
Extract [feature name] into its own isolated module from my current codebase. Current code location: [file path or paste relevant code] Requirements: 1. Create a clean public interface (what other modules can call) 2. Hide implementation details (private functions/classes) 3. Define clear types/interfaces for inputs and outputs 4. Add a module-level docstring explaining its purpose 5. List all external dependencies this module needs 6. Ensure no circular imports with other modules The module should be completely self-contained. I want to be able to: - Ask AI to modify just this module without loading the rest of my codebase - Run tests on this module in isolation - Swap the implementation without changing calling code My stack: [your language/framework] I'm learning, so explain each part simply.