Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

eliteforge-java-service-generatoreliteforge Java service 生成器

Agent Skill

用于辅助 Java 项目开发、面向对象设计、Spring 生态、Maven 或 Gradle 依赖和后端工程实践。它适合让 Agent 分析类结构、设计接口、整理服务分层、生成测试或检查常见代码坏味道。使用时需要结合项目已有架构、包结构和依赖版本,不应只按通用教程改代码;涉及数据库、事务、并发或框架配置时,应先确认运行环境和回归测试范围。

总安装

776

周安装

33

GitHub Stars

公开资料未说明

下载量

272
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:eliteforge-java-service-generator(eliteforge Java service 生成器)
来源仓库:https://github.com/cloudsen/eliteforge-skills
仓库路径:skills/eliteforge-java-service-generator
安装命令:
npx skills add https://github.com/cloudsen/eliteforge-skills --skill eliteforge-java-service-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cloudsen/eliteforge-skills --skill eliteforge-java-service-generator

简介

eliteforge-java-service-generator 用于辅助 Java 项目开发、Spring 生态和后端工程实践。

  • 适合让 Agent 分析类结构、设计接口、整理服务分层或生成测试代码。
  • 使用时需要结合项目已有架构和依赖版本,不应只按通用教程改代码;涉及数据库或事务时应先确认运行环境。
  • 可通过 npx skills add 命令从指定 GitHub 仓库安装,建议确认权限和维护状态后再使用。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

EliteForge Java Service Generator (Maven Archetype)

触发门槛

仅当用户明确说明当前项目遵守 璀璨工坊规范eliteforge specification 时,才使用本技能。若用户未做出该项目级声明,不要启用本技能;按通用能力处理。

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 make targets 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 ./mvnw with system mvn in command examples or execution steps.

Required Inputs (never infer)

  • companyName
  • productName
  • serviceName
  • 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)

  1. Collect and validate required inputs.
  2. 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...]

  1. Map tech stack to enableXXX when user provides stack text:

- Use references/mapping-rules.md. - Pass explicit user switches through --enable. - Use references/enable-flags.md as canonical flag list. - If uncertain, ask instead of guessing.

  1. Verify result:

- Output folder exists: app-<companyName>-<productName>-<serviceName>/ - pom.xml exists in that folder.

  1. Run post-generation consistency checks in project root (<artifactId>/):

- Java package should match expected package prefix (check src/main/java and src/test/java). - Maven model name should match expected value (check pom.xml <name>). - pom.xml artifactId should equal expected artifactId. - For any mismatch, report expected vs actual and stop.

  1. Initialize project in root directory (<artifactId>/) by running make install and require success (exit code 0):

- Example: cd app-<companyName>-<productName>-<serviceName> && make install

  1. For build/test/verification after generation, continue using project make targets (for example make test, make build) instead of direct Maven commands; if a Maven command is unavoidable, run ./mvnw... only.
  2. On failure, return exact error and full executed command (including the failed make command).

Coordinate Rules (script behavior)

  • groupId = cn.<companyName(with '-' -> '.')>.<productName(with '-' -> '.')>
  • artifactId = app-<companyName>-<productName>-<serviceName>

Expected Values For Post-check

  • expectedGroupId = groupId
  • expectedArtifactId = artifactId
  • expectedJavaPackagePrefix = <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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.99%
按下载量换算103

Claude

29.69%
按下载量换算81

Cursor

19.27%
按下载量换算52

Gemini CLI

8.82%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills