Calls ABP application services from browser JavaScript using generated JS proxies and the DataTables adapter, plus client-side abp.* APIs for auth, localization, settings, messages, and UI blocking.
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.
Call your server-side application services from browser JavaScript through ABP's JavaScript API Client Proxies instead of hand-writing $.ajax. A proxy function corresponds to the C# method — ABP drops the Async suffix and camelCases the name, DTOs are serialized to JSON, and the call returns a jQuery Deferred/Promise (with a trailing ajaxParams option), so acme.bookStore.authors.author.getList({ maxResultCount: 10 }) maps to IAuthorAppService.GetListAsync(...). This skill also covers wiring a proxy into ABP's DataTables adapter, and the rest of the client-side abp.* API surface (auth, localization, settings/features, messages, busy/block, events) that page code uses alongside the proxies.
getList, get, create, update, delete, …) from page JS.abp-table + DataTables.Both give the identical acme.bookStore.authors.author.get(...) calling surface; they differ in when the proxy JS is produced.
/Abp/ServiceProxyScript endpoint. Easiest dev experience — nothing to regenerate when the API changes. Visit /Abp/ServiceProxyScript in the browser to see the emitted functions.abp generate-proxy -t js -u https://localhost:53929/ (server must be running). Slight runtime perf gain because the API definition isn't fetched at runtime, but you must re-generate whenever the API changes. Output lands under ClientProxies (e.g. app-proxy.js); import it with <abp-script src="/client-proxies/app-proxy.js"/>.Otherwise both proxies register and you get duplicate/racing definitions. In the module's ConfigureServices:
Configure<DynamicJavaScriptProxyOptions>(options =>
{
options.DisableModule("app");
});
"app" is the main application; for a module, pass that module's name. abp generate-proxy also assumes app as the module name unless you pass -m / --module.
acme.bookStore.authors.author.getList({ maxResultCount: 10 })
.then(function (result) { console.log(result.items); });
acme.bookStore.authors.author.delete('7245a066-5457-4941-8aa7-3004778775f0')
.then(function () { abp.notify.info('Successfully deleted!'); });
abp.ajax under the hood, so you get automatic error handling for free..then (result), .catch (error), .always (finally). It is not a raw value.ajaxParams, not a business parameter. It's an object that overrides the underlying AJAX options — easy to mistake for a real method arg:acme.bookStore.authors.author
.delete('7245a066-5457-4941-8aa7-3004778775f0', { timeout: 10000, headers: { 'X-Demo-Header': 'value' } })
.then(function () { abp.notify.info('Successfully deleted!'); });
ajaxParams accepts jQuery.ajax options — but don't override the HTTP method, URL, content type, or data type the proxy generates (e.g. don't turn a DELETE into a POST or force an xml response); use it for timeout, extra headers, beforeSend, and similar.
The startup templates ship DataTables.Net pre-installed and bundled. Add a table and call .DataTable(...) on it, wrapping the config in ABP's normalizer and feeding the proxy through ABP's AJAX adapter:
<abp-table striped-rows="true" id="BooksTable"></abp-table>
var dataTable = $('#BooksTable').DataTable(
abp.libs.datatables.normalizeConfiguration({
serverSide: true,
paging: true,
order: [[1, "asc"]],
searching: false,
ajax: abp.libs.datatables.createAjax(acme.bookStore.books.book.getList),
columnDefs: [
{
title: l('Actions'),
rowAction: {
items: [
{ text: l('Edit'), action: function (data) { /* ... */ } }
]
}
},
{ title: l('Name'), data: "name" },
{ title: l('CreationTime'), data: "creationTime", dataFormat: 'datetime' },
{ title: l('Price'), data: "price" }
]
})
);
createAjax — the adapter (do not skip it)DataTables and ABP use different request/response shapes for paging and sorting. abp.libs.datatables.createAjax(proxyFn) translates between them and works with the proxy system. Passing the proxy function straight into DataTables' ajax is NOT equivalent — the paging/sorting params and the { items, totalCount } response won't line up.
Customize request params and/or response with the optional 2nd/3rd args:
var inputAction = function (requestData, dataTableSettings) {
return { id: $('#Id').val(), name: $('#Name').val() };
};
var responseCallback = function (result) {
return { recordsTotal: result.totalCount, recordsFiltered: result.totalCount, data: result.items };
};
ajax: abp.libs.datatables.createAjax(acme.bookStore.books.book.getList, inputAction, responseCallback)
If you only need to add fixed request params, pass a plain object as the 2nd arg:
ajax: abp.libs.datatables.createAjax(acme.bookStore.books.book.getList, { id: $('#Id').val() })
normalizeConfiguration — sets scrollX (default true here), fills in column targets indexes, and sets language to localize the table. Defaults come from abp.libs.datatables.defaultConfigurations (scrollX, dom, language), which you can override.rowAction — a column-def option that renders a per-row actions dropdown. Each items[] entry supports: text, action (receives data with data.record = row object, data.table = DataTables instance), confirmMessage (function returning a confirmation string), visible (bool or function → bool; commonly abp.auth.isGranted('BookStore.Books.Delete')), enabled (function → bool), iconClass, displayNameHtml. If no item is visible, the actions column isn't rendered.dataFormat — column option for built-in rendering without a custom render: boolean (check/times icon), date, datetime. Register new formats via abp.libs.datatables.defaultRenderers['name'] = function(value){ ... }.Reload after a mutating action:
action: function (data) {
acme.bookStore.books.book.delete(data.record.id)
.then(function () { abp.notify.info("Successfully deleted!"); data.table.ajax.reload(); });
}
Alongside the service proxies, ABP injects a client-side abp.* object into every page. These values mirror server-side configuration — permissions, localization, settings, features, and the current user are resolved on the server and serialized into the page (via the application configuration), so on the client you read them synchronously, no request needed.
Auth (permissions/policies) — against the current user's granted policies:
if (abp.auth.isGranted('BookStore.Books.Delete')) { /* ... */ }
abp.auth.isAnyGranted('A', 'B'); // any granted
abp.auth.areAllGranted('A', 'B'); // all granted
Current user — a plain object; check isAuthenticated first (anonymous → fields null, roles []):
if (abp.currentUser.isAuthenticated) { console.log(abp.currentUser.userName); }
// id, tenantId, userName, name, surName, email, roles, ...
Localization — reuses the server-side resources; an unlocalized key returns the key itself:
var res = abp.localization.getResource('BookStore');
res('HelloWorld'); // localize
res('WelcomeMessage', 'John'); // with {0} args
abp.localization.localize('HelloWorld', 'BookStore'); // shortcut (key, resource)
Settings & features — only those whose server definition allows client visibility are present:
abp.setting.get('...'); abp.setting.getInt('...'); abp.setting.getBoolean('...');
abp.features.isEnabled('...'); abp.features.get('...');
abp.globalFeatures.isEnabled('...');
AJAX (low-level) — prefer proxies; abp.ajax wraps $.ajax, returns a promise, auto-handles+localizes errors, and auto-adds the anti-forgery (CSRF) token. Pass abpHandleError: false to opt out of the automatic error UI; a 401 auto-redirects to login.
Messages (blocking) & notifications (toasts) — confirm/prompt return promises:
abp.message.confirm('Delete the "admin" role?')
.then(function (confirmed) { if (confirmed) { /* ... */ } });
abp.message.success(msg, title); // + info / warn / error
abp.notify.info(msg, title); // auto-dismissing toast (+ success / warn / error)
UI busy / block, events, DOM hooks:
abp.ui.block('#MySection'); abp.ui.unblock('#MySection'); abp.ui.setBusy('#MySection');
abp.event.on('basketUpdated', fn); abp.event.trigger('basketUpdated', basket); abp.event.off('basketUpdated', fn);
abp.dom.onNodeAdded(function (args) { /* init elements added after page load, e.g. via AJAX */ });
abp.event is browser-only pub/sub (unrelated to the server local/distributed event bus). abp.dom (backed by MutationObserver) fires for nodes added later — use it to initialize AJAX-inserted HTML. abp.ResourceLoader.loadScript(url) / loadStyle(url) fetch a file once.
/Abp/ServiceProxyScript in the browser — your service's proxy functions appear there, and the object path (e.g. acme.bookStore.books.book) resolves in the JS console.ClientProxies / app-proxy.js file exists, is imported via <abp-script>, and — after DisableModule — the console shows exactly one definition of the proxy object (no dynamic one racing it).items render; row actions run their action and data.table.ajax.reload() refreshes the grid.ajaxParams as a method parameter — the trailing object overrides AJAX options; passing a business value there silently does nothing useful..then / .catch / .always.DisableModule — leaves the dynamic proxy live too, so both register. Disable the module in DynamicJavaScriptProxyOptions.abp generate-proxy after changing the API — static proxies are frozen at generation time; dynamic ones update automatically.ajax — skips createAjax, so ABP's paging/sorting/response shape (items/totalCount) never gets adapted. Always wrap with abp.libs.datatables.createAjax.rowAction / dataFormat / normalizeConfiguration are DataTables features — they are ABP additions; they exist only when you go through ABP's adapter.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/abp-ui:use-mvc-javascript-apisfrom 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