Installation

Install as Agent Plugin Recommended
copilot plugin marketplace add samueltauil/skills-hub
copilot plugin install create-quarkus-project@skills-hub

Works with GitHub Copilot CLI and VS Code (enable chat.plugins.enabled). Plugin create-quarkus-project v1.0.0 follows the Agent Plugins spec.

Install with the gh extension
gh skills-hub install create-quarkus-project

Don't have the extension? Run gh extension install samueltauil/skills-hub first.

Download and extract to your repository:

.github/skills/create-quarkus-project/

Extract the ZIP to .github/skills/ in your repo. The folder name must match create-quarkus-project for Copilot to auto-discover it.

Skill Files (6)

SKILL.md 4.4 KB
---
name: create-quarkus-project
description: 'Create a new Quarkus project (Maven or Gradle) with the Quarkus CLI, code.quarkus.io API or Maven plugin, choose extensions, and run it in dev mode. Use when asked to scaffold, bootstrap or start a Quarkus application or REST API.'
---

# Create a Quarkus Project

## 1. Detect the environment

```bash
java -version          # Java 17, 21 or 25 (Quarkus 3.40 recommends 25, 3.27 recommends 21)
quarkus --version      # optional Quarkus CLI
./mvnw -v || mvn -v    # or ./gradlew -v
```

If the folder already contains a Quarkus project (`io.quarkus.platform` BOM, `quarkus-maven-plugin`, or `io.quarkus` Gradle plugin), do NOT scaffold: read its Quarkus version and keep it. For a new project, use the stream marked recommended on https://code.quarkus.io/api/streams (an LTS stream; see also https://quarkus.io/support/), and do not invent a patch version: let the tool pick it. Quarkus 4.0 is still a beta, so do not use it unless asked. If an extension is missing from the recommended stream, the CLI silently picks an older stream; check `quarkus.platform.version` in the generated build file.

## 2. Scaffold (pick one)

