
Django Rest Framework
This one gives Claude the patterns for building Django REST Framework APIs with proper serializers, viewsets, and routing. You get examples for ModelSerializer configurations with custom fields and validation, nested serializers for complex relationships, and ViewSet implementations with custom actions like publish and recent endpoints. It covers permission classes like IsAuthorOrReadOnly, router setup with DefaultRouter, and practical stuff like handling base64 images and writable nested data. Useful when you're building RESTful APIs and want Claude to follow DRF conventions instead of writing everything from scratch. The examples show real world scenarios like prefetching relations and dynamic serializer selection.
- skills.sh installs
- 263
- GitHub stars
- 200
- last updated
- Aug 21, 2026
Install
$ npx -y skills add thebushidocollective/han --skill django-rest-framework --agent claude-codeInstalls into .claude/skills of the current project.
Files
Django REST Framework
Master Django REST Framework for building robust, scalable RESTful APIs with proper serialization and authentication.
Serializers
Build type-safe data serialization with Django REST Framework serializers.
from rest_framework import serializers
from django.contrib.auth.models import User
class UserSerializer(serializers.ModelSerializer):
post_count = serializers.IntegerField(read_only=True)
full_name = serializers.SerializerMethodField()
class Meta:
model = User
fields = ['id', 'email', 'name', 'post_count', 'full_name']
read_only_fields = ['id', 'created_at']
extra_kwargs = {
'email': {'required': True},
'password': {'write_only': True}
}
def get_full_name(self, obj):
return f"{obj.first_name} {obj.last_name}"
class PostSerializer(serializers.ModelSerializer):
author = UserSerializer(read_only=True)
author_id = serializers.IntegerField(write_only=True)
class Meta:
model = Post
fields = '__all__'
Sponsors
Details
- Repository
- github.com/thebushidocollective/han
- Categories
- Backend & APIs, Security, Python
- First seen
- Jun 3, 2026
More from thebushidocollective/han
All 14- Cpp Modern Features245
- Tailwind Responsive Design235
- Bdd Patterns208
- Storybook Component Documentation165
- Reactflow Fundamentals138
- PHP Security Patterns
- Android Jetpack Compose2.2K
- Fastapi Async Patterns958
- Atomic Design Fundamentals780
- Storybook Story Writing678
- Solid Principles590
- Docker Compose Production485
- Angular Rxjs Patterns289