SP

spring-boot-config-refactor

Refactors legacy Spring properties to structured, immutable YAML configuration. Improves maintainability and type safety.

Install

mkdir -p .claude/skills/spring-boot-config-refactor && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13395" && unzip -o skill.zip -d .claude/skills/spring-boot-config-refactor && rm skill.zip

Installs to .claude/skills/spring-boot-config-refactor

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Refactor a Spring Boot application's configuration from legacy application.properties and scattered @Value usage to structured YAML and immutable @ConfigurationProperties records. Use this when migrating messy configuration, standardizing property naming, introducing app-prefixed custom properties, or separating sensible defaults from local development overrides.
365 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • →Analyze existing Spring Boot configuration
  • →Restructure configuration to YAML
  • →Migrate `@Value` to `@ConfigurationProperties` records
  • →Introduce `app` prefixed custom properties
  • →Separate local development overrides

How it works

The skill analyzes existing Spring Boot configuration, restructures it to YAML, and migrates `@Value` annotations to type-safe, immutable `@ConfigurationProperties` records.

Inputs & outputs

You give it
Spring Boot application with `application.properties` and `@Value` annotations
You get back
Spring Boot application with YAML configuration and `@ConfigurationProperties` records

When to use spring-boot-config-refactor

  • →Convert properties to YAML
  • →Introduce type-safe config records
  • →Standardize application config prefixes
  • →Separate environment-specific overrides

About spring-boot-config-refactor

Analyzes and transforms scattered @Value annotations and application.properties files into modular YAML structures. Implements type-safe record-based configuration using @ConfigurationProperties.

Refactor a Spring Boot application's configuration from legacy application.properties and scattered @Value usage to structured YAML and immutable @ConfigurationProperties records. Use this when migrating messy configuration, standardizing property naming, introducing app-prefixed custom properties,

When not to use it

  • →When the goal is to convert standard Spring Boot properties to `app.*`
  • →When the project requires mutable configuration POJOs instead of records
  • →When the user explicitly wants environment-specific packaged config for production

Limitations

  • →The skill is optimized for repositories with specific configuration practices.
  • →It does not introduce environment-specific packaged config for production unless explicitly asked.
  • →It avoids renaming properties consumed by shared libraries without coordination.

How it compares

This skill automates the refactoring of Spring Boot configuration to a structured, type-safe YAML and record-based approach, standardizing property naming and separating concerns, unlike manual, ad-hoc configuration changes.

Compared to similar skills

spring-boot-config-refactor side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
spring-boot-config-refactor (this skill)07moNo flagsAdvanced
refactor07moNo flagsAdvanced
java-pro347moNo flagsAdvanced
backend-microservice-development26moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

refactor

jgreen021

This standard governs the modernization of legacy code and the surgical decomposition of high-complexity monolithic structures.

00

java-pro

sickn33

Master Java 21+ with modern features like virtual threads, pattern matching, and Spring Boot 3.x. Expert in the latest Java ecosystem including GraalVM, Project Loom, and cloud-native patterns. Use PROACTIVELY for Java development, microservices architecture, or performance optimization.

3492

backend-microservice-development

TencentBlueKing

后端微服务开发规范,涵盖目录结构、分层架构(API/Service/DAO)、依赖注入、配置管理、Spring Boot 最佳实践。当用户进行后端开发、创建新微服务、编写 Kotlin/Java 代码或设计服务架构时使用。

213

microservice-infrastructure

TencentBlueKing

微服务基础设施指南,涵盖条件配置、事件驱动架构、服务间通信、国际化与日志等微服务架构的核心基础设施。当用户实现服务间调用、配置多环境、实现异步通信、处理国际化或规范日志输出时使用。

411

common-technical-practices

TencentBlueKing

通用技术实践指南,涵盖 AOP 切面、分布式锁、重试机制、参数校验、性能监控、定时任务、审计日志等后端开发中的常见技术实践。当用户需要实现横切关注点、处理并发控制、配置重试策略、添加性能监控或实现审计功能时使用。

26

jakarta-namespace

benchflow-ai

Migrate Java EE javax.* imports to Jakarta EE jakarta.* namespace. Use when upgrading to Spring Boot 3.x, migrating javax.persistence, javax.validation, javax.servlet imports, or fixing compilation errors after Jakarta EE transition. Covers package mappings, batch sed commands, and verification steps.

25

Search skills

Search the agent skills registry