← 返回 Skills 市场
olveww-dot

Lsp Client

作者 ECsss · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
123
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install hermes-lsp-client
功能描述
Connects to external Language Server Protocol (LSP) servers via stdio to provide code intelligence like goto definition, find references, hover, and symbol s...
使用说明 (SKILL.md)

LSP Client Skill

🛡️ OpenClaw 混合进化方案 — 将 Hermes-agent(100K ⭐)+ Claude Code 核心能力移植到 OpenClaw

Skill Name: lsp-client

Description: Provides code intelligence (goto definition, find references, hover, document symbols) by connecting to external LSP servers via stdio.

Trigger Keywords: 跳转到定义, 查找引用, 悬停提示, 符号搜索, goto definition, find references, hover, document symbol


🚀 一键安装

mkdir -p ~/.openclaw/skills && cd ~/.openclaw/skills && curl -fsSL https://github.com/olveww-dot/openclaw-hermes-claude/archive/main.tar.gz | tar xz && cp -r openclaw-hermes-claude-main/skills/hermes-lsp-client . && rm -rf openclaw-hermes-claude-main && echo "✅ lsp-client 安装成功"

What This Skill Does

This skill acts as an LSP client that communicates with external Language Server Protocol (LSP) servers. LSP is the protocol VSCode uses for code intelligence — this skill gives OpenClaw the same capabilities.

Requirements

You must install LSP servers yourself. This skill is just the client.

Supported LSP Servers

Language Server Install
TypeScript/JavaScript typescript-language-server npm i -g typescript-language-server
Python pyright or jedi-language-server pip install pyright
Rust rust-analyzer rustup component add rust-analyzer
Go gopls go install golang.org/x/tools/gopls@latest
C/C++ clangd Install via LLVM or your package manager
Vue volar npm i -g @vue/language-server

Configuration

Add LSP server configs to your TOOLS.md or skill config:

const LSP_SERVERS = {
  'typescript': {
    command: 'typescript-language-server',
    args: ['--stdio'],
    extensionToLanguage: {
      '.ts': 'typescript',
      '.tsx': 'typescript',
      '.js': 'javascript',
    },
  },
}

Commands

Goto Definition

  • Trigger: "跳转到定义", "goto definition"
  • Args: filePath:line:character
  • Returns: File path and line/column of the definition

Find References

  • Trigger: "查找引用", "find references"
  • Args: filePath:line:character
  • Returns: List of all reference locations

Hover

  • Trigger: "悬停提示", "hover"
  • Args: filePath:line:character
  • Returns: Type information and documentation

Document Symbols

  • Trigger: "符号搜索", "document symbols", "outline"
  • Args: filePath
  • Returns: Tree of symbols (functions, classes, etc.)

Architecture

lsp-commands.ts   — High-level commands (gotoDef, findRefs, etc.)
server-manager.ts  — LSP server lifecycle & routing
protocol.ts        — LSP protocol type definitions

Limitations

  • Requires external LSP servers to be installed
  • Servers communicate via stdio (not sockets)
  • Only supports one server per file extension

🧩 配套技能

本 skill 是 OpenClaw 混合进化方案 的一部分:

Hermesagent(100K ⭐)+ Claude Code 核心能力移植到 OpenClaw

Hermes-agent(100K ⭐)+ Claude Code 核心能力移植到 OpenClaw

🔗 GitHub 项目:olveww-dot/openclaw-hermes-claude

完整技能套件(6个):

  • 🛡️ crash-snapshots — 崩溃防护
  • 🧠 auto-distill — T1 自动记忆蒸馏
  • 🎯 coordinator — 指挥官模式
  • 💡 context-compress — 思维链连续性
  • 🔍 lsp-client — LSP 代码智能(本文)
  • 🔄 auto-reflection — 自动反思
安全使用建议
This skill is coherent with its stated purpose (a local LSP client) but before installing you should: 1) inspect the repository the SKILL.md install one‑liner points to (olveww-dot/openclaw-hermes-claude) to ensure you trust that source; 2) be aware the skill will spawn local language‑server processes and read any files you ask it to open—avoid passing sensitive file paths (e.g., secrets, SSH keys, system password files) to LSP commands; 3) note child processes inherit your environment, so secrets present in your environment could be visible to language servers; 4) if you allow runtime use of 'npx' or similar, be aware it can download packages from the network at runtime; and 5) if you need higher assurance, run the skill in an isolated environment or review the TypeScript sources (server-manager.ts, lsp-commands.ts) line-by-line before enabling.
功能分析
Type: OpenClaw Skill Name: hermes-lsp-client Version: 1.0.2 The skill implements a legitimate Language Server Protocol (LSP) client to provide code intelligence features like 'goto definition' and 'find references'. It uses 'child_process.spawn' to manage local LSP server processes and 'fs' to read source code for analysis, both of which are necessary for its stated purpose. While the installation instructions in SKILL.md utilize a 'curl | tar' pattern from a third-party GitHub repository (olveww-dot/openclaw-hermes-claude), the provided source code in 'src/server-manager.ts' and 'src/lsp-commands.ts' shows no evidence of malicious intent, data exfiltration, or unauthorized persistence.
能力评估
Purpose & Capability
Name/description match the implementation: code shows an LSP server manager that spawns language-server processes and LSP command wrappers. All required capabilities (child processes, stdio JSON-RPC, reading files) are consistent with providing LSP features.
Instruction Scope
SKILL.md instructs installing LSP servers and contains an install one‑liner that downloads from GitHub. Runtime code will read arbitrary file paths (fs.readFile) to open/update files and will spawn local server binaries; this is expected for an LSP client but means the skill can access any file the agent is permitted to open and forward LSP responses back to the agent.
Install Mechanism
No formal install spec in registry, but SKILL.md provides a curl | tar command that downloads a main.tar.gz from a third‑party GitHub repository. Using GitHub releases is common, but downloading and executing archive contents from an external repo is higher risk than a registry-managed install and should be verified.
Credentials
The skill declares no required env vars or credentials (appropriate). Implementation spawns processes with env: { ...process.env, ...config.env }, which is typical but means child LSP servers inherit the agent's entire environment (potentially exposing secrets to local child processes). Also some server commands use 'npx' which may fetch packages at runtime.
Persistence & Privilege
Skill is not always-enabled and doesn't request elevated or persistent platform privileges. Install script copies files into the user skills directory only; it does not modify other skills or system-wide config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hermes-lsp-client
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hermes-lsp-client 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
v1.0.2: 添加一键安装命令,ClaWHub安装后可直接使用
v1.0.1
v1.0.1: 详情页加入Hermes-agent+Claude Code融合卖点
v1.0.0
Initial release: LSP代码智能,跳转定义、查找引用、悬停提示
元数据
Slug hermes-lsp-client
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Lsp Client 是什么?

Connects to external Language Server Protocol (LSP) servers via stdio to provide code intelligence like goto definition, find references, hover, and symbol s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 123 次。

如何安装 Lsp Client?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hermes-lsp-client」即可一键安装,无需额外配置。

Lsp Client 是免费的吗?

是的,Lsp Client 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Lsp Client 支持哪些平台?

Lsp Client 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Lsp Client?

由 ECsss(@olveww-dot)开发并维护,当前版本 v1.0.2。

💬 留言讨论