agentleFS
Masih-0x3Masih-0x3/agent-skills/skills/lsp-setup/SKILL.md

lsp-setup

Skill0 starsChanged 3 months agoMITView on GitHub

Use when a coding task needs language-server diagnostics, goto/reference/rename support, project-aware static analysis, or post-edit diagnostics beyond ordinary tests, especially in typed or multi-file repositories.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to make language-server diagnostics available and useful for the current task.

    line 8
  2. Distinctive:

    Use this skill when:

    line 12
  3. Distinctive:

    Prefer existing repo tooling:

    line 31
  4. Distinctive:

    check whether the language server or equivalent diagnostics command is already installed locally.

    line 34
  5. Distinctive:

    avoid global installs unless the user explicitly wants setup and the risk is clear.

    line 35
  6. Distinctive:

    If LSP is unavailable, use the repo's closest validation path:

    line 39
  7. Distinctive:

    Default to no new installs.

    line 45
  8. Distinctive:

    Ask or explain before:

    line 53
  9. Distinctive:

    Do not treat "no diagnostics tool found" as a pass.

    line 74
  10. Distinctive:

    Do not ignore project-native typecheck/lint scripts in favor of invented commands.

    line 75
  11. Distinctive:

    Do not leave watchers, language-server processes, or temp config files running without a cleanup receipt.

    line 76
  12. Very specific:

    Do not claim live/browser/runtime behavior from static diagnostics.

    line 77

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

LSP Setup

Use this skill to make language-server diagnostics available and useful for the current task. The goal is targeted project-aware feedback, not generic tool installation.

When To Use

Use this skill when:

  • A repo has typed source and diagnostics would catch real mistakes.
  • Implementation touched multiple files and type/lint output is too coarse.
  • A validation failure needs symbol-aware navigation or diagnostics.
  • The user asks to set up, fix, or use LSP.
  • A review/checkpoint needs more confidence in edited files.

Skip this skill when:

  • The task is a tiny edit and repo-native tests/typecheck already cover it.
  • The project has no practical language-server support.
  • Setup would require global installs or network-heavy work that the user did not authorize.

Workflow

  1. Detect the project language/ecosystem:
    • TypeScript/JavaScript, Python, Go, Rust, Swift, Ruby, Java, etc.
    • package manager, lockfile, workspace root, config files, and existing scripts.
  2. Prefer existing repo tooling:
    • package scripts, local binaries, editor config, existing language server config, typecheck/lint commands.
  3. Verify availability:
    • check whether the language server or equivalent diagnostics command is already installed locally.
    • avoid global installs unless the user explicitly wants setup and the risk is clear.
  4. Run targeted diagnostics:
    • edited files first when supported.
    • project diagnostics when file-level diagnostics are unreliable.
  5. If LSP is unavailable, use the repo's closest validation path:
    • tsc --noEmit, vue-tsc, svelte-check, ruff, mypy, pyright, go test, cargo check, swift build, or project-native equivalents.
  6. Report what was verified and what remains unverified.

Installation Policy

Default to no new installs.

Safe without asking:

  • Using already-installed repo-local binaries.
  • Running existing package scripts.
  • Reading config files.

Ask or explain before:

  • Installing global language servers.
  • Modifying editor config.
  • Changing project dependencies.
  • Running network-heavy package manager commands.

Diagnostics Standard

Good diagnostics output should include:

  • workspace root,
  • language/tool used,
  • files checked,
  • command or MCP/tool used,
  • errors/warnings relevant to the task,
  • whether diagnostics are complete or partial,
  • fallback used if LSP was unavailable.

Guardrails

  • Do not treat "no diagnostics tool found" as a pass.
  • Do not ignore project-native typecheck/lint scripts in favor of invented commands.
  • Do not leave watchers, language-server processes, or temp config files running without a cleanup receipt.
  • Do not claim live/browser/runtime behavior from static diagnostics.

Closeout

LSP/diagnostics:
- Workspace:
- Tool/command:
- Scope:
- Result:
- Fallback:
- Cleanup:

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.