solon-development-skill

Solid

Solon Java framework expert (NOT Spring). Use for Solon apps, Solon AI (ChatModel/RAG/MCP/Agent/Harness/Talent), Solon Flow, Solon Cloud, Nami RPC, SqlUtils/MyBatis, and Solon annotations (@Mapping, @Inject, @SolonMain, @Component). Independent IoC/AOP and plugins — never use Spring annotations or spring-boot dependencies.

AI & Automation 191 stars 37 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
76
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Solon Development Skill 为使用 **Solon 框架** 构建 Java 应用提供专家级指导。Solon 是独立的全场景 Java 企业应用框架 — **与 Spring 不兼容**,拥有自研架构、注解体系与生态。 **官网**: https://solon.noear.org **GitHub**: https://github.com/opensolon/solon **License**: Apache 2.0 **JDK**: Java 8 ~ 26,GraalVM Native Image **目标版本**: **4.0.3**(升级时全局替换此标记 + 复核 AI/Nami 变更段) ## Critical Rules 1. **Solon 不是 Spring。** 禁止混用 Spring 注解(`@Autowired`、`@SpringBootApplication`、`@RestController`、`@RequestMapping`、`@Service`、`@Repository`、`@Value`、`@ComponentScan` 等)。 2. **禁止 Spring 依赖。** 不要引入 `spring-boot-starter-*`、`spring-*`。Solon 坐标 groupId 为 `org.noear`。 3. **配置文件是 `app.yml`**(或 `app.properties`),**不是** `application.yml`。 4. **入口**是 `Solon.start(App.class, args)`,不是 `SpringApplication.run()`。 5. **组件注解用 `@Component`**,不要用 `@Service` / `@Repository`。 6. **示例默认目标版本 4.0.3**(除非用户指定其它版本)。 7. **Parent POM** 为 `solon-parent`(`groupId=org.noear`)。 8. **中文支持。** 用户使用中文时,回复与代码注释使用中文。 9. **不确定的 API 不要臆造。** 优先查本 skill 的 reference;仍不确定时查官网/源码,禁止用 Spring 习惯补全。 ## 执行流程 1. **判定场景** → 只 `read` 下表中对应的 1~2 个 reference(**禁止一次加载全部**)。 2. **生成代码前**核对 Critical Rules(尤其:`app.yml`、`@Component`、`@Inject`、无 Spring 依赖)。 3. **数据访问**优先读 `references/data_access.md`。 4. **AI 场景分流**: - Chat/Tool/MCP/基础 RAG → `references/ai_chat_rag_mcp.md` - Loader/向量库/搜索插件表 → `references/ai_rag_plugins.md` - Agent/Talent/Loop → `references/ai_agent.md` - HarnessEngine/工具权限 → `references/ai_harness.md` - AI UI/ACP/A2A → `references/ai_protocol_ui.md` 5. **Cloud 分流...

Details

Author
opensolon
Repository
opensolon/soloncode
Created
7 months ago
Last Updated
3 days ago
Language
Java
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category