infrahub-managing-menus

Creates Infrahub custom navigation menus organizing schema node types into sidebar hierarchies.

9|2|Updated Aug 27, 2025
One-click install
npx skills add https://github.com/opsmill/infrahub-solution-ai-dc --skill infrahub-managing-menus-opsmill
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: infrahub-managing-menus
Source: https://github.com/opsmill/infrahub-solution-ai-dc/tree/main/.agents/skills/infrahub-managing-menus
Command: npx skills add https://github.com/opsmill/infrahub-solution-ai-dc --skill infrahub-managing-menus-opsmill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Infrahub's auto-generated sidebar navigation lists every schema node under its namespace, which becomes cluttered and disorganized as projects grow. This Skill produces custom menu YAML files that group node types into logical hierarchies with labels and icons, while avoiding the duplicate sidebar entries that occur when custom and auto-generated menus overlap. ## Core Features & Use Cases - Menu YAML Generation: Produces valid menu files with the required apiVersion, kind: Menu, and spec.data structure, including nested children under the children.data wrapper. - Hierarchy and Icon Guidance: Supports group headers, unlimited nesting depth, and Material Design Icons (mdi:) selection for infrastructure node types. - Schema Integration Advice: Includes registration comments for .infrahub.yml and guidance to set include_in_menu: false on referenced schema nodes to prevent duplicate sidebar entries. - Use Case: A network engineer modeling devices, locations, and organizations in Infrahub asks for a sidebar menu grouping them under 'Device Management' and 'Locations' headers; the Skill outputs a ready-to-register menu file with correct kinds and icons. ## Quick Start Ask the assistant to create an Infrahub sidebar menu that groups your schema node types into the hierarchy you describe, for example devices under an Infrastructure header and sites under Locations.

Frequently Asked Questions about infrahub-managing-menus

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

FAQPage Schema
How do I create a custom navigation menu in Infrahub?▼

Create a YAML file with apiVersion: infrahub.app/v1, kind: Menu, and a spec.data list of menu items, each with a name and namespace. Register the file in .infrahub.yml under the menus: key so Infrahub loads it into the sidebar.

How do I nest menu items in an Infrahub sidebar menu?▼

Place child items under a children object with a data wrapper, for example children: data: followed by the child item list. Omitting the data wrapper causes the parser to reject the branch and the children disappear from the sidebar.

Why does my Infrahub sidebar show duplicate menu entries?▼

Custom menus merge additively with the auto-generated menu, so nodes referenced in a custom menu also appear under their namespace. Set include_in_menu: false on every schema node the custom menu references to suppress the duplicates.

What icons can I use in Infrahub menu items?▼

Infrahub menu icons come from the Material Design Icons library using the mdi: prefix, such as mdi:server or mdi:map-marker. An icon name without the prefix or with a typo renders as a blank slot in the sidebar.

Should I use kind or path for Infrahub menu item links?▼

Use kind to link to a schema node's list view because it auto-resolves the correct URL even if URL patterns change. Use path only for custom URLs, and never set both on one item since that invalidates the entry.