spring-to-solon-skill

spring-to-solon-skill is a skill for Claude Code, Codex from opensolon/soloncode. It costs 234 tokens per session (3,708 once invoked), scanned A, original, MIT.

A migration guide for moving Java projects from Spring Boot or Spring Cloud to Solon, an independent Java enterprise framework. It maps annotations, dependencies, configuration, architecture, web, data, security, scheduling, validation, cloud, and testing concepts.

In plain words
What is it for?
Replacing Spring dependencies and annotations, changing the application entry point and configuration, adapting dependency injection, and migrating web, data, security, scheduling, validation, cloud, and test code to Solon.
Why use it?
Spring and Solon use different packages, annotations, startup code, configuration files, and injection rules. The guide identifies those differences so a migration does not leave incompatible Spring pieces behind.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Replacing Spring dependencies and annotations, changing the application entry point and configuration, adapting dependency injection, and migrating web, data, security, scheduling, validation, cloud, and test code to Solon.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opensolon/soloncode/spring-to-solon-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add opensolon/soloncode --skill spring-to-solon-skill
Clone the repo
git clone --depth 1 https://github.com/opensolon/soloncode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spring-to-solon-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/opensolon/soloncode/spring-to-solon-skill/github.svg)](https://agentmods.dev/skills/opensolon/soloncode/spring-to-solon-skill)
Your own site
<a href="https://agentmods.dev/skills/opensolon/soloncode/spring-to-solon-skill"><img src="https://agentmods.dev/badge/skills/opensolon/soloncode/spring-to-solon-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spring-to-solon-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/opensolon/soloncode/spring-to-solon-skill"><img src="https://agentmods.dev/badge/skills/opensolon/soloncode/spring-to-solon-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 234 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,708 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00234 $0.03708
Opus 5.5 $0.00094 $0.01483
Sonnet 5.5 $0.00047 $0.00742
Haiku 4.5 $0.00023 $0.00371

Measured 17d ago against content hash c369231c2c11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spring-to-solon-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

soloncode-cli/release/skills/spring-to-solon-skill/SKILL.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spring to Solon Migration Skill

为将 Spring Boot / Spring Cloud 项目迁移到 Solon 框架 提供专家指导。Solon 是独立的 Java 企业框架(不基于 Spring),开发体验相近,但注解、架构与生态不同。

官方对照: https://solon.noear.org/article/compare-springboot
Cloud 对照: https://solon.noear.org/article/compare-springcloud
官网: https://solon.noear.org
当前版本: 4.0.3

版本声明:本文档所有示例基于 Solon 4.0.3(最后一次确认: 2026-07)。如需迁移到其他版本,请调整对应版本号。Solon 高版本保持向后兼容,通常仅需修改 solon-parent 版本号即可。reference 内写「跟随 SKILL 目标版本」时,以本节为准。

Critical Migration Rules

  1. 意图闸门(优先于一切):本 skill 仅在用户明确要求将 Spring 项目迁移到 Solon 时适用(明确表述:迁移 / Spring转Solon / 替换 starter / 去 Spring 依赖等,或明确要求换框架)。用户未明确要求时:保持项目现有框架(Spring),禁止修改 pom 依赖、启动类、配置文件名与注解体系;不要把「项目里存在 Spring 依赖」当作迁移请求;意图不明确时先询问,不得动手。其他规则均以此条为前提。
  2. Solon 不是 Spring。 禁止混用 Spring 注解与 Solon 注解。替换全部 Spring import。(仅在 Rule 0 确认后执行)
  3. 禁止 Spring 依赖。 移除所有 spring-boot-starter-*、spring-*。Solon 使用 org.noear groupId。(仅在 Rule 0 确认后执行;未确认前任何 Spring 依赖都不是“待清理项”)
  4. 配置文件是 app.yml(或 app.properties),不是 application.yml。
  5. 入口是 Solon.start(App.class, args),不是 SpringApplication.run()。
  6. Parent POM 是 solon-parent(groupId=org.noear)。
  7. 包扫描在主类用 @Import / 主类包路径,不是 @ComponentScan。
  8. 无 setter 注入。 Solon 只支持字段注入与构造器注入;构造器参数必须显式 @Inject。
  9. 组件用 @Component,不要用 @Service / @Repository。
  10. 所有示例目标 Solon 4.0.x(默认 4.0.3),除非用户指定其它版本。
  11. 中文支持。 用户使用中文时,回复与代码注释使用中文。
  12. 不确定的 API 不要臆造。 对照本 skill reference;Solon 原生细节查 solon-development-skill。
  13. 校验坐标 为 solon-security-validation(不是 solon-validation)。类级启用 @Valid,实体参数/字段用 @Validated。
  14. 调度选型:单机 → @Scheduled(scheduling_migration.md);分布式防重 → @CloudJob(cloud_observability_migration.md)。勿一律替换。

与 solon-development-skill 的边界

场景 使用 skill
用户明确要求 Spring → Solon 对照、替换、迁移步骤 本 skill
纯 Solon 新功能 / AI / Flow / 最佳实践 solon-development-skill
两边都提及时 先按本 skill 完成迁移对照,再链开发 skill 补原生写法
用户未要求迁移,只是在 Spring 项目里干活 都不用;保持 Spring 现状,意图不明先问

Read the full file on GitHub · 195 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · +5 lines · +81 tokens per session c369231c2c11
  2. 1mo ago First seen · 190 lines · 153 tokens per session scan A 2b7db5d97b04

Subscribe to this mod's changes

spring-to-solon-skill is a skill published in the GitHub repository opensolon/soloncode (197 stars, last pushed yesterday), licensed MIT. It adds 234 tokens to every session and 3,708 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.