mcpField
U
umbraco-menu

umbraco-menu

github.com/umbracoDevelopment27386 installsUpdated 6w ago
Repository

About umbraco-menu

A skill for developers creating or extending menus in the Umbraco backoffice. It explains menu containers, menu items, placement in built-in menus, and ordering through manifest configuration.

Key features

  1. 01Create custom menu containers
  2. 02Add menu items to menus
  3. 03Extend built-in menus
  4. 04Configure item ordering
  5. 05Define manifests

Use cases

  1. 01Add a link to the Help menu
  2. 02Group navigation or actions in a custom menu

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/umbraco/umbraco-cms-backoffice-skills --skill umbraco-menu

After installing, type/umbraco-menuin Claude Code to confirm it loaded.

Details

From the project README

Umbraco Menu

What is it?

Menus are extension components that display throughout the Umbraco backoffice interface, including in sidebars and button flyouts. They serve as containers for one or more menu item extensions, enabling organized navigation and action grouping. Menu items are configured separately and can be added to existing menus or custom menus.

Documentation

Always fetch the latest docs before implementing:

Workflow

  1. Fetch docs - Use WebFetch on the URLs above
  2. Ask questions - New menu or extend existing? What items? Where displayed?
  3. Generate files - Create manifest for menu + menu items based on latest docs
  4. Explain - Show what was created and how to test

Minimal Examples

Custom Menu (umbraco-package.json)
{
  "type": "menu",
  "alias": "My.Menu",
  "name": "My Menu"
}
Menu Item for Custom Menu (manifest.ts)
export const manifests = [
  {
    type: "menuItem",
    kind: "link",
    alias: "My.MenuItem",
    name: "My Menu Item",
    weight: 100,
    meta: {
      menus: ["My.Menu"],
      label: "My Item",
      icon: "icon-document",
      href: "/my-link"
    }
  }
];
Extending Existing Menu (Help Menu Example)
{
  "type": "menuItem",
  "kind": "link",
  "alias": "My.MenuItem.Help",
  "name": "Custom Help Item",
  "weight": 300,
  "meta": {
    "menus": ["Umb.Menu.Help"],
    "label": "My Documentation",
    "icon": "icon-help",
    "href": "https://my-docs.com"
  }
}
TypeScript Import (Help Menu)
import { UMB_HELP_MENU_ALIAS } from "@umbraco-cms/backoffice/help";

const manifest = {
  type: "menuItem",
  kind: "link",
  alias: "My.MenuItem.Help",
  name: "My Help Item",
  meta: {
    menus: [UMB_HELP_MENU_ALIAS],
    label: "Documentation",
    icon: "icon-book"
  }
};

Common Built-in Menus

  • Umb.Menu.Help - Help menu in header
  • Umb.Menu.Content - Content section menu
  • Umb.Menu.Media - Media section menu
  • Umb.Menu.Settings - Settings section menu

Key Properties

  • type: "menu" for menu container, "menuItem" for items
  • alias: Unique identifier
  • menus: Array of menu aliases this item should appear in
  • weight: Controls ordering (higher = later in list)
  • kind: Menu item type ("link", "default", etc.)

That's it! Always fetch fresh docs, keep examples minimal, generate complete working code.

Comments

Markdown supported