design-system

A required visual design guide for applications created with the HTMX and PHP builder. It defines the Bootstrap 5.3 admin layout, reusable interface components, page structures, assets, and mobile-first behavior.

In plain words
What is it for?
Use it before creating or editing application screens, forms, tables, detail pages, authentication pages, layouts, or other HTML interface parts.
Why use it?
It keeps pages consistent with the application's chosen template and gives developers approved markup patterns to follow.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/maludb-ed/htmx-php-builder/design-system
Any agent
npx skills add maludb-ed/htmx-php-builder --skill design-system
Clone the repo
git clone --depth 1 https://github.com/maludb-ed/htmx-php-builder

Made for: Claude Code, Codex.

Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,860 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00078 $0.01860
Opus 5 $0.00039 $0.00930
Sonnet 5 $0.00016 $0.00372
Haiku 4.5 $0.00008 $0.00186

Measured 2d ago against content hash 1dba334fa603, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

design-system scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (examples/assets/js/common-init.min.js, examples/assets/js/theme-customizer-init.min.js, examples/assets/vendors/js/dataTables.bs5.min.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/design-system/SKILL.md · 43 lines

How it starts

The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Design System

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.

References (read the one you need before writing markup)

  • references/design-decisions.mdread first; overrides everything else where they conflict. The locked, project-independent design choices (canonical table = the "Traffic Reports" pattern with server-rendered pagination, interaction defaults, and the running list of pinned decisions).
  • references/layout-skeleton.html — the canonical app-shell page: head/CSS includes, sidebar navigation (nxl-navigation), header (nxl-header), the main content container HTMX swaps into (marked MAIN CONTENT TARGET), footer, script includes.
  • references/components.md — canonical markup for page headers, cards, list/table pages, create/edit forms, detail pages, buttons, badges, avatars, tabs.
  • references/auth-layout.html — the auth-page skeleton (login/register/reset use this, minimal style).
  • references/assets.md — which CSS/JS files each page includes and in what order.
  • examples/ — a working, trimmed example application: the shell (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.

Non-negotiable rules

  1. Copy, don't compose. Take the exact markup structure and class names from the references. Do not substitute generic Bootstrap markup where the template has its own pattern (nxl-* classes are load-bearing — the theme CSS/JS depends on the exact nesting).
  2. No modal forms or display surfaces. No .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. Confirmations are exempt: hx-confirm (the browser confirm dialog) is the standard guard on destructive actions.
  3. Mobile first. Every screen works at 375px: no horizontal page scroll, tables inside .table-responsive, action toolbars stack vertically, touch targets ≥ 44px. Check this before declaring any screen done.
  4. No new styling — except 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.
  5. Assets are fixed. Include exactly the CSS/JS listed in 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.
  6. HTMX is the interactivity layer. Server-rendered partials swapped into the main content target; hx-push-url for navigable screens; no SPA frameworks, no jQuery beyond what the theme itself ships.
  7. Every meaningful element gets a unique, stable, kebab-case 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.
  8. Scrollbars must be visible. The theme ships 5px scrollbars with a near-invisible thumb (and hides some entirely), which makes scrollable panels unusable. 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.

Read the full file on GitHub · 43 lines

Files

What ships with it

45 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 43 lines · 78 tokens per session scan A 1dba334fa603

Subscribe to this mod's changes

design-system is a skill published in the GitHub repository maludb-ed/htmx-php-builder (8 stars, last pushed 27d ago), licensed MIT. It adds 78 tokens to every session and 1,860 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

design-guide

Paperclip UI design system guide for building consistent, reusable frontend components. Use when creating new UI components, modifying existing ones, adding pages or features to the frontend, styling UI elements, or when you need to understand the design language and conventions. Covers: component creation, design…

paperclipai/paperclip · 105 tokens

Shade ShadCN install

Guardrails for running pnpm dlx shadcn@latest add in Shade — never overwrite existing components, fresh branch first, swap raw colours for semantic tokens after integrating. Trigger when the user proposes a shadcn add, or when a fresh ShadCN-shaped file lands in apps/shade/src/components/ui.

TryGhost/Ghost · 72 tokens

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

frontend-design

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Use whenever the task produces or modifies anything a user will see rendered — websites, landing pages, web apps, dashboards, React/HTML/Vue components, artifacts with visual output, style overhauls, or "make this…

XiaomiMiMo/MiMo-Code · 111 tokens

obsidian-layout-adjustment

Workflow for working with the user on changing how Obsidian looks using CSS snippets. Use this whenever the user asks to restyle Obsidian, tune a vault's visual layout, adjust tabs, sidebars, note surfaces, properties, backlinks, graph panes, file explorer rows, icons, links, shadows, active states, or CSS snippets.…

Ar9av/obsidian-wiki · 115 tokens