소스 정보
- 저장소
- LuisaGroup/LuisaCompute
- 최근 소스 활동
- 2026년 6월 13일 15:22
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1,043
- 포크
- 108
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/LuisaGroup/LuisaCompute --skill lsp명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | lsp |
| description | clangd LSP over HTTP for C++ syntax checks and symbol navigation in LuisaCompute sources. |
Provides clangd-powered syntax checks and symbol queries over an HTTP bridge.
scripts/cpp_lsp_server.py): FastAPI wrapper around clangd. Requires compile_commands.json.scripts/cpp_lsp_client.py): httpx CLI that talks to the server.Start the server in the background before any C++ editing session:
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.
Use the client to query information. Common commands:
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; }"
# 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:
python scripts/cpp_lsp_client.py symbol src/foo.cpp 10 5 --action hover --content "int x = 0;"
curl http://127.0.0.1:8000/health
| Client flag | Default | Description |
|---|---|---|
--server | http://127.0.0.1:8000 | Server base URL |
--timeout | 3.0 | HTTP request timeout (s) |
--lsp-timeout | 10.0 | Internal clangd timeout (s) passed to the server |
| Server flag | Default | Description |
|---|---|---|
--host / --port | 127.0.0.1:8000 | Bind address |
--project-root | . | Where to search for compile_commands.json |
--clangd | clangd | Path to clangd executable |
--compile-commands-dir | auto | Override compile_commands.json location |
--verbose | off | Print LSP traffic |
check subcommand: 0 (no issues), 1 (errors found), 2 (connection/server error).symbol subcommand: 0 (result returned), 1 (no result), 2 (connection/server error).clangd in PATHcompile_commands.json generated, e.g.:
xmake project -k compile_commands --lsp=clangd .vscode-DCMAKE_EXPORT_COMPILE_COMMANDS=ONfastapi, uvicorn, httpx, pydanticcompile_commands.json changes.line and character are 0-based, matching the LSP protocol and clangd's expectations.