Toolverse
All skills

django-drf

by prowler-cloud

Django REST Framework patterns. Trigger: When implementing generic DRF APIs (ViewSets, serializers, routers, permissions, filtersets). For Prowler API specifics (RLS/RBAC/Providers), also use prowler-api.

Installation

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

Installation

Quick info

Category
Backend
Views
5

About this skill

Django REST Framework patterns. Trigger: When implementing generic DRF APIs (ViewSets, serializers, routers, permissions, filtersets). For Prowler API specifics (RLS/RBAC/Providers), also use prowler-api.

How to use

  1. Zainstaluj skill w swoim projekcie Django poprzez dodanie go do konfiguracji Claude/Copilota. Skill automatycznie aktywuje się, gdy pracujesz w katalogu api/ i tworzysz nowe ViewSety, serializery lub filtry.

  2. Przy implementacji nowego endpointu zacznij od modelu — upewnij się, że używasz UUID jako klucza głównego (UUIDv4 lub UUIDv7), dodaj pola inserted_at i updated_at, oraz zdefiniuj JSONAPIMeta.resource_name dla zgodności ze schematem JSON:API.

  3. Utwórz ViewSet dziedziczący z BaseRLSViewSet i zaimplementuj get_queryset() z użyciem select_related() lub prefetch_related() aby uniknąć problemu N+1. Pamiętaj o obsłudze swagger_fake_view dla poprawnego generowania schematu OpenAPI.

  4. Zdefiniuj serializery — zawsze oddziel je na operacje: Read (odczyt), Create (tworzenie), Update (aktualizacja) i Include (zagnieżdżone dane). Serializery do zapisu powinny dziedziczyć z BaseWriteSerializer i walidować nieznane pola.

  5. Dodaj filtrowanie za pomocą filterset_class zamiast filterset_fields dla bardziej złożonych scenariuszy. Dziedzicz z dostępnych klas bazowych filtrów w projekcie.

  6. Skonfiguruj routing bez końcowych slashów (trailing_slash=False), dodaj paginację i uprawnienia dostępu. Skill podpowie konkretne wzorce na każdym etapie — nigdy nie umieszczaj logiki biznesowej w serializerach, używaj dedykowanych serwisów lub narzędzi.

Related skills

api-design-principles

by wshobson

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Backend
50146

scientific-writing

by K-Dense-AI

Write scientific manuscripts. IMRAD structure, citations (APA/AMA/Vancouver), figures/tables, reporting guidelines (CONSORT/STROBE/PRISMA), abstracts, for research papers and journal submissions.

Backend
47191

pdf-to-markdown

by aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions \

Backend
355664

context-optimizer

by openclaw

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs

Backend
2964

architecture-decision-records

by wshobson

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

Backend
29130

postgresql-psql

by timelessco

Comprehensive guide for PostgreSQL psql - the interactive terminal client for PostgreSQL. Use when connecting to PostgreSQL databases, executing queries, managing databases/tables, configuring connection options, formatting output, writing scripts, managing transactions, and

Backend
34173