lsp-cross-repo

lsp-cross-repo is a skill for Claude Code from blackwell-systems/agent-lsp. It costs 41 tokens per session (1,131 once invoked), scanned A, original, MIT.

A code-analysis tool that finds every use of a library function or symbol across the library and the separate projects that depend on it.

In plain words
What is it for?
It helps audit library users, locate callers across repositories, and assess the effects of refactoring or deleting a shared symbol.
Why use it?
It shows what could break before a shared API is changed or removed, including dependencies outside the current repository.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps audit library users, locate callers across repositories, and assess the effects of refactoring or deleting a shared symbol.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/blackwell-systems/agent-lsp/lsp-cross-repo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add blackwell-systems/agent-lsp --skill lsp-cross-repo
Clone the repo
git clone --depth 1 https://github.com/blackwell-systems/agent-lsp

Made for: Claude Code.

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 lsp-cross-repo

README.md
[![agentmods](https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-cross-repo/github.svg)](https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-cross-repo)
Your own site
<a href="https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-cross-repo"><img src="https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-cross-repo/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 lsp-cross-repo

Your own site · 80×15
<a href="https://agentmods.dev/skills/blackwell-systems/agent-lsp/lsp-cross-repo"><img src="https://agentmods.dev/badge/skills/blackwell-systems/agent-lsp/lsp-cross-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,131 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.00041 $0.01131
Opus 5.5 $0.00016 $0.00452
Sonnet 5.5 $0.00008 $0.00226
Haiku 4.5 $0.00004 $0.00113

Measured yesterday against content hash bcd14fc1d044, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lsp-cross-repo 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 yesterday.

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.

skills/lsp-cross-repo/SKILL.md · 146 lines

How it starts

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

Requires the agent-lsp MCP server.

lsp-cross-repo

Multi-root cross-repo caller analysis for library + consumer workflows. Finds all usages of a library symbol across one or more consumer codebases in a single call.

Read-only — does not modify any files.

When to use

  • Before changing a library API: find all callers in every consumer
  • Before deleting a symbol: verify it has no cross-repo dependents
  • When a change in repo A might break repo B or C
  • Auditing how internal packages are used across services

Use /lsp-impact instead for single-repo blast-radius analysis.

Workflow

Step 1 — Initialize the primary workspace

Start the language server on the library root if not already running:

mcp__agent-lsp__start_lsp({ "root_dir": "/path/to/library" })

Step 2 — Locate the library symbol

Find the symbol's definition to get file_path, line, and column:

mcp__agent-lsp__find_symbol({ "query": "<symbol-name>" })

Pick the result in the library repo (not a test file).

Step 3 — Find all cross-repo references (primary step)

Call get_cross_repo_references with the symbol location and all consumer repo roots. This adds each consumer as a workspace folder, waits for indexing, runs find_references across all roots, and returns results partitioned by repo:

mcp__agent-lsp__get_cross_repo_references({
  "symbol_file": "/abs/path/to/library/file.go",
  "line": <line>,
  "column": <column>,
  "consumer_roots": [
    "/abs/path/to/consumer-a",
    "/abs/path/to/consumer-b"
  ]
})

Returns:

  • library_references — usages within the library itself
  • consumer_references — a map of consumer-root → [file:line ...]
  • warnings — any roots that could not be indexed (check these manually)

Decision after Step 3:

Result Action
No consumer refs Safe to change — verify warnings is empty first
Consumer refs found Run /lsp-impact on each call site before editing
warnings non-empty Re-add that root manually and retry Step 3

Read the full file on GitHub · 146 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. yesterday Changed bcd14fc1d044
  2. 2mo ago First seen · 146 lines · 41 tokens per session scan A fec06c4acc1f

Subscribe to this mod's changes

lsp-cross-repo is a skill published in the GitHub repository blackwell-systems/agent-lsp (172 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 1,131 once invoked, about $0.0002 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

lsp-cross-repo compared with skills from other repositories

lsp-cross-repo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lsp-cross-repoblackwell-systems/agent-lspSkill172yesterdayMITA41Claude Code
pi-loop-forensicsdimetron/pi-goSkill2223d agoMITA65Claude Code, Codex
nightly-session-watchdimetron/pi-goSkill2223d agoMITA78Claude Code, Codex
kessoku-dimazrean/kessokuSkill1433d agoMITA52Claude Code, Codex
authoring-smell-rulesagentic-research/macheSkill46yesterdayApache-2.0A102Claude Code
functions-developmentCrowdStrike/foundry-skillsSkill36yesterdayMITA195Claude Code
go-performanceDankosik/go-service-template-restSkill8yesterdayMITA29Claude Code, Codex