new-screen

A workflow for adding a new page to an HTMX, PHP, and Bootstrap application. It uses the application's existing page patterns for lists, details, forms, reports, and settings.

In plain words
What is it for?
Use it to build screens such as customer lists, detail views, create or edit forms, reports, and settings pages.
Why use it?
It keeps new pages consistent with the established design and file structure instead of creating one-off layouts.

Skill for Claude CodeCodex

Part of the htmx-php-builder plugin — 9 skills shipped together

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/new-screen
Any agent
npx skills add maludb-ed/htmx-php-builder --skill new-screen
Clone the repo
git clone --depth 1 https://github.com/maludb-ed/htmx-php-builder

Made for: Claude Code, Codex.

Or install htmx-php-builder, the plugin that ships this one along with the rest of its 9 skills.

Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 876 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.00081 $0.00876
Opus 5 $0.00041 $0.00438
Sonnet 5 $0.00016 $0.00175
Haiku 4.5 $0.00008 $0.00088

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

Security

Grade A, and why

new-screen 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 3d ago.

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/new-screen/SKILL.md · 35 lines

How it starts

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

New Screen Workflow

Every screen must be indistinguishable in style from the rest of the application. Never design a screen from scratch — assemble it from the canonical patterns.

Steps

  1. Read the design system first. Open the design-system skill's references — design-decisions.md first (it overrides everything), then layout-skeleton.html / components.md, and start from the matching page in examples/:
    • List screen → the canonical "Traffic Reports" table card with server-rendered pagination (examples/partials/customers-list.html)
    • Detail screen → view/panels pattern (examples/partials/customer-view.html)
    • Create/edit → full-container form partial (examples/partials/customer-form.html)
    • Auth-related → minimal auth layout (examples/auth-login.html)
  2. Follow the php-patterns skill for the file layout and handler structure: endpoints under /var/www/html/{feature}/ (the Apache DocumentRoot) (index.php, form.php, save.php, delete.php), query functions in app/features/{feature}/queries.php, views under app/views/{feature}/ (page.php + partials/). One screen = the pattern's prescribed files, no more.
  3. HTMX wiring. The screen renders as a partial into the shell's main content target (see the marked MAIN CONTENT TARGET comment in the layout skeleton). Navigation links use hx-get + hx-push-url with an explicit canonical URL — hx-push-url="true" is banned (it pushes the partial's path and breaks relative URLs); forms use hx-post returning either the updated partial or an HX-Redirect header. The page must also render standalone (full layout) when requested directly, so deep links and refreshes work.
  4. Interaction rules (no modals) — the CRUD contract:
    • Every list screen: "Add " primary button in the page-header actions + an explicit Edit button on every table row; both hx-get the same full-container form partial (empty vs pre-filled) into the shell swap target with hx-push-url.
    • Create/edit/detail: dedicated full pages.
    • Quick single-field edits: inline HTMX swap in place.
    • Filters or quick previews only: offcanvas drawer, full-width on mobile. Never put a form submit inside an offcanvas.
    • Confirmations: hx-confirm on the destructive control (the no-modal rule covers forms and display pages, not confirmations).
  5. Activity logging. The handler logs screen entry and every state-changing action to the activity log.
  6. Mobile check before done. Verify at 375px: no horizontal scroll, tables wrap in .table-responsive, toolbars stack, touch targets ≥ 44px. A screen is not finished until this passes.
  7. Register it. Add the sidebar/menu entry using the exact menu-item markup from the layout skeleton.

Read the full file on GitHub · 35 lines

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. 3d ago First seen · 35 lines · 81 tokens per session scan A 68fed7a3125a

Subscribe to this mod's changes

new-screen is a skill published in the GitHub repository maludb-ed/htmx-php-builder (8 stars, last pushed 27d ago), licensed MIT. It adds 81 tokens to every session and 876 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

author-component

Create or review Blazor components (.razor files) with correct architecture. USE FOR: writing new Blazor components that do NOT involve JavaScript interop, implementing parameters and EventCallback, RenderFragment slots, component lifecycle (OnInitializedAsync, OnParametersSet), async patterns, IAsyncDisposable…

dotnet/skills · 148 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