java-codegen-from-db SKILL.md skillA
java-codegen-from-db from zhaoxingpeng/dbjavagenix is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add zhaoxingpeng/dbjavagenix/java-codegen-from-db@git:20260909.fd565b1Pins git:20260909.fd565b1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- zhaoxingpeng/dbjavagenix
- Path
.claude/skills/java-codegen-from-db/SKILL.md- Versions recorded
- 4
- Latest version
- git:20260909.fd565b1, committed Sep 9, 2026
- First version recorded
- May 24, 2026
- Size
- 10,634 bytes
- Repository stars
- 36
- License
- a license file GitHub does not identify
从 MySQL/PostgreSQL/SQLite 数据库表反向生成 Spring Boot Java 工程代码(Entity/DAO/Service/Controller/Mapper)。当用户提到"生成 Java 代码"、"反向工程"、"按数据库建模"、"从表生成 Spring Boot"等需求,且能提供数据库连接信息或已有连接时使用。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# java-codegen-from-db
## 工作流总览
本 skill 把"从数据库表生成 Java 代码"拆为 **5 个显式阶段**,每个阶段调用具体的 MCP 工具,关键决策点会暂停让用户确认。**不允许跳步**——前一步的输出是后一步的输入。
```
[1] 预检查项目 → [2] schema 分析 → [3] 语义增强(可选)
↓
[5] 写盘 ← [4] 分层渲染(等待用户确认)
```
---
## 阶段 1: 预检查项目(必做)
**目的**: 在生成代码前确认目标 Spring Boot 项目结构合法、依赖大致齐全。否则生成出来也编译不过。
### 1.1 验证项目结构
调用 **`springboot_validate_project`**:
- 参数: `{ "check_dependencies": true, "create_missing_dirs": true, "template_category": "<用户选定的分类>" }`
- 期待返回中包含 `Project Structure: ✅ OK` 或 `✅ Project Root`
- 如果失败 → 告诉用户具体缺什么,**不要继续**
### 1.2 分析依赖健康度
调用 **`springboot_analyze_dependencies`**:
- 参数:
```json
{
"template_category": "<同上>",
"database_type": "mysql|postgresql|sqlite",
"include_swagger": true,
"include_lombok": true,
"include_mapstruct": true
}
```
- 返回中提取 `Missing Dependencies: N`:
- N == 0 → health = 100,继续
- N ≤ 2 → health = 80,继续但提醒用户
- N ≤ 5 → health = 60,**暂停让用户决定是否继续**
- N > 5 → health = 40,**强烈建议先修依赖**,问用户是否要看具体清单
### 1.3 渲染依赖健康仪表盘(MCP App)
如果客户端支持 MCP Apps(`_meta` 渲染),返回值中应附加:
```json
{
"_meta": {
"mcp-apps/component": "dashboard",
…Read the whole file at its exact version.
How to install
mdr add zhaoxingpeng/dbjavagenix/java-codegen-from-db@sha256:03bd6e3d71954be1The line at the top of this page pins the label git:20260909.fd565b1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_qdobh72qaqetciwl)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between May 24, 2026 and Sep 9, 2026, about one every 36 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260909.fd565b1 latest | 2026-09-09 | fd565b1 | 10,634 B | A | view · diff |
| git:20260907.7f64c1a | 2026-09-07 | 7f64c1a | 10,374 B | A | view · diff |
| git:20260907.6966012 | 2026-09-07 | 6966012 | 9,220 B | A | view · diff |
| git:20260524.c7b4a72 | 2026-05-24 | c7b4a72 | 9,220 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (10634 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
zhaoxingpeng/dbjavagenix · 36 stars · license a license file GitHub does not identify · pushed 2026-09-12 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_qdobh72qaqetciwl GET https://markdownregistry.com/api/v1/resolve?ref=zhaoxingpeng/dbjavagenix/java-codegen-from-db GET https://markdownregistry.com/api/v1/blob/03bd6e3d71954be13becc4274f2f28f749ee90097c0379057df04b020eaae9ce
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.