Toolverse
All skills

typegoose-patterns

by mx-space

MX Space project TypeGoose model patterns. Apply when creating data models, defining schemas, or handling MongoDB operations.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
mx-space
Category
Mobile
Views
3

About this skill

MX Space project TypeGoose model patterns. Apply when creating data models, defining schemas, or handling MongoDB operations.

How to use

  1. Zainstaluj skill typegoose-patterns w swoim projekcie MX Space — będzie dostępny jako referencja wzorców podczas tworzenia nowych modeli danych.

  2. Przy tworzeniu nowego modelu dziedzicz z odpowiedniej klasy bazowej: BaseModel dla modeli podstawowych, WriteBaseModel dla modeli zawierających treść (tytuł, tekst, obrazy), lub BaseCommentIndexModel jeśli model ma obsługiwać komentarze.

  3. Zdefiniuj pola modelu za pomocą dekoratora @prop(), wskazując wymagane opcje: @prop({ required: true }) dla pól obowiązkowych, @prop({ unique: true }) dla pól unikalnych, @prop({ default: value }) dla wartości domyślnych, @prop({ trim: true }) dla automatycznego usunięcia białych znaków.

  4. Dodaj indeksy na poziomie klasy za pomocą @index() — użyj @index({ fieldName: 1 }) dla indeksu rosnącego, @index({ fieldName: -1 }) dla malejącego, lub @index({ field: 'text' }) dla indeksu tekstowego, aby przyspieszyć zapytania.

  5. Jeśli model ma referencje do innych kolekcji, użyj dekoratora @prop({ ref: () => OtherModel }) wraz z typem Ref — opcjonalnie dodaj foreignField i localField do automatycznego populowania powiązanych dokumentów.

  6. Ustaw customName w @modelOptions() aby określić nazwę kolekcji MongoDB, jeśli różni się od domyślnej nazwy klasy.

Related skills

automating-mobile-app-testing

by jeremylongshore

This skill enables automated testing of mobile applications on iOS and Android platforms using frameworks like Appium, Detox, XCUITest, and Espresso. It generates end-to-end tests, sets up page object models, and handles platform-specific elements. Use this skill when the user

Mobile
17142

kotlin-multiplatform

by vitorpamplona

Platform abstraction decision-making for Amethyst KMP project. Guides when to abstract vs keep platform-specific,\nsource set placement (commonMain, jvmAndroid, platform-specific), expect/actual patterns. Covers primary targets\n(Android, JVM/Desktop, iOS) with web/wasm future

Mobile
15105

liquid-glass-developer

by anyproto

Context-aware routing to iOS 26 Liquid Glass implementation patterns. Use when working with glass effects, GlassEffectContainer, morphing transitions, or iOS 26 visual effects.

Mobile
2061

swift-best-practices

by sammcj

This skill should be used when writing or reviewing Swift code for iOS or macOS projects. Apply modern Swift 6+ best practices, concurrency patterns, API design guidelines, and migration strategies. Covers async/await, actors, MainActor, Sendable, typed throws, and Swift 6

Mobile
36140

android-kotlin-development

by aj-geddes

Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture.

Mobile
152396

flutter-expert

by sickn33

Master Flutter development with Dart 3, advanced widgets, and multi-platform deployment. Handles state management, animations, testing, and performance optimization for mobile, web, desktop, and embedded platforms. Use PROACTIVELY for Flutter architecture, UI implementation, or

Mobile
54112