beancount-lsp: Skill for Claude Code

.agent/skills/vscode-config/SKILL.md

vscode-lsp-configuration is a skill for Claude Code, Codex from fengkx/beancount-lsp. It costs 39 tokens per session (1,087 once invoked), scanned A, original, MIT.

Guidance for an LSP server, a tool that provides code intelligence such as diagnostics and autocomplete, when it reads VS Code settings. It covers workspace, folder, language-specific, caching, and configuration-change behavior.

In plain words
What is it for?
It is for implementing or reviewing VS Code extension settings and LSP configuration handling.
Why use it?
It helps settings resolve correctly in single-folder and multi-root projects instead of using the wrong configuration for a file.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is fengkx/beancount-lsp's own configuration. It tells Claude Code and Codex how to work on beancount-lsp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything beancount-lsp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fengkx/beancount-lsp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fengkx/beancount-lsp/master/.agent/skills/vscode-config/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fengkx/beancount-lsp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vscode-lsp-configuration

README.md
[![agentmods](https://agentmods.dev/badge/skills/fengkx/beancount-lsp/vscode-config/github.svg)](https://agentmods.dev/skills/fengkx/beancount-lsp/vscode-config)
Your own site
<a href="https://agentmods.dev/skills/fengkx/beancount-lsp/vscode-config"><img src="https://agentmods.dev/badge/skills/fengkx/beancount-lsp/vscode-config/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vscode-lsp-configuration

Your own site · 80×15
<a href="https://agentmods.dev/skills/fengkx/beancount-lsp/vscode-config"><img src="https://agentmods.dev/badge/skills/fengkx/beancount-lsp/vscode-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,087 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01087
Opus 5 $0.00019 $0.00544
Sonnet 5 $0.00008 $0.00217
Haiku 4.5 $0.00004 $0.00109

Measured 8d ago against content hash fde5e66571dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

vscode-lsp-configuration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/skills/vscode-config/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

VS Code LSP Configuration Skill

Goal

Correctly resolve VS Code settings for an LSP server, including:

  • User vs Workspace vs Workspace Folder overrides
  • Multi-root workspaces
  • Language overrides ("[lang]")
  • Cache + invalidation via onDidChangeConfiguration

Quick SOP (Minimal Correct Implementation)

  1. In extension package.json, set appropriate setting scope:

    • Prefer resource (or language-overridable) for most LSP behavior settings.
  2. In LSP server, always read settings with scopeUri = document.uri:

    • Never rely on getConfiguration() without scopeUri if you expect folder-level settings.
  3. Cache per-resource config:

    • Cache key = document.uri (not workspace root).
  4. Handle config changes:

    • onDidChangeConfiguration: clear cache and revalidate all open docs.

Configuration Scope (Extension package.json)

What scope controls

contributes.configuration.properties[*].scope declares where a setting is allowed to vary and how VS Code should resolve it.

Common scope values

  • resource

    • Setting can vary by resource URI (file) and therefore by workspace folder in multi-root.
    • Recommended for diagnostics, lint rules, formatter settings, analysis toggles.
  • language-overridable

    • Allows language-specific overrides like:
      "[beancount]": { "yourExtension.enable": true }
      
    • Still benefits from reading with scopeUri.
  • window

    • Window-level only. Does not vary by file/folder.
    • Use for UI/window toggles only.

Note: machine / machine-overridable exist for Remote/machine-specific settings. Most LSPs don’t need them.


Reading Settings in the LSP Server

getConfiguration parameters

Typical Node server call:

connection.workspace.getConfiguration({ scopeUri, section })
  • scopeUri (string URI)

    • The resource used to resolve configuration (e.g., document.uri).
    • Required for correct behavior in:

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 162 lines · 39 tokens per session scan A fde5e66571dd

Subscribe to this mod's changes

vscode-lsp-configuration is a skill published in the GitHub repository fengkx/beancount-lsp (48 stars, last pushed 5d ago), licensed MIT. It adds 39 tokens to every session and 1,087 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

icon-jetbrains

Create or review IntelliJ New UI SVG icons, theme variants, sizes, and palette.

Kilo-Org/kilocode · 23 tokens

release-jetbrains

Use when releasing the Kilo JetBrains plugin -- resolve a version ("next rc" or explicit), run the prepare workflow, edit and commit a filtered human-readable changelog on the release PR, then watch publish to completion.

Kilo-Org/kilocode · 50 tokens

chart

Use when the user asks to visualize data with charts, graphs, or plots using the chart tool (bar, line, scatter, pie, time series, etc.).

Kilo-Org/kilocode · 37 tokens

gh-issues

Use when creating, triaging, or commenting on GitHub issues for the Kilo VS Code extension or JetBrains plugin via gh. Covers issue templates, project board assignment, title conventions, and required gh scopes.

Kilo-Org/kilocode · 50 tokens

lore

SpecStory Lore - mine your SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more) into a persistent corpus, surface your reproducible workflows with corroborated evidence, and interactively forge the chosen ones into skills installed across all your agent harnesses. Use when the user…

specstoryai/getspecstory · 109 tokens

sweetpad

Build, run, and test Xcode and Swift Package apps from the terminal with the sweetpad CLI ("xcodebuild for humans"). Use when the user wants to compile an iOS/macOS/Swift app, run it on a simulator or device, read build errors, run tests, or inspect resolved build settings from the command line — with agent-safe…

sweetpad-dev/sweetpad · 90 tokens