skill/codestyle/SKILL.md
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 skillsauth add itxaiohanglover/mcp-codestyle-server codestyleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Code template management: CLI tools for search/get/upload + AI-guided generation.
User 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 |
|---------|-----------|-------------|
| search | CLI (JAR) | Search templates (local Lucene + remote API) |
| get | CLI (JAR) | Get full template content |
| generate | AI Dialog | Multi-turn conversation, then call upload |
| 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-template
bash <SKILL_DIR>/scripts/codestyle search "keyword"
bash <SKILL_DIR>/scripts/codestyle get "template-path"
bash <SKILL_DIR>/scripts/codestyle upload --path ./my-template
User: 把这段代码做成模板:[代码]
AI: [多轮对话引导生成模板]
AI: [调用 upload 存储]
See references/ for detailed workflow instructions:
Generate workflow is pure AI dialog, no script calls until final upload.
| Input | Example | Pre-processing |
|-------|---------|----------------|
| Code snippet | @RestController ... | None |
| Current file | "当前这个文件" | Read file |
| Local path | /path/to/file.java | Read file |
| GitHub URL | https://github.com/xxx/repo | Clone repo |
| Web URL | https://blog.xxx.com/... | Crawl content |
Process: 识别输入 → 预处理 → 分析结构 → 选择模板 → AI生成 → 去重检测 → 用户确认 → 调用upload
Automatic initialization on first command:
.initialized marker.initialized markerSee references/config.md for configuration options.
Standard template structure with meta.json in version directory:
<artifactId>/
└── <version>/
├── meta.json # Template metadata (required)
├── README.md # Documentation (optional)
└── <subdirectories> # Template files (.ftl)
Example:
CRUD/
└── 1.0.0/
├── meta.json
├── README.md
├── backend/
│ ├── sql/Menu.ftl
│ └── src/main/java/...
└── frontend/
└── src/...
See references/template-format.md for complete format specification.
See references/template-syntax.md for template syntax.
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.