What problem does it solve?
This skill generates and wires a new Java Maven model module for a multi-module project by reading the repository root pom.xml description to extract company name, product name, and service name, then creates a module named <serviceName>-<modelName> with a pom.xml, package path, artifactId, and groupId, and updates the parent pom.xml modules accordingly. If the parent pom.xml already manages dependencies for the same family, it also syncs internal dependency management entries.
Core Features & Use Cases
- Automatically derives module name, package, artifactId, and groupId from the root pom description and scaffolds the module under the repository root.
- Updates the parent pom.xml to include the new module and, if applicable, inserts managed dependencies following existing conventions.
- Provides a safe workflow with a dry-run option to preview changes before applying, and builds a minimal skeleton with .gitkeep files to ensure Git tracking.
- Enforces the gating condition: the skill only runs when the user explicitly states the project adheres to the "璀璨工坊规范" or "eliteforge specification".
Quick Start
Run the scaffold_java_maven_model.py script with a model name to generate a new service-model module from the repository root pom description.