一键导入
lsp
Language Server Protocol tools via the bundled lsp MCP server — diagnostics, navigation, symbols, and rename. Use after edits to verify types and catch errors.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Language Server Protocol tools via the bundled lsp MCP server — diagnostics, navigation, symbols, and rename. Use after edits to verify types and catch errors.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
MANDATORY before code changes, debugging, planning, or multi-step implementation in ANY repository. Discover skills via grok inspect, Read every SKILL.md whose description matches the task, then use tools. Hooks block mutating tools until at least one catalog skill was Read. superpowers skills ship bundled in oh-my-grok (vendor/superpowers/skills).
Start a Ralph Loop — autonomous work-until-done via Stop-hook continuations. Use when the user says ralph loop, /ralph-loop, or wants the agent to keep going until it emits a completion promise tag. Pair with cancel-ralph to stop.
Hash-anchored StrReplace edits using LINE#ID tags from Read output. PreToolUse blocks stale anchors when the file changed since the last cached read.
Structural code search and rewrite via the bundled ast_grep MCP server. Use for AST patterns ($VAR, $$$), not regex. Prefer over Grep when matching syntax trees.
Strategic planning mode (/plan): interview, gap analysis, write work plans under .omg/plans/, optional review, then /start-work to activate boulder execution.
Create a detailed HANDOFF CONTEXT summary for continuing work in a new Grok session. Use when the user says /handoff, handoff, context too long, fresh session, compaction, or wants a paste-ready continuation prompt. Ported from oh-my-openagent /handoff.
| name | lsp |
| description | Language Server Protocol tools via the bundled lsp MCP server — diagnostics, navigation, symbols, and rename. Use after edits to verify types and catch errors. |
| user_invocable | false |
lsp)Bundled server: node ${GROK_PLUGIN_ROOT}/vendor/lsp-tools-mcp/dist/cli.js mcp
Write / StrReplace on code files — check for new errorsprepare_rename → rename)CallMcpTool, server lsp)| Tool | Purpose |
|---|---|
lsp_status / lsp.status | Server and language status |
lsp_diagnostics / lsp.diagnostics | Errors and warnings for a file |
lsp_goto_definition | Jump to symbol definition |
lsp_find_references | Find all references |
lsp_symbols | Document / workspace symbols |
lsp_prepare_rename | Validate rename at position |
lsp_rename | Apply workspace rename |
Project LSP config (optional): .omg/lsp.json or .opencode/lsp.json
Override paths:
LSP_TOOLS_MCP_PROJECT_CONFIG — project config fileLSP_TOOLS_MCP_USER_CONFIG — user config fileExample entry:
{
"lsp": {
"typescript": {
"command": ["typescript-language-server", "--stdio"],
"extensions": [".ts", ".tsx", ".js", ".jsx"]
}
}
}
lsp_diagnostics on changed paths.lsp_prepare_rename → lsp_rename (prefer over manual text replace).Task 5+ may stash diagnostics and inject them on the next prompt / Stop. Until then, call MCP tools explicitly after edits.