# Template Linting and Auto-Formatting for Django and Jinja Repositories

> Uses djLint to scan Django, Jinja, Nunjucks, Twig, and HTML templates for indentation problems, malformed tags, and style drift, then optionally rewrites them into a consistent format. This is for agents that need to clean and validate template-heavy repos before review or release, not for general web framework setup.

- Skill: `agentskillexchange/template-linting-and-auto-formatting-for-django-and-jinja-re` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/template-linting-and-auto-formatting-for-django-and-jinja-re`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/template-linting-and-auto-formatting-for-django-and-jinja-re/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/template-linting-and-auto-formatting-for-django-and-jinja-re

---


# Template Linting and Auto-Formatting for Django and Jinja Repositories

Uses djLint to scan Django, Jinja, Nunjucks, Twig, and HTML templates for indentation problems, malformed tags, and style drift, then optionally rewrites them into a consistent format. This is for agents that need to clean and validate template-heavy repos before review or release, not for general web framework setup.

## Prerequisites

Python 3.9 or higher and djLint

## Installation

Use the upstream install or setup path that matches your environment:
- pip install djlint
- npm i djlint

Requirements and caveats from upstream:
- Once upon a time all the other programming languages had a formatter and linter. Css, javascript, python, the c suite, typescript, ruby, php, go, swift, and you know the others. The cool kids on the block.
- _Or with the npm experimental install - Note, this requires python and pip to be on your system path._
- **⚠️ Help Needed! ⚠️** _Good with python?_ djLint was an experimental project and is catching on with other devs. Help out with a rewrite of the formatter to improve speed and html style for edge cases. Contribute on...

- Source: https://github.com/djlint/djLint
- Extracted from upstream docs: https://raw.githubusercontent.com/djlint/djLint/HEAD/README.md

## Documentation

- https://djlint.com/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/template-linting-auto-formatting-django-jinja-repositories/)

