Toolverse
All skills

api-conventions

by mx-space

MX Space API design conventions. Apply when writing controllers, API endpoints, or handling HTTP requests.

Installation

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

Installation

Quick info

Author
mx-space
Category
Backend
Views
1

About this skill

MX Space API design conventions. Apply when writing controllers, API endpoints, or handling HTTP requests.

How to use

  1. Zainstaluj umiejętność w swoim projekcie MX Space, umieszczając plik w katalogu .claude/skills/api-conventions. Umiejętność nie jest bezpośrednio wywoływana przez użytkownika, ale Claude automatycznie stosuje jej reguły podczas generowania lub recenzji kodu kontrolerów.

  2. Podczas definiowania nowych kontrolerów zawsze używaj dekoratora @ApiController zamiast @Controller – system automatycznie doda prefiks /api/v{version} w środowisku produkcyjnym.

  3. Dla endpointów wymagających logowania zastosuj dekorator @Auth(), a dla opcjonalnej autentykacji użyj @IsAuthenticated() lub @CurrentUser() w zależności od potrzeby dostępu do danych użytkownika.

  4. Pamiętaj, że ResponseInterceptor automatycznie transformuje odpowiedzi: tablice zawijane są w {data: [...]}, obiekty zwracane są bezpośrednio, undefined zwraca 204 No Content, a @Paginator dodaje metadane paginacji. Jeśli chcesz pominąć transformację, użyj @Bypass.

  5. Dla endpointów z paginacją dodaj dekorator @HTTPDecorators.Paginator i zwróć wynik z mongoose.paginate(), przekazując page i limit z PagerDto.

  6. Waliduj parametry ścieżki (@Param), query (@Query) i body (@Body) za pomocą odpowiednich DTO – system automatycznie konwertuje nazwy pól z camelCase na snake_case w odpowiedziach JSON.

Related skills

fastapi-pro

by sickn33

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

Backend
54128

effective-go

by openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

Backend
248296

travel-planner

by ailabs-393

This skill should be used whenever users need help planning trips, creating travel itineraries, managing travel budgets, or seeking destination advice. On first use, collects comprehensive travel preferences including budget level, travel style, interests, and dietary

Backend
4379

clickup

by civitai

Interact with ClickUp tasks and documents - get task details, view comments, create and manage tasks, create and edit docs. Use when working with ClickUp task/doc URLs or IDs.

Backend
2483

sql-optimization-patterns

by wshobson

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

Backend
40163

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170