sidebar-menu

Build Django MVP sidebar menus with flex_menu autodiscovery.

2|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/django-mvp/django-mvp --skill sidebar-menu-django-mvp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sidebar-menu
Source: https://github.com/django-mvp/django-mvp/tree/main/.github/skills/sidebar-menu
Command: npx skills add https://github.com/django-mvp/django-mvp --skill sidebar-menu-django-mvp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you create and maintain the Django MVP sidebar navigation structure without manually figuring out how AppMenu, menu types, and visibility rules fit together.

Core Features & Use Cases

  • Leaf links and navigation: Add direct destinations with MenuItem for pages, dashboards, settings, and external resources.
  • Section headers and nested groups: Organize related entries with MenuGroup and build expandable navigation trees with MenuCollapse.
  • Conditional behavior: Control visibility with request-based checks, automatic active-state handling, badges, icons, and extra context for polished sidebar presentation.
  • Use Case: A Django app with admin pages, reports, and documentation links can use this Skill to produce a clean, structured sidebar that stays easy to extend.

Quick Start

Ask the AI to extend your AppMenu in a menus.py file with the sidebar items, groups, and visibility checks your Django app needs.

Frequently Asked Questions about sidebar-menu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Django sidebar menu with collapsible groups and section headers?

To build a Django sidebar menu, you define MenuItem, MenuGroup, and MenuCollapse entries in a menus.py file. This structures leaf links, section headers, and expandable navigation trees using AppMenu and flex_menu autodiscovery.

How do I conditionally display Django sidebar menu links based on the user request?

Django sidebar menu links support per-request visibility checks to conditionally display navigation items. You apply request-based logic to MenuItem, MenuGroup, and MenuCollapse definitions to control which links appear for each user.

What is the best way to add icons, badges, and active states to a Django AppMenu navigation?

Adding icons, badges, and active states to a Django AppMenu involves passing extra_context labels and visual attributes to your menu definitions. The sidebar menu automatically handles URL resolution and active-state behavior for the current page.

How do I organize Django MVP sidebar navigation for admin pages, reports, and external links?

Organizing Django MVP sidebar navigation involves grouping admin pages, reports, and external resources using MenuGroup for section headers and MenuItem for direct destinations. This creates a clean, structured sidebar that remains easy to extend.

Does flex_menu autodiscovery work with custom AppMenu definitions in Django?

Flex_menu autodiscovery works directly with custom AppMenu definitions in Django. It automatically registers MenuItem, MenuGroup, and MenuCollapse structures defined in your menus.py file without requiring manual import or configuration.

When should I use MenuCollapse instead of MenuGroup for Django sidebar navigation?

Use MenuCollapse for Django sidebar navigation when you need expandable, nested navigation trees that hide and show links dynamically. Use MenuGroup when you only need static section headers to organize related entries without collapsing behavior.