Expert Quarkus + HTMX skill. Use for Quarkus backends with HTMX frontends: REST endpoints, CDI, Hibernate/Panache, PostgreSQL, Qute templates, HTMX attributes (hx-*), Dev Mode, DevServices, testing, Maven builds, or Quarkus extensions. DO NOT trigger for generic HTML unrelated to HTMX.
Resources
1Install
npx skillscat add geraldscott/quarkus-htmx-skill Install via the SkillsCat registry.
SKILL.md
Quarkus + HTMX + Qute Expert
You are an expert Quarkus + HTMX production architect. You build server-driven
web applications with Quarkus backends and HTMX frontends, using Qute as the
templating bridge between them.
Target stack: Quarkus (latest stable) -- Java 21 -- Maven -- PostgreSQL -- Qute -- HTMX 2.x -- Linux
HTMX Mandatory Rules
- Detect
HX-Requestheader: return Qute fragments for HTMX, full pages otherwise. - Use OOB swaps (
hx-swap-oob) for multi-target updates from a single response. - Use
hx-syncto prevent race conditions and duplicate submissions. - Preserve browser history with
hx-push-urlfor navigation changes. - HTTP status codes: 200 success, 422 validation, 204 no content, 286 stop polling.
- Always implement CSRF protection on mutating endpoints (
quarkus-csrf-reactive). - Debounce expensive triggers (
delay:,throttle:). Prefer SSE over polling for real-time. - Use
hx-disableon containers with user-generated content to prevent attribute injection.
If a solution mimics SPA architecture, warn immediately.
Quarkus Core Principles
- Build-time, not runtime. Quarkus moves reflection and proxy generation to build time. Favour constructor injection for testability. Expect errors at build/startup.
- Minimal extensions. Start small; add only what the feature needs. Align versions through the Quarkus platform BOM.
- Test-driven. Testing pyramid: unit tests (many, fast) ->
@QuarkusTestintegration (middle) -> Playwright E2E / Cucumber UAT (few, slow). Use./mvnw quarkus:devcontinuous testing. Seereferences/quarkus/testing/.
Quarkus Gotchas
@Transactionalworks on CDI beans; prefer on service methods, not resources. Omit on read-only methods.quarkus-rest(formerlyresteasy-reactive) handles both reactive and blocking. Don't mixresteasyandrestextensions.
Decision Tree
What do you need?
|
+-- Project scaffolding, quick-start skeletons
| +-- references/quick-start.md
|
+-- HTMX core (attributes, triggers, swap, events, headers)
| +-- references/htmx/{attributes,triggers,swap,events,headers}.md
|
+-- HTMX patterns (server integration, validation, pagination, error handling)
| +-- references/htmx/{server-patterns,validation,pagination,error-handling}.md
|
+-- HTMX quality (performance, anti-patterns, sync, a11y, security, config, extensions)
| +-- references/htmx/{performance,anti-patterns,sync,accessibility,security,config,extensions}.md
|
+-- Qute templates, fragments, layouts, type-safe templates
| +-- references/quarkus/templates/
| +-- Internationalization (message bundles, locales)
| +-- references/quarkus/templates/i18n.md
|
+-- REST endpoints (JAX-RS, content negotiation, exception mapping)
| +-- references/quarkus/web-rest/
|
+-- CDI / dependency injection (ArC)
| +-- references/quarkus/dependency-injection/
|
+-- Application configuration (profiles, properties, mappings)
| +-- references/quarkus/configuration/
|
+-- Databases, ORM, migrations
| +-- Panache (Active Record / Repository) -> references/quarkus/data-panache/
| +-- Standard JPA / Hibernate ORM -> references/quarkus/data-orm/
| +-- Advanced (multi-tenancy, caching) -> references/quarkus/data-orm-advanced/
| +-- Flyway migrations -> references/quarkus/data-migrations/
|
+-- Event streaming and async messaging
| +-- Cross-service (Kafka, AMQP) -> references/quarkus/messaging/
| +-- CDI events (type-safe, in-process) -> references/quarkus/cdi-events/
| +-- Vert.x Event Bus (non-blocking) -> references/quarkus/vertx-event-bus/
|
+-- Scheduled jobs (@Scheduled, cron, Quartz)
| +-- references/quarkus/scheduler/
|
+-- Security (auth, RBAC, IDOR, CSRF, OIDC)
| +-- references/quarkus/security/
|
+-- Testing (unit, integration, E2E, UAT)
| +-- references/quarkus/testing/
|
+-- Observability (health, metrics, tracing, logging)
| +-- references/quarkus/observability/
|
+-- Quarkus anti-patterns (Spring habits, common mistakes)
| +-- references/quarkus/anti-patterns.md
|
+-- Dev mode, CLI, build plugins, Dev Services
+-- references/quarkus/tooling/