clangd LSP over HTTP for C++ syntax checks and symbol navigation in LuisaCompute sources.

Apache-2.0Auto-check passed

Install Lsp

skills CLI
$ npx skills add LuisaGroup/LuisaCompute --skill lsp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LuisaGroup/LuisaCompute lsp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LuisaGroup/LuisaCompute.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/lsp .claude/skills/lsp && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lsp
GitHub stars
1.1k
Token cost
~758 tokens
SKILL.md length
226 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

clangd LSP over HTTP for C++ syntax checks and symbol navigation in LuisaCompute sources.

  • Works in 2 steps: Start the server in the background… → Use the client to query information.…
  • SKILL.md covers Architecture, Workflow, Parameters and Exit Codes, plus 2 more sections
  • Calls python and curl

What it does

Lsp is an agent skill from LuisaGroup/LuisaCompute. clangd LSP over HTTP for C++ syntax checks and symbol navigation in LuisaCompute sources.

Its SKILL.md is about 760 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with C++. The repository describes itself as: High-Performance Rendering Framework on Stream Architectures. The licence is Apache-2.0.

Example prompts

  • “/lsp”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Start the server in the background before any C++ editing session
  2. Use the client to query information. Common commands

What it can do on your machine

Read from SKILL.md and the folder at commit 0c84a1a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lsp loads about 758 tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 226 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~758

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from LuisaGroup/LuisaCompute at commit 0c84a1a, republished under its Apache-2.0 licence (© LuisaGroup). 226 words, ~758 tokens.

