dart-intellij-third-party: Skill for Claude Code

.agents/skills/patch-copied-lsp-sources/SKILL.md

patch-copied-lsp-sources is a skill for Claude Code, Codex from flutter/dart-intellij-third-party. It costs 30 tokens per session (956 once invoked), scanned A, original, BSD-3-Clause.

A script and procedure for copying language-server sources from JetBrains IntelliJ IDEA into a Dart plugin and adjusting their package names and configuration. A language server provides editor features such as code analysis and navigation.

In plain words
What is it for?
Use it when refreshing the Dart plugin's copied LSP sources, checking the resulting changes, and compiling the plugin.
Why use it?
Copied sources can conflict with IntelliJ's built-in language-server client unless they are isolated and patched correctly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is flutter/dart-intellij-third-party's own configuration. It tells Claude Code and Codex how to work on dart-intellij-third-party 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 dart-intellij-third-party configures →

Reuse

Borrowing it

Nothing to install: this file belongs to flutter/dart-intellij-third-party. 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/flutter/dart-intellij-third-party/main/.agents/skills/patch-copied-lsp-sources/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/flutter/dart-intellij-third-party

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 patch-copied-lsp-sources

README.md
[![agentmods](https://agentmods.dev/badge/skills/flutter/dart-intellij-third-party/patch-copied-lsp-sources/github.svg)](https://agentmods.dev/skills/flutter/dart-intellij-third-party/patch-copied-lsp-sources)
Your own site
<a href="https://agentmods.dev/skills/flutter/dart-intellij-third-party/patch-copied-lsp-sources"><img src="https://agentmods.dev/badge/skills/flutter/dart-intellij-third-party/patch-copied-lsp-sources/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 patch-copied-lsp-sources

Your own site · 80×15
<a href="https://agentmods.dev/skills/flutter/dart-intellij-third-party/patch-copied-lsp-sources"><img src="https://agentmods.dev/badge/skills/flutter/dart-intellij-third-party/patch-copied-lsp-sources.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 956 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.00030 $0.00956
Opus 5 $0.00015 $0.00478
Sonnet 5 $0.00006 $0.00191
Haiku 4.5 $0.00003 $0.00096

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

Security

Grade A, and why

patch-copied-lsp-sources 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/patch.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/patch-copied-lsp-sources/SKILL.md · 61 lines

How it starts

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

Patch Copied LSP Sources

Use this skill whenever JetBrains LSP source files are copied or refreshed from the intellij-community repository into the dart-intellij-third-party plugin. The skill automates the file copying, packaging them under the isolated com.intellij.platform.dartlsp package namespace directly, and applies all necessary adjustments to prevent conflicts with the built-in LSP client of IntelliJ IDEA.

How to Refresh and Apply

To copy the sources from intellij-community and apply the adjustments automatically:

  1. Run the Python patch script located in the scripts directory from the repository root, passing the path to the local intellij-community repository as a positional argument:
    python3 .agents/skills/patch-copied-lsp-sources/scripts/patch.py /path/to/intellij-community
    
  2. Verify the changes using git diff.
  3. Verify that the project compiles:
    ./gradlew clean compileKotlin --no-build-cache
    

[!NOTE] If you only need to re-apply the patches to the existing files in the workspace (without copying fresh files from intellij-community), you can run the script without any arguments:

python3 .agents/skills/patch-copied-lsp-sources/scripts/patch.py

Record of Adjustments Applied

Here is the details of the changes made by the patch script:

  1. Direct Package Copy & Rename:

    • Copies files directly from platform/lsp/src/com/intellij/platform/lsp into third_party/thirdPartySrc/platform-lsp/src/com/intellij/platform/dartlsp.
    • Rename package namespace references from com.intellij.platform.lsp to com.intellij.platform.dartlsp across all .kt, .java, and .xml source files to avoid split-package classloader collisions and wrong-namespace imports.
  2. Registry Key & Timeout Key:

    • Rename key lsp.server.connect.timeout to dart.lsp.server.connect.timeout in dart-lsp-impl.xml and Lsp4jServerConnector.kt to avoid conflicting with IntelliJ IDEA's default LSP settings.

Read the full file on GitHub · 61 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 61 lines · 30 tokens per session scan A 25633e5fa92a

Subscribe to this mod's changes

patch-copied-lsp-sources is a skill published in the GitHub repository flutter/dart-intellij-third-party (25 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 30 tokens to every session and 956 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-08-30.

Related

Other skills, from other repositories

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

platform-detection

Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system. Use only for "which test platform/framework?", "VSTest or MTP?", or "what runner does this project use?", including bridge settings, UseVSTest opt-outs, and incompatible or conflicting VSTest/MTP configuration.…

dotnet/skills · 146 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

omh-rust

This is a Hermes-native rust workflow skill.

rlaope/oh-my-hermes · 69 tokens

axiom-concurrency

Use when writing ANY async code, actors, threads, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.

CharlesWiltgen/Axiom · 43 tokens