feat(repo-maintenance): add Claude Code LSP setup check - #305
Conversation
Add Claude Code LSP (Language Server Protocol) support check to the repo-maintenance command's Environment category. Changes: - Add Section 2.6: Claude Code LSP Setup Check - Include LSP configuration examples for TypeScript, Python, Go, Rust, PHP - Add language server installation instructions - Update summary report to include LSP status - Add reference to Claude Code LSP guide Benefits: - Enables code analysis features (completion, definition jump, references) - Supports major languages out of the box - Provides automatic setup suggestions based on project type Reference: https://blog.lai.so/claude-code-lsp/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe pull request adds documentation for a new "Claude Code LSP Setup Check" feature under Environment/Claude Code checks. It includes verification items for plugin configuration, supported languages, TypeScript examples, installation commands, environment variable guidance, and full-mode behavior for detecting project languages and proposing LSP settings. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Poem
Pre-merge checks✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.claude/commands/repo-maintenance.md
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: CR
Repo: keito4/config PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-12-01T03:45:17.253Z
Learning: Applies to .github/workflows/claude.yml : Trigger automatic AI assistance on claude mentions in issues, PRs, and comments using .github/workflows/claude.yml
Learnt from: CR
Repo: keito4/config PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T08:39:14.049Z
Learning: Follow development quality standards defined in `CLAUDE.md` when using Claude Code for development assistance
📚 Learning: 2025-12-09T08:39:14.049Z
Learnt from: CR
Repo: keito4/config PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-09T08:39:14.049Z
Learning: Follow development quality standards defined in `CLAUDE.md` when using Claude Code for development assistance
Applied to files:
.claude/commands/repo-maintenance.md
📚 Learning: 2025-12-01T03:45:17.253Z
Learnt from: CR
Repo: keito4/config PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-12-01T03:45:17.253Z
Learning: Applies to .github/workflows/claude.yml : Trigger automatic AI assistance on claude mentions in issues, PRs, and comments using .github/workflows/claude.yml
Applied to files:
.claude/commands/repo-maintenance.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: check-ci-status
🔇 Additional comments (1)
.claude/commands/repo-maintenance.md (1)
126-212: External references are valid and current.Both URLs have been verified as active and accurate:
- https://blog.lai.so/claude-code-lsp/ — Accessible Japanese guide covering Claude Code LSP setup, enablement, configuration, and practical examples (current as of December 2025)
- https://github.com/anthropics/claude-plugins-official — Active official Anthropic repository with curated Claude Code plugins, marketplace, and installation instructions
No action required.
| **対応言語:** | ||
|
|
||
| - TypeScript/JavaScript | ||
| - Python | ||
| - Go | ||
| - Rust | ||
| - PHP | ||
|
|
||
| **設定例(TypeScript):** | ||
|
|
||
| ```json | ||
| { | ||
| "name": "project-lsp", | ||
| "lspServers": { | ||
| "typescript": { | ||
| "command": "typescript-language-server", | ||
| "args": ["--stdio"], | ||
| "extensionToLanguage": { | ||
| ".ts": "typescript", | ||
| ".tsx": "typescriptreact", | ||
| ".js": "javascript", | ||
| ".jsx": "javascriptreact" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| **必要な言語サーバ(グローバルインストール):** | ||
|
|
||
| ```bash | ||
| # TypeScript/JavaScript | ||
| npm install -g typescript-language-server typescript | ||
|
|
||
| # Python | ||
| pip install python-lsp-server | ||
|
|
||
| # Go | ||
| go install golang.org/x/tools/gopls@latest | ||
|
|
||
| # Rust | ||
| rustup component add rust-analyzer | ||
| ``` |
There was a problem hiding this comment.
Missing PHP language server installation command.
PHP is listed in the supported languages (line 146), but there's no corresponding installation instruction in the language server installation section. Add the installation command for intelephense, which is mentioned in the PR objectives as the recommended PHP language server.
🔎 Proposed addition
# Rust
rustup component add rust-analyzer
+
+# PHP
+npm install -g intelephense🤖 Prompt for AI Agents
In .claude/commands/repo-maintenance.md around lines 140 to 182, the
"必要な言語サーバ(グローバルインストール)" section is missing the PHP language server install
command; add a line installing the recommended PHP server (intelephense) — e.g.
include the npm global install command for intelephense under the list (near the
other language install commands) so PHP has a corresponding installation
instruction.
| | Environment | `/config-base-sync-update` | DevContainer 更新 | | ||
| | Environment | `/update-claude-code` | Claude Code 更新 | | ||
| | Environment | `/sync-claude-settings` | Claude 設定同期 | | ||
| | Environment | (Claude Code LSP setup) | LSP 設定 | |
There was a problem hiding this comment.
Clarify the Related Commands entry naming.
The Related Commands table lists (Claude Code LSP setup) without an actual command reference (e.g., /some-command), unlike other entries such as /container-health and /setup-husky. Clarify whether this check is intentionally embedded within /repo-maintenance only, or if a dedicated command should be referenced here.
🤖 Prompt for AI Agents
In .claude/commands/repo-maintenance.md around line 546, the Related Commands
table shows "(Claude Code LSP setup)" without a proper command reference;
clarify whether this is a standalone command or part of /repo-maintenance. Fix
by either (A) replacing the text with an explicit command reference (e.g.,
`/claude-code-lsp-setup`) and link to its section, or (B) annotate it as part of
/repo-maintenance (e.g., `/repo-maintenance — Claude Code LSP setup`) so it
matches the format of other entries; update the localized column accordingly if
present.
PR Review: Claude Code LSP Setup Check総合評価: ✅ Approved with Minor SuggestionsこのPRは、repo-maintenanceコマンドにClaude Code LSPセットアップチェック機能を追加する優れた提案です。LSPサポートは開発者体験の大幅な向上につながります。 🎯 Strengths(強み)1. 包括的なドキュメント
2. 一貫性のある構造
3. 実用性
🔍 Code Quality Analysis✅ Documentation Quality
✅ Consistency with Repository Standards
💡 Suggestions for Improvement(改善提案)1. テストカバレッジの明確化PR DescriptionのTest Planにチェックボックスがありますが、実際のテストコードや検証スクリプトへの言及がありません。 提案: # 以下のようなテストケースを追加することを推奨
test/integration/lsp_detection.bats # LSP検出ロジックのテスト2. エラーハンドリングの記載LSPサーバがインストールされていない場合、または 提案:
3. 環境変数
|
|
🎉 This PR is included in version 1.43.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Background
Claude Code v2.0.74+ supports LSP, enabling advanced code analysis features like:
Changes
Added Section 2.6: Claude Code LSP Setup Check
.claude-plugin/plugin.jsonconfigurationConfiguration Examples
Updated Components
Benefits
✅ Automatic LSP detection and setup suggestions
✅ Language-specific configuration templates
✅ Improved code navigation in Claude Code
✅ Comprehensive language support
Test Plan
/repo-maintenanceon TypeScript projectReference
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.