Download SKILL.mdSave it as .claude/skills/lsp/SKILL.md (or your agent's skills folder).
name
lsp
description
clangd LSP over HTTP for C++ syntax checks and symbol navigation in LuisaCompute sources.

C++ LSP

Provides clangd-powered syntax checks and symbol queries over an HTTP bridge.

Architecture

  • Server (scripts/cpp_lsp_server.py): FastAPI wrapper around clangd. Requires compile_commands.json.
  • Client (scripts/cpp_lsp_client.py): httpx CLI that talks to the server.

Workflow

  1. Start the server in the background before any C++ editing session:

    bash
    python scripts/cpp_lsp_server.py --project-root . --port 8000

    The server auto-discovers compile_commands.json in .vscode/, build/, or project root. If none is found, it falls back to the project root.

  2. Use the client to query information. Common commands:

Check Syntax
bash
python scripts/cpp_lsp_client.py check src/foo.cpp -v
# Override content ad-hoc:
python scripts/cpp_lsp_client.py check src/foo.cpp --content "int main() { return 0; }"
Symbol Navigation
bash
# Go to definition at line 10, character 5 (0-based)
python scripts/cpp_lsp_client.py symbol src/foo.cpp 10 5 --action definition

# Hover info
python scripts/cpp_lsp_client.py symbol src/foo.cpp 10 5 --action hover

# Document-level symbols
python scripts/cpp_lsp_client.py symbol src/foo.cpp --action documentSymbol

Available actions: definition, declaration, typeDefinition, implementation, references, hover, documentSymbol.

You can also override file content for symbol queries:

bash
python scripts/cpp_lsp_client.py symbol src/foo.cpp 10 5 --action hover --content "int x = 0;"
Server Health
bash
curl http://127.0.0.1:8000/health

Parameters

Client flagDefaultDescription
--serverhttp://127.0.0.1:8000Server base URL
--timeout3.0HTTP request timeout (s)
--lsp-timeout10.0Internal clangd timeout (s) passed to the server
Server flagDefaultDescription
--host / --port127.0.0.1:8000Bind address
--project-root.Where to search for compile_commands.json
--clangdclangdPath to clangd executable
--compile-commands-dirautoOverride compile_commands.json location
--verboseoffPrint LSP traffic

Exit Codes

  • check subcommand: 0 (no issues), 1 (errors found), 2 (connection/server error).
  • symbol subcommand: 0 (result returned), 1 (no result), 2 (connection/server error).

Requirements

  • clangd in PATH
  • compile_commands.json generated, e.g.:
    • XMake: xmake project -k compile_commands --lsp=clangd .vscode
    • CMake: -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
  • Python packages: fastapi, uvicorn, httpx, pydantic

Notes

  • The server holds a single clangd process. Restart it if compile_commands.json changes.
  • line and character are 0-based, matching the LSP protocol and clangd's expectations.

© LuisaGroup, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/lsp of LuisaGroup/LuisaCompute.

Open the folder on GitHubat commit 0c84a1a

Compare with similar skills

Lsp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lsp compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lsp this skillLuisaGroup/LuisaCompute1.1k—~758Automated safety check: PassApache-2.0
Paddle BuildPaddlePaddle/Paddle24k—~1kAutomated safety check: PassApache-2.0
Fory Releaseapache/fory4.6k—~2.9kAutomated safety check: PassApache-2.0
ONNX Runtime Shape Inference Safety Auditmicrosoft/onnxruntime22k—~3.3kAutomated safety check: PassMIT
Code Audit3stoneBrother/code-audit8921 repos~2.7kAutomated safety check: PassNone
Qt C++ Code Reviewx-tools-author/x-tools1.1k2 repos~4.3kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Paddle Build

    PaddlePaddle/Paddle

    A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.

    24k GitHub stars~1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Official

    Finds and fixes out-of-range output writes in ONNX Runtime operator shape-inference functions where a getNumOutputs guard admits too few outputs.

    22k GitHub stars~3.3k tokensUpdated today
    SecurityAuto-check passed
  • Code Audit

    3stoneBrother/code-audit

    Professional code security audit skill covering 55+ vulnerability types.

    892 GitHub starsUsed in 1 repo~2.7k tokens
    SecurityAuto-check passed
  • Qt C++ Code Review

    x-tools-author/x-tools

    Read-only review of Qt6 C++ code that combines a deterministic lint script with six parallel analysis agents and reports only high-confidence issues.

    1.1k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed
  • Translation

    doxygen/doxygen

    Keeps all Doxygen and Doxywizard translations up to date across three mechanisms: translator C++ classes (src/translatorxx.h), Qt .ts locale files for the Doxywizard GUI (addon/doxywizard/i18n/)…

    6.6k GitHub stars~5.2k tokensUpdated 8 days ago
    Writing & ContentAuto-check passed

More from LuisaGroup/LuisaCompute

All 12 skills in this repo
  • Git

    LuisaGroup/LuisaCompute

    Show uncommitted changes and commit history via git. An agent skill from LuisaGroup/LuisaCompute.

    1.1k GitHub stars~544 tokensUpdated today
    Auto-check passed
  • Ast

    LuisaGroup/LuisaCompute

    Manual AST construction with FunctionBuilder for kernels and callables without DSL sugar.

    1.1k GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Cmake

    LuisaGroup/LuisaCompute

    CMake build options, custom functions, and backend patterns for LuisaCompute.

    1.1k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Cpp Style

    LuisaGroup/LuisaCompute

    C++ naming, formatting, static analysis, and RTTI rules for LuisaCompute.

    1.1k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Debug

    LuisaGroup/LuisaCompute

    Debug crashes and test failures via stack-traces, host/device logging, and DSL buffer inspection.

    1.1k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Hlsl

    LuisaGroup/LuisaCompute

    HLSL code generation, StringBuilder patterns, builtin headers, and DXIL embedding.

    1.1k GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Works with

Questions about Lsp

What does Lsp do?

clangd LSP over HTTP for C++ syntax checks and symbol navigation in LuisaCompute sources. Lsp is an agent skill from LuisaGroup/LuisaCompute. clangd LSP over HTTP for C++ syntax checks and symbol navigation in LuisaCompute sources.

How do I install Lsp in Claude Code?

Run `npx skills add LuisaGroup/LuisaCompute --skill lsp -a claude-code`. Or copy the skill folder (.agents/skills/lsp in LuisaGroup/LuisaCompute) into .claude/skills/lsp in your project. Claude Code loads it when a task matches its description.

How do I install Lsp in Codex?

Run `npx skills add LuisaGroup/LuisaCompute --skill lsp -a codex`. Or copy the skill folder (.agents/skills/lsp in LuisaGroup/LuisaCompute) into .agents/skills/lsp in your project. Codex loads it when a task matches its description.

Can I use Lsp in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LuisaGroup/LuisaCompute --skill lsp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lsp, .gemini/skills/lsp, .github/skills/lsp and .opencode/skills/lsp in your project.

What does Lsp need to run?

Going by SKILL.md and its folder, Lsp needs the command-line tools its instructions call (python and curl). Our summary lists: Python 3.

Does Lsp access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Lsp safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Lsp use?

Lsp is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lsp use?

About 758 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lsp?

Skills that share tags, products or a category with Lsp: Paddle Build (PaddlePaddle/Paddle, 24k stars), Fory Release (apache/fory, 4.6k stars), ONNX Runtime Shape Inference Safety Audit (microsoft/onnxruntime, 22k stars) and Code Audit (3stoneBrother/code-audit, 892 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lsp?

LuisaGroup (a GitHub organization) maintains it in LuisaGroup/LuisaCompute, which has 1,053 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 9, 2026.

Source: LuisaGroup/LuisaCompute on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.