scaffold-api-repository

Official

Scaffold MongoDB entities with repository methods.

Authorbbvch-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manually writing MongoEngine document classes that adhere to the Swiss AI-Hub project's Entity-as-repository pattern, OpenTelemetry tracing requirements, and indexing conventions is repetitive and error-prone, slowing down backend development for the open-source AI infrastructure stack.

Core Features & Use Cases

  • Pattern-Compliant Entity Generation: Creates MongoEngine Document classes that combine schema definition and repository classmethods, eliminating the need for separate DAO or repository layers as required by the codebase.
  • Pre-Configured Best Practices: Includes built-in OpenTelemetry tracing decorators, proper meta configuration for indexes and strict mode, LocaleStringEntity support for multilingual fields, and common repository methods like pagination, user-scoped queries, and atomic updates.
  • Use Case: When adding a new resource like "process_config" to the persistence layer, use this skill to generate a fully functional entity that matches the structure and conventions of existing entities such as AgentEntity and ThreadEntity.

Quick Start

Use the scaffold-api-repository skill to generate a new MongoDB entity for the 'notification' resource.

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: scaffold-api-repository
Download link: https://github.com/bbvch-ai/aihub-core/archive/main.zip#scaffold-api-repository

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 537,000+ vetted skills library on demand.