empjs-skill

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

@empjs/skill 自然语言调用

@empjs/skill Natural Language Invocation

概述

Overview

将用户的自然语言请求转换为
eskill
CLI 命令并执行。
@empjs/skill
是一个企业级 AI Agent 技能分发中心,支持跨 18+ 平台管理、分发并追踪技能链路。 官网链接: https://skill.empjs.dev/#usage
Convert users' natural language requests into
eskill
CLI commands and execute them.
@empjs/skill
is an enterprise-grade AI Agent skill distribution center that supports management, distribution and skill traceability across more than 18 platforms. Official website link: https://skill.empjs.dev/#usage

核心命令映射

Core Command Mapping

1. 安装技能

1. Install Skills

用户意图关键词: 安装、添加、引入、使用某个技能
对应命令:
bash
eskill install <skill>
eskill add <skill>
参数说明:
  • -a, --agent <name>
    : 指定特定 Agent(如 claude、cursor、windsurf 等)
  • -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:
  • -a, --agent <name>
    : Specify a specific Agent (such as claude, cursor, windsurf, etc.)
  • -l, --link
    : Use link mode (for local development)
  • -f, --force
    : Force installation
Batch installation: When running
eskill install . --link
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.
Example 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 ls
User intent keywords: list, view, show all skills, installed skills
Corresponding commands:
bash
eskill list
eskill ls

3. 删除技能

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-agents
User intent keywords: which Agents are supported, platform list, agents
Corresponding commands:
bash
eskill agents
eskill list-agents

工作流程

Workflow

  1. 解析用户意图: 识别用户想要执行的操作类型(安装/列出/删除/查看)
  2. 提取关键信息: 技能名称、Agent 名称、特殊选项等
  3. 构建命令: 根据提取的信息构建完整的
    eskill
    命令
  4. 执行命令: 使用适当的工具执行命令(注意不同 shell 环境的语法差异)
  5. 返回结果: 将命令输出返回给用户
  1. Parse user intent: Identify the type of operation the user wants to perform (install/list/delete/view)
  2. Extract key information: Skill name, Agent name, special options, etc.
  3. Build command: Construct a complete
    eskill
    command based on the extracted information
  4. Execute command: Execute the command with appropriate tools (pay attention to syntax differences in different shell environments)
  5. 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 技能"
eskill install https://github.com/steelan9199/wechat-publisher/tree/main/skills
"列出所有已安装的技能"
eskill list
"删除 skill-creator"
eskill remove skill-creator
"查看支持哪些 Agent"
eskill agents
"给 Cursor 安装这个技能"
eskill install <skill> -a cursor
"软链接当前文件夹下的技能到[~/.emp-agent/skills/]"
eskill install . --link
"在指定目录下执行链接安装"
Set-Location <directory>; eskill install . --link
(PowerShell)或
cd <directory> && eskill install . --link
(bash)
Natural language requestExecuted command
"Help me install wechat-publisher skill"
eskill install https://github.com/steelan9199/wechat-publisher/tree/main/skills
"List all installed skills"
eskill list
"Delete skill-creator"
eskill remove skill-creator
"View which Agents are supported"
eskill agents
"Install this skill for Cursor"
eskill install <skill> -a cursor
"Soft link the skills in the current folder to [~/.emp-agent/skills/]"
eskill install . --link
"Execute link installation in the specified directory"
Set-Location <directory>; eskill install . --link
(PowerShell) or
cd <directory> && eskill install . --link
(bash)

注意事项

Notes

  • 技能名称可以是 NPM 包名、Git URL 或本地路径
  • 安装前建议先执行
    eskill list
    查看是否已存在同名技能
  • 使用
    -f, --force
    参数可以强制重新安装已有技能
  • 使用
    --link
    参数可以从本地目录链接安装技能,适用于本地开发
  • 在链接安装多个技能时,系统会提供交互式选择界面来选择要安装的技能
  • 遇到
    ENOTDIR: not a directory
    错误时,通常是目标目录路径存在问题,但不影响其他平台的安装
  • 如果需要在特定目录下执行安装,请确保使用正确的路径和命令语法
  • 在 Windows 环境下使用 PowerShell 时,命令连接符应使用
    ;
    而不是
    &&
    ,目录切换应使用
    Set-Location
    而非
    cd
  • Skill name can be NPM package name, Git URL or local path
  • It is recommended to run
    eskill list
    before installation to check if there is a skill with the same name
  • Use
    -f, --force
    parameter to force reinstall existing skills
  • Use
    --link
    parameter to install skills from local directory by linking, suitable for local development
  • When installing multiple skills via link, the system will provide an interactive selection interface to choose the skills to install
  • When encountering
    ENOTDIR: not a directory
    error, it is usually a problem with the target directory path, but it does not affect the installation of other platforms
  • 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
    Set-Location
    instead of
    cd