Loading...
Loading...
Code template search and generation tool. Auto-initializes on first use. Use when: 1. search/get - user needs code templates, "检索模板", "search template" 2. generate - user wants to create template from code/file/repo/url, "生成模板" 3. upload - user has prepared template files, "上传模板" Requirements: JDK 17+, Git (for first-time setup)
npx skill4agent add itxaiohanglover/mcp-codestyle-server codestyleUser request
│
├─ "search" / "检索" ──→ Search Workflow (CLI, local+remote)
│
├─ "get" / "获取" ──→ Get Workflow (CLI, local+remote)
│
├─ "generate" / "生成" ──→ Generate Workflow (AI dialog, then upload)
│
└─ "upload" / "上传" ──→ Upload Workflow (CLI, remote)| Command | Execution | Description |
|---|---|---|
| CLI (JAR) | Search templates (local Lucene + remote API) |
| CLI (JAR) | Get full template content |
| AI Dialog | Multi-turn conversation, then call upload |
| CLI (JAR) | Upload template to server |
"<SKILL_DIR>\scripts\codestyle.bat" search "keyword"
"<SKILL_DIR>\scripts\codestyle.bat" get "template-path"
"<SKILL_DIR>\scripts\codestyle.bat" upload --path ./my-templatebash <SKILL_DIR>/scripts/codestyle search "keyword"
bash <SKILL_DIR>/scripts/codestyle get "template-path"
bash <SKILL_DIR>/scripts/codestyle upload --path ./my-templateUser: 把这段代码做成模板:[代码]
AI: [多轮对话引导生成模板]
AI: [调用 upload 存储]| Input | Example | Pre-processing |
|---|---|---|
| Code snippet | | None |
| Current file | "当前这个文件" | Read file |
| Local path | | Read file |
| GitHub URL | | Clone repo |
| Web URL | | Crawl content |
识别输入 → 预处理 → 分析结构 → 选择模板 → AI生成 → 去重检测 → 用户确认 → 调用upload.initialized.initialized<artifactId>/
└── <version>/
├── meta.json # Template metadata (required)
├── README.md # Documentation (optional)
└── <subdirectories> # Template files (.ftl)CRUD/
└── 1.0.0/
├── meta.json
├── README.md
├── backend/
│ ├── sql/Menu.ftl
│ └── src/main/java/...
└── frontend/
└── src/...