Agent Native

typescript-lsp

This skill provides TypeScript Language Server Protocol integration to search and explore TypeScript/JavaScript codebases by symbols, types, and references.

by You.comOfficial publisherNot reviewed

Identity proven by GitHub's verified organisation badge (youdotcom-oss)

Agents
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
License
ISC (permissive)
Pin
84b6aa3pinned Oct 9, 2026
Context cost
about 1,600 tokenswhen the skill loads
GitHub stars
5on youdotcom-oss/web-search-agent-evals
Scripts
None found

What it does

“Search TypeScript SYMBOLS (functions, types, classes) - NOT text. Use Glob to find files, Grep for text search, LSP for symbol search. Provides type-aware results that understand imports, exports, and relationships.”
The author's description, from SKILL.md

Generated summary from the skill's own text

This skill provides TypeScript Language Server Protocol integration to search and explore TypeScript/JavaScript codebases by symbols, types, and references. It offers type-aware symbol search, reference finding, and type information retrieval through tools like lsp-find, lsp-refs, and lsp-hover, which understand imports, exports, and code relationships better than text-based search.

When to use it

  • Finding all usages of functions, types, or classes across a codebase
  • Understanding file structure, exports, and dependencies before editing code
  • Verifying type signatures and documentation before writing new code
  • Exploring unfamiliar TypeScript codebases to understand module organization

When not to

  • Searching for text content in comments or strings, use Grep instead
  • Finding files by name pattern, use Glob instead
  • Analyzing non-TypeScript files like JSON or Markdown

Install

These commands install from the publisher's repository and need no account.

skills CLI

npx skills add youdotcom-oss/web-search-agent-evals --skill typescript-lsp

Installs from the repository's default branch, which may have changed since the commit we checked.

GitHub CLI 2.90 or later

gh skill install youdotcom-oss/web-search-agent-evals typescript-lsp@84b6aa3ec2c27d889a70e3bc1ad04c86cf0e3617

Installs the commit we checked (84b6aa3).

Copy by hand

Download the folder at 84b6aa3 and put it in .claude/skills/typescript-lsp for Claude Code and in .agents/skills/typescript-lsp for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.

Skill folder on GitHub at 84b6aa3

Claude Code plugin

/plugin install youdotcom-agent-skills@claude-plugins-official

The publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.

Copy for your agent

A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.

Prompt

Install the agent skill "typescript-lsp" by You.com.

Source, pinned to commit 84b6aa3ec2c27d889a70e3bc1ad04c86cf0e3617:
https://github.com/youdotcom-oss/web-search-agent-evals/tree/84b6aa3ec2c27d889a70e3bc1ad04c86cf0e3617/.agents/skills/typescript-lsp

1. Download that folder at exactly this commit. Do not use the default branch.
2. Copy every file unchanged, keeping the folder structure, into .claude/skills/typescript-lsp/ for Claude Code and .agents/skills/typescript-lsp/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist.
3. Do not edit the files, and do not run any script in the folder unless I ask you to.
4. When you are done, list the files you copied and where you put them.

Listing and checks: https://www.agentnative.dev/skills/you-com/typescript-lsp

SKILL.md at the pin

---
name: typescript-lsp
description: Search TypeScript SYMBOLS (functions, types, classes) - NOT text. Use Glob to find files, Grep for text search, LSP for symbol search. Provides type-aware results that understand imports, exports, and relationships.
license: ISC
compatibility: Requires bun
allowed-tools: Bash
metadata:
  file-triggers: "*.ts,*.tsx,*.js,*.jsx"
---

# TypeScript LSP Skill

## Purpose

This skill provides TypeScript Language Server Protocol integration for **exploring and understanding** TypeScript/JavaScript codebases. 

**IMPORTANT**: Prefer LSP tools over Grep/Glob when working with `*.ts`, `*.tsx`, `*.js`, `*.jsx` files. LSP provides type-aware results that understand imports, exports, and symbol relationships.

Use these tools to:
- **Explore codebases** - Find symbols, understand module structure, discover implementations
- **Find references** - Type-aware search across the entire codebase (better than grep for symbols)
- **Understand types** - Get full type signatures, generics, and documentation
- **Verify before editing** - Check all usages before modifying or deleting exports
- **Navigate code** - Jump to definitions, find implementations

## When to Use Each Tool

| Tool | Purpose |
|------|---------|
| **Glob** | Find files by pattern |
| **Grep** | Search text content |
| **lsp-find** | Search TypeScript symbols |
| **lsp-hover** | Get type info + TSDoc documentation |
| **lsp-refs** | Find all references to a symbol |
| **lsp-analyze** | Batch analysis of file structure |

### LSP vs Grep/Glob

| Task | Use LSP | Use Grep/Glob |
|------|---------|---------------|
| Find all usages of a function/type | ✅ `lsp-refs` | ❌ Misses re-exports, aliases |
| Search for a symbol by name | ✅ `lsp-find` | ❌ Matches strings, comments |
| Get type signature + TSDoc | ✅ `lsp-hover` | ❌ Not possible |
| Understand file exports | ✅ `lsp-analyze --exports` | ❌ Doesn't resolve re-exports |
| Find files by pattern | ❌ | ✅ `Glob` |
| Search non-TS files (md, json) | ❌ | ✅ `Grep` |
| Search for text in comments/strings | ❌ | ✅ `Grep` |

## When to Use

**Exploring code (prefer LSP):**
- Run `lsp-find` to search for symbols across the workspace
- Run `lsp-symbols` to get an overview of file structure
- Run `lsp-analyze --exports` to see what a module provides

**Before editing code:**
- Run `lsp-references` to find all usages of a symbol you plan to modify
- Run `lsp-hover` to verify current type signatures

**Before writing code:**
- Run `lsp-find` to search for similar patterns or related symbols
- Run `lsp-hover` on APIs you plan to use

## Path Resolution

All scripts accept three types of file paths:
- **Absolute paths**: `/Users/name/project/src/file.ts`
- **Relative paths**: `./src/file.ts` or `../other/file.ts`
- **Package export paths**: `my-package/src/module.ts` (resolved via `Bun.resolve()`)

Package export paths are recommended for portability and consistency with the package's exports field.

## Scripts

### Individual Scripts

#### lsp-hover
Get type information at a specific position.

```bash
bunx @plaited/development-skills lsp-hover <file> <line> <char>
```

**Arguments:**
- `file`: Path to TypeScript/JavaScript file
- `line`: Line number (0-indexed)
- `char`: Character position (0-indexed)

**Example:**
```bash
bunx @plaited/development-skills lsp-hover src/utils/parser.ts 42 10
```

#### lsp-symbols
List all symbols in a file.

```bash
bunx @plaited/development-skills lsp-symbols <file>
```

**Example:**
```bash
bunx @plaited/development-skills lsp-symbols src/utils/parser.ts
```

#### lsp-references
Find all references to a symbol.

```bash
bunx @plaited/development-skills lsp-refs <file> <line> <char>
```

**Example:**
```bash
bunx @plaited/development-skills lsp-refs src/utils/parser.ts 42 10
```

#### lsp-find
Search for symbols across the workspace.

```bash
bunx @plaited/development-skills lsp-find <query> [context-file]
```

**Arguments:**
- `query`: Symbol name or partial name
- `context-file`: Optional file to open for project context

**Example:**
```bash
bunx @plaited/development-skills lsp-find parseConfig
bunx @plaited/development-skills lsp-find validateInput src/lib/validator.ts
```

### Batch Script

#### lsp-analyze
Perform multiple analyses in a single session for efficiency.

```bash
bunx @plaited/development-skills lsp-analyze <file> [options]
```

**Options:**
- `--symbols, -s`: List all symbols
- `--exports, -e`: List only exported symbols
- `--hover <line:char>`: Get type info (repeatable)
- `--refs <line:char>`: Find references (repeatable)
- `--all`: Run symbols + exports analysis

**Examples:**
```bash
# Get file overview
bunx @plaited/development-skills lsp-analyze src/utils/parser.ts --all

# Check multiple positions
bunx @plaited/development-skills lsp-analyze src/utils/parser.ts --hover 50:10 --hover 75:5

# Before refactoring: find all references
bunx @plaited/development-skills lsp-analyze src/utils/parser.ts --refs 42:10
```

## Common Workflows

### Understanding a File

```bash
# 1. Get exports overview
bunx @plaited/development-skills lsp-analyze path/to/file.ts --exports

# 2. For specific type info, hover on interesting symbols
bunx @plaited/development-skills lsp-hover path/to/file.ts <line> <char>
```

### Before Modifying an Export

```bash
# 1. Find all references first
bunx @plaited/development-skills lsp-refs path/to/file.ts <line> <char>

# 2. Check what depends on it
# Review the output to understand impact
```

### Finding Patterns

```bash
# Search for similar implementations
bunx @plaited/development-skills lsp-find handleRequest
bunx @plaited/development-skills lsp-find parseConfig
```

### Pre-Implementation Verification

```bash
# Before writing code that uses an API, verify its signature
bunx @plaited/development-skills lsp-hover path/to/api.ts <line> <char>
```

## Output Format

All scripts output JSON to stdout. Errors go to stderr.

**Hover output:**
```json
{
  "contents": {
    "kind": "markdown",
    "value": "```typescript\nconst parseConfig: (options: Options) => Config\n```"
  },
  "range": { "start": {...}, "end": {...} }
}
```

**Symbols output:**
```json
[
  {
    "name": "symbolName",
    "kind": 13,
    "range": { "start": {...}, "end": {...} }
  }
]
```

**Analyze output:**
```json
{
  "file": "path/to/file.ts",
  "exports": [
    { "name": "exportName", "kind": "Constant", "line": 139 }
  ]
}
```

## Performance

Each script invocation:
1. Starts TypeScript Language Server (~300-500ms)
2. Initializes LSP connection
3. Opens document
4. Performs query
5. Closes and stops

For multiple queries on the same file, use `lsp-analyze` to batch operations in a single session.

## Related Skills

- **code-documentation**: TSDoc standards for documentation

From youdotcom-oss/web-search-agent-evals at 84b6aa3, shown as plain text under its license: ISC (permissive). The license text is in .agents/skills/typescript-lsp/SKILL.md.

View SKILL.md on GitHub at 84b6aa3

Files

1 file, 6.8 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.

Skill folder on GitHub at 84b6aa3
All 19 skills from You.com

More from You.com

  • grill-me

    This skill conducts an intensive interview on a user's plan or design, asking probing questions one at a time to expose gaps and dependencies.

    Claude Code, Codex, Cursor +4 · about 92 tokens · pinned 6 days ago

  • karpathy-guidelines

    This skill provides behavioral guidelines to reduce common LLM coding mistakes when writing, reviewing, or refactoring code.

    Claude Code, Codex, Cursor +4 · about 560 tokens · pinned 6 days ago

  • tdd

    This skill guides the agent to write tests first, then implement code in red-green-refactor cycles.

    Claude Code, Codex, Cursor +4 · about 670 tokens · pinned 6 days ago

  • you-discover

    This skill helps agents plan how to integrate You.com's web search, content extraction, and research APIs by discovering the right integration path for their…

    Claude Code, Codex, Cursor +4 · about 1.2K tokens · pinned 6 days ago

  • you-finance

    This skill answers finance and market-data questions using the You.com finance MCP tool, providing stock prices, company financials, earnings reports, and…

    Claude Code, Codex, Cursor +4 · about 590 tokens · pinned 6 days ago

  • you-research

    This skill routes research requests between You.com's one-shot managed research tool and an agent-led search pipeline, depending on whether the user needs a…

    Claude Code, Codex, Cursor +4 · about 610 tokens · pinned 6 days ago

All Coding workflow skills
  • no-bare-casts

    This skill enforces a decision tree for TypeScript casts, requiring developers to eliminate bare `as` casts through type refinement, runtime checks, or using…

    by PrismaOfficial publisher

    Claude Code, Codex, Cursor +4 · about 650 tokens · pinned 6 days ago

  • coding-workspace-fixture

    This skill lets the agent evaluate and modify a small TypeScript project located in the coding-workspace-fixture directory.

    by SentryOfficial publisher

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 56 tokens · pinned 6 days ago

  • datadog-app

    This skill guides developers building Datadog Apps with TypeScript, React, and the scaffolder toolchain.

    by DatadogOfficial publisher

    Claude Code, Codex, Cursor +4 · about 610 tokens · pinned 6 days ago

  • ban-type-assertions

    This skill enables the TypeScript ESLint rule that bans `as` type assertions in a package, replacing them with compiler-verified alternatives like Zod…

    by FactoryOfficial publisher

    Claude Code, Codex, Cursor +4 · about 1.6K tokens · pinned 6 days ago

  • practice-registry

    This skill checks Scala, Python, TypeScript, JavaScript, and Rust code against company-specific coding practices before generation, during editing, and before…

    by WriterOfficial publisher

    Claude Code, Codex, Cursor +4 · about 410 tokens · pinned 6 days ago

  • appscript

    This skill enables agents to develop, edit, push, and deploy Google Apps Script projects using the clasp CLI from the terminal.

    by SMKeramatiCommunity

    Claude Code, Codex, Cursor +4 · about 3.3K tokens · pinned 6 days ago

Open roles at You.com

No open roles at You.com on the Agent Native jobs board right now.

Browse the jobs board

The skills listed here are third-party software, collected from public GitHub repositories as a catalog of recent skills and provided as is. Agent Native does not write or control them and is not responsible for any harm, loss or damage caused by installing or using them. Labels and checks describe what we saw at one commit and are not a guarantee. Read a skill's files before you run it. Terms of use