Django Drf
Opinionated Django REST Framework patterns for ViewSets, serializers, filters, permissions, and routing in Prowler's API.
- CCM score
- 64 of 100
- skills.sh installs
- 484
- GitHub stars
- 15.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers a 10-step endpoint checklist from models and ViewSets through OpenAPI schema and changelog fragments
- Enforces serializer separation by operation (Read, Create, Update, Include) and
filterset_classoverfilterset_fields - Requires
swagger_fake_viewguards andselect_related/prefetch_relatedinget_queryset()to prevent N+1 queries - Designed for contributors adding generic DRF endpoints in
api/, with prowler-api covering RLS, RBAC, and provider specifics
Install
$ npx -y skills add prowler-cloud/prowler --skill django-drf -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Critical Patterns
- ALWAYS separate serializers by operation: Read / Create / Update / Include
- ALWAYS use
filterset_classfor complex filtering (notfilterset_fields) - ALWAYS validate unknown fields in write serializers (inherit
BaseWriteSerializer) - ALWAYS use
select_related/prefetch_relatedinget_queryset()to avoid N+1 - ALWAYS handle
swagger_fake_viewinget_queryset()for schema generation - ALWAYS use
@extend_schema_fieldfor OpenAPI docs onSerializerMethodField - NEVER put business logic in serializers - use services/utils
- NEVER use auto-increment PKs - use UUIDv4 or UUIDv7
- NEVER use trailing slashes in URLs (
trailing_slash=False)
Note:
swagger_fake_viewis specific to drf-spectacular for OpenAPI schema generation.
Implementation Checklist
When implementing a new endpoint, review these patterns in order:
Details
- Repository
- github.com/prowler-cloud/prowler
- Categories
- Backend & APIs, Python
- First seen
- Jun 3, 2026
More from prowler-cloud/prowler
All 6Similar to Django Drf
More Backend & APIscdrf-expertvintasoftware/django-ai-plugins581 installsExpert guidance for Django REST Framework class-based views, method resolution, and override strategy using Classy DRF.
django-rest-frameworkthebushidocollective/han268 installsDjango REST Framework guidance for serializers, viewsets, routers, and permissions when building RESTful APIs.
django-rest-api-developmentmindrally/skills932 installsComprehensive Django REST API guidelines covering app structure, authentication, and query performance.
django-expertjeffallan/claude-skills4.7K installsDjango and DRF specialist that builds indexed models, optimized ORM queries, serializers, viewsets, and JWT auth.
rest-api-djangomindrally/skills764 installsOpinionated Django REST Framework guidelines covering project layout, serializers, JWT auth, N+1 prevention, and error responses.