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 (1,597 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 1,597 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.01597
Opus 5.5 $0.00012 $0.00639
Sonnet 5.5 $0.00006 $0.00319
Haiku 4.5 $0.00003 $0.00160

Measured today against content hash 19bdc88096e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 today.

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 · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 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 · 74 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. today Changed 19bdc88096e4
  2. 8d ago Changed · +5 lines d6f89162df68
  3. 24d ago Changed · +2 lines d6a0deaf21b7
  4. 1mo ago Changed · +6 lines 9568817d4f1f
  5. 2mo 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 (27 stars, last pushed today), licensed BSD-3-Clause. It adds 30 tokens to every session and 1,597 once invoked, about $0.0001 per session on Opus 5.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

omh-rust

This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 74 tokens

erlang-otp-behaviors

Use when oTP behaviors including genserver for stateful processes, genstatem for state machines, supervisors for fault tolerance, genevent for event handling, and building robust, production-ready Erlang applications with proven patterns.

benchflow-ai/skillsbench · 52 tokens

axiom-concurrency

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

CharlesWiltgen/Axiom · 49 tokens

haskell-pro

Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.

rmyndharis/antigravity-skills · 41 tokens

splitting-oversized-modules

Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…

PostHog/posthog · 197 tokens

migrate-better-result-3

Migrate a TypeScript codebase from better-result 2.x to 3.0. Use when upgrading better-result across the TaggedError syntax, removed Result serialization helpers, recovery inference, matching, or retry APIs.

dmmulroy/better-result · 52 tokens