Quarkus CLI (install via https://quarkus.io/get-started/ , e.g. SDKMAN `sdk install quarkus`):

```bash
quarkus create app com.example:demo \
  --extension='rest-jackson,hibernate-orm-panache,jdbc-postgresql,hibernate-validator,smallrye-health' \
  --java=21 --maven        # or --gradle
```

No CLI: Maven plugin (pin the version to the current release from https://quarkus.io/guides/maven-tooling, replace `QUARKUS_VERSION` below with it):

```bash
mvn io.quarkus.platform:quarkus-maven-plugin:QUARKUS_VERSION:create \
  -DprojectGroupId=com.example -DprojectArtifactId=demo \
  -Dextensions='rest-jackson,hibernate-orm-panache,jdbc-postgresql' \
  -DbuildTool=maven        # or gradle
```

Or generate from the https://code.quarkus.io web UI / REST API (`https://code.quarkus.io/d?g=com.example&a=demo&e=rest-jackson&b=MAVEN`) and unzip.

## 3. Choose extensions

| Need | Extension |
|---|---|
| REST + JSON | `rest-jackson` (Quarkus REST; not legacy `resteasy`) |
| Database ORM | `hibernate-orm-panache`, `jdbc-postgresql` |
| Validation | `hibernate-validator` |
| Health / metrics | `smallrye-health`, `micrometer-registry-prometheus` |
| Auth | `oidc` or `smallrye-jwt` |
| OpenAPI | `smallrye-openapi` |
| REST client | `rest-client-jackson` |
| Container | `container-image-jib` (or `container-image-docker`) |

Add later with `quarkus extension add <name>` or `./mvnw quarkus:add-extension -Dextensions=<name>`; `quarkus extension list --installable` lists options.

## 4. Layout and run

```
src/main/java/...          # resources, services, entities
src/main/resources/application.properties
src/main/docker/           # Dockerfile.jvm, Dockerfile.native, ...
src/test/java/...          # @QuarkusTest / @QuarkusIntegrationTest
```

```bash
./mvnw quarkus:dev         # or: quarkus dev / ./gradlew quarkusDev
```

Generated tests include a `*IT` class that Maven skips by default (`<skipITs>true</skipITs>` in the template); run it with `./mvnw verify -DskipITs=false` or `-Dnative`. Dev mode gives live reload, Dev UI at http://localhost:8080/q/dev-ui, Dev Services (auto containers), and continuous testing (press `r`). Package: `./mvnw package` (runnable `target/quarkus-app/quarkus-run.jar`).

## References

- [Configuration](references/configuration.md)
- [Database (Dev Services, Hibernate, Flyway/Liquibase)](references/database.md)
- [Security basics](references/security.md)
- [Container images](references/container-image.md)
- [Local runtime insights (BootUI)](references/local-runtime-insights.md)

Verified (scaffold, `./mvnw verify`, `./gradlew build`, dev mode, Dev Services PostgreSQL, JDK 26 with Java 25 release) on Quarkus 3.40.1 (current recommended LTS stream) and `./mvnw verify` on 3.27.6 (older LTS).

Related skills: `quarkus-dev-services-and-testing`, `quarkus-native-and-container`.

## Upstream sources (read before upgrading)

Fetch the page for the target version; prefer it over this skill when they conflict.

- `quarkus update` (automated upgrade, uses OpenRewrite): <https://quarkus.io/guides/update-quarkus>
- Migration guides, one wiki page per minor: <https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.20> (change the version)
- Release announcements: <https://quarkus.io/blog/>
- LTS policy and current LTS: <https://quarkus.io/blog/lts-releases/>
references/
configuration.md 1.2 KB
# Configuration

Quarkus reads (highest priority first): system properties, environment variables, `.env`, `config/application.properties`, `src/main/resources/application.properties` (or `.yaml` with `quarkus-config-yaml`).

## Profiles

Built-in profiles: `dev` (`quarkus:dev`), `test`, `prod` (packaged app).

```properties
quarkus.http.port=8080
%dev.quarkus.log.level=DEBUG
%prod.quarkus.http.cors.enabled=false
```

Env var mapping: `quarkus.http.port` -> `QUARKUS_HTTP_PORT`. Activate a profile with `-Dquarkus.profile=staging` or `QUARKUS_PROFILE`.

## Type-safe config

```java
@ConfigMapping(prefix = "app.mail")
public interface MailConfig {
    String from();
    @WithDefault("25") int port();
    Optional<String> replyTo();
}
```

Inject it via the constructor. Use `@ConfigProperty(name = "app.name")` only for single values. Validate with Bean Validation annotations on mapping methods (requires `hibernate-validator`).

## Secrets

Never commit secrets. Use `${DB_PASSWORD}` expressions, env vars, Kubernetes secrets, or a vault extension. Keep a `.env` file (git-ignored) for local overrides; Quarkus also loads it from the working directory of a packaged app, so never deploy it.
container-image.md 1.3 KB
# Container images

## Extension-based (no Dockerfile)

```bash
quarkus extension add container-image-jib     # or container-image-docker
./mvnw package -Dquarkus.container-image.build=true
```

```properties
quarkus.container-image.group=myorg
quarkus.container-image.name=demo
quarkus.container-image.tag=1.0.0
# push: -Dquarkus.container-image.push=true  with quarkus.container-image.registry=ghcr.io
```

Jib builds the image itself (verified: `myorg/demo:1.0.0`, 192 MB, appeared in the local Docker daemon). It needs no daemon when pushing to a registry; without `push` it loads into the local daemon. The docker extension uses `src/main/docker/Dockerfile.jvm` / `Dockerfile.native`. Add only one `container-image-*` extension: with several, the build fails with `IllegalStateException` (verified with jib + openshift).

## Dockerfiles generated in src/main/docker

- `Dockerfile.jvm` (fast-jar layout), `Dockerfile.legacy-jar`, `Dockerfile.native`, `Dockerfile.native-micro`.

```bash
./mvnw package
docker build -f src/main/docker/Dockerfile.jvm -t myorg/demo:jvm .
docker run -p 8080:8080 myorg/demo:jvm
```

Run as non-root, pass config through env vars (`QUARKUS_DATASOURCE_JDBC_URL`, ...), and pin base-image tags. For native images and Kubernetes manifests see the `quarkus-native-and-container` skill.
database.md 2.9 KB
# Database

Extensions: `hibernate-orm-panache`, `jdbc-postgresql` (or another JDBC driver). Optional: `flyway` or `liquibase`.

"Panache Next" (a unified blocking/reactive API) was renamed Quarkus Data in 3.37: the artifact is `quarkus-data-hibernate` (previously `quarkus-hibernate-panache-next`, and earlier `quarkus-hibernate-panache`). Its extension metadata in 3.40.1 says `status: experimental`, so keep `hibernate-orm-panache` (stable) unless the user asks for Quarkus Data. Not compiled here: only the artifact metadata and the 3.37/4.0 migration guides were checked.

## Dev Services

With no `quarkus.datasource.jdbc.url` configured, dev and test modes start a PostgreSQL container automatically (Docker/Podman required). Do not set the URL in `%dev`/`%test`. Tuning:

```properties
quarkus.datasource.db-kind=postgresql
%dev.quarkus.datasource.devservices.image-name=postgres:17
%dev.quarkus.datasource.devservices.reuse=true
```

Without `image-name`, 3.40 starts `postgres:18`; pin the image to match production. `reuse` only takes effect when the Testcontainers user file `~/.testcontainers.properties` contains `testcontainers.reuse.enable=true` (otherwise Quarkus logs "Reuse was requested but the environment does not support the reuse of containers").

Production settings go in `%prod.`:

```properties
%prod.quarkus.datasource.jdbc.url=${DB_URL}
%prod.quarkus.datasource.username=${DB_USER}
%prod.quarkus.datasource.password=${DB_PASSWORD}
```

## Hibernate ORM

```properties
%dev.quarkus.hibernate-orm.schema-management.strategy=drop-and-create
%prod.quarkus.hibernate-orm.schema-management.strategy=none
```

(`quarkus.hibernate-orm.database.generation` is the deprecated old name: 3.40 logs a deprecation warning for it. `schema-management.strategy` was verified on 3.27.6 and 3.40.1; for older releases check the Hibernate ORM guide.)

Panache repository:

```java
@Entity
public class Product { @Id @GeneratedValue Long id; String name; }

@ApplicationScoped
public class ProductRepository implements PanacheRepository<Product> {}
```

Put `@Transactional` on methods that write. Use `find(...).page(Page.of(0, 20))` for pagination.

## Migrations

For production use Flyway (`quarkus-flyway`) or Liquibase (`quarkus-liquibase`):

```properties
quarkus.flyway.migrate-at-start=true
```

When adopting Flyway or Liquibase, remove every Hibernate schema-recreation override (such as the `%dev` `drop-and-create` above) and set `quarkus.hibernate-orm.schema-management.strategy=none` (or `validate`) so the migration tool alone manages the schema; otherwise Hibernate can drop and recreate the migrated tables.

With PostgreSQL, Flyway also needs the database-specific module `org.flywaydb:flyway-database-postgresql` (managed by the Quarkus BOM) next to `quarkus-flyway`; without it startup fails because Flyway cannot handle PostgreSQL.

Place scripts in `src/main/resources/db/migration` (`V1__init.sql`). Flyway also gets a Dev Services-provided datasource automatically.
local-runtime-insights.md 0.7 KB
# Local runtime insights (optional)

[BootUI](https://github.com/jdubois/boot-ui) ([docs](https://www.julien-dubois.com/boot-ui/)) is a local-only developer console and an opt-in MCP server for Spring Boot and Quarkus applications, useful to inspect a running app while developing.

Rules for the agent:

- ALWAYS ask the user for consent before adding the dependency or the skill.
- Add it for local development only (dev profile / dev-only dependency scope); never ship or expose it in production.
- Follow the project documentation for the exact dependency coordinates and configuration.

To install its agent skill (after consent):

```bash
gh skill install jdubois/boot-ui skills/bootui
```
security.md 0.7 KB
# Security basics

## OIDC (bearer tokens / Keycloak)

Add `quarkus-oidc`. In dev/test, Dev Services starts a Keycloak container when `quarkus.oidc.auth-server-url` is not set.

```properties
%prod.quarkus.oidc.auth-server-url=${OIDC_URL}
%prod.quarkus.oidc.client-id=${OIDC_CLIENT_ID}
quarkus.oidc.application-type=service
```

For web apps with browser login use `quarkus.oidc.application-type=web-app`. For plain JWT verification without an identity provider flow, use `quarkus-smallrye-jwt`.

## Authorization

```java
@Path("/admin")
@RolesAllowed("admin")
public class AdminResource { ... }
```

Or path rules:

```properties
quarkus.http.auth.permission.secured.paths=/api/*
quarkus.http.auth.permission.secured.policy=authenticated
```

License (MIT)

View full license text
MIT License

Copyright GitHub, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.