Springboot Dict Module Skill logo

Springboot Dict Module Skill

Community
jiushiwon
springboot-dict-module-skill

Spring Boot 字典/配置模块技能。面向已有 Spring Boot 项目,提供字典类型、字典项、系统配置、参数管理等能力的快速集成。触发词:"字典模块"、"配置模块"、"系统参数"、"字典管理"、"系统配置"、"dict module"、"config module"。

Overview

Publisherjiushiwon
Repositorywg-skills
Skill namespringboot-dict-module-skill
Stars
123
Forks
38
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jiushiwon on GitHub. Read the source before you install it.

Installation

Install the Springboot Dict Module Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/java/springboot-module/springboot-dict-module-skill
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiushiwon/wg-skills.git /tmp/wg-skills
mkdir -p .claude/skills
cp -r /tmp/wg-skills/vibeCoding/backend/java/springboot-module/springboot-dict-module-skill .claude/skills/springboot-dict-module-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Springboot Dict Module Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Springboot Dict Module Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Springboot Dict Module Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Spring Boot Dict Module Skill

面向已有 Spring Boot 项目的开发者,快速集成字典和配置管理能力。

能力清单

能力说明
字典类型字典分类管理
字典项字典数据 CRUD
系统配置系统参数配置
缓存字典数据缓存
接口RESTful API

触发场景

用户说"帮我加字典模块"或"加配置管理"时触发。

数据模型

字典类型实体

java
@Data
@Entity
@Table(name = "wg_dict_type")
public class DictType {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    @Column(nullable = false, length = 100)
    private String name;
    
    @Column(nullable = false, unique = true, length = 50)
    private String code;
    
    @Column(length = 500)
    private String description;
    
    @Column(nullable = false)
    private Integer status = 1;
    
    @Column(name = "created_at", nullable = false, updatable = false)
    private LocalDateTime createdAt;
    
    @Column(name = "updated_at")
    private LocalDateTime updatedAt;
    
    @Column(name = "deleted_at")
    private LocalDateTime deletedAt;
}

字典项实体

java
@Data
@Entity
@Table(name = "wg_dict_item")
public class DictItem {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    @Column(name = "dict_type_id", nullable = false)
    private Long dictTypeId;
    
    @Column(nullable = false, length = 100)
    private String label;
    
    @Column(nullable = false, length = 100)
    private String value;
    
    @Column(nullable = false)
    private Integer sort = 0;
    
    @Column(nullable = false)
    private Integer status = 1;
    
    @Column(name = "created_at", nullable = false, updatable = false)
    private LocalDateTime createdAt;
    
    @Column(name = "updated_at")
    private LocalDateTime updatedAt;
    
    @Column(name = "deleted_at")
    private LocalDateTime deletedAt;
}

系统配置实体

java
@Data
@Entity
@Table(name = "wg_sys_config")
public class SysConfig {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    @Column(name = "config_key", nullable = false, unique = true, length = 100)
    private String configKey;
    
    @Column(name = "config_value", length = 500)
    private String configValue;
    
    @Column(name = "config_type", length = 20)
    private String configType = "string";
    
    @Column(length = 500)
    private String description;
    
    @Column(nullable = false)
    private Integer status = 1;
    
    @Column(name = "created_at", nullable = false, updatable = false)
    private LocalDateTime createdAt;
    
    @Column(name = "updated_at")
    private LocalDateTime updatedAt;
}

Service 层

java
@Service
@RequiredArgsConstructor
public class DictService {
    
    private final DictTypeRepository dictTypeRepository;
    private final DictItemRepository dictItemRepository;
    private final RedisTemplate<String, Object> redisTemplate;
    
    private static final String DICT_CACHE_KEY = "dict:";
    
    /**
     * 获取字典项(带缓存)
     */
    public List<DictItem> getDictItems(String typeCode) {
        String cacheKey = DICT_CACHE_KEY + typeCode;
        
        // 先从缓存获取
        List<DictItem> cached = (List<DictItem>) redisTemplate.opsForValue().get(cacheKey);
        if (cached != null) {
            return cached;
        }
        
        // 从数据库获取
        DictType dictType = dictTypeRepository.findByCode(typeCode);
        if (dictType == null) {
            return Collections.emptyList();
        }
        
        List<DictItem> items = dictItemRepository.findByDictTypeIdAndStatusOrderBySort(dictType.getId(), 1);
        
        // 存入缓存
        redisTemplate.opsForValue().set(cacheKey, items, 30, TimeUnit.MINUTES);
        
        return items;
    }
    
    /**
     * 刷新字典缓存
     */
    public void refreshDictCache(String typeCode) {
        String cacheKey = DICT_CACHE_KEY + typeCode;
        redisTemplate.delete(cacheKey);
    }
}

Controller 层

字典类型 Controller

java
@RestController
@RequestMapping("/api/dict/type")
@RequiredArgsConstructor
public class DictTypeController {
    
