Context Compilation with cclsp
Installation
SKILL.md
Context Compilation with cclsp + Sorbet
This skill provides patterns for LSP-powered context extraction and type-safe code generation using cclsp MCP tools, Solargraph, and Sorbet.
1. Tool Stack Overview
1.1 cclsp MCP Bridge
The cclsp MCP server provides Claude Code access to Language Server Protocol functionality:
| Tool | Purpose | Use Case |
|---|---|---|
mcp__cclsp__find_definition |
Find symbol definitions | Locate where methods/classes are defined |
mcp__cclsp__find_references |
Find all references | Discover symbol usage patterns |
mcp__cclsp__get_diagnostics |
Get errors/warnings | Validate code before execution |
mcp__cclsp__rename_symbol |
Rename symbols | Safe refactoring |
mcp__cclsp__rename_symbol_strict |
Rename at position | Precise symbol renaming |
mcp__cclsp__restart_server |
Restart LSP | Recover from errors |