repository-patterns
OfficialStreamline Madoc TS data access patterns.
Authordigirati-co-uk
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses inconsistent data access in Madoc TS repositories, preventing bugs from ad-hoc queries and ensuring reliable mapping to domain models.
Core Features & Use Cases
- Query Reuse and Static Helpers: Leverage shared queries from src/database/queries for consistent SQL operations across repositories.
- Domain Model Mapping: Extend BaseRepository to map raw rows to structured models like projects or updates.
- Use Case: When adding a new feature to fetch project metadata, use this Skill to refactor the project-repository.ts with reusable mutations and proper mapping, reducing duplication in services/madoc-ts.
Quick Start
Use the repository-patterns skill to refactor the data access method in project-repository.ts for handling user permissions.
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-patterns Download link: https://github.com/digirati-co-uk/madoc-platform/archive/main.zip#repository-patterns 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 471,000+ vetted skills library on demand.