.agents/skills/repositories-and-data-access/SKILL.md
Implement repository interfaces for data persistence and abstraction over database operations using Bun ORM.
npx skillsauth add gobetterauth/go-better-auth repositories-and-data-accessInstall 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.
WithTx(tx bun.IDB)context.ContextRepositories are data access only:
bun_*.go filesbun.IDB at construction (not concrete *bun.DB)nil, nil for single queries; empty slice for batch queriesSee examples/todo_repository.go for:
WithTx() methodtools
Orchestrate services and repositories through use cases to implement application-level workflows and business scenarios.
development
Write unit tests in Go following Red-Green-Refactor TDD principles.
tools
Define and implement services that encapsulate business logic with proper constructor-based dependency injection.
tools
Register and retrieve services at runtime using a thread-safe service registry pattern for loose coupling between plugins.