一键导入
lsp-review
Interactive LSP review session — user reports hover/coloring issues from VS Code, Claude files GitHub issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interactive LSP review session — user reports hover/coloring issues from VS Code, Claude files GitHub issues
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Suggest and apply a semver version bump based on commits since the last tag
Push current branch to remote origin
Scaffold a new Sharpy.Stdlib module (spy-sourced or handwritten C#) with all required files, conventions, docs, and tests
Implement a plan with a coordinated agent team
Run compiler or cross-language benchmarks and compare results
Regenerate C# snapshot tests and spy stdlib after intentional codegen changes
| name | lsp-review |
| description | Interactive LSP review session — user reports hover/coloring issues from VS Code, Claude files GitHub issues |
| argument-hint | [fixture path or directory] |
Start an interactive LSP review session. The user opens test fixture .spy files in VS Code and reports issues they observe with hover tooltips, syntax coloring, type inference, diagnostics, etc. For each reported issue, investigate the root cause and create a GitHub issue (or add to an existing one if it's the same bug).
Usage:
/lsp-review — start a session, user provides fixtures one at a time/lsp-review src/Sharpy.Compiler.Tests/Integration/TestFixtures/async/ — start with a specific directory contextgh with dangerouslyDisableSandbox: true (required due to TLS cert issues in sandbox)## Related sections linking issues that share root causes or categoriesLSP: <concise description> for LSP issues, plain titles for compiler/spec issuesFrom prior sessions, these are recurring patterns to watch for:
| Pattern | Typical Root Cause |
|---|---|
| No hover at declaration sites (functions, variables, fields, params) | Name is a string not an Identifier node; AstPositionService can't find it; HoverHandler missing case |
<?> / UnknownType on expressions | Semantic analysis type resolution gap (e.g., async with bindings, Task.Result) |
| Wrong syntax coloring for keywords | SemanticTokensHandler doesn't emit TKeyword tokens; TextMate grammar may be suppressed |
| C# type names leaking (double, long) | SemanticType field Name uses C# name instead of Sharpy name |
| Missing documentation in hover | XML doc comments not flowing through XmlDocReader -> Symbol.Documentation pipeline |
| Type annotations not hoverable | TypeAnnotation is not a Node subclass; position matching needs to recurse into type args |
| Operator/keyword hover showing raw type | Generic Expression catch-all in HoverHandler is too broad |
Maintain and display a markdown table after each issue creation/update:
| # | Issue | Fixture(s) | Category | Status |
|---|-------|-----------|----------|--------|
| 123 | brief title | fixture_name.spy | Category | OPEN/CLOSED |
src/Sharpy.Lsp/Handlers/HoverHandler.cs — hover tooltip logicsrc/Sharpy.Lsp/Handlers/SemanticTokensHandler.cs — syntax coloringsrc/Sharpy.Lsp/SymbolFormatter.cs — hover text formattingsrc/Sharpy.Lsp/ModuleDocumentation.cs — module summary lookupsrc/Sharpy.Compiler/Services/AstPositionService.cs — cursor position to AST nodesrc/Sharpy.Compiler/Semantic/TypeChecker*.cs — type inferencesrc/Sharpy.Compiler/Semantic/SemanticType.cs — type definitions and display namessrc/Sharpy.Compiler/Parser/Ast/Statement.cs — AST node definitionssrc/Sharpy.Compiler/Parser/Ast/Types.cs — TypeAnnotation recordeditors/vscode/syntaxes/sharpy.tmLanguage.json — TextMate grammar