/htmx-php-builder:design-systemfrom htmx-php-builder
Provides the canonical Bootstrap 5.3 admin template (nxl theme) with fixed layout, component patterns, and mobile-first rules. Read before generating or editing any page or HTML in applications built with this plugin.
Ships in htmx-php-builder. 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.
Read when SKILL.md points to them.
Every screen in every application must look like it came from the same template, because it did. The single source of truth is the reference set in this skill — extracted from the licensed Bootstrap 5.3 admin template the applications are built on.
nxl-navigation), header (nxl-header), the main content container HTMX swaps into (marked MAIN CONTENT TARGET), footer, script includes.components.md "Header: the application switcher" — the Helpdesk button and the applications dropdown every OS application's header carries (PHP in examples/php/app-switcher/; the contract is the integration plugin's sign-on-and-directory.md §8).<select> of every row; the field, the endpoint, the registry, the helper, the retrofit steps. The PHP files are in examples/php/record-picker/.index.html), HTMX partials for the list/form/view screens, the auth page, and the actual theme CSS/JS/font assets. Copy examples/assets/ into every new application verbatim — this is what guarantees pixel-identical styling. Use the example pages as the starting point for Phase 2's shell and for each screen type.nxl-* classes are load-bearing — the theme CSS/JS depends on the exact nesting)..modal for anything that shows or collects data — create/edit/detail are dedicated full pages; quick edits swap inline via HTMX; offcanvas drawers only for filters/quick views, full-width on mobile. Two exemptions: confirmations (hx-confirm, the browser confirm dialog, is the standard guard on destructive actions) and the record picker (references/record-picker.md) — the shell's one #record-picker modal, through which a form chooses a record (a supplier, an item, a person: anything with its own list screen) instead of a <select> that lists every row. It only chooses and closes; it never shows a record or carries a form..table-responsive, action toolbars stack vertically, touch targets ≥ 44px. Check this before declaring any screen done.app-overrides.css. No inline style=, no ad-hoc CSS files, no overriding theme variables without explicit user approval. The single sanctioned override file is assets/css/app-overrides.css (ships in examples/assets/), loaded after theme.min.css on every page — plugin-level corrections to the theme live there and nowhere else. If a component pattern is missing from components.md, add it there (from the original template) first, then use it.assets.md, in that order. Page-specific init scripts follow the template's naming convention and are loaded only on their page. When content arrives via HTMX swap, re-run the page-specific init in the htmx:afterSwap handler — theme JS bound at load time does not see swapped-in DOM.hx-push-url for navigable screens; no SPA frameworks, no jQuery beyond what the theme itself ships.id per the naming scheme in design-decisions.md (left-sidenav, customers-list-table, customer-form-field-email, customer-row-{id}). IDs are the change-request vocabulary: never rename one once shipped, prefix screen-level ids with the screen name, and interpolate record keys into loop-generated ids.app-overrides.css forces clearly visible, grabbable scrollbars everywhere (12px, contrasting thumb, light and dark variants) — never remove or override those rules, never use scrollbar-width: none or ::-webkit-scrollbar { display: none }, and never overflow: hidden on a content panel. Any fixed-height panel gets overflow-y: auto and must show its scrollbar when content overflows.class="card" (plus modifiers like border-top-0); never the theme's stretch / stretch-full / stretch-half height classes, which force height: 100% and leave forms and summaries with large empty space. Cards side by side may differ in height — that is expected..page-header (title/breadcrumb/actions/search) plus .main-content, and swap into the whole of .nxl-content, which the shell gives id="page-content". The .page-header block is a sibling of .main-content inside .nxl-content; sidebar, header, and footer sit safely outside. (.main-content alone remains the target only for sub-page swaps like pagination or inline edits.)hx-push-url="true" — always an explicit canonical URL. The "true" value pushes the request's own path; in this pattern the request path is a partial route, so it moves the document base and breaks every subsequent relative URL (verified failure: second navigation 404s). The only permitted form is an explicit value naming the real screen URL (e.g. fetch /customers/partial, hx-push-url="/customers"). This is a hard rule with no exceptions — treat hx-push-url="true" in any generated code as a bug.<html>, not <body>: dark mode is the app-skin-dark class on <html>, persisted in localStorage and applied by theme-customizer-init.min.js — that script must be the last script on every page or dark mode silently dies. The customizer panel partial itself is optional.theme.min.css then app-overrides.css last in <head> (overrides must win the cascade); vendors.min.js first, then common-init.min.js, then the page-specific init, then theme-customizer-init.min.js last (details in assets.md).htmx:afterSwap handler.design-decisions.md); DataTables is not used on application screens, so there is nothing to re-init after a table swap.data-select2-selector="..." attributes (with data-bg="bg-success" etc. for colored status/tag chips); the select2 CSS/JS must be present wherever they're used..page-header-right-items-wrapper), not at the bottom of the form; forms use the horizontal col-lg-4 label / col-lg-8 control grid with input-group icon prefixes.page-header-form and data-form="{form id}" (and only those pages): app-overrides.css keeps it under the top bar while the form scrolls, with Cancel/Save inline on phones, and the shell's form guard (examples/index.html) shows "Unsaved changes" and asks before leaving an edited form. Never add a second Save at the bottom of a form — the bottom belongs to the assistant bar. Markup in components.md..card.border-top-0 > .card-header.p-0 > ul.nav.nav-tabs.flex-wrap.w-100.text-center with li.nav-item.flex-fill.border-top — identical on create and view pages.a#mobile-collapse toggles mob-navigation-active on nav.nxl-navigation (theme JS adds the overlay); the desktop mini-sidebar toggles the minimenu class on <html>. Keep those ids/classes intact in the layout. Page-header action items collapse into a mobile offcanvas via the .page-header-right-open-toggle / -close-toggle elements — keep them in every generated page header (form headers show their actions inline on phones instead; the CSS hides the toggles there).examples/assets/css/app-overrides.css (opens in a new tab)examples/assets/css/bootstrap.min.css (opens in a new tab)examples/assets/css/theme.min.css (opens in a new tab)examples/assets/images/avatar/1.png (opens in a new tab)examples/assets/images/avatar/2.png (opens in a new tab)examples/assets/images/avatar/3.png (opens in a new tab)examples/assets/images/avatar/4.png (opens in a new tab)examples/assets/images/avatar/5.png (opens in a new tab)examples/assets/images/avatar/6.png (opens in a new tab)examples/assets/images/favicon.png (opens in a new tab)examples/assets/images/logo-abbr.png (opens in a new tab)examples/assets/images/logo-full.png (opens in a new tab)examples/assets/js/common-init.min.js (opens in a new tab)examples/assets/js/record-picker.js (opens in a new tab)examples/assets/js/theme-customizer-init.min.js (opens in a new tab)examples/assets/vendors/css/dataTables.bs5.min.css (opens in a new tab)examples/assets/vendors/css/select2.min.css (opens in a new tab)examples/assets/vendors/css/vendors.min.css (opens in a new tab)examples/assets/vendors/fonts/bootstrap-icons.woff (opens in a new tab)examples/assets/vendors/fonts/bootstrap-icons.woff2 (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bootstrap-5, admin-template, nxl-theme, ui-patterns, component-library
npx claudepluginhub maludb/maludb-os-htmx-php-guidelines --plugin htmx-php-builder10 skills in this plugin
/chat-actionsThe voice-first chat command bar that ships on every screen of every application — natural language in (typically dictated via a tool like Wispr Flow), application actions and navigation out, powered by an LLM router activating MCP tools. Use when building or extending the assistant command bar, the actions MCP server, the action manifest, chat-driven navigation, or voice-to-data capture./malumail-sendSend transactional email through the MaluMail API (api.malumail.com) and integrate MaluMail sending into an application. Use when an app needs to send email programmatically — welcome/verification/receipt/notification/password-reset messages, alerts, or any outbound mail — through MaluMail; when wiring up MaluMail sending; when managing a MaluMail suppression list; or when debugging MaluMail send failures (401/403/429/502, verified sending domains, API keys, Bearer auth). Triggers on "send email via MaluMail", "MaluMail API", "api.malumail.com", "transactional email", "suppression list"./mcp-serversDesign and build the two MCP servers every application ships — the record-memory server over PostgreSQL 17 and the activity-memory server over MaluDB — in Python with FastMCP, exposed to the app's AMA agent and to clients' own AI tools. Use during Phase 1 (tool-surface design) and when implementing, deploying, or extending an application's MCP servers.Other plugins' skills for the same job