0xdarkmatter/claude-mods
Overview
This skill packages guidance and commands for building, configuring, and enhancing Django admin interfaces with the Unfold theme. It documents site-level configuration, ModelAdmin extensions, widgets, filters, inlines, dashboard components, and third-party integrations. Use it to replace the default Django admin with a modern Tailwind/HTMX/Alpine.js driven experience.
How this skill works
The skill inspects and guides configuration of the UNFOLD settings dict, replacement AdminSite usage, and registration of models using unfold.admin.ModelAdmin. It explains Unfold-specific ModelAdmin attributes, decorators (display/action), filter classes, widget overrides, inline variants, dataset and section patterns, dashboard components, and integration points for popular Django packages. It also covers template injection points and UI behaviors like conditional fields and paginated/tabs inlines.
When to use it
- You want a modern, responsive admin UI based on Tailwind CSS, HTMX, and Alpine.js.
- Customizing ModelAdmin behavior: list layout, actions, conditional fields, or reorderable rows.
- Replacing default filters/widgets with advanced Unfold filter and widget classes.
- Building admin dashboards with KPI cards, charts, or embedded datasets.
- Integrating styled wrappers for django-import-export, django-guardian, simple-history, or other packages.
Best practices
- Put 'unfold' before 'django.contrib.admin' in INSTALLED_APPS so Unfold overrides load first.
- Extend unfold.admin.ModelAdmin as a base to inherit Unfold styling and features.
- Use the UNFOLD settings dict for global branding, sidebar navigation, and dashboard callbacks.
- Prefer Unfold-provided filters and widgets for consistent UX; use list_filter_submit for input-based filters.
- Group complex forms into tabbed fieldsets and use conditional_fields for dynamic visibility.
- Register reusable dashboard components with register_component and keep heavy data ops in background tasks.
Example use cases
- Create a full-width changelist with KPI panels and right-side sections using list_sections and list_fullwidth.
- Add row and detail actions with @action decorators for approve/reject workflows and custom submit-line actions.
- Replace TextField widgets with a WYSIWYG and use UnfoldAdminImageFieldWidget for inline image previews.
- Embed related item listings inside change forms via BaseDataset subclasses and change_form_datasets.
- Build paginated, tabbed inlines for large collections using per_page, tab, and ordering_field on inline classes.
FAQ
Yes. Place 'unfold' before 'django.contrib.admin' so Unfold templates and static assets take effect.
Can I mix Unfold with other admin extensions?
Yes. Use multiple inheritance but keep Unfold's ModelAdmin last to ensure its styles and behavior are applied.
26 skills
This skill helps you configure and customize Django Unfold admin interfaces, boosting productivity with streamlined model admins, dashboards, and advanced
This skill quickly locates and displays recent screenshots from common directories, helping you review visuals without leaving your workflow.
This skill detects and remediates technical debt by running parallel scans for duplicates, security issues, and complexity at session end.
This skill provides quick RESTful API design guidance, covering methods, status codes, caching, and rate limiting to improve consistency and reliability.
This skill helps you create robust Python CLI applications using Typer and Rich patterns for commands, output, and error handling.
This skill enables pre and post tool hook automation for Claude Code, improving safety, auditing, and custom workflow integration.
This skill helps you troubleshoot Claude Code extensions and hooks, diagnose failures, and restore proper agent and hook operation.
This skill converts local documents to clean Markdown using markitdown for PDFs, Word, Excel, slides, OCR images, and audio.
This skill speeds up Python project setup by fast environment management with uv, enabling instant venvs, rapid package installs, and reliable dependency
This skill generates PhD-level expert Claude Code prompts for comprehensive 500-1000 line agents with real code and best practices.
This skill provides quick Tailwind CSS practical patterns and breakpoints, enabling responsive layouts, dark mode, and common components.
This skill helps you build and integrate MCP server patterns for Claude Code, enabling tool hosting, resource exposure, and robust server workflows.
This skill analyzes Python pytest patterns to improve test reliability by illustrating fixtures, parametrization, and mocks with concrete examples.
This skill searches code by AST structure using ast-grep to find semantic patterns and support large-scale refactoring.
This skill analyzes a codebase's size and composition using tokei and semantic diffs from difft to deliver quick statistics and insights.
This skill streamlines SQLite usage in Python projects by guiding connection handling, WAL mode, and simple migration patterns for reliable local data.
This skill scans project docs and synthesizes a unified AGENTS.md to help you review, understand, and explore codebases quickly.
This skill helps you perform fast find-and-replace operations using sd across files, with safe batch workflows and preview capabilities.
This skill helps you write safe Python code by teaching modern typing patterns, including TypeVar, Protocols, TypedDicts, and union types.
This skill decomposes complex problems into atomic, verifiable steps, backtracking when confidence wanes to ensure reliable, rigorous conclusions.
This skill provides deep explanations of complex code or concepts, routing to expert agents and generating diagrams for clarity.
This skill helps you implement robust Python database patterns with SQLAlchemy 2.0, AsyncIO support, and repository patterns for reliable data access.
This skill generates comprehensive tests by automatically detecting frameworks and project standards, routing to expert agents, and creating well-structured
This skill helps you write and optimize SQL queries using common patterns, CTEs, and window functions for faster data retrieval.
This skill helps you implement container orchestration best practices for Docker and Kubernetes via patterns, health checks, and efficient deployments.
This skill helps you implement Python asyncio patterns for concurrent programming, improving reliability, performance, and readability in async applications.