empjs-skill
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese@empjs/skill 自然语言调用
@empjs/skill Natural Language Invocation
概述
Overview
将用户的自然语言请求转换为 CLI 命令并执行。
eskill@empjs/skillConvert users' natural language requests into CLI commands and execute them.
eskill@empjs/skill核心命令映射
Core Command Mapping
1. 安装技能
1. Install Skills
用户意图关键词: 安装、添加、引入、使用某个技能
对应命令:
bash
eskill install <skill>
eskill add <skill>参数说明:
- : 指定特定 Agent(如 claude、cursor、windsurf 等)
-a, --agent <name> - : 使用链接模式(本地开发时使用)
-l, --link - : 強制安装
-f, --force
批量安装:
当在包含多个技能的目录中运行 时,系统会自动检测所有可用技能并提供交互式选择界面,允许用户选择要安装的技能组合。
eskill install . --link示例转换:
- "安装 wechat-publisher 技能" →
eskill install wechat-publisher - "从 GitHub 安装技能" →
eskill install https://github.com/... - "给 Cursor 安装技能" →
eskill install <skill> -a cursor
User intent keywords: install, add, import, use a certain skill
Corresponding commands:
bash
eskill install <skill>
eskill add <skill>Parameter description:
- : Specify a specific Agent (such as claude, cursor, windsurf, etc.)
-a, --agent <name> - : Use link mode (for local development)
-l, --link - : Force installation
-f, --force
Batch installation:
When running in a directory containing multiple skills, the system will automatically detect all available skills and provide an interactive selection interface, allowing users to choose the skill combination to install.
eskill install . --linkExample conversion:
- "Install wechat-publisher skill" →
eskill install wechat-publisher - "Install skill from GitHub" →
eskill install https://github.com/... - "Install skill for Cursor" →
eskill install <skill> -a cursor
2. 列出技能
2. List Skills
用户意图关键词: 列出、查看、显示所有技能、已安装的技能
对应命令:
bash
eskill list
eskill lsUser intent keywords: list, view, show all skills, installed skills
Corresponding commands:
bash
eskill list
eskill ls3. 删除技能
3. Delete Skills
用户意图关键词: 删除、移除、卸载某个技能
对应命令:
bash
eskill remove <skill>
eskill rm <skill>
eskill uninstall <skill>User intent keywords: delete, remove, uninstall a certain skill
Corresponding commands:
bash
eskill remove <skill>
eskill rm <skill>
eskill uninstall <skill>4. 查看支持的 Agent 平台
4. View Supported Agent Platforms
用户意图关键词: 支持哪些 Agent、平台列表、agents
对应命令:
bash
eskill agents
eskill list-agentsUser intent keywords: which Agents are supported, platform list, agents
Corresponding commands:
bash
eskill agents
eskill list-agents工作流程
Workflow
- 解析用户意图: 识别用户想要执行的操作类型(安装/列出/删除/查看)
- 提取关键信息: 技能名称、Agent 名称、特殊选项等
- 构建命令: 根据提取的信息构建完整的 命令
eskill - 执行命令: 使用适当的工具执行命令(注意不同 shell 环境的语法差异)
- 返回结果: 将命令输出返回给用户
- Parse user intent: Identify the type of operation the user wants to perform (install/list/delete/view)
- Extract key information: Skill name, Agent name, special options, etc.
- Build command: Construct a complete command based on the extracted information
eskill - Execute command: Execute the command with appropriate tools (pay attention to syntax differences in different shell environments)
- Return results: Return the command output to the user
支持的 AI Agent 平台
Supported AI Agent Platforms
- AMP、Antigravity、Claude Code、ClawdBot、Cline、Codex、Cursor、Droid
- Gemini、GitHub Copilot、Goose、Kilo、Kiro CLI、OpenCode、Roo、Trae
- Windsurf、Qoder、Continue 等
- AMP, Antigravity, Claude Code, ClawdBot, Cline, Codex, Cursor, Droid
- Gemini, GitHub Copilot, Goose, Kilo, Kiro CLI, OpenCode, Roo, Trae
- Windsurf, Qoder, Continue, etc.
示例用法
Example Usage
| 自然语言请求 | 执行的命令 |
|---|---|
| "帮我安装 wechat-publisher 技能" | |
| "列出所有已安装的技能" | |
| "删除 skill-creator" | |
| "查看支持哪些 Agent" | |
| "给 Cursor 安装这个技能" | |
| "软链接当前文件夹下的技能到[~/.emp-agent/skills/]" | |
| "在指定目录下执行链接安装" | |
| Natural language request | Executed command |
|---|---|
| "Help me install wechat-publisher skill" | |
| "List all installed skills" | |
| "Delete skill-creator" | |
| "View which Agents are supported" | |
| "Install this skill for Cursor" | |
| "Soft link the skills in the current folder to [~/.emp-agent/skills/]" | |
| "Execute link installation in the specified directory" | |
注意事项
Notes
- 技能名称可以是 NPM 包名、Git URL 或本地路径
- 安装前建议先执行 查看是否已存在同名技能
eskill list - 使用 参数可以强制重新安装已有技能
-f, --force - 使用 参数可以从本地目录链接安装技能,适用于本地开发
--link - 在链接安装多个技能时,系统会提供交互式选择界面来选择要安装的技能
- 遇到 错误时,通常是目标目录路径存在问题,但不影响其他平台的安装
ENOTDIR: not a directory - 如果需要在特定目录下执行安装,请确保使用正确的路径和命令语法
- 在 Windows 环境下使用 PowerShell 时,命令连接符应使用而不是
;,目录切换应使用&&而非Set-Locationcd
- Skill name can be NPM package name, Git URL or local path
- It is recommended to run before installation to check if there is a skill with the same name
eskill list - Use parameter to force reinstall existing skills
-f, --force - Use parameter to install skills from local directory by linking, suitable for local development
--link - When installing multiple skills via link, the system will provide an interactive selection interface to choose the skills to install
- When encountering error, it is usually a problem with the target directory path, but it does not affect the installation of other platforms
ENOTDIR: not a directory - If you need to perform installation in a specific directory, please ensure to use the correct path and command syntax
- When using PowerShell in Windows environment, the command connector should use instead of
;, and directory switching should use&&instead ofSet-Locationcd