Build and debug ABP MVC / Razor Pages UI with AbpPageModel, abp-* tag helpers, modal system, bundling, and per-page CSS/JS.
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.
Guidance for building UI on ABP's ASP.NET Core MVC / Razor Pages stack. Framework code lives under Volo.Abp.AspNetCore.Mvc* and the Volo.Abp.AspNetCore.Mvc.UI.* packages (tag helpers, bundling, theming).
AbpPageModel.abp-* tag helpers instead of raw Bootstrap markup.abp-modal, opened via abp.ModalManager).AbpBundlingOptions and emitting them with the bundle tag helpers.abp-script / abp-style.Derive Razor Page models from AbpPageModel (namespace Volo.Abp.AspNetCore.Mvc.UI.RazorPages). It extends ASP.NET Core's PageModel and gives you framework services (resolved lazily through LazyServiceProvider) instead of re-injecting them:
L — an IStringLocalizer; set LocalizationResourceType to bind it to your module's resource.CurrentUser, CurrentTenant, AuthorizationService, SettingProviderObjectMapper (set ObjectMapperContext to pick a profile), GuidGenerator, Clock, LoggerAlerts / AlertManager, UnitOfWorkManager / CurrentUnitOfWorkCheckPolicyAsync(policyName), ValidateModel(), RedirectSafelyAsync(returnUrl)public class CreateModalModel : AbpPageModel
{
public CreateModalModel()
{
LocalizationResourceType = typeof(MyProjectResource);
}
public async Task OnGetAsync() { /* L["Key"], CurrentUser, ... */ }
}
Razor Pages live under Pages/ in the web project, grouped by feature (e.g. Pages/Books/Index.cshtml + Index.cshtml.cs, CreateModal.cshtml + .cs). Module UIs ship their own Pages/ inside their *.Web packages. Each page pairs a .cshtml view with a .cshtml.cs model deriving from AbpPageModel.
ABP ships abp-* tag helpers (namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers) that render Bootstrap markup and honor the active theme. Verified examples:
<abp-button button-type="Primary" text="@L["Save"]" icon="check" />
<abp-dynamic-form abp-model="@Model.Book" /> <!-- builds a form from a model + data annotations -->
<abp-button> — attrs include button-type (AbpButtonType), size, text, icon, icon-type, busy-text, disabled.<abp-dynamic-form> — renders a full form from a bound model; skip properties with [DynamicFormIgnore].<abp-card>, <abp-row>/<abp-column>, <abp-input>, <abp-select>, <abp-modal> (below). Match the tag helpers already used in the project rather than reaching for raw Bootstrap HTML.A modal is a normal Razor Page (its own .cshtml + AbpPageModel) whose body is wrapped in the abp-modal tag helpers. The submit happens by posting a form, so wrap the entire <abp-modal> in a single <form> (matching modules like TenantManagement's CreateModal.cshtml) and put the fields in the body with <abp-input> / <abp-select> — the footer's Save button then submits that form:
<form method="post" asp-page="/Books/CreateModal">
<abp-modal size="Large">
<abp-modal-header title="@L["NewBook"]" />
<abp-modal-body>
<abp-input asp-for="Book.Name" />
<abp-input asp-for="Book.Price" />
</abp-modal-body>
<abp-modal-footer buttons="@(AbpModalButtons.Cancel | AbpModalButtons.Save)" />
</abp-modal>
</form>
To build the whole form from a model instead of listing inputs, use <abp-dynamic-form> — it renders as the <form> itself, so make it the outermost element wrapping the modal and place the fields with <abp-form-content /> (see the Docs module's Create.cshtml). Never nest an <abp-dynamic-form> inside another <form>. (It only emits its own submit button when submit-button="true"; the default does not, so it won't duplicate a footer Save.)
<abp-modal> attrs: size (AbpModalSize), centered, scrollable, static. On the calling page, open it from JS with the abp.ModalManager global (defined in .../Theme.Shared/.../bootstrap/modal-manager.js):
var createModal = new abp.ModalManager(abp.appPath + 'Books/CreateModal');
createModal.open(); // loads the page's HTML into a Bootstrap modal
createModal.onResult(function () { dataTable.ajax.reload(); });
new abp.ModalManager(viewUrl) (or an options object) returns a manager with open, close, reopen, onOpen, onResult. It posts the modal form and raises the result callback on success.
ABP has its own bundling system configured via AbpBundlingOptions (namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling) in your module's ConfigureServices:
Configure<AbpBundlingOptions>(options =>
{
options.ScriptBundles
.Configure(StandardBundles.Scripts.Global, bundle =>
{
bundle.AddFiles("/global-scripts.js");
});
});
AbpBundlingOptions exposes ScriptBundles / StyleBundles, plus Mode (BundlingMode), DeferScriptsByDefault, PreloadStylesByDefault. Reusable bundle content is added via an IBundleContributor / BundleContributor. Bundles are emitted with the bundle tag helpers <abp-script-bundle name="..."> and <abp-style-bundle name="...">.
Convention: co-locate a page's assets next to the .cshtml (e.g. Index.cshtml + Index.cshtml.js + Index.cshtml.css) and register them per page inside @section scripts / @section styles using the single-file tag helpers <abp-script> / <abp-style> (verified [HtmlTargetElement("abp-script")]):
@section scripts {
<abp-script src="/Pages/Books/Index.cshtml.js" />
}
@section styles {
<abp-style src="/Pages/Books/Index.cshtml.css" />
}
These minify/version the file and slot it into the right bundle. Prefer them over raw <script>/<link> so ABP's minification and cache-busting apply.
MVC/Razor navigation uses the same IMenuContributor mechanism as the rest of ABP (context.Menu.AddItem(new ApplicationMenuItem(...)), gated on StandardMenus.Main), registered through AbpNavigationOptions. See the menus-and-localization skill for the full pattern and the rule about translating any new localization keys into every culture's json.
AbpPageModel compiles and its lazily-resolved services (L, CurrentUser, Alerts, …) are available without manual injection.abp-* tag helpers emit themed Bootstrap markup; a modal opened via abp.ModalManager loads the page's HTML and fires onResult after a successful post.abp-script / abp-style and the bundle tag helpers produce versioned (cache-busted) output rather than raw asset tags — the output is minified only when minification is enabled (BundleAndMinify, or Auto outside Development).Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/**). A tag helper maps to its element via an explicit [HtmlTargetElement("abp-…")] or, absent that, via Razor's class-name naming convention (e.g. AbpModalTagHelper has no [HtmlTargetElement] yet still binds to <abp-modal>).<abp-dynamic-form> inside another <form> — it renders as the <form> itself; make it the outermost element wrapping the modal and place fields with <abp-form-content />.<abp-modal> in a single <form> so the footer Save button submits it.<script> / <link> / raw Bootstrap HTML — prefer abp-script / abp-style and abp-* tag helpers so cache-busting and theming apply (and minification when it's enabled, i.e. BundleAndMinify or Auto outside Development); match the tag helpers already used in the project.What SKILL.md sets; muted values are Claude Code's defaults
/abp-ui:mvc-razor-uifrom 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