eliteforge-be-fe-consensus-spec
EliteForge 前后端共识规范
触发门槛
仅当用户明确说明当前项目遵守 璀璨工坊规范 或 eliteforge specification 时,才使用本技能。未声明时不要启用。
目标
本技能由在线文档《前后端共识》v1 转换而来。用于接口设计、接口评审、Controller/客户端实现和联调问题定位。命中本技能后,以下规则是强制约束,不要降级为建议。若用户要求最新规范或对规则有争议,回源页面核对:https://dev-platform.cisdigital.cn/elite-forge/code-specification/be-fe/v1/。
使用方式
- 设计接口时,先确定 HTTP 方法、URL、Param、VO、状态码、错误码、响应体、分页和国际化契约,再写代码。
- 评审接口时,按本文件逐项指出违反项,并标注章节号。
- Java 代码落地时,可同时使用
eliteforge-java-coding-spec和eliteforge-framework-specification;非 Java 后端也必须遵守协议层规则。
§1 协作共识
More from cloudsen/eliteforge-skills
wechat-message-sender
在 macOS 上通过微信桌面版向指定联系人发送文本消息。用户提供联系人名称和消息内容时使用,例如“给张三发微信:xxx”“打开微信给某人发送一句话”“用微信发送指定文本”。运行前必须已安装微信桌面版,并给当前终端或 Codex 辅助功能权限。执行时只做精确匹配:先搜索联系人,再校验当前会话标题与目标完全一致;匹配失败就停止,避免误发。
405eliteforge-framework-specification
约束 Java 开发优先复用璀璨工坊统一框架能力,避免重复造轮子。基于《璀璨工坊统一框架-使用手册-nightly》提供统一框架接入、升级、配置、Starter 选型与排障指引。命中框架能力时必须使用框架内 Starter 和对应抽象 API,禁止回退到 Spring 官方 starter 或绕过框架抽象层(如缓存场景绕过 CacheService 直接用 StringRedisTemplate)。用户提到“统一框架”“starter清单”“接入步骤”“升级步骤”“系统要求”“Web MVC/服务间调用/Mybatis-Plus/加解密/缓存/多数据源/代码生成器/资源抽象层”或需要判断“该功能是否应直接使用某个 starter(如 cache-starter)”时使用。 触发门槛:仅当用户明确说明当前项目遵守“璀璨工坊规范”或“eliteforge specification”时才使用本技能。
43eliteforge-git-specification
统一执行璀璨工坊 Git 治理规范,覆盖分支模型、提交信息、MR 流程、发布与热修策略。用户提到 Git 规范、分支命名、rebase/merge 选择、MR 提交流程、squash 要求、commit message 校验、release 合并、hotfix 命名或冲突规避时使用。 触发门槛:仅当用户明确说明当前项目遵守“璀璨工坊规范”或“eliteforge specification”时才使用本技能。
39eliteforge-java-uml
根据业务需求生成可落地的 Java 25 PlantUML 类图设计,统一分层建模、关系落点、分页查询、枚举实例展示、类内说明和模块配色规则。用户提到“Java UML”“PlantUML 类图”“领域建模”“分层架构设计”“Repository 查询设计”“类图评审”时使用;优先产出 UML 文件,禁止臆造与无落点关系。 触发门槛:仅当用户明确说明当前项目遵守“璀璨工坊规范”或“eliteforge specification”时才使用本技能。
38eliteforge-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. Activation gate - use this skill only when the user explicitly states that the current project follows `璀璨工坊规范` or `eliteforge specification`.
38eliteforge-frontend-generator
Generate EliteForge frontend projects with the same logic as cisdigital-generator-app. Reuse the exact project type to template mapping for frontend_app/frontend_ui/frontend_sdk, naming rules for company/product/service, and onebase-cli command assembly. Use when users ask to scaffold EliteForge frontend app projects, Vue3 component monorepo projects, JS SDK/lib projects, or request a dry-run command preview aligned with this generator. Always require user-provided required parameters and never infer missing required fields. Activation gate - use this skill only when the user explicitly states that the current project follows `璀璨工坊规范` or `eliteforge specification`.
36