lsp-maintain
Skill này làm gì
Skill này kiểm tra những language server nào Kode đã được cấu hình và tìm plugin hoặc cài đặt cần bổ sung cho server còn thiếu. Skill dành cho người dùng Kode không thấy có trợ giúp mã cho ngôn ngữ của mình.
Khi nào nên dùng
- ✓Khi gợi ý mã hoặc tra cứu không hiện trong Kode.
- ✓Khi language server đã bị tắt và bạn muốn nó hoạt động lại.
- ✓Khi bạn muốn thêm language server cho một ngôn ngữ lập trình mới.
Liên kết skill
https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/lsp-maintain/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kode không gợi ý mã cho các tệp Python của tôi. Bạn có thể tìm nguyên nhân và sửa không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra danh sách server đã cấu hình, truy ra plugin cung cấp từng server, rồi thực hiện một thay đổi nhỏ qua các lệnh của Kode. Sau đó agent kiểm tra lại danh sách server.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
LSP Maintain (Reference-aligned)
Non-negotiables (policy)
- Do not respond with menu-style instructions like “run
/lsp-maintain install” or “run/lsp-maintain doctor”. - Prefer executing capability changes through
SlashCommand(e.g./plugin ...,/lsp) orEditto configuration files. - Keep the conversation focused: only load deeper resources if absolutely necessary.
What “LSP enabled” means in Kode
Kode’s LSP tool is enabled only when there is at least one resolved LSP server and at least one is not in error.
Step 1 — Establish facts (no guessing)
- Ask for the user goal (languages, monorepo vs single package, whether they already use plugins).
- Run
/lspviaSlashCommandand read the “Configured servers” list. - If there are zero servers, conclude: no LSP servers are configured (do not speculate about missing binaries).
Step 2 — Identify configuration source (plugin-only)
Kode resolves LSP servers from enabled plugins:
- Plugin root
.lsp.json(JSON, top-level record) - Plugin manifest field
lspServers(inline record or relative file path within plugin root)
If the user needs a new server, the correct path is: enable a plugin that provides it, or add/update a plugin’s .lsp.json.
Step 3 — Apply changes through agent CLI
Prefer:
- Use
SlashCommandto manage plugins (/plugin ...) and re-check with/lsp. - Use
Editto update the plugin’s.lsp.jsonor manifestlspServersrecord/file.
Step 4 — Verify
- Re-run
/lspand confirm servers are resolved. - Attempt one
LSPtool call (e.g.goToDefinition) on a file extension that is mapped inextensionToLanguage.
Notes for LSP server config authoring
commandmust be an executable (avoid embedding arguments; useargs).- Kode runs servers using stdio pipes.
- Do not use
restartOnCrash,startupTimeout, orshutdownTimeoutin the config (Kode treats them as unsupported).
Câu hỏi thường gặp
Nó có đưa cho tôi menu cài đặt để tự chạy không?
Không. Nó bật plugin cung cấp server, hoặc thêm một tệp cấu hình vào plugin đó.
Nếu không có server nào được cấu hình thì sao?
Skill kết luận rằng chưa có language server nào được thiết lập và thêm một server qua plugin thay vì đoán mò.
Làm sao tôi biết việc sửa đã thành công?
Skill kiểm tra lại danh sách server sau khi có thay đổi.
Chi tiết
Mô tả gốc của tác giả
Diagnose and align Kode LSP behavior with the reference CLI (plugin-based .lsp.json, stdio-only, no install menus). Use when LSP results are missing, LSP is disabled, or you need to configure plugin LSP servers without telling the user to run menu-style install commands.
repo: shareAI-lab/Kode-CLI
Độ phổ biến
- Sao GitHub
- 5.2k
- Vị trí xếp hạng
- #15021
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
capabilities-manage
5.2kGiúp agent của bạn bật, tắt hoặc đưa vào hoạt động các tính năng của Kode CLI như language server, thanh trạng thái và plugin, chỉ từ một yêu cầu đơn giản.
doc-coauthoring
5.2kHướng dẫn agent của bạn viết một đề xuất, đặc tả hoặc tài liệu quyết định rõ ràng từ ghi chú thô, rồi kiểm tra nó bằng một người đọc mới.
mcp-builder
5.2kHướng dẫn agent của bạn xây dựng máy chủ MCP cung cấp cho AI các hành động rõ ràng, được đặt tên tốt cho một dịch vụ bên ngoài, bằng TypeScript hoặc Python.
permissions-debug
5.2kGiúp agent của bạn tìm hiểu vì sao Kode liên tục chặn hoặc hỏi quyền cho một công cụ, và sửa cài đặt quyền theo cách nhỏ gọn, an toàn.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.