/java-seedworks:generate-servicefrom java-seedworks
Generate and verify a new Java Seedworks service from the bundled Spring MVC/JPA or WebFlux/R2DBC starter, with an optional experimental MVC AI purpose.
Ships in java-seedworks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use the bundled generator to create an independent service. The manual CLI and this skill use the same templates and generation contract.
Default to mvc-jpa and purpose api. Use webflux-r2dbc for an explicit
reactive requirement.
| Variant | Purpose | Support |
|---|---|---|
mvc-jpa | api | Maintained; host, Compose, Helm |
webflux-r2dbc | api | Maintained; host, Compose, Helm |
mvc-jpa | ai | Experimental order-support example; host/local Compose |
API output starts with the Customer sample domain. A project name does not replace that sample with a custom business API; explain the starting domain and where it needs adapting when handing off the generated service.
The AI output uses opt-in Ollama classification followed by Java-owned lookups. Its default Order API requires fresh local bearer credentials and runs without a model. Regular tests use a fake model endpoint. It has no Helm chart or production identity integration. Using this skill for an API adds no runtime AI.
Collect the service name, group ID, artifact ID, Java package and destination.
Infer values from the request or project conventions; suggest matching service
and artifact names. Ask for critical missing choices and resolve unsupported
requirements before writing output. Ports default to 8080 and 8081.
Locate this skill's absolute SKILL.md path from the loaded path, or append
/SKILL.md to the skill directory supplied by the client. Set
skill_file to that path and derive the plugin root from it, independently of
the shell working directory:
plugin_root="$(cd "$(dirname "$skill_file")/../.." && pwd -P)"
Use a new absolute destination in the user's workspace, outside the plugin
installation/cache. The generator rejects existing directories and symlinks.
Generation needs Bash, tar, find and standard Unix tools on macOS, Linux or
WSL2. Java and Docker are needed for verification, not for copying the scaffold.
Claude Code can strip Git metadata from its installed copy. If both Git and
STARTER_SOURCE are absent, inspect installed_plugins.json in the plugin cache
parent (the directory containing cache/). Use gitCommitSha only from an
unambiguous java-seedworks@java-seedworks entry whose physical installPath
and plugin version match this installation. A missing, malformed or ambiguous
record leaves provenance unknown. Do not edit the cache or infer cleanliness.
Set the selected values and pass them as quoted arguments:
generator_args=(
--plugin
--variant "$variant" --purpose "$purpose"
--service-name "$service_name" --group-id "$group_id"
--artifact-id "$artifact_id" --package-name "$package_name"
--output-dir "$output_dir"
)
# Append --app-port / --management-port when the user selected other ports.
# If the matching installation record supplied a full commit, append:
# generator_args+=(--source-commit "$installed_source_commit")
bash "$plugin_root/scripts/init-service.sh" "${generator_args[@]}"
Always pass --plugin: it requires an explicit destination outside the
installation, including Git-backed caches that retain their own Git metadata.
If a packaged asset is missing, report an incomplete installation instead of reconstructing the starter with model-written replacement files.
Read the generated README.md and STARTER.md. With a Java 21 JDK and a running
Docker engine, run ./gradlew check bootJar once from the generated directory.
Integration tests use disposable PostgreSQL containers. Follow the README for
first-run configuration and Compose v2 commands. If prerequisites are unavailable,
keep the generated project and report the checks that could not run.
Model inference remains opt-in. Tool installation, model downloads, deployment and Git publication require their own user request; they are not generation steps.
Report the absolute output path, selected variant/purpose and coordinates,
verification results and relevant first-run commands. Describe source version,
commit and working-tree state as recorded in STARTER.md; a development plugin
version does not establish a released starter baseline.
Git-backed installs can retain Git metadata; if neither that metadata nor a
packaged source stamp is available, an installation record can identify the
commit through --source-commit. Version and cache state remain unknown.
Without a matching record, report unknown rather than guessing.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dtkmn/java-seedworks --plugin java-seedworks