Repository Builder
CommunityAbstract data access with clean repositories.
Authorjzallen
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers implement the Repository Pattern, abstracting data access logic from business logic. It ensures a clean separation of concerns, making your application more testable, maintainable, and independent of specific database technologies, ultimately simplifying data persistence.
Core Features & Use Cases
- Interface-First Design: Define clear data access contracts using Python
Protocolinterfaces. - Business Model Isolation: Ensure repositories work exclusively with business models, preventing database implementation details from leaking.
- Mapper Integration: Seamlessly convert between business and ORM models using dedicated mappers for data transformation.
- Use Case: Generate a Python
IProductRepositoryinterface and aSQLAlchemyProductRepositoryimplementation, includingcreate,get_by_id, andupdatemethods, ensuring proper use of mappers and type hints.
Quick Start
Create a Python IUserRepository interface and a PostgreSQLUserRepository implementation for a User model, including methods to create and get_by_email, using a UserMapper.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Repository Builder Download link: https://github.com/jzallen/fred_simulations/archive/main.zip#repository-builder Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.