Adds and edits navigation menu items via IMenuContributor, and manages localization JSON keys with IStringLocalizer in ABP applications.
Ships in abp-ui. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The shared, UI-agnostic mechanism ABP uses for navigation menus and localization resources/json. The Blazor, Angular, and MVC UI skills all point here for the menu contribution and json-translation rules.
IMenuContributor / ApplicationMenuItem.Localization/**/en.json and translating them into the sibling culture json files.IStringLocalizer<TResource> in C# or L["Key"] in Razor.abpLocalization pipe (angular-ui), MVC tag helpers and bundling (mvc-razor-ui). Those skills point here for the shared menu + localization backend.Implement IMenuContributor (namespace Volo.Abp.UI.Navigation) and register it in your module's AbpNavigationOptions.
public class MyProjectMenuContributor : IMenuContributor
{
public async Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if (context.Menu.Name != StandardMenus.Main)
{
return;
}
var l = context.GetLocalizer<MyProjectResource>();
context.Menu.AddItem(
new ApplicationMenuItem(
name: "MyProject.Books",
displayName: l["Menu:Books"],
url: "/books",
icon: "fas fa-book",
order: 2)
);
await Task.CompletedTask;
}
}
Register in ConfigureServices:
Configure<AbpNavigationOptions>(options =>
{
options.MenuContributors.Add(new MyProjectMenuContributor());
});
Key facts (verified against source):
MenuConfigurationContext.Menu is an ApplicationMenu; context.Menu.Name tells you which menu is being built.StandardMenus: StandardMenus.Main ("Main"), StandardMenus.User ("User"), StandardMenus.Shortcut ("Shortcut"). Gate your contributions on the one you want.AddItem(ApplicationMenuItem) exists on both ApplicationMenu and ApplicationMenuItem (for nesting sub-items), and returns the parent for chaining.ApplicationMenuItem constructor params: name (unique), displayName, and optional url, icon, order (default 1000, lower = earlier), target, elementId, cssClass, groupName, and a trailing, deprecated requiredPermissionName (its backing property is [Obsolete] — new code uses RequirePermissions). Nest children with .AddItem(...).context.GetLocalizer<TResource>() / context.GetLocalizer(type) returns an IStringLocalizer for building localized display names. To conditionally hide items, use context.IsGrantedAsync(policyName) before adding.Defining the resource itself — the [LocalizationResourceName] marker class, registering it with AbpLocalizationOptions.Resources.Add<T>(), AddVirtualJson, resource inheritance (AddBaseTypes / [InheritResource]), culture fallback, and the AbpVirtualFileSystemOptions.AddEmbedded<T>() embedding — is the localize-applications skill. This skill assumes the resource already exists and covers the day-to-day work on top of it: adding a text key a menu or view needs, translating it across cultures, and displaying it.
One file per culture in the resource folder, e.g. Localization/MyProject/en.json:
{
"culture": "en",
"texts": {
"Menu:Books": "Books",
"BookName": "Book name"
}
}
Each file has "culture" matching its filename and a "texts" map of key → translated string. "texts" is usually a flat map, but nested JSON objects are also supported: nested keys are flattened by joining the levels with __ (so { "Menu": { "Books": "Books" } } resolves as Menu__Books).
Inject IStringLocalizer<TResource> in C#, or use the L shortcut in ABP Blazor/MVC base classes:
public class BookAppService
{
private readonly IStringLocalizer<MyProjectResource> _localizer;
public BookAppService(IStringLocalizer<MyProjectResource> localizer) => _localizer = localizer;
// _localizer["BookName"]
}
In Razor (component inheriting an ABP base with LocalizationResource set, or an MVC page):
<h2>@L["Menu:Books"]</h2>
L["Key"] resolves to the value from the current culture's json (falling back to the resource's configured default culture — en in the templates, but it's whatever DefaultCultureName the resource sets). For HTML-encoded output in MVC Razor pages, ASP.NET Core's IHtmlLocalizer<TResource> is also available (@inject IHtmlLocalizer<MyProjectResource> HtmlL).
StandardMenus.Main etc.), respecting order and any IsGrantedAsync gating.L["Key"] / _localizer["Key"] renders the translated value for the current culture and falls back to en when a culture is missing the key.@L["X"] renders the raw key X, that key is missing from the json — add it to all culture files.en.json — adding a key means adding it to every language file in the folder. A key present in en.json but missing elsewhere falls back to English (or shows the raw key), which reads as a bug. Add the same key to the sibling zh-Hans.json, de.json, tr.json, fr.json, etc. — with a real translation, not the English text.context.Menu.Name matches the menu you want (e.g. StandardMenus.Main)."culture" not matching the filename — the loader builds each dictionary from the json's own "culture" (CultureName) value, not the filename (the filename is only used for enumeration/ordering). Keep the "culture" value aligned with the filename as a convention so the folder stays readable, but the "culture" inside the file is what actually determines the culture.name — ApplicationMenuItem.name must be unique.What SKILL.md sets; muted values are Claude Code's defaults
/abp-ui:menus-and-localizationfrom abp-ui
npx claudepluginhub abpframework/abp-skills --plugin abp-ui9 skills in this plugin
/angular-uiBuild and debug ABP Angular UI — generated proxy services, routing/menu contribution, replaceable components, config/permission checks, and localization. USE FOR: calling app services through generated proxy services, adding routes/menu items with RoutesService, swapping components with ReplaceableComponentsService, reading config with ConfigStateService, checking permissions with PermissionService / *abpPermission, localizing with LocalizationService / the abpLocalization pipe. DO NOT USE FOR: generating or regenerating Angular service/model proxies with the NX-vs-plain generator (use abp-cli-commands), Blazor UI (use blazor-ui), MVC / Razor Pages UI (use mvc-razor-ui), defining localization resources and translating json (use menus-and-localization), backend permission definitions (use permissions-and-authorization).
/blazor-uiBuild and debug ABP Blazor UI — pages/components, base classes, render/hosting models, theming, and the Blazorise vs MudBlazor choice. USE FOR: creating Blazor pages/components, choosing a base class (AbpComponentBase / AbpCrudPageBase), calling application services from Blazor, picking a hosting/render model (Server / WebAssembly / WebApp / Auto), working with the LeptonX/Basic theme, deciding between Blazorise and MudBlazor components. DO NOT USE FOR: Angular UI (use angular-ui), MVC / Razor Pages UI (use mvc-razor-ui), menu contribution and localization resources/json (use menus-and-localization), permission definitions on the backend (use permissions-and-authorization).
/build-angular-lists-and-formsBuild ABP Angular list and form pages the framework way — server-side paged/sorted/filtered lists via ListService, and reactive forms with ABP's automatic validation. USE FOR: ListService with component-scoped providers, hookToQuery returning PagedResultDto, get() refresh, page/maxResultCount/filter/sortKey/sortOrder setters, requestStatus$ (isLoading$ is deprecated), totalCount, LIST_QUERY_DEBOUNCE_TIME, reactive forms validated automatically by @ngx-validate/core, DEFAULT_VALIDATION_BLUEPRINTS + withValidationBluePrint localization keys, abp-validation-error, the skipValidation opt-out, and config-driven abp-dynamic-form (DynamicFormComponent + FormFieldConfig). DO NOT USE FOR: proxy consumption, menus, permission directives (angular-ui); proxy generation/regeneration (abp-cli-commands); adding entity/table/toolbar/form-prop extensions to a shipped module (extend-angular-module-ui); component testing (test-angular-ui); server-side application-service or DTO design (build-crud-application-services).
/build-mvc-widgetsBuild reusable ABP MVC / Razor Pages widgets — a ViewComponent marked [Widget] that ships its own scripts, styles and bundle contributors, plus a client-side refresh lifecycle so consumers don't wire up dependencies by hand. USE FOR: turning a ViewComponent into a widget with [Widget] / AbpWidgetOptions, declaring a widget's StyleFiles/ScriptFiles/StyleTypes/ScriptTypes, server-side refresh via RefreshUrl, client refresh via abp.WidgetManager and abp.widgets (init/refresh/getFilters), AutoInitialize, dashboards with filter forms, and per-widget authorization (RequiresAuthentication / RequiredPolicies). DO NOT USE FOR: general MVC pages / modals / abp-* tag helpers / the bundling system itself (use mvc-razor-ui), overriding a built-in module's UI components (use customize-application-modules), Blazor or Angular UI (use blazor-ui / angular-ui).
/extend-angular-module-uiExtend a shipped ABP Angular module's UI (Identity, etc.) through the extension system — add row/toolbar actions, columns, and create/edit form fields without forking. USE FOR: the five contributor buckets (entity/toolbar-action, entity-prop, create/edit-form-prop contributors) keyed by the module's component enum; the EntityAction/ToolbarAction/EntityProp/FormProp factories; ePropType; the LinkedList mutators addTail/addByIndex/addAfter/dropByIndex (there is no patch/remove/insertByIndex — patch is drop-plus-reconstruct); registering via createRoutes in a lazy loadChildren (or the deprecated Module.forLazy); EXTENSIONS_IDENTIFIER; the @abp/ng.components/extensible package. DO NOT USE FOR: building your own non-module list/form (build-angular-lists-and-forms); proxy consumption, menus, permission directives, replaceable components (angular-ui); adding server-side extra properties to the entity/DTO (extend-objects-with-extra-properties); component testing (test-angular-ui).
/extend-application-shellExtend the ABP application shell/layout across MVC and Blazor with layout hooks, global/page toolbars, the page header, and branding — without copying the theme layout. USE FOR: injecting content into the layout via AbpLayoutHookOptions + LayoutHooks (MVC ViewComponent hooks; Blazor Razor Component hooks + the App.razor LayoutHook component for the head); adding global toolbar items with StandardToolbars.Main + IToolbarContributor; setting page title/breadcrumb/toolbar via IPageLayout (MVC) or the PageHeader component (Blazor); customizing app name/logo with IBrandingProvider / DefaultBrandingProvider. DO NOT USE FOR: replacing or overriding a built-in module's own pages/components (use customize-application-modules); adding navigation menu items (use menus-and-localization); general MVC or Blazor page building (use mvc-razor-ui / blazor-ui); Angular shell customization (use angular-ui).
Other plugins' skills for the same job