dexploarer/claudius-skills/django-model-helper

Claude Code and agent skill by dexploarer/claudius-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generates Django models with proper field types, relationships, and migrations. Use when creating Django models or database schemas.

Install

npx vskill@latest install dexploarer/claudius-skills/django-model-helper

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/django-model-helper.

Django Model Helper

Generates Django models following best practices.

When to Use

  • "Create a Django model for users"
  • "Generate Product model"
  • "Add BlogPost model with relationships"

Model Generation

python
from django.db import models
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
"""Custom user model."""
bio = models.TextField(blank=True)
avatar = models.ImageField(upload_to='avatars/', blank=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
db_table = 'users'
ordering = ['-created_at']
def __str__(self):
return self.username
class Post(models.Model):
"""Blog post model."""
title = models.CharField(max_length=200)
slug = models.SlugField(unique=True)
author = models.ForeignKey(User, on_delete=models.CASCADE, related_name='posts')
content = models.TextField()
published_at = models.DateTimeField(null=True, blank=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
db_table = 'posts'
ordering = ['-published_at']
indexes = [
models.Index(fields=['slug']),
models.Index(fields=['author', '-published_at']),
]
def __str__(self):
return self.title

After Creating Model

  1. Generate migration:

``bash python manage.py makemigrations ``

  1. Apply migration:

``bash python manage.py migrate ``

Best Practices

  • Use appropriate field types
  • Add indexes for frequently queried fields
  • Define __str__ methods
  • Use Meta class for table name and ordering
  • Add related_name to relationships
  • Include created_at/updated_at timestamps
  • Use on_delete properly
  • Add helpful docstrings

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
6
Repository forks
2
7-day trend score
15

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dexploarer/claudius-skills/django-model-helper/badge)](https://verified-skill.com/skills/dexploarer/claudius-skills/django-model-helper)

Something wrong with this skill or its page? Tell us.