springboot-init/SKILL.md
Define development specifications for Spring Boot monolithic projects, supporting multiple technology stack configurations.
npx skillsauth add alffei/skill_share springboot-initInstall 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.
| 配置项 | 推荐选型 | 说明 | | ---------- | ----------------------- | ------------------------------------------ | | JDK | 17 / 21 | Spring Boot 3.x 必须 17+ | | ORM | MyBatis-Plus (MP) | 默认选型,快速开发。追求极致性能选 Flex | | 工具库 | Hutool / Guava | 减少重复轮子,增强开发效率 | | 权限 | Sa-Token / Security | 快速开发选 Sa-Token,复杂企业级选 Security |
BaseResponse, GlobalExceptionHandler, MybatisPlusConfig 等。Controller 输入专用。Controller 输出专用。严禁将 Entity 直接返回前端。Service/Mapper 层流通。BaseResponse<T>。@RequestBody + Validation。extends ServiceImpl<Mapper, Entity> implements Service。Serializable 并声明 serialVersionUID。record 定义 DTO/VO。@TableName, @TableId(type = IdType.ASSIGN_ID), @TableLogic。success(data), error(errorCode, msg)。GlobalExceptionHandler 统一捕获。StpUtil.checkLogin() 或 @SaCheckRole。SecurityFilterChain 配置及 @PreAuthorize。StrUtil.isBlank, BeanUtil.copyProperties, JSONUtil.toJsonStr, SecureUtil.md5。| 类型 | 模式 | 示例 |
| ---------- | ---------------------------- | ------------------ |
| Controller | XxxController | UserController |
| Service | XxxService/Impl | UserServiceImpl |
| DTO | XxxAdd/Update/QueryRequest | UserQueryRequest |
| VO | XxxVO | UserVO |
| DAO | XxxMapper | UserMapper |
company, project, jdk 等变量。pom.xml, application.yml (见 templates)。common, exception, utils, config 包内容。Exception。参考 references/code-templates.md,包含:
BaseResponse, ErrorCode, BusinessException, GlobalExceptionHandler, ResultUtils, ThrowUtils, MybatisPlusConfig, JsonConfig, OpenApiConfig。
testing
Writes complete WeChat tech posts (hook, TOC, body, checklists, image placement, layout notes, summaries). Use when the user asks to draft a WeChat tech article, generate reusable prompts for writing, or turn a topic/outline into a publish-ready post.
tools
Crafts and rewrites WeChat tech post titles across multiple patterns (list, contrast, outcome, scenario, anti-myth, template). Use when the user needs headline brainstorming or “restrained but clickable” title rewrites for tech/engineering WeChat公众号.
content-media
Defines WeChat tech public-account positioning, audience segmentation, content pillars, and long-term columns. Use when the user asks about account positioning, reader personas, content strategy, or column planning for a tech/engineering WeChat公众号.
development
Builds WeChat-friendly outlines for tech posts, including multi-level TOC, reader-benefit lines per section, pitfalls and action checklists, and 30-second skim summaries. Use when the user asks for outlines, structures, or tutorial-style blueprints for tech/engineering WeChat公众号.