AI编码技能,用于从截图、描述或现有脚本生成和修改Metin2客户端UI代码。支持Claude Code、Cursor、Codex、Windsurf、Cline、Copilot和Gemini CLI。
概览
这是一项为 AI 编码助手设计的技能,用于生成和修改 Metin2 客户端的 UI 代码。它可处理截图、自然语言描述或现有脚本——并输出正确、适合生产环境的 uiscript 指令、root ui*.py 类和本地字符串条目。 M2UI可与所有主要的AI编码工具兼容。每个工具都通过其原生集成机制学习该技能: 所有代理共享相同的参考文档。真实信息来源是rules/m2ui-activate.md——CI工作流程会自动将其同步到每个工具的原生格式。 Claude Code 会在 ~/.claude/plugins/local/ 下自动发现插件。插件必须通过市场注册并安装。该仓库会附带一个现成可用的市场描述符 .claude-plugin/marketplace.json,因此同一个克隆既是市场代码,也是插件源代码。 (第一个m2ui是插件名称;第二个是.claude-plugin/marketplace.json中声明的市场名称。
概述(AI 翻译)
这是一项为 AI 编码助手设计的技能,用于生成和修改 Metin2 客户端的 UI 代码。它可处理截图、自然语言描述或现有脚本——并输出正确、适合生产环境的 uiscript dict、根 ui*.py 类和 locale 字符串条目。
支持的特工
M2UI可与所有主要的AI编码工具兼容。每个工具都通过其原生集成机制学习该技能:
| 特工 | 机制 | 自动激活? |
|---|---|---|
| Claude代码 | 插件系统(/m2ui技能) |
是的 |
| Codex | plugins/m2ui/ 插件 |
是的 |
| 光标 | .cursor/rules/m2ui.mdc |
是的 |
| 风帆冲浪 | .windsurf/rules/m2ui.md |
是的 |
| 克莱恩 | .clinerules/m2ui.md |
是的 |
| GitHub 副驾驶 | .github/copilot-instructions.md |
是的 |
| 双子座CLI | GEMINI.md 分机 |
是的 |
| 任何其他代理 | AGENTS.md 在仓库根 |
按需读取 |
所有代理共享相同的参考文档。真实来源是rules/m2ui-activate.md——CI工作流程会自动将其同步到每个工具的原生格式。
安装
快速安装(推荐)
把这个粘贴到你的AI代理上:
克劳德·科德
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
/m2ui — Metin2 UI Code Generator
A skill for AI coding assistants that generates and modifies Metin2 client UI code. It works with screenshots, natural language descriptions, or existing scripts — and outputs correct, production-ready uiscript dicts, root ui*.py classes, and locale string entries.
Supported Agents
m2ui works with all major AI coding tools. Each tool picks up the skill through its native integration mechanism:
| Agent | Mechanism | Auto-activates? |
|---|---|---|
| Claude Code | Plugin system (/m2ui skill) |
Yes |
| Codex | Plugin in plugins/m2ui/ |
Yes |
| Cursor | .cursor/rules/m2ui.mdc |
Yes |
| Windsurf | .windsurf/rules/m2ui.md |
Yes |
| Cline | .clinerules/m2ui.md |
Yes |
| GitHub Copilot | .github/copilot-instructions.md |
Yes |
| Gemini CLI | GEMINI.md extension |
Yes |
| Any other agent | AGENTS.md at repo root |
Read on demand |
All agents share the same reference documentation. The source of truth is rules/m2ui-activate.md — a CI workflow syncs it to each tool’s native format automatically.
Installation
Quick Install (recommended)
Paste this to your AI agent:
Install the m2ui skill from https://github.com/martysama0134/m2ui-skill into my project. For Claude Code, register the repo as a marketplace via `/plugin marketplace add ` and then `/plugin install m2ui@m2ui` — the repo ships a ready-to-use `.claude-plugin/marketplace.json` so symlinking alone is NOT enough.
Claude Code
Claude Code does not auto-discover plugins under ~/.claude/plugins/local/. Plugins must be registered via a marketplace and then installed. This repo ships a ready-to-use marketplace descriptor at .claude-plugin/marketplace.json so the same clone serves as both marketplace and plugin source.
Step 1 — clone the repo somewhere local:
# Anywhere on disk; the path doesn't have to be ~/.claude/plugins/local/
git clone https://github.com/martysama0134/m2ui-skill.git /path/to/m2ui-skill
Step 2 — register the marketplace in Claude Code:
/plugin marketplace add /path/to/m2ui-skill
Step 3 — install the plugin from that marketplace:
/plugin install m2ui@m2ui
(The first m2ui is the plugin name; the second is the marketplace name declared in .claude-plugin/marketplace.json.)
Step 4 — restart Claude Code (or run /reload-plugins) to pick up the slash command and skill. Verify with /help — you should see /m2ui in the slash-command list.
To upgrade later: git pull in the cloned dir + restart Claude Code. The marketplace registration persists.
Cursor / Windsurf / Cline / Copilot
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add martysama0134/m2ui-skill