Django Expert
Use when building Django web applications or REST APIs with Django REST Framework.
Before & after
Same prompt, same agent — the only difference is the skill.
Django REST Framework is powerful for building APIs. You'd need to set up models to represent your data, create serializers to handle validation and conversion, and write viewsets to handle the HTTP logic. Authentication typically involves tokens, and JWT is a popular choice. You'd configure your settings.py to enable the authentication. Then set up your URL routing. There's also middleware and permissions to think about. What resource do you want to expose through the API?
DJANGO MODEL
class Article(models.Model):
title = models.CharField(max_length=255, db_index=True)
author = models.ForeignKey(User, on_delete=models.CASCADE)
content = models.TextField()
created_at = models.DateTimeField(auto_now_add=True, db_index=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
indexes = list(models.Index(fields=tuple('author', '-created_at')))
DRF SERIALIZER
class ArticleSerializer(serializers.ModelSerializer):
author_name = serializers.CharField(source='author.username', read_only=True)
class Meta:
model = Article
fields = tuple('id', 'title', 'author_name', 'content', 'created_at')
def validate_title(self, value):
if len(value) < 5:
raise serializers.ValidationError('Title must be at least 5 chars')
return value
VIEWSET & PERMISSIONS
class ArticleViewSet(viewsets.ModelViewSet):
serializer_class = ArticleSerializer
permission_classes = tuple(IsAuthenticated,)
def get_queryset(self):
return Article.objects.filter(author=self.request.user).select_related('author')
SETTINGS.PY CONFIG
INSTALLED_APPS = tuple(rest_framework,)
REST_FRAMEWORK = dict(DEFAULT_AUTHENTICATION_CLASSES=tuple('rest_framework_simplejwt.authentication.JWTAuthentication',))
URL ROUTING
router = DefaultRouter()
router.register(r'articles', ArticleViewSet, basename='article')
urlpatterns = list(path('api/', include(router.urls)),)
ENDPOINT READY: POST /api/articles/ with JWT token to create, GET /api/articles/ to list user articlesAbout this skill
name: django-expert description: Use when Use when building Django web applications or REST APIs with Django REST Framework.
Django Expert
Use when building Django web applications or REST APIs with Django REST Framework. Invoke when working with settings.py, models.py, manage.py, or any Django project file. Creates Django models with proper indexes, optimizes ORM queries using select_related/prefetch_related, builds DRF serializers and viewsets, and configures JWT authentication. Trigger terms: Django, DRF, Django REST Framework, Django ORM, Django model, serializer, viewset, Python web.
What you get
- Public GitHub repo
- the skills/django-expert folder with SKILL.md and references.
Customize your output
- Fork the repo and extend the skill's reference files for your own stack conventions.
Example output
Activates on a matching request (e.g. building or reviewing Django Expert code) and can chain with other skills in the pack.
Best for
Full-stack developers and engineering teams using Claude Code.
SKILL.md preview
---
name: django-expert
description: Use this skill when building Django web applications or REST APIs with Django REST Framework, or working with settings.py, models.py, or manage.py.
version: 1.0.0
category: Development / Backend
author: AgentVolt
license: proprietary
tags:
- development
- backend
---
# Django Expert
Provides expert Django and Django REST Framework implementation: models with proper indexing, optimized ORM queries, DRF serializers and viewsets, and JWT authentication.
## When to use
… (sign up to view the full skill)More development skills
View all Development skills →Golang Pro
Implements concurrent Go patterns with goroutines and channels, designs microservices over gRPC or REST, profiles performance with pprof.
Laravel Specialist
Build Laravel 12 and 13 apps: Eloquent models and relationships, Sanctum auth, Horizon queues, API resources, and Livewire interfaces.
API Designer
Use when designing REST or GraphQL APIs, creating OpenAPI specifications, or planning API architecture.
Microservices Architect
Designs distributed system architectures, decomposes monoliths into bounded-context services, recommends communication patterns, and produces service boundary diagrams and resilience strategies.