agentskills.codes
DJ

django-flask-patterns

Models/views/templates (Django), blueprints (Flask), migrations.

Install

mkdir -p .claude/skills/django-flask-patterns && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13921" && unzip -o skill.zip -d .claude/skills/django-flask-patterns && rm skill.zip

Installs to .claude/skills/django-flask-patterns

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Models/views/templates (Django), blueprints (Flask), migrations.
64 charsno explicit “when” trigger

About this skill

Django / Flask Patterns

When to use this skill

  • Maintaining Django or Flask applications.
  • Writing migrations.
  • Working with templates (Jinja2/DTL).

1. Django

  • Models: Fat models, thin views. Put business logic in Model methods or Managers.
  • CBV vs FBV: Context dependent, but stick to one style per project. Function-Based Views often cleaner for simple logic.
  • ORM: Use select_related (FK) and prefetch_related (M2M) to avoid N+1 queries.

2. Flask

  • Blueprints: Always use Blueprints to organize routes.
  • Application Factory: Use the create_app() pattern for better testing and config management.
  • Extensions: Initialize extensions (db.init_app(app)) inside the factory.

Search skills

Search the agent skills registry