sidebar-menu

Compose Django sidebar menus with MenuItem, MenuGroup, and MenuCollapse definitions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The sidebar navigation is a central organizing structure in django-mvp apps; this skill provides a clear pattern for constructing, extending, and persisting a cohesive AppMenu-driven sidebar.

Core Features & Use Cases

  • Three item types: MenuItem (leaf links), MenuGroup (section headers), and MenuCollapse (expandable groups) to organize navigation.
  • AppMenu extension pattern: add items from a central menus.py so flex_menu auto-discovers and renders the menu at startup.
  • Use Case: create an admin sidebar with grouped sections, icons, and conditional visibility for different user roles.

Quick Start

Extend your app's menus.py by adding MenuItem, MenuGroup, and MenuCollapse entries to define the sidebar structure.

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 dynamic AdminLTE sidebar in Django?

Build a dynamic AdminLTE sidebar by composing AppMenu with MenuItem, MenuGroup, and MenuCollapse definitions in your app-level menus.py file. The flex_menu autodiscovery feature automatically loads and renders these items at startup.

How do I add icons and badges to Django sidebar navigation items?

Add icons, labels, and badges to Django sidebar navigation by defining them within MenuItem, MenuGroup, and MenuCollapse entries. These components support visual enhancements directly through their definition properties in the menus.py file.

Can I show different sidebar menu items based on user roles in Django?

Yes, you can show different sidebar menu items based on user roles by applying conditional visibility to AppMenu components. This allows you to create role-specific navigation structures within your Django project.

What is the best way to organize Django sidebar links into expandable sections?

The best way to organize Django sidebar links into expandable sections is using MenuCollapse definitions. Combine these with MenuGroup for section headers and MenuItem for leaf links to create a structured navigation hierarchy.

Does flex_menu require special tooling to autodiscover Django menu items?

No, flex_menu requires no special tooling beyond placing your MenuItem, MenuGroup, and MenuCollapse definitions in an app-level menus.py file. It automatically autodiscovers and loads these items at startup.