repository-guide

Official

Blueprint for Backend.AI repository patterns.

Authorlablup
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a structured blueprint for implementing standard repository patterns in Backend.AI, enabling consistent data access, testability, and scalable multi-tenant support.

Core Features & Use Cases

  • 6 core operations: create, get, search, update, delete, purge, plus batch variants (batch_update, batch_delete, batch_purge).
  • Pattern-driven architecture: demonstrates how repositories delegate to DB sources, use scope objects for multi-tenant filtering, and maintain clean public APIs.
  • Use case examples: common domain repositories such as user groups, projects, and domain entities are shown with concrete implementations that support testing with real databases.

Quick Start

Begin by studying the repository pattern examples under src/ai/backend/manager/repositories, adapt the base utilities to your domain, and write tests following the tdd-guide workflow.

Dependency Matrix

Required Modules

None required

Components

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-guide
Download link: https://github.com/lablup/backend.ai/archive/main.zip#repository-guide

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.