.agents/skills/repository-patterns/SKILL.md
Work on Madoc TS repository classes and data access patterns. Use when adding repository methods, refactoring DB access, or updating repository/query boundaries in services/madoc-ts.
npx skillsauth add digirati-co-uk/madoc-platform repository-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Describe repository structure and usage so data access changes follow existing patterns and mappings.
src/repositorysrc/database/queriesservices/madoc-ts/src/repository/services/madoc-ts/src/repository/base-repository.tsservices/madoc-ts/src/repository/project-repository.tsservices/madoc-ts/src/database/queries/BaseRepository to share a Slonik connection and optional flags.queries and mutations as static helpers and expose instance methods that map results to domain models.src/database/queries are reused for common SQL fragments.services/madoc-ts/src/repository/.queries/mutations helpers to reuse.mapProjectUpdate) to normalize result shapes.queries/mutationstools
Work on Madoc TS shared utility helpers (JWT, metadata, errors, IIIF helpers, auth helpers). Use when changing core utility functions or shared helpers in services/madoc-ts.
development
Work on Madoc TS shared type definitions and schema contracts. Use when updating TypeScript types, JSON schema shapes, or cross-layer data contracts in services/madoc-ts.
tools
Understand and extend Madoc TS task automation, including bots and task-related extensions. Use when adding task automation, bot behavior, or task metadata resolution in services/madoc-ts.
development
Work on Madoc TS site SSR pipeline, HTML template injection, and site render data wiring. Use when changing site SSR behavior, template tokens, or site SSR data wiring in services/madoc-ts.