    private final DictService dictService;
    
    @GetMapping("/list")
    public Result<List<DictType>> list(DictTypeQuery query) {
        return Result.success(dictService.listDictTypes(query));
    }
    
    @GetMapping("/{id}")
    public Result<DictType> getById(@PathVariable Long id) {
        return Result.success(dictService.getDictTypeById(id));
    }
    
    @PostMapping
    @PreAuthorize("@per.hasPermission('dict:type:add')")
    public Result<Void> create(@RequestBody DictType dictType) {
        dictService.createDictType(dictType);
        return Result.success();
    }
    
    @PutMapping("/{id}")
    @PreAuthorize("@per.hasPermission('dict:type:edit')")
    public Result<Void> update(@PathVariable Long id, @RequestBody DictType dictType) {
        dictService.updateDictType(id, dictType);
        return Result.success();
    }
    
    @DeleteMapping("/{id}")
    @PreAuthorize("@per.hasPermission('dict:type:delete')")
    public Result<Void> delete(@PathVariable Long id) {
        dictService.deleteDictType(id);
        return Result.success();
    }
}

字典项 Controller

java
@RestController
@RequestMapping("/api/dict/item")
@RequiredArgsConstructor
public class DictItemController {
    
    private final DictService dictService;
    
    @GetMapping("/list")
    public Result<List<DictItem>> list(DictItemQuery query) {
        return Result.success(dictService.listDictItems(query));
    }
    
    /**
     * 根据字典编码获取字典项(下拉框数据源)
     */
    @GetMapping("/{typeCode}")
    public Result<List<DictItem>> getByTypeCode(@PathVariable String typeCode) {
        return Result.success(dictService.getDictItems(typeCode));
    }
    
    @PostMapping
    @PreAuthorize("@per.hasPermission('dict:item:add')")
    public Result<Void> create(@RequestBody DictItem dictItem) {
        dictService.createDictItem(dictItem);
        // 刷新缓存
        dictService.refreshDictCache(dictItem.getDictTypeCode());
        return Result.success();
    }
    
    @PutMapping("/{id}")
    @PreAuthorize("@per.hasPermission('dict:item:edit')")
    public Result<Void> update(@PathVariable Long id, @RequestBody DictItem dictItem) {
        dictService.updateDictItem(id, dictItem);
        dictService.refreshDictCache(dictItem.getDictTypeCode());
        return Result.success();
    }
    
    @DeleteMapping("/{id}")
    @PreAuthorize("@per.hasPermission('dict:item:delete')")
    public Result<Void> delete(@PathVariable Long id) {
        DictItem item = dictService.getDictItemById(id);
        dictService.deleteDictItem(id);
        dictService.refreshDictCache(item.getDictTypeCode());
        return Result.success();
    }
}

系统配置 Controller

java
@RestController
@RequestMapping("/api/config")
@RequiredArgsConstructor
public class SysConfigController {
    
    private final ConfigService configService;
    
    @GetMapping("/list")
    public Result<List<SysConfig>> list(SysConfigQuery query) {
        return Result.success(configService.listConfigs(query));
    }
    
    @GetMapping("/{key}")
    public Result<Object> getByKey(@PathVariable String key) {
        return Result.success(configService.getConfigValue(key));
    }
    
    @PutMapping("/{key}")
    @PreAuthorize("@per.hasPermission('config:edit')")
    public Result<Void> update(@PathVariable String key, @RequestBody SysConfig config) {
        configService.updateConfig(key, config.getConfigValue());
        return Result.success();
    }
}

接口契约

获取字典项

GET /api/dict/item/{typeCode}

Response:
{
  "code": 200,
  "message": "success",
  "data": [
    {"id": 1, "label": "男", "value": "1"},
    {"id": 2, "label": "女", "value": "2"}
  ]
}

获取配置

GET /api/config/site_name

Response:
{
  "code": 200,
  "message": "success",
  "data": "我的网站"
}

不做

  • 不负责前端页面(使用方自行实现)
  • 不处理敏感配置加密(业务层自行处理)
  • 不提供配置变更审计日志

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Springboot Dict Module Skill AI skill do?

Spring Boot 字典/配置模块技能。面向已有 Spring Boot 项目,提供字典类型、字典项、系统配置、参数管理等能力的快速集成。触发词:"字典模块"、"配置模块"、"系统参数"、"字典管理"、"系统配置"、"dict module"、"config module"。

Why use Springboot Dict Module Skill on TypingMind?

Because you install it once and use it with any model. Springboot Dict Module Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Springboot Dict Module Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/java/springboot-module/springboot-dict-module-skill. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Springboot Dict Module Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Springboot Dict Module Skill?

As many as you like. As long as a model supports skills, you can use Springboot Dict Module Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Springboot Dict Module Skill AI skill free?

Yes. It is published on GitHub by jiushiwon under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