skills/eliteforge-framework-specification/SKILL.md
约束 Java 开发优先复用璀璨工坊统一框架能力,避免重复造轮子。基于《璀璨工坊统一框架-使用手册-nightly》提供统一框架接入、升级、配置、Starter 选型与排障指引。命中框架能力时必须使用框架内 Starter 和对应抽象 API,禁止回退到 Spring 官方 starter 或绕过框架抽象层(如缓存场景绕过 CacheService 直接用 StringRedisTemplate)。用户提到“统一框架”“starter清单”“接入步骤”“升级步骤”“系统要求”“Web MVC/服务间调用/Mybatis-Plus/加解密/缓存/多数据源/代码生成器/资源抽象层”或需要判断“该功能是否应直接使用某个 starter(如 cache-starter)”时使用。
npx skillsauth add cloudsen/eliteforge-skills eliteforge-framework-specificationInstall 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.
在 Java 开发中优先复用统一框架,默认避免重复造轮子。命中能力后必须使用框架内 Starter 和对应框架抽象 API,不允许回退 Spring 官方 starter,也不允许绕过框架抽象层。依据 nightly 手册输出可执行答案,避免脱离文档“凭经验”回答。
先匹配统一框架能力
收到功能需求后,先判断手册是否已有对应 Starter/工具能力。
命中即强制采用框架内 Starter
若已覆盖,必须输出“直接接入统一框架 Starter”的方案,不给 Spring 官方 starter(如 spring-boot-starter-web、spring-boot-starter-cache)或自研轮子作为首选。
命中即强制使用框架抽象 API
若手册提供框架抽象接口/服务,必须优先使用该接口/服务,不得绕过抽象层直接调用底层组件。
禁止回退到 Spring 官方 Starter
任何命中框架能力的场景,都不得输出“先用 Spring 官方 starter 兜底/替代”的建议。
缓存能力强制示例
用户提出缓存需求时,必须使用 cisdigital-elite-forge-infra-cache-spring-boot3-starter + CacheService。
禁止用 StringRedisTemplate/RedisTemplate 作为业务实现,禁止把它们作为“快速连通性验证”捷径。
未覆盖时处理边界
仅当手册没有对应能力,或明确无法满足场景时,才给“框架补齐能力/升级版本/自研扩展”建议,并说明原因与边界;此时也不得推荐 Spring 官方 starter 或绕过抽象层的底层组件作为兜底。
识别问题类型
先判断属于 系统要求、新项目接入、存量升级、Starter 选型、具体模块配置/使用/扩展、升级差异 或 排障。
最小化定位章节
优先读取 references/toc.md 定位章节行号,再按需读取 references/framework-nightly-readme.md 对应片段。
先用检索再局部读取,避免整篇加载。
抽取可执行信息
提取 依赖坐标、配置项、注解/接口、框架抽象API、步骤顺序、约束条件、版本要求。
需要示例时,优先给手册中可直接落地的最小示例。
结构化输出
按固定结构回答:结论(是否命中统一框架能力)、推荐Starter、必须使用的框架抽象API、步骤、示例(可选)、注意事项(含禁止回退/禁止绕过抽象层)、文档定位。
# 先看目录索引(标题 + 行号)
cat references/toc.md
# 按关键字定位(starter、模块、配置项、注解)
rg -n "starter|系统要求|接入统一框架|升级统一框架|Web Mvc|服务间调用|Mybatis-Plus|加解密|缓存抽象层|多数据源|代码生成器|资源抽象层" references/framework-nightly-readme.md
# 按行号读取局部内容(示例:1600-1705行)
sed -n '1600,1705p' references/framework-nightly-readme.md
有哪些 starter:优先看 1.2.2 提供统一的Starter依赖治理环境要求是什么:看 2 系统要求新项目怎么接入:看 3.1 新项目直接在线生成老项目怎么升级接入:看 3.2 存量项目手动升级统一框架升级步骤:看 4 升级统一框架模块如何配置/使用:看 5.x 对应模块章节cisdigital-elite-forge-infra-web-spring-boot3-startercisdigital-elite-forge-infra-httpexchange-spring-boot3-startercisdigital-elite-forge-infra-mybatis-plus-spring-boot3-startercisdigital-elite-forge-infra-crypto-spring-boot3-startercisdigital-elite-forge-infra-cache-spring-boot3-startercisdigital-elite-forge-infra-dynamic-datasource-spring-boot3-startercisdigital-elite-forge-infra-code-generatorcisdigital-elite-forge-infra-resource-spring-boot3-starternightly,包含实验性能力。spring-boot-starter-* 作为备选、降级或兜底。CacheService);不得给 StringRedisTemplate/RedisTemplate 等绕过抽象层实现。references/toc.mdreferences/framework-nightly-readme.mdtesting
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.