From development-skills
Analyze a TypeScript file structure, exports, and symbols
How this command is triggered — by the user, by Claude, or both
Slash command
/development-skills:lsp-analyzecommands/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# LSP Analyze Batch analysis of a TypeScript/JavaScript file. Get an overview of exports, symbols, and optionally type info at specific positions. **Arguments:** $ARGUMENTS ## Usage Options: - `--symbols` or `-s`: List all symbols - `--exports` or `-e`: List only exported symbols (default if no options) - `--hover <line:char>`: Get type info at position (repeatable) - `--refs <line:char>`: Find references at position (repeatable) - `--all`: Run symbols + exports analysis ## Instructions ### Step 1: Parse Arguments Extract file path and options from `$ARGUMENTS`. If file is missing...
Batch analysis of a TypeScript/JavaScript file. Get an overview of exports, symbols, and optionally type info at specific positions.
Arguments: $ARGUMENTS
/lsp-analyze <file> [options]
Options:
--symbols or -s: List all symbols--exports or -e: List only exported symbols (default if no options)--hover <line:char>: Get type info at position (repeatable)--refs <line:char>: Find references at position (repeatable)--all: Run symbols + exports analysisExtract file path and options from $ARGUMENTS.
If file is missing, show usage:
Usage: /lsp-analyze <file> [options]
Examples:
/lsp-analyze src/utils/parser.ts --exports
/lsp-analyze src/lib/config.ts --all
/lsp-analyze src/index.ts --hover 50:10 --refs 60:5
Default to --exports if no options provided.
Find the typescript-lsp skill directory. Use Glob to locate it:
**/typescript-lsp/SKILL.md
The skill directory is the parent of SKILL.md.
From the skill directory, run:
bun <skill-dir>/scripts/lsp-analyze.ts <file> [options]
Parse the JSON output and present in a structured format:
File: <file>
Exports:
| Name | Kind | Line |
|---|---|---|
| ... | ... | ... |
Symbols: (if requested)
| Name | Kind | Line |
|---|---|---|
| ... | ... | ... |
For hover/refs results, format as described in the individual commands.
npx claudepluginhub plaited/development-skills --plugin development-skills/reviewPerforms a systematic code review using LSP tools, analyzing structure, dependencies, type safety, usage, quality, and consistency, then produces an actionable report with metrics and prioritized issues.
/r-util-code-mapGenerates a structural map of a source file showing classes, functions, and methods with line ranges, reducing context cost for large files. Accepts optional symbol name to locate a single definition.
/outlineShows a source file's structure by listing function/class/method signatures with line numbers and docstrings, omitting bodies for a cheaper overview. Helps decide which parts to read.
/check-fileAnalyzes a file for code quality issues, security vulnerabilities, and performance bottlenecks. Provides actionable recommendations for improvement.