Django REST Framework Master Rules
CommunityEnterprise DRF rules for secure, scalable APIs
Authorsanakkiyan-s
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a strict, enterprise-grade architecture and operational checklist to prevent ad-hoc, insecure, and unscalable Django REST Framework implementations across teams, ensuring consistency, security, auditability, and high performance in production APIs.
Core Features & Use Cases
- Custom Base Layers: Enforces AppAPIView and AppModel* base viewsets and serializer wrappers to centralize behavior, response formatting, and mutation hooks.
- Security & RBAC: Requires Feature and UserRole models plus custom permission classes to implement fine-grained role-based access control beyond IsAuthenticated.
- Performance & Reliability: Mandates audit logging, soft-deletes, Redis caching with invalidation, Celery offload for long tasks, bulk serializers for high-throughput writes, query optimization to avoid N+1, and strict database transaction handling.
- Use Case: Standardize an orders and inventory API in an e-commerce backend so all teams ship endpoints with unified responses, idempotency keys, traceable audit logs, permission checks, and automated cache invalidation.
Quick Start
Scaffold a new feature by deriving ViewSets and Serializers from the core App* base classes, add Feature-based RBAC and LoggingMixin hooks for mutations, and ensure Redis cache invalidation and Celery offload are wired for long-running work.
Dependency Matrix
Required Modules
None requiredComponents
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: Django REST Framework Master Rules Download link: https://github.com/sanakkiyan-s/django-food-delivery-backend/archive/main.zip#django-rest-framework-master-rules Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.