.cursor/skills/autumn-framework-3x/SKILL.md
Autumn 3.0.0 line ONLY: JDK 17+, Spring Boot 3.5.x, MyBatis-Plus 3.x, jakarta.* namespace. Use on autumn branch 3.0.0 (artifact 3.0.0) or business apps pinned to that stack. NOT for Autumn 2.0.0 / JDK 8 / Spring Boot 2.7 / javax-only — use autumn-framework-2x on master. Enforces docs/AI_STANDARDS.md + docs/AI_DATABASE.md: entity-driven schema; Dao SQL only via MyBatis Provider (*DaoSql extends RuntimeSql); No hardcoded dialect quotes in Java (RuntimeSql quote/columnInWrapper or WrapperColumns per docs/AI_DATABASE.md §4.0); Controller must not use Dao; Service uses baseMapper; gen/Pages/list.html/js never hand-edited; statics/pages/Site/PageAware. Read docs/AI_CODEGEN.md, docs/AI_DATABASE.md; scripts/autumn-dependency-scan.sh for upgrades. Triggers on cn.org.autumn 3.0.0, Spring Boot 3.5, JDK 17, ModuleService, RuntimeSql, PageAware, SpringDoc.
npx skillsauth add henryxm/autumn autumn-framework-3xInstall 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.
| 项 | 版本 / 约束 |
|----|-------------|
| Autumn | 3.0.0(cn.org.autumn:*:3.0.0,3.0.0 分支) |
| JDK | 17+ |
| Spring Boot | 3.5.x(以根 pom.xml 为准) |
| MyBatis-Plus | 3.x |
| 命名空间 | jakarta.* |
| 2.x 线 | 禁用本 Skill:Autumn 2.0.0、JDK 8、Spring Boot 2.7 请用 autumn-framework-2x(master) |
业务工程须在 AGENTS.md 或首轮对话中写明依赖的 Autumn 主版本,避免 2.x / 3.x 规范混用。
cn.org.autumn 3.0.0。cn.org.autumn、ModuleService、gen、Dao、Provider、RuntimeSql、DatabaseType、statics、pages、Site、PageAware、autumn.table 等,且 栈为 JDK 17+ + Boot 3.5。所有 AI_*.md 均在仓库 docs/ 下。本仓库内用 @docs/...;业务工程与 autumn 并列时用 @../autumn/docs/...(见 docs/AI_INDEX.md §4)。
docs/AI_INDEX.md → 2. docs/AI_BOOT.md → 3. docs/AI_MAP.md → 4. docs/AI_STANDARDS.md(强制全文,含 §8~§14)docs/AI_DATABASE.md(多库、DatabaseType、§4.0 代码层方言标准写法、WrapperColumns、RuntimeSql、Wrapper 边界、Dao 必须 Provider)docs/AI_CODEGEN.mddocs/AI_POSTGRESQL.md、docs/AI_TEMPLATES.md、docs/AI_CRYPTO.md、docs/AI_DISTRIBUTED_LOCK.md、docs/REDIS_RESILIENCE.md(Redis 熔断与分布式锁稳健性)、docs/REDIS_STANDALONE.md、docs/INSTALL_MODE_CONDITIONAL.md(安装向导 autumn.install.wizard、§0 占位默认 H2 / 可选 mysql)等。docs/AI_CODEGEN.md 一致)docs/AI_STANDARDS.md 建实体与索引注释;@Cache / @Caches;业务 Service 继承 ModuleService,勿自建平行缓存/队列/LoopJob。GenUtils.getFileName 路径一致;仅在非 gen 空壳写业务;禁止改 controller/gen、*Pages、list.html/js。Service 承载规则与事务;可维护 Controller 独立 URL;pages + site/*Site + @PageAware。autumn.table.* 启动期对齐表结构;禁止把常规 DDL .sql 当默认交付物。modules/<子目录>/:目录名 = 包段 = 表前缀;禁止把前缀拼进实体类名;物理表名见 docs/AI_BOOT.md §3.2。@Table / @Column.comment:短标题 + 半角 :;禁止同列 @Index + @Column(isUnique=true) 叠用。docs/AI_DATABASE.md 一致)DatabaseType 全量兼容;单库例外须 JavaDoc 标明。` / " / [];Provider 用 RuntimeSql#quote / columnInWrapper;未继承 DialectService 时用 WrapperColumns(columnInWrapper、分页排序 orderByColumnExpression、Map 等值 entityWrapperAllEqQuoted 等,见 docs/AI_DATABASE.md §4.0)。@SelectProvider + *DaoSql,推荐 extends RuntimeSql。docs/AI_DATABASE.md §4~§5)。scripts/autumn-dependency-scan.sh + docs/AI_UPGRADE.md §3.3;存量 Wrapper/Service 手写引号对照 docs/AI_DATABASE.md §8.1 与 §8.5 rg 示例。controller/gen/*、SitePages.java.vm 产物:禁止改逻辑;改 template/*.vm 后重生成。docs/AI_DATABASE.md、docs/AI_POSTGRESQL.md(PG)。baseMapper,勿 @Autowired 本 Dao;跨域只注入 其他 Service。RedisConfigcn.org.autumn.config.RedisConfig:@Configuration;@Autowired(required = false) RedisConnectionFactory;@Bean:RedisTemplate(@Primary + JSON)、Ops;不使用 @ConditionalOnBean(RedisConnectionFactory)、不使用 @AutoConfigureAfter;不列入 spring.factories → EnableAutoConfiguration,随 cn.org.autumn 组件扫描加载。autumn.redis.open、EPP 与 spring.redis.*:docs/REDIS_STANDALONE.md §1、§2;业务 模式 A / B:§3、§8;升级清单:docs/AI_UPGRADE.md §2.2 行 7。RedisResilience、DistributedLockService、TagRunnable / LockOnce:docs/REDIS_RESILIENCE.md、docs/AI_DISTRIBUTED_LOCK.md。ModuleService / BaseService:直接使用 DistributedService 的 withLock* 能力(withLock / withLockRetry / withLockOrFallback)。DistributedLockService。DistributedLockConfig(键 DISTRIBUTED_LOCK_CONFIG),通过 sysConfigService.getObject(...) 获取对象配置,不走环境变量。RedisConfig;RedisResilience 细节见 docs/REDIS_RESILIENCE.md。withLockOrFallback 或开启配置降级。withLockRetry),禁止业务自旋热重试。resources/statics/ 公共静态;新后台页 pages/ + site/*Site + @PageAware。@Scheduled;新接口 不用 @RequiresPermissions(登录态);FreeMarker 安全(<!-- -->、<#noparse>)。docs/AI_MAP.md;缓存/队列细节:docs/AI_CODEGEN.md 第 4 节。schema.sql / init.sql?Site + @PageAware?docs/AI_BOOT.md → docs/AI_MAP.md → docs/AI_STANDARDS.md → docs/AI_DATABASE.md → docs/AI_CODEGEN.md → 专项 → README / 模块目录 → 任务约束(仅 3.0.0 / JDK17+ / Boot 3.5 栈)。
development
Autumn 2.0.0 line ONLY: JDK 8, Spring Boot 2.7.18, MyBatis-Plus 2.x, javax.* namespace. Use on autumn master (artifact 2.0.0) or business apps pinned to that stack. NOT for Autumn 3.0.0 / JDK 17+ / Spring Boot 3.5 / Jakarta — use autumn-framework-3x on the 3.0.0 branch when available. Enforces docs/AI_STANDARDS.md + docs/AI_DATABASE.md: entity-driven schema via framework scan (no routine DDL .sql); module dir = package = table prefix; Dao SQL only via MyBatis Provider (*DaoSql extends RuntimeSql), never inline @Select/@Update; No hardcoded SQL dialect quotes in Java (use RuntimeSql quote/columnInWrapper or WrapperColumns.columnInWrapper / orderByColumnExpression / entityWrapperAllEqQuoted per docs/AI_DATABASE.md §4.0); Controller must not use Dao; Service uses baseMapper; gen/Pages/list.html/js never hand-edited; statics/pages/Site/PageAware. Read docs/AI_CODEGEN.md, docs/AI_DATABASE.md; scripts/autumn-dependency-scan.sh for upgrades. Triggers on cn.org.autumn 2.0.0, Spring Boot 2.7, JDK 8, ModuleService, RuntimeSql, PageAware.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.