Catalogue / flowlogix-new-project
flowlogix-new-project
Apache-2.0SignedScaffolds a new Java project built with Maven — a library, a command line tool, a REST service or a web app — with the Maven wrapper, unit and integration tests, code coverage, checkstyle and Dependabot already set up, using JStarter (the start.flowlogix.com generator, the jstarter CLI or the com.fl…--- name: flowlogix-new-project description: Scaffolds a new Java project built with Maven — a library, a command line tool, a REST service or a web app — with the Maven wrapper, unit and integration tests, code coverage, checkstyle and Dependabot already set up, using JStarter (the start.flowlogix.com generator, the jstarter CLI or the com.flowlogix.archetypes:starter Maven archetype). It specializes in Jakarta EE and Quarkus — Payara, GlassFish or Quarkus, with options such as Shiro, OmniFaces, PrimeFaces, a JPA lazy data model and Arquillian tests — but is not limited to them, and the result is a standard project for any company or product. Use this skill whenever the user wants to scaffold, generate or bootstrap a new Java or Maven project, mentions JStarter, jstarter, start.flowlogix.com or the starter archetype, or describes an app and asks which starter options fit it. license: Apache-2.0 compatibility: Works with any agent that supports Agent Skills and can run shell commands. Needs curl and unzip with network access to start.flowlogix.com, or Maven with access to Maven Central. Building the generated project needs a JDK at or above the parent POM's maven.compiler.release. Newer ones, such as 27, are fine. metadata: source: https://github.com/flowlogix/skills/tree/main/plugins/jstarter/skills/flowlogix-new-project ---
Creating a project
JStarter, by Flow Logix, generates a ready-to-build Maven project. It specializes in Jakarta EE and Quarkus applications, and also gives any other Java project a working build. The project is the user's own: their coordinates and package, standard Maven and Jakarta EE, and no need to work for Flow Logix or use its other products.
The generator uses the Maven archetype com.flowlogix.archetypes:starter. start.flowlogix.com runs it server-side and returns the project as a zip. The web page, the jstarter CLI and the download endpoint accept the same parameters, so the same choices produce the same project. The project builds on a general-purpose parent POM from base-pom. Changing that build later is the flowlogix-base-pom skill's job.
Contents
- Settle the choices first
- Parameters
- What each option changes
- Generating: pick a route
- What gets generated
- After generating
Settle the choices first
Regenerating means deleting the directory, so agree on the coordinates (group, artifact, package), the parent POM (baseType), packagingType and the use* feature flags before generating.
If the user gave only a name, leave the rest out and say which defaults the project got, read back from the generated pom.xml (parent, packaging, dependencies). Defaults change between releases, so don't quote them from memory.
If they described the app, map that to options:
- A REST or backend-only service usually wants
jarorwarwithout PrimeFaces, lazy model or Graphene. - A server-rendered admin app wants
warwith PrimeFaces and the lazy model. - An app to run on Quarkus wants
quarkus. - Anything else without an application server wants
baseorinfra. - A plain Java library or command line tool wants
baseorinfrawithjar, and the UI features
(useOmniFaces, usePrimeFaces, useLazyModel, useArquillianGraphene) and useShiro off.
Even without those features, the project gets the Jakarta EE API at provided scope (not with base) and a few configuration files such as beans.xml, which don't affect a project that doesn't use them.
Parameters
Generator-level parameters (not archetype properties):
| Parameter | Maps to | Rule | |---|---|---| | group | groupId | letters, digits, ., -, _ | | artifact | artifactId, project directory | [a-zA-Z0-9_-]+, 1–100 chars | | package | base Java package | valid Java package name. When left out, <group>.<artifact> as one, e.g. com.acme.my_app | | archetypeVersion | archetype version | the latest release when left out |
Archetype properties:
| Property | Values | |---|---| | baseType | base, infra, payara, glassfish, quarkus | | packagingType | jar, war, ear | | projectName | free text | | version | the project's version | | useShiro, useAgenticAI, useOmniFaces, usePrimeFaces, useLazyModel, useMavenCache, useCodeCoverage, useArquillianGraphene | true, false |
Leave out what the user didn't ask about: the generator fills it with its own defaults, which differ on purpose from the archetype's for some properties (the web page pre-selects a full-featured app). Read the defaults from the source when you need them, which is for Route 3 (a bare mvn archetype:generate uses the archetype's defaults, so pass every property) and to tell the user what was chosen:
- installed CLI:
jstarter --help --json, orjstarter --helpas text - without the CLI:
curl -fsS https://start.flowlogix.com/sg/api/parameters, which lists the archetype's
properties with the defaults the generator uses
- archetype: https://raw.githubusercontent.com/flowlogix/archetype/main/src/main/resources/META-INF/maven/archetype-metadata.xml
- after generating, the project's
pom.xmlshows what was used
The archetype also has version properties (basePomVersion, flowlogixBomVersion, depchainVersion, flowlogixVersion, shiroVersion, jakartaAgenticAIVersion, arqGrapheneVersion, cacheExtensionVersion, mavenVersion, mavenWrapperVersion). Their defaults are the versions the archetype release was built with. Leave them alone unless the user asks to pin something.
What each option changes
- baseType — the parent POM (
com.flowlogix:<baseType>-pom).base: minimal, any project. The
generated POM has no Jakarta EE API or Lombok. infra: adds tests, coverage, checkstyle, release config. payara / glassfish: infra plus a managed application server for integration tests and server:dev. quarkus: infra plus the Quarkus Maven plugin, quarkus packaging and flowlogix-quarkus-bom. Web content goes to src/main/resources/META-INF/resources (web.xml and faces-config.xml to src/main/resources/META-INF), and OmniFaces / PrimeFaces become their Quarkiverse extensions, which bring in MyFaces.
- packagingType —
warkeepssrc/main/webapp(Faces pages,web.xml, error page),jarand
ear delete it. Integration tests deploy the matching archive type. Ignored with quarkus, which always uses quarkus packaging.
- useShiro — Apache Shiro (
shiro-jakarta-ee) andWEB-INF/shiro.ini. - useOmniFaces — OmniFaces, and the Flow Logix components library (
flowlogix-jee, or
flowlogix-datamodel with the lazy model) at compile scope. Without it that library is test scope only.
- usePrimeFaces — PrimeFaces.
- useLazyModel —
flowlogix-datamodel(JPA lazy data model for PrimeFaces DataTable) instead
of flowlogix-jee. Only meaningful with PrimeFaces.
- useAgenticAI — the Jakarta Agentic AI API (
jakarta.agentic-ai-api, provided scope). - useMavenCache — Maven build cache extension in
.mvn/extensions.xml. When off,
maven.build.cache.enabled=false is written into the POM.
- useCodeCoverage — JaCoCo
<includes>/<excludes>for the project's package, with unit and
integration coverage merged.
- useArquillianGraphene — Selenium / Drone / Graphene for UI integration tests.
Generating: pick a route
Take the first route that works here, skipping any that the user rules out.
If no route works, say what happened with each one. If start.flowlogix.com or Maven Central is unreachable from where you are running, give the user the exact command to run themselves (the CLI's --dry-run prints it).
Route 1: the CLI
Read references/cli.md first. It has the check for what is there, the install methods, and the CLI's options, examples and exit codes.
If jstarter is already installed, use it. Otherwise ask the user once, with the question below, unless they asked for the CLI to be installed or said not to install anything. Don't install without a yes. If they can't be asked, or no method applies, go on to Route 2. After a yes, try every method that applies here, in this order, until one works:
- System-wide package managers, the best way, though they can need admin rights
- Per-user tools, which install into the user's home directory without admin rights
The commands are in references/cli.md. Run only those.
What to do when one doesn't work depends on whether the command ran:
- It ran and failed, such as Homebrew reporting that its directories are not writable: normal for a
system-wide method where the user has no admin rights. Go on to the next method without asking, and don't fix the failed one (no chown, no rerun with sudo). When none is left, go on to Route 2.
- The agent's permission system denied it, so it never ran: stop installing, and don't try the other
methods, as the denial may be about installing at all. Go on to Route 2.
- The user declines: go on to Route 2, and don't ask again.
Ask whether to install, not which method to use, and offer two choices:
- Install jstarter: "Tries
<first command>, then<next command>if that fails", with every method that
applies
- Don't install: download the project with Route 2
A yes covers all the methods listed, including the next one when one fails. The user can also name one method, and then only that one is used.
In the final message, say what was installed, which methods failed or were denied, with the reason, and which were not tried, with their commands. If jstarter wasn't installed, unless the user said not to install anything, link https://docs.flowlogix.com/jstarter-cli#section-install, which also covers APT and DNF. If APT or DNF is there, also show its commands, as "APT and DNF" in references/cli.md describes, for the user to run.
Route 2: the download endpoint (curl)
Needs only curl and unzip, as Maven runs server-side. The endpoint takes parameters as matrix parameters on the path (;name=value), not a query string:
https://start.flowlogix.com/sg/api/generate/;group=com.acme;artifact=orders;package=com.acme.orders;packagingType=jar
Percent-encode the values (a space is %20). Download it with curl to <artifact>.zip, with the URL in quotes and -f, so that an error message doesn't end up in the zip. Then unpack it. The zip contains a top-level directory named after the artifact:
unzip -q orders.zip && rm orders.zip
On error the endpoint answers 400 with a plain-text reason (bad value) or 500 with Maven's output.
Options left out take the generator's defaults. To see them before generating, or the valid values, use the command under "Parameters". It returns a JSON array with key, defaultValue, flag (true for a true or false option) and, for some, validationRegex.
Route 3: mvn archetype:generate
Needs Maven and Maven Central, not start.flowlogix.com. Pass every property, since the archetype's defaults differ from the generator's:
mvn archetype:generate -DarchetypeGroupId=com.flowlogix.archetypes -DarchetypeArtifactId=starter \ -DarchetypeVersion=LATEST -DinteractiveMode=false \ -DgroupId=com.acme -DartifactId=orders -Dpackage=com.acme.orders \ -DbaseType=payara -DpackagingType=war -DprojectName="Orders" \ -DuseShiro=true -DuseOmniFaces=true -DusePrimeFaces=true -DuseLazyModel=true -DuseAgenticAI=false
Not on JDK 27: the archetype plugin's Groovy fails there with "Unsupported class file major version" and leaves a half-generated project. Use Route 1 or 2 instead, which run Maven on the server, rather than looking for an older JDK. Omitting -DinteractiveMode=false makes Maven prompt for every property, which hangs a non-interactive shell.
What gets generated
<artifact>/ ├── pom.xml parent com.flowlogix:<baseType>-pom, flowlogix-bom (flowlogix-quarkus-bom with
Preview shortened. The full SKILL.md is in the pack.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 15.7 kB | 8d61a340118c |
| SKILVAULT_SOURCE.json | 2.8 kB | 4c70310d0c22 |
| THIRD_PARTY_NOTICES.md | 11.4 kB | 325ffbf34b92 |
| evals/new-project-defaults/case.yaml | 451 B | 532883e6d497 |
| evals/new-project-defaults/graders/01-generated-by-the-starter.md | 207 B | eeba7854e7af |
| evals/new-project-defaults/graders/02-package-is-the-group-and-artifact.md | 172 B | 261aa2c952ec |
| evals/new-project-defaults/graders/03-mvnw-executable.md | 69 B | 4f87d1c4b02b |
| evals/new-project-defaults/graders/04-reports-defaults-from-project.md | 147 B | e725cd5f9021 |
| evals/new-project-defaults/prompt.md | 292 B | 8d45be74b17c |
| evals/rest-service-no-ui/case.yaml | 314 B | 84f4c911ebd0 |
| evals/rest-service-no-ui/graders/01-sends-jar-packaging.md | 132 B | 08e1b1fd0376 |
| evals/rest-service-no-ui/graders/02-turns-ui-features-off.md | 153 B | cb85ad41dc05 |
| evals/rest-service-no-ui/graders/03-no-ui-in-project.md | 165 B | ace35fbdb533 |
| evals/rest-service-no-ui/prompt.md | 349 B | e4e165897592 |
| references/cli.md | 6.2 kB | d86ae96925a6 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 057b8d881ff2 | 2 Dec 2026 |
Locking a skill to one version needs Pro.