Claude-skill-registry ide-diagnostics
Fix TypeScript errors, get diagnostics, rename symbols, find references, organize imports. Use when user needs IDE/LSP tools for code navigation, diagnostics, and refactoring.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/ide-diagnostics" ~/.claude/skills/majiayu000-claude-skill-registry-ide-diagnostics && rm -rf "$T"
skills/data/ide-diagnostics/SKILL.mdIDE Diagnostics and Navigation Expert
Master IDE integration tools for diagnostics, code navigation, and automated fixes.
Available IDE Tools
Get Diagnostics (mcp__ide__getDiagnostics
)
mcp__ide__getDiagnosticsRetrieve errors, warnings, and info messages from the IDE's language server.
When to use: Before fixing errors, checking linting, validating changes
Find References (mcp__ide__get_references
)
mcp__ide__get_referencesFind all usages of a symbol (variable, function, class, etc.)
When to use: Before renaming, understanding impact, finding callers
Rename Symbol (mcp__ide__rename_symbol
)
mcp__ide__rename_symbolSafely rename across the entire codebase.
ALWAYS use this instead of manual find-replace - handles scope correctly.
Execute IDE Command (mcp__ide__execute_command
)
mcp__ide__execute_commandExecute IDE commands like auto-fix, organize imports, format document.
Common commands:
- Auto-fix all issueseditor.action.fixAll
- Remove/sort importseditor.action.organizeImports
- Format documenteditor.action.formatDocument
Best Practices
DO:
- Use
instead ofmcp__ide__getDiagnosticstsc --noEmit - Use
instead of manual find-replacemcp__ide__rename_symbol - Use
instead ofeditor.action.fixAll
oreslint --fixbiome check --fix - Check diagnostics before committing changes
- Fix errors before warnings
- Read file context before fixing (use Read tool)
DON'T:
- Run
via Bash when you havetsc --noEmitgetDiagnostics - Use Edit tool for renaming (use
)rename_symbol - Ignore warnings - they often indicate real issues
- Fix diagnostics without understanding the context
Additional Resources
- For diagnostic error codes and patterns, see diagnostics.md
- For complete fix workflows, see workflows.md
Troubleshooting
No Diagnostics Returned
Possible causes:
- IDE not running or not connected
- File not opened in IDE
- Language server not initialized
Diagnostics Not Updating
After fixes, diagnostics may take a moment to refresh. If needed:
- Use
editor.action.fixAll - Save the file
- Re-run
getDiagnostics
References
- VS Code Commands: Use
for interactive IDE features/ide - TypeScript Error Codes: https://typescript.tv/errors/
- ESLint Rules: https://eslint.org/docs/rules/
- Biome Linter: https://biomejs.dev/linter/