eliteforge-java-service-generator
Generate an EliteForge Java service project via Maven archetype wrapper script. Use when users ask to scaffold a new EliteForge service, provide companyName/productName/serviceName (kebab-case), need Maven archetype generation execution, or want tech stack to enableXXX mapping.
How do I install this agent skill?
npx skills add https://github.com/cloudsen/eliteforge-skills --skill eliteforge-java-service-generatorIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a project scaffolding tool for EliteForge Java services. It uses a Python wrapper to execute Maven archetype generation and then initializes the project using local build tools. It includes robust input validation and restricted execution triggers.
- Socketwarn
1 alert: gptAnomaly
- Snykwarn
Risk: MEDIUM · 1 issue
- Runlayerpass
1/5 files flagged
What does this agent skill do?
EliteForge Java Service Generator (Maven Archetype)
Goal
Create a new EliteForge Java service by running scripts/generate.py, and perform project build/initialization through project-internal make commands.
Preconditions
- Require
python3,make, JDK, and network access (for archetype download).
Build Command Policy (MUST follow)
- In generated project root, use project-internal
maketargets for build/init/verify tasks. - Do not run system Maven commands in generated project (for example:
mvn clean install,mvn test). - If Maven command is explicitly required in generated project, use project wrapper only:
./mvnw .... - Never replace
./mvnwwith systemmvnin command examples or execution steps.
Required Inputs (never infer)
companyNameproductNameserviceName- Validate all three with:
^[a-z0-9]+(-[a-z0-9]+)*$ - If any value is missing or invalid, ask only for missing/invalid fields.
Workflow (every run)
- Collect and validate required inputs.
- Build command and run script:
python3 scripts/generate.py --company <companyName> --product <productName> --service <serviceName> [--desc "<projectDescription>"] [--tech "<tech stack text>"] [--enable enableX --enable enableY ...]
- Map tech stack to
enableXXXwhen user provides stack text:- Use
references/mapping-rules.md. - Pass explicit user switches through
--enable. - Use
references/enable-flags.mdas canonical flag list. - If uncertain, ask instead of guessing.
- Use
- Verify result:
- Output folder exists:
app-<companyName>-<productName>-<serviceName>/ pom.xmlexists in that folder.
- Output folder exists:
- Run post-generation consistency checks in project root (
<artifactId>/):- Java package should match expected package prefix (check
src/main/javaandsrc/test/java). - Maven model name should match expected value (check
pom.xml<name>). pom.xmlartifactIdshould equal expectedartifactId.- For any mismatch, report expected vs actual and stop.
- Java package should match expected package prefix (check
- Initialize project in root directory (
<artifactId>/) by runningmake installand require success (exit code0):- Example:
cd app-<companyName>-<productName>-<serviceName> && make install
- Example:
- For build/test/verification after generation, continue using project
maketargets (for examplemake test,make build) instead of direct Maven commands; if a Maven command is unavoidable, run./mvnw ...only. - On failure, return exact error and full executed command (including the failed
makecommand).
Coordinate Rules (script behavior)
groupId = cn.<companyName(with '-' -> '.')>.<productName(with '-' -> '.')>artifactId = app-<companyName>-<productName>-<serviceName>
Expected Values For Post-check
expectedGroupId = groupIdexpectedArtifactId = artifactIdexpectedJavaPackagePrefix = <expectedGroupId>.<serviceName(with '-' -> '.')>expectedMavenModelName = expectedArtifactId(unless user explicitly requires another naming rule)
Quick Examples
- Minimal:
python3 scripts/generate.py --company cisdigital --product cap --service cache-center --desc "CAP 缓存中心"
- Post-generation init (required):
cd app-cisdigital-cap-cache-center && make install
- Tech + explicit override:
python3 scripts/generate.py --company cisdigital --product cap --service cache-center --tech "mysql redisson lombok mapstruct" --enable enableJacksonDatatypeJsr310
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/cloudsen/eliteforge-skills/eliteforge-java-service-generator">View eliteforge-java-service-generator on skillZs</a>