[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CBTAN14HCT1BYR2T7VFC9S":3,"skill-same:01M6CBTAN14HCT1BYR2T7VFC9S":184},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":64,"repositoryHtmlUrl":65,"repositoryHomepageUrl":13,"ownerHtmlUrl":66,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":67,"install":68,"resources":81},"01M6CBTAN14HCT1BYR2T7VFC9S","lsp-setup","LSP 语言服务器配置","Auto-discovers and configures Language Server Protocol (LSP) servers for your project's languages","为项目所使用的编程语言自动发现并配置语言服务器协议（LSP）服务器。","ray-manaloto\u002Fmacos-development-environment","ray-manaloto","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F227192835?v=4","01M6CBR7J13ZA01X5YB1A1QRJP",null,"01M6CBR7P0S3NS8ZV81JYNST14",1,"MIT","https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40],"setup","lsp setup","rust","code","protocol","server","gopls","configure","language server","auto","language server protocol","2026-11-10 10:12:30",false,"---\nname: lsp-setup\ndescription: Auto-discovers and configures Language Server Protocol (LSP) servers for your project's languages\ntype: skill\nactivationStrategy: lazy-aggressive\nactivationKeywords:\n  - LSP\n  - Language Server Protocol\n  - LSP setup\n  - LSP configuration\n  - configure LSP\n  - enable LSP\n  - lsp-setup\n  - language server\n  - code intelligence\n  - code completion\n  - pyright\n  - rust-analyzer\n  - gopls\nactivationContextWindow: 3\npersistenceThreshold: 20\n---\n\n# LSP Auto-Configuration Skill\n\n**Manual control and troubleshooting for Language Server Protocol (LSP) configuration.**\n\n## Important: LSP is Configured Automatically\n\n**You probably don't need this skill!** LSP is configured automatically when you run `amplihack claude`.\n\n**When amplihack launches Claude Code, it automatically:**\n\n- Detects programming languages in your project\n- Sets `ENABLE_LSP_TOOL=1` environment variable\n- Installs required LSP plugins via Claude Code plugin marketplace\n- Configures project-specific settings in `.env`\n\n**You'll see:** `? LSP: Detected 3 language(s): python, javascript...` when amplihack starts Claude Code.\n\n## When to Use This Skill\n\n**Use `\u002Flsp-setup` only when you need to:**\n\n- **Check Status**: Verify LSP configuration is working (`\u002Flsp-setup --status-only`)\n- **Troubleshoot Issues**: Diagnose why code intelligence isn't working\n- **Force Reconfiguration**: Rebuild LSP config after manual changes (`\u002Flsp-setup --force`)\n- **Add New Languages**: Configure LSP for newly added languages\n\n**Don't use this skill if:** LSP is already working! The automatic setup handles 99% of cases.\n\n## Overview\n\nThe LSP Setup skill provides manual control over the same LSP auto-configuration that happens automatically at launch. It supports 16 popular programming languages out of the box and gives you direct access to configuration, status checking, and troubleshooting.\n\n## What LSP Provides to You\n\nWhen LSP is properly configured, Claude Code gains powerful code intelligence capabilities that enhance the AI's understanding of your codebase:\n\n### Real-Time Code Intelligence\n\n**Type Information** - Claude can see the exact types of variables, functions, and classes:\n\n```python\n# Claude can hover over 'user' and see: Type: User (class from models.py)\nuser = get_current_user()\n```\n\n**Go to Definition** - Claude can jump to where symbols are defined:\n\n```python\n# Claude can navigate from 'authenticate()' call to its definition in auth.py\nresult = authenticate(credentials)\n```\n\n**Code Diagnostics** - Claude receives real-time error detection from LSP servers:\n\n```python\n# Pyright reports: \"Set\" is not accessed\nfrom typing import List, Set  # Claude sees this warning\n```\n\n### How Claude Uses LSP\n\n**Better Code Understanding** - Instead of guessing types and behavior, Claude gets precise information from LSP servers about:\n\n- Function signatures and return types\n- Class hierarchies and inheritance\n- Import paths and module structure\n- Errors and warnings before runtime\n\n**Smarter Suggestions** - With LSP data, Claude provides:\n\n- Accurate refactoring recommendations\n- Type-safe code completions\n- Precise error fixes\n- Context-aware code generation\n\n**Example Workflow**:\n\n```\nYou: \"Fix the type error in user_service.py\"\n\nWithout LSP: Claude reads the file, guesses at types, may miss subtle issues\n\nWith LSP: Claude receives diagnostic:\n  Line 42: Expected type 'User | None', got 'str'\n  → Claude provides exact fix based on actual type information\n```\n\n### What You'll Notice\n\nAfter `\u002Flsp-setup` configures your project:\n\n1. **More Accurate Responses** - Claude's code suggestions match your actual types and APIs\n2. **Faster Debugging** - Claude sees the same errors your IDE would show\n3. **Better Refactoring** - Claude can safely rename variables across files using LSP references\n4. **Improved Navigation** - Claude can find definitions, usages, and implementations precisely\n\n### Important Note\n\nLSP enhances Claude's capabilities _behind the scenes_. You don't interact with LSP directly - it makes Claude smarter about your code automatically.\n\n## When to Use This Skill\n\nUse `\u002Flsp-setup` when you:\n\n- Start working on a new project in Claude Code\n- Add a new programming language to an existing project\n- Experience missing or incorrect code intelligence features\n- Want to verify your LSP configuration is correct\n- Need to troubleshoot LSP server connection issues\n\n## How It Works\n\n### LSP Architecture - Three Layers\n\nClaude Code's LSP system uses a three-layer architecture that must all be configured for LSP features to work:\n\n**Layer 1: System LSP Binaries** (User-installed)\n\n- LSP server executables installed on your system via npm, brew, rustup, etc.\n- Example: `npm install -g pyright` installs the Pyright LSP server binary\n- These are the actual language analysis engines\n\n**Layer 2: Claude Code LSP Plugins** (Installed via cclsp)\n\n- Claude Code plugins that connect to Layer 1 binaries\n- Installed using: `npx cclsp install \u003Cserver-name>`\n- The `cclsp` tool uses the `claude-code-lsps` plugin marketplace\n- These act as bridges between Claude Code and LSP servers\n\n**Layer 3: Project Configuration** (.env file)\n\n- Project-specific settings: virtual environments, project roots, etc.\n- Must include `ENABLE_LSP_TOOL=1` to activate LSP features\n- Stored in `.env` at project root\n\n**Important**: `cclsp` and `claude-code-lsps` work together. `cclsp` is the installation tool, `claude-code-lsps` is the plugin marketplace it uses. They are complementary, not alternatives.\n\n### The Skill's 4-Phase Process\n\nThe `\u002Flsp-setup` skill automates the workflow from `npx cclsp@latest setup`:\n\n#### Phase 1: Language Detection\n\nScans your project directory to identify programming languages based on file extensions and framework markers. Detects 16 languages including Python, TypeScript, JavaScript, Rust, Go, Java, and more.\n\n#### Phase 2: LSP Configuration\n\nGenerates the appropriate LSP server configuration for each detected language. Checks if:\n\n1. System LSP binaries are installed (Layer 1)\n2. Claude Code plugins are installed (Layer 2)\n\nProvides installation guidance if either is missing. **NEVER auto-installs** - user has full control.\n\n#### Phase 3: Project Configuration\n\nCreates or updates `.env` file with project-specific LSP settings (Layer 3):\n\n- Workspace-specific options (Python virtual environments, Node.js project roots, etc.)\n- **ENABLE_LSP_TOOL=1** (required for LSP features to activate)\n\n#### Phase 4: Verification\n\nTests each LSP server connection and reports status. Provides actionable guidance for any configuration issues.\n\n## Usage\n\n### Basic Usage\n\n```bash\n\u002Flsp-setup\n```\n\nDetects all languages in your project and configures LSP servers automatically.\n\n### Check Status Only\n\n```bash\n\u002Flsp-setup --status-only\n```\n\nReports current LSP configuration and server availability without making changes.\n\n### Force Reconfiguration\n\n```bash\n\u002Flsp-setup --force\n```\n\nRegenerates LSP configuration even if valid configuration already exists.\n\n### Specific Languages\n\n```bash\n\u002Flsp-setup --languages python,typescript\n```\n\nConfigures LSP servers only for specified languages.\n\n### Manual Plugin Management\n\nIf you need to manage Claude Code LSP plugins directly, use the `cclsp` command:\n\n```bash\n# Install a plugin (Layer 2)\nnpx cclsp install pyright\n\n# List installed plugins\nnpx cclsp list\n\n# Remove a plugin\nnpx cclsp remove pyright\n\n# Full setup workflow (what \u002Flsp-setup automates)\nnpx cclsp@latest setup\n```\n\nThe `\u002Flsp-setup` skill automates the `npx cclsp@latest setup` workflow, adding intelligent language detection and project-specific configuration.\n\n## Supported Languages\n\n| Language   | LSP Server                 | System Binary Installation (Layer 1)                       | Claude Code Plugin (Layer 2)                   |\n| ---------- | -------------------------- | ---------------------------------------------------------- | ---------------------------------------------- |\n| Python     | pyright                    | `npm install -g pyright`                                   | `npx cclsp install pyright`                    |\n| TypeScript | vtsls                      | `npm install -g @vtsls\u002Flanguage-server`                    | `npx cclsp install vtsls`                      |\n| JavaScript | vtsls                      | `npm install -g @vtsls\u002Flanguage-server`                    | `npx cclsp install vtsls`                      |\n| Rust       | rust-analyzer              | `rustup component add rust-analyzer`                       | `npx cclsp install rust-analyzer`              |\n| Go         | gopls                      | `go install golang.org\u002Fx\u002Ftools\u002Fgopls@latest`               | `npx cclsp install gopls`                      |\n| Java       | jdtls                      | Download from eclipse.org\u002Fjdtls                            | `npx cclsp install jdtls`                      |\n| C\u002FC++      | clangd                     | `brew install llvm` (macOS) \u002F `apt install clangd` (Linux) | `npx cclsp install clangd`                     |\n| C#         | omnisharp                  | Download from omnisharp.net                                | `npx cclsp install omnisharp`                  |\n| Ruby       | ruby-lsp                   | `gem install ruby-lsp`                                     | `npx cclsp install ruby-lsp`                   |\n| PHP        | phpactor                   | `composer global require phpactor\u002Fphpactor`                | `npx cclsp install phpactor`                   |\n| Bash       | bash-language-server       | `npm install -g bash-language-server`                      | `npx cclsp install bash-language-server`       |\n| YAML       | yaml-language-server       | `npm install -g yaml-language-server`                      | `npx cclsp install yaml-language-server`       |\n| JSON       | vscode-json-languageserver | `npm install -g vscode-json-languageserver`                | `npx cclsp install vscode-json-languageserver` |\n| HTML       | vscode-html-languageserver | `npm install -g vscode-html-languageserver`                | `npx cclsp install vscode-html-languageserver` |\n| CSS        | vscode-css-languageserver  | `npm install -g vscode-css-languageserver`                 | `npx cclsp install vscode-css-languageserver`  |\n| Markdown   | marksman                   | `brew install marksman` (macOS) \u002F Download from GitHub     | `npx cclsp install marksman`                   |\n\n**Note**: Both Layer 1 (system binary) and Layer 2 (Claude Code plugin) must be installed for LSP features to work.\n\n## Example: Python Project Setup\n\n```bash\n$ cd my-python-project\n$ \u002Flsp-setup\n\n[LSP Setup] Detecting languages...\n✓ Found: Python (23 files)\n✓ Found: YAML (2 files)\n✓ Found: Markdown (1 file)\n\n[LSP Setup] Configuring LSP servers...\n✓ pyright: Installed at \u002Fusr\u002Flocal\u002Fbin\u002Fpyright\n✓ yaml-language-server: Installed at \u002Fusr\u002Flocal\u002Fbin\u002Fyaml-language-server\n✓ marksman: Installed at \u002Fusr\u002Flocal\u002Fbin\u002Fmarksman\n\n[LSP Setup] Configuring project...\n✓ Created .env with LSP configuration\n✓ Detected Python virtual environment: .venv\n✓ Configured pyright to use .venv\u002Fbin\u002Fpython\n\n[LSP Setup] Verifying connections...\n✓ pyright: Connected (Python 3.11.5)\n✓ yaml-language-server: Connected\n✓ marksman: Connected\n\nConfiguration complete! LSP servers ready.\n```\n\n## Example: Polyglot Project Setup\n\n```bash\n$ cd my-fullstack-app\n$ \u002Flsp-setup\n\n[LSP Setup] Detecting languages...\n✓ Found: TypeScript (45 files)\n✓ Found: Python (12 files)\n✓ Found: Rust (8 files)\n✓ Found: JSON (6 files)\n\n[LSP Setup] Configuring LSP servers...\n✓ vtsls: Installed\n✓ pyright: Installed\n✗ rust-analyzer: Not found\n\n[LSP Setup] Installation guidance:\nTo install rust-analyzer:\n  $ rustup component add rust-analyzer\n\nWould you like to continue with available servers? [Y\u002Fn] y\n\n[LSP Setup] Configuring project...\n✓ Created .env with LSP configuration\n✓ Detected Node.js project root: .\u002Ffrontend\n✓ Detected Python project root: .\u002Fbackend\n✓ Detected Rust workspace: .\u002Fservices\n\n[LSP Setup] Verifying connections...\n✓ vtsls: Connected (TypeScript 5.3.3)\n✓ pyright: Connected (Python 3.11.5)\n⚠ rust-analyzer: Skipped (not installed)\n\nConfiguration complete! 2\u002F3 LSP servers ready.\nRun `rustup component add rust-analyzer` to enable Rust support.\n```\n\n## How to Verify LSP is Working\n\nAfter running `\u002Flsp-setup`, here's how to confirm LSP is providing code intelligence to Claude:\n\n### Method 1: Check for Diagnostics\n\n**Ask Claude to analyze a file with intentional errors**:\n\n```\nYou: \"What issues do you see in src\u002Fmain.py?\"\n\nIf LSP is working: Claude will report specific diagnostics from Pyright\n  → \"Line 15: 'name' is not accessed\"\n  → \"Line 23: Expected type 'int', got 'str'\"\n\nIf LSP is NOT working: Claude only sees what's in the file content\n  → Generic observations about code style\n  → No specific type errors or warnings\n```\n\n### Method 2: Request Type Information\n\n**Ask Claude about types in your code**:\n\n```\nYou: \"What's the type of the 'user' variable in auth.py line 42?\"\n\nIf LSP is working: Claude provides exact type from LSP\n  → \"Type: User | None (from models.User)\"\n\nIf LSP is NOT working: Claude guesses based on context\n  → \"It appears to be a User object based on the code\"\n```\n\n### Method 3: Test Navigation\n\n**Ask Claude to find definitions**:\n\n```\nYou: \"Where is the authenticate() function defined?\"\n\nIf LSP is working: Claude uses LSP goToDefinition\n  → \"Defined in src\u002Fauth\u002Fservice.py:156\"\n\nIf LSP is NOT working: Claude searches file contents\n  → \"I found it by searching for 'def authenticate'\"\n```\n\n### Method 4: Check Status Command\n\n**Run the status check**:\n\n```bash\n\u002Flsp-setup --status-only\n```\n\n**Expected Output (LSP Working)**:\n\n```\n[LSP Setup] Configuration Status:\n\n✓ Python (pyright): Connected\n  - System Binary: \u002Fusr\u002Flocal\u002Fbin\u002Fpyright-langserver\n  - Plugin: Installed and active\n  - Project Config: .env configured with ENABLE_LSP_TOOL=1\n\n✓ TypeScript (vtsls): Connected\n  - System Binary: \u002Fusr\u002Flocal\u002Fbin\u002Fvtsls\n  - Plugin: Installed and active\n  - Project Config: .env configured with ENABLE_LSP_TOOL=1\n\nOverall Status: ✓ All LSP servers ready (2\u002F2)\n```\n\n**Problem Output (LSP NOT Working)**:\n\n```\n[LSP Setup] Configuration Status:\n\n✗ Python (pyright): Not Connected\n  - System Binary: Not found\n  - Plugin: Not installed\n  - Project Config: Missing ENABLE_LSP_TOOL=1\n\nIssue: Run 'npm install -g pyright' and 'npx cclsp install pyright'\n```\n\n### What Success Looks Like\n\nWhen LSP is working properly, you'll notice:\n\n1. **Claude mentions specific line numbers** when discussing errors\n2. **Claude provides exact types** instead of guessing\n3. **Claude sees warnings\u002Ferrors before code runs** (like your IDE does)\n4. **Claude can navigate code structure** using LSP's understanding\n\n### What Failure Looks Like\n\nWhen LSP is NOT working, you'll notice:\n\n1. **Claude only sees file contents** - no type information or diagnostics\n2. **Claude makes educated guesses** about types and behavior\n3. **Claude doesn't mention errors** until you run the code\n4. **Claude searches text** instead of using semantic understanding\n\n## Troubleshooting\n\n### Issue: LSP server not found\n\n**Symptom**: \"rust-analyzer: Not found\" during configuration\n\n**Solution**: Install the LSP server using the provided installation command\n\n```bash\n$ rustup component add rust-analyzer\n$ \u002Flsp-setup --force  # Reconfigure after installation\n```\n\n### Issue: LSP server crashes on startup\n\n**Symptom**: \"pyright: Connection failed\" during verification\n\n**Solution**: Check LSP server logs and verify installation\n\n```bash\n# Check if server is properly installed\n$ which pyright\n\u002Fusr\u002Flocal\u002Fbin\u002Fpyright\n\n# Test server manually\n$ pyright --version\npyright 1.1.332\n\n# Check Claude Code LSP logs\n$ cat ~\u002F.claude-code\u002Flsp-logs\u002Fpyright.log\n```\n\n### Issue: Wrong Python interpreter used\n\n**Symptom**: Import errors despite packages being installed in virtual environment\n\n**Solution**: Verify `.env` configuration points to correct Python interpreter\n\n```bash\n# Check current configuration\n$ cat .env | grep PYTHON\n\n# Should show:\nLSP_PYTHON_INTERPRETER=\u002Fpath\u002Fto\u002F.venv\u002Fbin\u002Fpython\n\n# If incorrect, update manually or run:\n$ \u002Flsp-setup --force\n```\n\n### Issue: TypeScript project not detected\n\n**Symptom**: No TypeScript LSP configuration despite `.ts` files present\n\n**Solution**: Ensure `tsconfig.json` exists in project root\n\n```bash\n# Create minimal tsconfig.json\n$ cat > tsconfig.json \u003C\u003C EOF\n{\n  \"compilerOptions\": {\n    \"target\": \"ES2020\",\n    \"module\": \"commonjs\",\n    \"strict\": true\n  }\n}\nEOF\n\n$ \u002Flsp-setup --force\n```\n\n### Issue: Multiple Python versions causing conflicts\n\n**Symptom**: \"Module not found\" errors when LSP server uses wrong Python version\n\n**Solution**: Explicitly set Python interpreter in `.env`\n\n```bash\n# Edit .env manually\nLSP_PYTHON_INTERPRETER=\u002Fusr\u002Fbin\u002Fpython3.11\n\n# Or activate the correct virtual environment before running\n$ source .venv\u002Fbin\u002Factivate\n$ \u002Flsp-setup --force\n```\n\n## Configuration Files\n\n### `.env` (Project Root)\n\nThe skill creates or updates `.env` with LSP-specific configuration:\n\n```bash\n# LSP Configuration - Auto-generated by \u002Flsp-setup\nENABLE_LSP_TOOL=1  # REQUIRED: Activates LSP features in Claude Code\n\n# Project-specific settings (Layer 3)\nLSP_PYTHON_INTERPRETER=\u002Fpath\u002Fto\u002F.venv\u002Fbin\u002Fpython\nLSP_NODE_PROJECT_ROOT=\u002Fpath\u002Fto\u002Ffrontend\nLSP_RUST_WORKSPACE=\u002Fpath\u002Fto\u002Fservices\nLSP_GO_MODULE=\u002Fpath\u002Fto\u002Fgo.mod\n\n# Language Server Paths (auto-detected)\nLSP_PYRIGHT_PATH=\u002Fusr\u002Flocal\u002Fbin\u002Fpyright\nLSP_VTSLS_PATH=\u002Fusr\u002Flocal\u002Fbin\u002Fvtsls\nLSP_RUST_ANALYZER_PATH=\u002Fusr\u002Flocal\u002Fbin\u002Frust-analyzer\n```\n\n**Critical**: `ENABLE_LSP_TOOL=1` must be present for LSP features to work. Without it, LSP servers won't be activated.\n\n### Claude Code LSP Configuration\n\nThe skill automatically updates Claude Code's LSP configuration. No manual editing required.\n\n## Integration with Claude Code\n\nOnce configured, Claude Code automatically:\n\n- Provides code completion based on project context\n- Shows real-time diagnostics (errors, warnings)\n- Enables \"Go to Definition\" navigation\n- Offers inline documentation on hover\n- Suggests intelligent refactorings\n\n## Best Practices\n\n1. **Run at project start**: Configure LSP servers when you first open a project\n2. **Update after adding languages**: Rerun `\u002Flsp-setup` when adding new language files\n3. **Commit `.env`**: Include LSP configuration in version control for team consistency\n4. **Verify after installation**: Use `--status-only` to check server availability\n5. **Keep servers updated**: Regularly update LSP servers to latest versions\n\n## Technical Details\n\n**Skill Type**: Interactive command-driven workflow\n\n**Dependencies**: None (pure skill, no external packages)\n\n**Execution Time**: 2-10 seconds depending on project size\n\n**Persistence**: Configuration stored in `.env` and Claude Code settings\n\n**Supported Platforms**: macOS, Linux, WSL\n\n## Related Skills\n\n- `environment-setup` - General development environment configuration\n- `dependency-manager` - Package and dependency management\n- `project-init` - New project initialization\n\n## Maintenance\n\nThe LSP Setup skill requires no manual maintenance. It automatically adapts to your project structure and detects language changes on each run.\n\nTo update LSP server definitions or add new languages, see the developer documentation in `README.md`.\n\n---\n\n## Execution Instructions (For Claude Code)\n\nWhen this skill is activated via `\u002Flsp-setup` or activation keywords, execute the following workflow:\n\n### Phase 1: Language Detection\n\n```python\nfrom pathlib import Path\nfrom lsp_setup import LanguageDetector\n\n# Detect languages in current project\ndetector = LanguageDetector()\nproject_root = Path.cwd()\nlanguages = detector.detect_languages(project_root)\n\n# Report findings\nprint(f\"Detected {len(languages)} language(s):\")\nfor lang in languages:\n    print(f\"  - {lang.language}: {lang.file_count} files\")\n```\n\n### Phase 2: Check Current Status\n\n```python\nfrom lsp_setup import StatusTracker\n\n# Get current LSP setup status\nlanguage_names = [lang.language for lang in languages]\ntracker = StatusTracker(project_root, language_names)\nstatus = tracker.get_full_status()\n\n# Show status\nprint(tracker.generate_user_guidance())\n```\n\n### Phase 3: Configure LSP (If Needed)\n\n```python\nfrom lsp_setup import LSPConfigurator\n\n# Configure .env file\nconfigurator = LSPConfigurator(project_root)\n\n# Enable LSP\nif not configurator.is_lsp_enabled():\n    configurator.enable_lsp()\n    print(\"✓ Enabled LSP in .env\")\n```\n\n### Phase 4: Install Plugins (If Needed)\n\n```python\nfrom lsp_setup import PluginManager\n\n# Install Claude Code plugins for detected languages\nmanager = PluginManager()\n\n# Check prerequisites\nif not manager.check_npx_available():\n    print(\"⚠ npx not found. Install Node.js first:\")\n    print(\"  macOS: brew install node\")\n    print(\"  Linux: sudo apt install nodejs\")\n    exit(1)\n\n# Install plugins for languages with missing Layer 2\nfor lang_name in language_names:\n    layer_2_status = status[\"layer_2\"][lang_name]\n    if not layer_2_status[\"installed\"]:\n        print(f\"Installing {lang_name} plugin...\")\n        success = manager.install_plugin(lang_name)\n        if success:\n            print(f\"✓ {lang_name} plugin installed\")\n        else:\n            print(f\"✗ Failed to install {lang_name} plugin\")\n            print(f\"  {layer_2_status.get('install_guide', 'See docs')}\")\n```\n\n### Phase 5: Final Status Report\n\n```python\n# Recheck status after installation\nfinal_status = tracker.get_full_status()\n\nif final_status[\"overall_ready\"]:\n    print(\"\\n✅ LSP setup complete! All layers configured.\")\nelse:\n    print(\"\\n⚠ LSP partially configured. Next steps:\")\n    print(tracker.generate_user_guidance())\n```\n\n### Command-Line Arguments (Optional)\n\nSupport these arguments if provided by user:\n\n- `--status-only`: Skip installation, just report current status\n- `--force`: Reinstall all plugins even if already installed\n- `--languages \u003Clang1,lang2>`: Configure only specific languages\n- `--dry-run`: Show what would be done without making changes\n","# LSP Auto-Configuration Skill\n\n**Manual control and troubleshooting for Language Server Protocol (LSP) configuration.**\n\n## Important: LSP is Configured Automatically\n\n**You probably don't need this skill!** LSP is configured automatically when you run `amplihack claude`.\n\n**When amplihack launches Claude Code, it automatically:**\n\n- Detects programming languages in your project\n- Sets `ENABLE_LSP_TOOL=1` environment variable\n- Installs required LSP plugins via Claude Code plugin marketplace\n- Configures project-specific settings in `.env`\n\n**You'll see:** `? LSP: Detected 3 language(s): python, javascript...` when amplihack starts Claude Code.\n\n## When to Use This Skill\n\n**Use `\u002Flsp-setup` only when you need to:**\n\n- **Check Status**: Verify LSP configuration is working (`\u002Flsp-setup --status-only`)\n- **Troubleshoot Issues**: Diagnose why code intelligence isn't working\n- **Force Reconfiguration**: Rebuild LSP config after manual changes (`\u002Flsp-setup --force`)\n- **Add New Languages**: Configure LSP for newly added languages\n\n**Don't use this skill if:** LSP is already working! The automatic setup handles 99% of cases.\n\n## Overview\n\nThe LSP Setup skill provides manual control over the same LSP auto-configuration that happens automatically at launch. It supports 16 popular programming languages out of the box and gives you direct access to configuration, status checking, and troubleshooting.\n\n## What LSP Provides to You\n\nWhen LSP is properly configured, Claude Code gains powerful code intelligence capabilities that enhance the AI's understanding of your codebase:\n\n### Real-Time Code Intelligence\n\n**Type Information** - Claude can see the exact types of variables, functions, and classes:\n\n```python\n# Claude can hover over 'user' and see: Type: User (class from models.py)\nuser = get_current_user()\n```\n\n**Go to Definition** - Claude can jump to where symbols are defined:\n\n```python\n# Claude can navigate from 'authenticate()' call to its definition in auth.py\nresult = authenticate(credentials)\n```\n\n**Code Diagnostics** - Claude receives real-time error detection from LSP servers:\n\n```python\n# Pyright reports: \"Set\" is not accessed\nfrom typing import List, Set  # Claude sees this warning\n```\n\n### How Claude Uses LSP\n\n**Better Code Understanding** - Instead of guessing types and behavior, Claude gets precise information from LSP servers about:\n\n- Function signatures and return types\n- Class hierarchies and inheritance\n- Import paths and module structure\n- Errors and warnings before runtime\n\n**Smarter Suggestions** - With LSP data, Claude provides:\n\n- Accurate refactoring recommendations\n- Type-safe code completions\n- Precise error fixes\n- Context-aware code generation\n\n**Example Workflow**:\n\n```\nYou: \"Fix the type error in user_service.py\"\n\nWithout LSP: Claude reads the file, guesses at types, may miss subtle issues\n\nWith LSP: Claude receives diagnostic:\n  Line 42: Expected type 'User | None', got 'str'\n  → Claude provides exact fix based on actual type information\n```\n\n### What You'll Notice\n\nAfter `\u002Flsp-setup` configures your project:\n\n1. **More Accurate Responses** - Claude's code suggestions match your actual types and APIs\n2. **Faster Debugging** - Claude sees the same errors your IDE would show\n3. **Better Refactoring** - Claude can safely rename variables across files using LSP references\n4. **Improved Navigation** - Claude can find definitions, usages, and implementations precisely\n\n### Important Note\n\nLSP enhances Claude's capabilities _behind the scenes_. You don't interact with LSP directly - it makes Claude smarter about your code automatically.\n\n## When to Use This Skill\n\nUse `\u002Flsp-setup` when you:\n\n- Start working on a new project in Claude Code\n- Add a new programming language to an existing project\n- Experience missing or incorrect code intelligence features\n- Want to verify your LSP configuration is correct\n- Need to troubleshoot LSP server connection issues\n\n## How It Works\n\n### LSP Architecture - Three Layers\n\nClaude Code's LSP system uses a three-layer architecture that must all be configured for LSP features to work:\n\n**Layer 1: System LSP Binaries** (User-installed)\n\n- LSP server executables installed on your system via npm, brew, rustup, etc.\n- Example: `npm install -g pyright` installs the Pyright LSP server binary\n- These are the actual language analysis engines\n\n**Layer 2: Claude Code LSP Plugins** (Installed via cclsp)\n\n- Claude Code plugins that connect to Layer 1 binaries\n- Installed using: `npx cclsp install \u003Cserver-name>`\n- The `cclsp` tool uses the `claude-code-lsps` plugin marketplace\n- These act as bridges between Claude Code and LSP servers\n\n**Layer 3: Project Configuration** (.env file)\n\n- Project-specific settings: virtual environments, project roots, etc.\n- Must include `ENABLE_LSP_TOOL=1` to activate LSP features\n- Stored in `.env` at project root\n\n**Important**: `cclsp` and `claude-code-lsps` work together. `cclsp` is the installation tool, `claude-code-lsps` is the plugin marketplace it uses. They are complementary, not alternatives.\n\n### The Skill's 4-Phase Process\n\nThe `\u002Flsp-setup` skill automates the workflow from `npx cclsp@latest setup`:\n\n#### Phase 1: Language Detection\n\nScans your project directory to identify programming languages based on file extensions and framework markers. Detects 16 languages including Python, TypeScript, JavaScript, Rust, Go, Java, and more.\n\n#### Phase 2: LSP Configuration\n\nGenerates the appropriate LSP server configuration for each detected language. Checks if:\n\n1. System LSP binaries are installed (Layer 1)\n2. Claude Code plugins are installed (Layer 2)\n\nProvides installation guidance if either is missing. **NEVER auto-installs** - user has full control.\n\n#### Phase 3: Project Configuration\n\nCreates or updates `.env` file with project-specific LSP settings (Layer 3):\n\n- Workspace-specific options (Python virtual environments, Node.js project roots, etc.)\n- **ENABLE_LSP_TOOL=1** (required for LSP features to activate)\n\n#### Phase 4: Verification\n\nTests each LSP server connection and reports status. Provides actionable guidance for any configuration issues.\n\n## Usage\n\n### Basic Usage\n\n```bash\n\u002Flsp-setup\n```\n\nDetects all languages in your project and configures LSP servers automatically.\n\n### Check Status Only\n\n```bash\n\u002Flsp-setup --status-only\n```\n\nReports current LSP configuration and server availability without making changes.\n\n### Force Reconfiguration\n\n```bash\n\u002Flsp-setup --force\n```\n\nRegenerates LSP configuration even if valid configuration already exists.\n\n### Specific Languages\n\n```bash\n\u002Flsp-setup --languages python,typescript\n```\n\nConfigures LSP servers only for specified languages.\n\n### Manual Plugin Management\n\nIf you need to manage Claude Code LSP plugins directly, use the `cclsp` command:\n\n```bash\n# Install a plugin (Layer 2)\nnpx cclsp install pyright\n\n# List installed plugins\nnpx cclsp list\n\n# Remove a plugin\nnpx cclsp remove pyright\n\n# Full setup workflow (what \u002Flsp-setup automates)\nnpx cclsp@latest setup\n```\n\nThe `\u002Flsp-setup` skill automates the `npx cclsp@latest setup` workflow, adding intelligent language detection and project-specific configuration.\n\n## Supported Languages\n\n| Language   | LSP Server                 | System Binary Installation (Layer 1)                       | Claude Code Plugin (Layer 2)                   |\n| ---------- | -------------------------- | ---------------------------------------------------------- | ---------------------------------------------- |\n| Python     | pyright                    | `npm install -g pyright`                                   | `npx cclsp install pyright`                    |\n| TypeScript | vtsls                      | `npm install -g @vtsls\u002Flanguage-server`                    | `npx cclsp install vtsls`                      |\n| JavaScript | vtsls                      | `npm install -g @vtsls\u002Flanguage-server`                    | `npx cclsp install vtsls`                      |\n| Rust       | rust-analyzer              | `rustup component add rust-analyzer`                       | `npx cclsp install rust-analyzer`              |\n| Go         | gopls                      | `go install golang.org\u002Fx\u002Ftools\u002Fgopls@latest`               | `npx cclsp install gopls`                      |\n| Java       | jdtls                      | Download from eclipse.org\u002Fjdtls                            | `npx cclsp install jdtls`                      |\n| C\u002FC++      | clangd                     | `brew install llvm` (macOS) \u002F `apt install clangd` (Linux) | `npx cclsp install clangd`                     |\n| C#         | omnisharp                  | Download from omnisharp.net                                | `npx cclsp install omnisharp`                  |\n| Ruby       | ruby-lsp                   | `gem install ruby-lsp`                                     | `npx cclsp install ruby-lsp`                   |\n| PHP        | phpactor                   | `composer global require phpactor\u002Fphpactor`                | `npx cclsp install phpactor`                   |\n| Bash       | bash-language-server       | `npm install -g bash-language-server`                      | `npx cclsp install bash-language-server`       |\n| YAML       | yaml-language-server       | `npm install -g yaml-language-server`                      | `npx cclsp install yaml-language-server`       |\n| JSON       | vscode-json-languageserver | `npm install -g vscode-json-languageserver`                | `npx cclsp install vscode-json-languageserver` |\n| HTML       | vscode-html-languageserver | `npm install -g vscode-html-languageserver`                | `npx cclsp install vscode-html-languageserver` |\n| CSS        | vscode-css-languageserver  | `npm install -g vscode-css-languageserver`                 | `npx cclsp install vscode-css-languageserver`  |\n| Markdown   | marksman                   | `brew install marksman` (macOS) \u002F Download from GitHub     | `npx cclsp install marksman`                   |\n\n**Note**: Both Layer 1 (system binary) and Layer 2 (Claude Code plugin) must be installed for LSP features to work.\n\n## Example: Python Project Setup\n\n```bash\n$ cd my-python-project\n$ \u002Flsp-setup\n\n[LSP Setup] Detecting languages...\n✓ Found: Python (23 files)\n✓ Found: YAML (2 files)\n✓ Found: Markdown (1 file)\n\n[LSP Setup] Configuring LSP servers...\n✓ pyright: Installed at \u002Fusr\u002Flocal\u002Fbin\u002Fpyright\n✓ yaml-language-server: Installed at \u002Fusr\u002Flocal\u002Fbin\u002Fyaml-language-server\n✓ marksman: Installed at \u002Fusr\u002Flocal\u002Fbin\u002Fmarksman\n\n[LSP Setup] Configuring project...\n✓ Created .env with LSP configuration\n✓ Detected Python virtual environment: .venv\n✓ Configured pyright to use .venv\u002Fbin\u002Fpython\n\n[LSP Setup] Verifying connections...\n✓ pyright: Connected (Python 3.11.5)\n✓ yaml-language-server: Connected\n✓ marksman: Connected\n\nConfiguration complete! LSP servers ready.\n```\n\n## Example: Polyglot Project Setup\n\n```bash\n$ cd my-fullstack-app\n$ \u002Flsp-setup\n\n[LSP Setup] Detecting languages...\n✓ Found: TypeScript (45 files)\n✓ Found: Python (12 files)\n✓ Found: Rust (8 files)\n✓ Found: JSON (6 files)\n\n[LSP Setup] Configuring LSP servers...\n✓ vtsls: Installed\n✓ pyright: Installed\n✗ rust-analyzer: Not found\n\n[LSP Setup] Installation guidance:\nTo install rust-analyzer:\n  $ rustup component add rust-analyzer\n\nWould you like to continue with available servers? [Y\u002Fn] y\n\n[LSP Setup] Configuring project...\n✓ Created .env with LSP configuration\n✓ Detected Node.js project root: .\u002Ffrontend\n✓ Detected Python project root: .\u002Fbackend\n✓ Detected Rust workspace: .\u002Fservices\n\n[LSP Setup] Verifying connections...\n✓ vtsls: Connected (TypeScript 5.3.3)\n✓ pyright: Connected (Python 3.11.5)\n⚠ rust-analyzer: Skipped (not installed)\n\nConfiguration complete! 2\u002F3 LSP servers ready.\nRun `rustup component add rust-analyzer` to enable Rust support.\n```\n\n## How to Verify LSP is Working\n\nAfter running `\u002Flsp-setup`, here's how to confirm LSP is providing code intelligence to Claude:\n\n### Method 1: Check for Diagnostics\n\n**Ask Claude to analyze a file with intentional errors**:\n\n```\nYou: \"What issues do you see in src\u002Fmain.py?\"\n\nIf LSP is working: Claude will report specific diagnostics from Pyright\n  → \"Line 15: 'name' is not accessed\"\n  → \"Line 23: Expected type 'int', got 'str'\"\n\nIf LSP is NOT working: Claude only sees what's in the file content\n  → Generic observations about code style\n  → No specific type errors or warnings\n```\n\n### Method 2: Request Type Information\n\n**Ask Claude about types in your code**:\n\n```\nYou: \"What's the type of the 'user' variable in auth.py line 42?\"\n\nIf LSP is working: Claude provides exact type from LSP\n  → \"Type: User | None (from models.User)\"\n\nIf LSP is NOT working: Claude guesses based on context\n  → \"It appears to be a User object based on the code\"\n```\n\n### Method 3: Test Navigation\n\n**Ask Claude to find definitions**:\n\n```\nYou: \"Where is the authenticate() function defined?\"\n\nIf LSP is working: Claude uses LSP goToDefinition\n  → \"Defined in src\u002Fauth\u002Fservice.py:156\"\n\nIf LSP is NOT working: Claude searches file contents\n  → \"I found it by searching for 'def authenticate'\"\n```\n\n### Method 4: Check Status Command\n\n**Run the status check**:\n\n```bash\n\u002Flsp-setup --status-only\n```\n\n**Expected Output (LSP Working)**:\n\n```\n[LSP Setup] Configuration Status:\n\n✓ Python (pyright): Connected\n  - System Binary: \u002Fusr\u002Flocal\u002Fbin\u002Fpyright-langserver\n  - Plugin: Installed and active\n  - Project Config: .env configured with ENABLE_LSP_TOOL=1\n\n✓ TypeScript (vtsls): Connected\n  - System Binary: \u002Fusr\u002Flocal\u002Fbin\u002Fvtsls\n  - Plugin: Installed and active\n  - Project Config: .env configured with ENABLE_LSP_TOOL=1\n\nOverall Status: ✓ All LSP servers ready (2\u002F2)\n```\n\n**Problem Output (LSP NOT Working)**:\n\n```\n[LSP Setup] Configuration Status:\n\n✗ Python (pyright): Not Connected\n  - System Binary: Not found\n  - Plugin: Not installed\n  - Project Config: Missing ENABLE_LSP_TOOL=1\n\nIssue: Run 'npm install -g pyright' and 'npx cclsp install pyright'\n```\n\n### What Success Looks Like\n\nWhen LSP is working properly, you'll notice:\n\n1. **Claude mentions specific line numbers** when discussing errors\n2. **Claude provides exact types** instead of guessing\n3. **Claude sees warnings\u002Ferrors before code runs** (like your IDE does)\n4. **Claude can navigate code structure** using LSP's understanding\n\n### What Failure Looks Like\n\nWhen LSP is NOT working, you'll notice:\n\n1. **Claude only sees file contents** - no type information or diagnostics\n2. **Claude makes educated guesses** about types and behavior\n3. **Claude doesn't mention errors** until you run the code\n4. **Claude searches text** instead of using semantic understanding\n\n## Troubleshooting\n\n### Issue: LSP server not found\n\n**Symptom**: \"rust-analyzer: Not found\" during configuration\n\n**Solution**: Install the LSP server using the provided installation command\n\n```bash\n$ rustup component add rust-analyzer\n$ \u002Flsp-setup --force  # Reconfigure after installation\n```\n\n### Issue: LSP server crashes on startup\n\n**Symptom**: \"pyright: Connection failed\" during verification\n\n**Solution**: Check LSP server logs and verify installation\n\n```bash\n# Check if server is properly installed\n$ which pyright\n\u002Fusr\u002Flocal\u002Fbin\u002Fpyright\n\n# Test server manually\n$ pyright --version\npyright 1.1.332\n\n# Check Claude Code LSP logs\n$ cat ~\u002F.claude-code\u002Flsp-logs\u002Fpyright.log\n```\n\n### Issue: Wrong Python interpreter used\n\n**Symptom**: Import errors despite packages being installed in virtual environment\n\n**Solution**: Verify `.env` configuration points to correct Python interpreter\n\n```bash\n# Check current configuration\n$ cat .env | grep PYTHON\n\n# Should show:\nLSP_PYTHON_INTERPRETER=\u002Fpath\u002Fto\u002F.venv\u002Fbin\u002Fpython\n\n# If incorrect, update manually or run:\n$ \u002Flsp-setup --force\n```\n\n### Issue: TypeScript project not detected\n\n**Symptom**: No TypeScript LSP configuration despite `.ts` files present\n\n**Solution**: Ensure `tsconfig.json` exists in project root\n\n```bash\n# Create minimal tsconfig.json\n$ cat > tsconfig.json \u003C\u003C EOF\n{\n  \"compilerOptions\": {\n    \"target\": \"ES2020\",\n    \"module\": \"commonjs\",\n    \"strict\": true\n  }\n}\nEOF\n\n$ \u002Flsp-setup --force\n```\n\n### Issue: Multiple Python versions causing conflicts\n\n**Symptom**: \"Module not found\" errors when LSP server uses wrong Python version\n\n**Solution**: Explicitly set Python interpreter in `.env`\n\n```bash\n# Edit .env manually\nLSP_PYTHON_INTERPRETER=\u002Fusr\u002Fbin\u002Fpython3.11\n\n# Or activate the correct virtual environment before running\n$ source .venv\u002Fbin\u002Factivate\n$ \u002Flsp-setup --force\n```\n\n## Configuration Files\n\n### `.env` (Project Root)\n\nThe skill creates or updates `.env` with LSP-specific configuration:\n\n```bash\n# LSP Configuration - Auto-generated by \u002Flsp-setup\nENABLE_LSP_TOOL=1  # REQUIRED: Activates LSP features in Claude Code\n\n# Project-specific settings (Layer 3)\nLSP_PYTHON_INTERPRETER=\u002Fpath\u002Fto\u002F.venv\u002Fbin\u002Fpython\nLSP_NODE_PROJECT_ROOT=\u002Fpath\u002Fto\u002Ffrontend\nLSP_RUST_WORKSPACE=\u002Fpath\u002Fto\u002Fservices\nLSP_GO_MODULE=\u002Fpath\u002Fto\u002Fgo.mod\n\n# Language Server Paths (auto-detected)\nLSP_PYRIGHT_PATH=\u002Fusr\u002Flocal\u002Fbin\u002Fpyright\nLSP_VTSLS_PATH=\u002Fusr\u002Flocal\u002Fbin\u002Fvtsls\nLSP_RUST_ANALYZER_PATH=\u002Fusr\u002Flocal\u002Fbin\u002Frust-analyzer\n```\n\n**Critical**: `ENABLE_LSP_TOOL=1` must be present for LSP features to work. Without it, LSP servers won't be activated.\n\n### Claude Code LSP Configuration\n\nThe skill automatically updates Claude Code's LSP configuration. No manual editing required.\n\n## Integration with Claude Code\n\nOnce configured, Claude Code automatically:\n\n- Provides code completion based on project context\n- Shows real-time diagnostics (errors, warnings)\n- Enables \"Go to Definition\" navigation\n- Offers inline documentation on hover\n- Suggests intelligent refactorings\n\n## Best Practices\n\n1. **Run at project start**: Configure LSP servers when you first open a project\n2. **Update after adding languages**: Rerun `\u002Flsp-setup` when adding new language files\n3. **Commit `.env`**: Include LSP configuration in version control for team consistency\n4. **Verify after installation**: Use `--status-only` to check server availability\n5. **Keep servers updated**: Regularly update LSP servers to latest versions\n\n## Technical Details\n\n**Skill Type**: Interactive command-driven workflow\n\n**Dependencies**: None (pure skill, no external packages)\n\n**Execution Time**: 2-10 seconds depending on project size\n\n**Persistence**: Configuration stored in `.env` and Claude Code settings\n\n**Supported Platforms**: macOS, Linux, WSL\n\n## Related Skills\n\n- `environment-setup` - General development environment configuration\n- `dependency-manager` - Package and dependency management\n- `project-init` - New project initialization\n\n## Maintenance\n\nThe LSP Setup skill requires no manual maintenance. It automatically adapts to your project structure and detects language changes on each run.\n\nTo update LSP server definitions or add new languages, see the developer documentation in `README.md`.\n\n---\n\n## Execution Instructions (For Claude Code)\n\nWhen this skill is activated via `\u002Flsp-setup` or activation keywords, execute the following workflow:\n\n### Phase 1: Language Detection\n\n```python\nfrom pathlib import Path\nfrom lsp_setup import LanguageDetector\n\n# Detect languages in current project\ndetector = LanguageDetector()\nproject_root = Path.cwd()\nlanguages = detector.detect_languages(project_root)\n\n# Report findings\nprint(f\"Detected {len(languages)} language(s):\")\nfor lang in languages:\n    print(f\"  - {lang.language}: {lang.file_count} files\")\n```\n\n### Phase 2: Check Current Status\n\n```python\nfrom lsp_setup import StatusTracker\n\n# Get current LSP setup status\nlanguage_names = [lang.language for lang in languages]\ntracker = StatusTracker(project_root, language_names)\nstatus = tracker.get_full_status()\n\n# Show status\nprint(tracker.generate_user_guidance())\n```\n\n### Phase 3: Configure LSP (If Needed)\n\n```python\nfrom lsp_setup import LSPConfigurator\n\n# Configure .env file\nconfigurator = LSPConfigurator(project_root)\n\n# Enable LSP\nif not configurator.is_lsp_enabled():\n    configurator.enable_lsp()\n    print(\"✓ Enabled LSP in .env\")\n```\n\n### Phase 4: Install Plugins (If Needed)\n\n```python\nfrom lsp_setup import PluginManager\n\n# Install Claude Code plugins for detected languages\nmanager = PluginManager()\n\n# Check prerequisites\nif not manager.check_npx_available():\n    print(\"⚠ npx not found. Install Node.js first:\")\n    print(\"  macOS: brew install node\")\n    print(\"  Linux: sudo apt install nodejs\")\n    exit(1)\n\n# Install plugins for languages with missing Layer 2\nfor lang_name in language_names:\n    layer_2_status = status[\"layer_2\"][lang_name]\n    if not layer_2_status[\"installed\"]:\n        print(f\"Installing {lang_name} plugin...\")\n        success = manager.install_plugin(lang_name)\n        if success:\n            print(f\"✓ {lang_name} plugin installed\")\n        else:\n            print(f\"✗ Failed to install {lang_name} plugin\")\n            print(f\"  {layer_2_status.get('install_guide', 'See docs')}\")\n```\n\n### Phase 5: Final Status Report\n\n```python\n# Recheck status after installation\nfinal_status = tracker.get_full_status()\n\nif final_status[\"overall_ready\"]:\n    print(\"\\n✅ LSP setup complete! All layers configured.\")\nelse:\n    print(\"\\n⚠ LSP partially configured. Next steps:\")\n    print(tracker.generate_user_guidance())\n```\n\n### Command-Line Arguments (Optional)\n\nSupport these arguments if provided by user:\n\n- `--status-only`: Skip installation, just report current status\n- `--force`: Reinstall all plugins even if already installed\n- `--languages \u003Clang1,lang2>`: Configure only specific languages\n- `--dry-run`: Show what would be done without making changes\n",{"name":5,"type":46,"description":7,"activationKeywords":47,"activationStrategy":58,"persistenceThreshold":59,"activationContextWindow":60},"skill",[48,49,50,51,52,53,5,38,54,55,56,57,36],"LSP","Language Server Protocol","LSP setup","LSP configuration","configure LSP","enable LSP","code intelligence","code completion","pyright","rust-analyzer","lazy-aggressive",20,3,"main","716b17df3ef6719d88aeac180015008b7ddfff6f",".agents\u002Fskills\u002Flsp-setup",0,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment","https:\u002F\u002Fgithub.com\u002Fray-manaloto","2026-08-03 16:55:50",{"source":9,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add ray-manaloto\u002Fmacos-development-environment --skill lsp-setup",{"tool":74,"command":75},"bunx","bunx skills add ray-manaloto\u002Fmacos-development-environment --skill lsp-setup",{"tool":77,"command":78},"pnpm","pnpm dlx skills add ray-manaloto\u002Fmacos-development-environment --skill lsp-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002FSKILL.md",true,[82,88,92,97,101,106,110,114,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"__init__.py","SCRIPT","脚本",1098,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002F__init__.py",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"language_detector.py",11658,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Flanguage_detector.py",{"path":93,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"LICENSE","许可证",34562,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Fdefi-lending\u002FLICENSE",{"path":98,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":99,"sourceHtmlUrl":100},"lsp_configurator.py",9183,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Flsp_configurator.py",{"path":5,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"OTHER","其他",30,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Flsp-setup",{"path":107,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":108,"sourceHtmlUrl":109},"mcp_configurator.py",4932,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Fmcp_configurator.py",{"path":111,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":112,"sourceHtmlUrl":113},"plugin_manager.py",7400,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Fplugin_manager.py",{"path":115,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":118,"sourceHtmlUrl":119},"README.md","REFERENCE","参考文档",24786,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002FREADME.md",{"path":121,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":122,"sourceHtmlUrl":123},"references\u002Faave-v3.md",3297,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Fdefi-lending\u002Freferences\u002Faave-v3.md",{"path":125,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":126,"sourceHtmlUrl":127},"SOURCE.md",177,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Fdefi-lending\u002FSOURCE.md",{"path":129,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":130,"sourceHtmlUrl":131},"status_tracker.py",13612,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Fstatus_tracker.py",{"path":133,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":134,"sourceHtmlUrl":135},"tests\u002F__init__.py",271,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002F__init__.py",{"path":137,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":138,"sourceHtmlUrl":139},"tests\u002Fconftest.py",5862,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002Fconftest.py",{"path":141,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":142,"sourceHtmlUrl":143},"tests\u002FREADME.md",7535,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002FREADME.md",{"path":145,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":146,"sourceHtmlUrl":147},"tests\u002Ftest_e2e.py",16724,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002Ftest_e2e.py",{"path":149,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":150,"sourceHtmlUrl":151},"tests\u002Ftest_integration.py",12513,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002Ftest_integration.py",{"path":153,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":154,"sourceHtmlUrl":155},"tests\u002Ftest_language_detector.py",12965,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002Ftest_language_detector.py",{"path":157,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":158,"sourceHtmlUrl":159},"tests\u002Ftest_lsp_configurator.py",10054,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002Ftest_lsp_configurator.py",{"path":161,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":162,"sourceHtmlUrl":163},"tests\u002FTEST_METRICS.md",6404,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002FTEST_METRICS.md",{"path":165,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":166,"sourceHtmlUrl":167},"tests\u002Ftest_plugin_manager.py",11916,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002Ftest_plugin_manager.py",{"path":169,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":170,"sourceHtmlUrl":171},"tests\u002Ftest_status_tracker.py",13765,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002Ftest_status_tracker.py",{"path":173,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":174,"sourceHtmlUrl":175},"tests\u002FTEST_SUMMARY.md",10629,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002Ftests\u002FTEST_SUMMARY.md",{"path":177,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":178,"sourceHtmlUrl":179},"TRUST.auto.yaml",2250,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Fdefi-lending\u002FTRUST.auto.yaml",{"path":181,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":182,"sourceHtmlUrl":183},"USAGE_EXAMPLES.md",23583,"https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flsp-setup\u002FUSAGE_EXAMPLES.md",[185,203,221,240,257,271],{"skillNo":186,"name":187,"nameZh":13,"description":188,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":41},"01M6CC8DXNJ39YWERYTWCGGCGG","next-workflow-step","Use this skill when the user wants to transition to the next workflow step, wrap up a session cleanly, prepare a handoff, or says things like \"next step\", \"continue the workflow\", \"wrap up\", \"hand off\", \"move to the next phase\", \"what's next in embrace\", or \"prepare for \u002Fclear\". Also triggers when the current octo:embrace phase appears complete and no explicit next action is set.","https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002Frsm-subagents\u002Fplugins\u002Fworkflow-toolkit\u002Fskills\u002Fnext-workflow-step\u002FSKILL.md",[],[192,193,194,195,196,197,198,199,200,201,202],"next workflow step","workflow","up","use","session","user","wrap up","continue","handoff","prepare","SET",{"skillNo":204,"name":205,"nameZh":13,"description":206,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":207,"categories":208,"keywords":209,"publishedAt":41},"01M6CC8BRZBQHEBXGMKPDM422P","source-discovery","This skill should be used when the user asks to \"find sources\", \"discover URLs\", \"catalog a source\", \"classify a URL\", \"search for libraries\", \"check what exists\", or mentions source discovery, URL cataloging, source classification, or research source management.","https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002Frsm-subagents\u002Fplugins\u002Fresearch-review-toolkit\u002Fskills\u002Fsource-discovery\u002FSKILL.md",[],[210,211,212,213,214,215,216,217,218,197,219,220],"discovery","source discovery","research","libraries","search","classification","find","check","management","catalog","find sources",{"skillNo":222,"name":223,"nameZh":13,"description":224,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":225,"categories":226,"keywords":227,"publishedAt":41},"01M6CC89CGJP69A0PS22G2H1FV","review-synthesis","This skill should be used when the user asks to \"summarize review findings\", \"prioritize fixes\", \"rank review issues\", \"combine reviewer feedback\", \"create action items from review\", or mentions review synthesis, finding prioritization, severity ranking, or review result summarization.","https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002Frsm-subagents\u002Fplugins\u002Fresearch-review-toolkit\u002Fskills\u002Freview-synthesis\u002FSKILL.md",[],[228,229,230,231,232,233,234,197,235,236,237,238,239],"review","review synthesis","Synthesis","prioritize","create action","feedback","reviewer","summarize","prioritization","create","issues","severity",{"skillNo":241,"name":242,"nameZh":13,"description":243,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":244,"categories":245,"keywords":246,"publishedAt":41},"01M6CC872EZ9GRJY0HRCG0RT2M","research-scoring","This skill should be used when the user asks to \"score research\", \"check research quality\", \"evaluate coverage\", \"measure improvement\", \"assess research completeness\", or mentions research scoring, quality metrics, coverage gaps, improvement baseline, or research pipeline status.","https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002Frsm-subagents\u002Fplugins\u002Fresearch-review-toolkit\u002Fskills\u002Fresearch-scoring\u002FSKILL.md",[],[247,212,248,249,250,251,252,253,217,197,254,255,256],"research scoring","status","coverage gaps","metrics","pipeline","baseline","quality","coverage","pipeline status","research quality",{"skillNo":258,"name":259,"nameZh":13,"description":260,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":261,"categories":262,"keywords":263,"publishedAt":41},"01M6CC852HSDS1FE4EJAT0RHGR","notebooklm-integration","This skill should be used when the user asks to \"ingest into NotebookLM\", \"query NotebookLM\", \"add sources to notebook\", \"cross-source synthesis\", \"check stale sources\", or mentions NotebookLM, notebook integration, source ingestion, or knowledge consolidation.","https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002Frsm-subagents\u002Fplugins\u002Fresearch-review-toolkit\u002Fskills\u002Fnotebooklm-integration\u002FSKILL.md",[],[264,265,266,267,217,197,268,269,270,230],"notebooklm integration","notebooklm","integration","knowledge","ingestion","ingest","stale",{"skillNo":272,"name":273,"nameZh":13,"description":274,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":275,"categories":276,"keywords":277,"publishedAt":41},"01M6CC82Z4V3205KCJWQZPS2VG","evidence-synthesis","This skill should be used when the user asks to \"synthesize findings\", \"combine research\", \"cross-reference sources\", \"summarize evidence\", \"write a deep review\", or mentions evidence synthesis, finding consolidation, cross-source analysis, or research summarization.","https:\u002F\u002Fgithub.com\u002Fray-manaloto\u002Fmacos-development-environment\u002Fblob\u002Fmain\u002Frsm-subagents\u002Fplugins\u002Fresearch-review-toolkit\u002Fskills\u002Fevidence-synthesis\u002FSKILL.md",[],[278,230,279,235,212,280,281,282,197,283,228],"evidence synthesis","evidence","deep review","analysis","write","reference"]