Skip to content
Skillpedia
General coding70k · #3113

lsp

What it does

This tool helps you understand and manage 'language servers' that assist with programming. It can check for errors, find code definitions, search for where something is used, and even help rename parts of your code safely.

When to use it

  • ✓When you want to know which programming tools are installed and working.
  • ✓To find errors in a specific file after making changes.
  • ✓To rename a variable or function throughout your project without breaking anything.

Skill link

https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/omo-codex/plugin/components/lsp/skills/lsp/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/omo-codex/plugin/components/lsp/skills/lsp/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Check for errors in my 'main.py' file and tell me where the 'calculate_total' function is used across the project.”

5 new skills a week. 1 minute to read.

How it works

The tool communicates with 'language servers' that analyze your code. It uses specific commands to request information like errors, definitions, or references, and receives this information back to show you.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Codex LSP

Call lsp MCP tools through the tool interface; lsp.*/mcp__lsp__* are tool-call names, not shell commands.

Tools

  • lsp.status: list configured, installed, missing, disabled, and active language servers.
  • lsp.diagnostics: check one file or directory for LSP diagnostics. Prefer severity: "error" after edits.
  • lsp.goto_definition: locate a symbol definition from file, line, and character.
  • lsp.find_references: find usages of a symbol across the workspace.
  • lsp.symbols: inspect document symbols or search workspace symbols.
  • lsp.prepare_rename: check whether a rename is valid at a position.
  • lsp.rename: apply a language-server workspace edit for a rename.

Config

Project config lives at .codex/lsp-client.json; user config lives at ~/.codex/lsp-client.json.

{
	"lsp": {
		"typescript": {
			"command": ["typescript-language-server", "--stdio"],
			"extensions": [".ts", ".tsx", ".js", ".jsx"]
		}
	}
}

Use lsp.status first when diagnostics report a missing language server.

FAQ

What are 'language servers'?

They are programs that help your code editor understand your code, providing features like error checking, autocompletion, and navigation.

Why would I use the `lsp.status` command first?

It shows which language servers are configured, installed, missing, or disabled. It's useful for knowing if a server needed for another function is absent.

What happens if I try to rename something and it goes wrong?

Before renaming, you can use `lsp.prepare_rename` to check if the rename is safe. The `lsp.rename` tool attempts to apply the rename safely across the project.

Details

Original description by the author

Use when Codex needs language-server diagnostics, definitions, references, symbols, or rename safety checks in the current workspace.

repo: code-yeongyu/oh-my-openagent

Popularity

GitHub stars
70k
Ranking position
#3113
License
NOASSERTION
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills