Agent skill

Lsp Custom Requests

by forcedotcom in forcedotcom/salesforcedx-vscode

Serialize URIs correctly across LSP custom requests. An agent skill from forcedotcom/salesforcedx-vscode.

BSD-3-ClauseAuto-check passedDevelopment

Install Lsp Custom Requests

skills CLI
$ npx skills add forcedotcom/salesforcedx-vscode --skill lsp-custom-requests -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forcedotcom/salesforcedx-vscode lsp-custom-requests --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forcedotcom/salesforcedx-vscode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/lsp-custom-requests .claude/skills/lsp-custom-requests && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lsp-custom-requests
GitHub stars
1k
Token cost
~500 tokens
SKILL.md length
152 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Serialize URIs correctly across LSP custom requests. An agent skill from forcedotcom/salesforcedx-vscode.

  • Defining custom LSP requests/notifications with URI params
  • SKILL.md covers Why it breaks, Rules, Pattern — UriComponents + revive and Don't, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Sending a URI over Connection.sendRequest

What it does

Lsp Custom Requests is an agent skill from forcedotcom/salesforcedx-vscode. Serialize URIs correctly across LSP custom requests. Use when defining custom LSP requests/notifications with URI params, sending a URI over Connection.sendRequest, or debugging [object Object] / EntryNotFound / workspace/stat/readFile/readDirectory failures.

Its SKILL.md is about 500 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with Visual Studio Code. The repository describes itself as: Salesforce Extensions for VS Code. The licence is BSD-3-Clause.

When your agent uses it

  • Defining custom LSP requests/notifications with URI params
  • Sending a URI over Connection.sendRequest
  • Debugging [object Object] / EntryNotFound / workspace/stat/readFile/readDirectory failures

Example prompts

  • “/lsp-custom-requests”

What it can do on your machine

Read from SKILL.md and the folder at commit 27807f6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lsp Custom Requests loads about 500 tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 152 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~500

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from forcedotcom/salesforcedx-vscode at commit 27807f6, republished under its BSD-3-Clause licence (© forcedotcom). 152 words, ~500 tokens.

Download SKILL.mdSave it as .claude/skills/lsp-custom-requests/SKILL.md (or your agent's skills folder).
name
lsp-custom-requests
description
Serialize URIs correctly across LSP custom requests. Use when defining custom LSP requests/notifications with URI params, sending a `URI` over `Connection.sendRequest`, or debugging `[object Object]` / `EntryNotFound` / `workspace/stat`/`readFile`/`readDirectory` failures.
review
never

LSP Custom Requests — URI Wire Format

Why it breaks

  • Connection.sendRequest(method, params) runs JSON.stringify(params).
  • vscode-uri Uri.toJSON() returns UriComponents (plain data). See microsoft/vscode-uri src/uri.ts.
  • Receiver gets a plain object — no prototype, no toString/fsPath.
  • uri.toString() → "[object Object]" → fs.stat/readFile fails with EntryNotFound.

Rules

  • Never call .toString() / .fsPath on a URI received over the wire without rehydrating first.
  • Type URI params as UriComponents (derived); revive on receive.

Pattern — UriComponents + revive

Params type derived from URI.toJSON:

ts
import type { URI } from 'vscode-uri';
type UriComponents = ReturnType<URI['toJSON']>;
type MyParams = { uri: UriComponents };

const params: MyParams = { uri: URI.parse(fileUri) };
connection.sendRequest('my/request', params);

const handler = (params: MyParams) => {
  const uri = URI.revive(params.uri);
};

Notes:

  • vscode-uri's package entry does not re-export UriComponents; derive via ReturnType<URI['toJSON']>.
  • URI.revive is the exact inverse of toJSON — restores _formatted / _fsPath caches too.

Don't

  • uri: URI on a wire type and use .toString() / .fsPath on receive — this is the failure mode.
  • Pass deserialized params straight to vscode.workspace.fs.* — those APIs expect a real URI instance.

When uri: URI in params looks fine but isn't

Compiles cleanly (URI on both sides). Runtime receiver sees a plain UriComponents. Check the handler log — uri=[object Object] confirms.

© forcedotcom, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/lsp-custom-requests of forcedotcom/salesforcedx-vscode.

Open the folder on GitHubat commit 27807f6

Compare with similar skills

Lsp Custom Requests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lsp Custom Requests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lsp Custom Requests this skillforcedotcom/salesforcedx-vscode1k—~500Automated safety check: PassBSD-3-Clause
Workthreadsspecstoryai/getspecstory1.3k—~1.3kAutomated safety check: NotesApache-2.0
Excalidraw Diagram Studiotech-leads-club/agent-skills7k—~3.6kAutomated safety check: PassCC-BY-4.0
Git Worktree Managermicrosoft/WindowsAppSDK4.7k—~2kAutomated safety check: PassMIT
Roo Conflict Resolutionzgsm-ai/costrict4.4k—~2.3kAutomated safety check: PassApache-2.0
Interactive Extension TestingPowerShell/vscode-powershell1.9k—~824Automated safety check: PassMIT

Similar skills

  • Workthreads

    specstoryai/getspecstory

    SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more).

    1.3k GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Excalidraw Diagram Studio

    tech-leads-club/agent-skills

    Generates Excalidraw diagram files from plain descriptions, choosing among flowcharts, mind maps, architecture, swimlane, class, sequence and ER diagrams.

    7k GitHub stars~3.6k tokensUpdated 18 days ago
    DevelopmentAuto-check passed
  • Git Worktree Manager

    microsoft/WindowsAppSDK

    Official

    Creates and manages Git worktrees with PowerShell scripts so separate issues and Copilot sessions each get an isolated branch, build and test environment.

    4.7k GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Roo Conflict Resolution

    zgsm-ai/costrict

    Provides comprehensive guidelines for resolving merge conflicts intelligently using git history and commit context.

    4.4k GitHub stars~2.3k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Interactive Extension Testing

    PowerShell/vscode-powershell

    Guide for setting up the multi-root PowerShell VS Code extension/PSES dev workspace.

    1.9k GitHub stars~824 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Release

    PowerShell/vscode-powershell

    Guide for preparing a release of the PowerShell VS Code extension.

    1.9k GitHub stars~1.1k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from forcedotcom/salesforcedx-vscode

All 37 skills in this repo
  • Command UI

    forcedotcom/salesforcedx-vscode

    Command palette, CodeLens, context menus, package.nls titles, and NotificationModeService.

    1k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Services Extension Consumption

    forcedotcom/salesforcedx-vscode

    Consume the salesforcedx-vscode-services extension API. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Changelog

    forcedotcom/salesforcedx-vscode

    Polish the automated CHANGELOG on develop before the next stable build.

    1k GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Core Extension API

    forcedotcom/salesforcedx-vscode

    Public API exported by salesforcedx-vscode-core activate(). An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~842 tokensUpdated today
    Auto-check passed
  • Drivable Vscode

    forcedotcom/salesforcedx-vscode

    Operate a real VS Code instance through drivable-vscode. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Effect Best Practices

    forcedotcom/salesforcedx-vscode

    Enforces Effect-TS patterns for services, errors, layers, atoms, and Effect.pipe composition.

    1k GitHub stars~6.2k tokensUpdated today
    Auto-check passed

Categories

Questions about Lsp Custom Requests

What does Lsp Custom Requests do?

Serialize URIs correctly across LSP custom requests. An agent skill from forcedotcom/salesforcedx-vscode. Lsp Custom Requests is an agent skill from forcedotcom/salesforcedx-vscode. Serialize URIs correctly across LSP custom requests.

When should I use Lsp Custom Requests?

Lsp Custom Requests fits situations like: defining custom LSP requests/notifications with URI params; sending a URI over Connection.sendRequest; debugging [object Object] / EntryNotFound / workspace/stat/readFile/readDirectory failures.

How do I install Lsp Custom Requests in Claude Code?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill lsp-custom-requests -a claude-code`. Or copy the skill folder (.claude/skills/lsp-custom-requests in forcedotcom/salesforcedx-vscode) into .claude/skills/lsp-custom-requests in your project. Claude Code loads it when a task matches its description.

How do I install Lsp Custom Requests in Codex?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill lsp-custom-requests -a codex`. Or copy the skill folder (.claude/skills/lsp-custom-requests in forcedotcom/salesforcedx-vscode) into .agents/skills/lsp-custom-requests in your project. Codex loads it when a task matches its description.

Can I use Lsp Custom Requests in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/salesforcedx-vscode --skill lsp-custom-requests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lsp-custom-requests, .gemini/skills/lsp-custom-requests, .github/skills/lsp-custom-requests and .opencode/skills/lsp-custom-requests in your project.

What does Lsp Custom Requests need to run?

SKILL.md names no scripts, command-line tools or credentials: Lsp Custom Requests is instructions for the agent only.

Does Lsp Custom Requests access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Lsp Custom Requests safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Lsp Custom Requests use?

Lsp Custom Requests is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lsp Custom Requests use?

About 500 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lsp Custom Requests?

Skills that share tags, products or a category with Lsp Custom Requests: Workthreads (specstoryai/getspecstory, 1.3k stars), Excalidraw Diagram Studio (tech-leads-club/agent-skills, 7k stars), Git Worktree Manager (microsoft/WindowsAppSDK, 4.7k stars) and Roo Conflict Resolution (zgsm-ai/costrict, 4.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lsp Custom Requests?

forcedotcom (a GitHub organization) maintains it in forcedotcom/salesforcedx-vscode, which has 1,035 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 8, 2026.

Source: forcedotcom/salesforcedx-vscode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.