Skip to content
thebushidocollective avatar

Django Rest Framework

Django REST Framework guidance for serializers, viewsets, routers, and permissions when building RESTful APIs.

CCM score
40 of 100
skills.sh installs
268
GitHub stars
202
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers ModelSerializer patterns with read-only fields, write-only passwords, and custom field validation for base64 images and profanity checks
  • Includes writable and dynamic nested serializers, with ViewSets that add publish and recent actions, filtering, search, and ordering
  • Enforces permissions such as IsAuthorOrReadOnly and IsOwnerOrAdmin, with limits on who may edit or delete objects
  • Designed for Django developers building authenticated REST endpoints that need custom serialization and routing

Install

$ npx -y skills add thebushidocollective/han --skill django-rest-framework -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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__'

Details

Repository
github.com/thebushidocollective/han
Categories
Backend & APIs, Python
First seen
Jun 3, 2026

Questions

What does the django-rest-framework skill do?

The django-rest-framework skill helps an agent build RESTful APIs with Django REST Framework, covering serializers, viewsets, routers and permissions. It shows how to write ModelSerializer classes with custom validation, nested and writable relationships, and ViewSets that handle authentication and filtering.

How do I install the django-rest-framework skill?

Run npx -y skills add thebushidocollective/han --skill django-rest-framework -y in a project to install the django-rest-framework skill. Once installed, the django-rest-framework skill lets the agent write serializers, viewsets and permission classes for Django REST Framework projects.

Which category does the django-rest-framework skill belong to?

The django-rest-framework skill is listed in the Backend & APIs category on Claude Marketplaces. Its own content focuses on building Django REST Framework APIs with serializers, viewsets, routers and authentication.

Who should use the django-rest-framework skill?

The django-rest-framework skill suits Python developers building RESTful APIs on Django. It covers creating serializers with custom fields, nested relationships, and permissions that restrict edits to authors or owners.

More from thebushidocollective/han

All 14

Similar to Django Rest Framework

More Backend & APIs