skills/eliteforge-be-fe-consensus-spec/SKILL.md
约束璀璨工坊项目前后端接口共识。用户设计接口、API契约、接口文档、Controller入出参、前后端联调契约、请求/响应结构、Param/VO、统一响应体、服务状态码、错误码、分页响应、请求方式、请求URL、Long字段精度、枚举CODE、Accept-Language国际化,或提到“前后端共识”“响应内容”时使用。
npx skillsauth add cloudsen/eliteforge-skills eliteforge-be-fe-consensus-specInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
本技能由在线文档《前后端共识》v1 转换而来。用于接口设计、接口评审、Controller/客户端实现和联调问题定位。命中本技能后,以下规则是强制约束,不要降级为建议。若用户要求最新规范或对规则有争议,回源页面核对:https://dev-platform.cisdigital.cn/elite-forge/code-specification/be-fe/v1/。
eliteforge-java-coding-spec 和 eliteforge-framework-specification;非 Java 后端也必须遵守协议层规则。cn.cisdigital.elite.forge.infra.commons.util.JsonUtils。ObjectMapper:cn.cisdigital.elite.forge.infra.commons.serialize.ObjectMapperHolder。FEMALE(0)、MALE(1) 交互值用 0、1,不用 FEMALE、MALE。/api/** 和 /inner-api/** 的 ObjectMapper 统一将 Long 序列化为 String。/open-api/** 使用不同 ObjectMapper,开放接口不要处理 Long 转 String。null 表示“不存在”。null。/get-unique-data。/my/api/123/detail。current、size。0 代表请求成功。-1 代表系统异常或未知异常。code、message、data。data 是数组;单对象响应的 data 是对象;分页响应的 data 包含 current、size、total、records。列表响应:
{
"code": "服务状态码",
"message": "响应消息",
"data": []
}
单对象响应:
{
"code": "服务状态码",
"message": "响应消息",
"data": {}
}
分页响应:
{
"code": "服务状态码",
"message": "响应消息",
"data": {
"current": "当前页",
"size": "显示条数",
"total": "总数",
"records": []
}
}
Accept-Language Header 切换语言。<语言代码>-<国家或地区代码>,使用短横线,例如 zh-CN、en-US。data。testing
Rewrite human-facing prose using Strunk-style rules. Use for docs, README files, technical explanations, PR descriptions, commit messages, error messages, UI copy, reports, and summaries when the user asks to polish, shorten, clarify, de-duplicate, restructure, or normalize tone.
testing
Draft or refine a concise product requirements document from a rough product idea, then write a Typst source file and sibling PDF to a resolved output path.
research
产品经理竞品分析报告生成器。当用户提到竞品分析、竞品调研、竞品对比、竞争对手分析、市场竞争分析、行业竞品研究时触发。也适用于用户要求对比多个产品/平台/公司的功能、商业模式、市场定位等场景。即使用户只是说'帮我分析一下XX和YY'或'XX有哪些竞争对手',只要涉及产品/公司间的对比分析,都应该使用这个 skill。支持任意行业,支持快速分析和深度分析两种模式。
development
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.