diagnostics

Retrieve LSP diagnostics for syntax, type, and import errors.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/akhilksap2026/YMSNOW27032026 --skill diagnostics-akhilksap2026
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnostics
Source: https://github.com/akhilksap2026/YMSNOW27032026/tree/main/replit/.local/skills/diagnostics
Command: npx skills add https://github.com/akhilksap2026/YMSNOW27032026 --skill diagnostics-akhilksap2026

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Access LSP diagnostics and suggest project rollback. Use for debugging static errors and helping users revert changes.

Core Features & Use Cases

  • Get Latest Diagnostics: Retrieve current LSP diagnostics across files to surface syntax, type, or import issues.
  • Rollback Guidance: Propose safe rollback paths and checkpoints to revert problematic changes.
  • Focused Diagnostics: Optionally check a specific file with filePath to narrow results and speed debugging.

Quick Start

Run getLatestLspDiagnostics after substantial changes to identify errors and prepare a rollback if needed.

Frequently Asked Questions about diagnostics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check LSP diagnostics for TypeScript syntax and import errors after a refactor?

To retrieve LSP diagnostics, run the diagnostic command to surface syntax, type, and import errors across your project files after a refactor. You can optionally apply filePath filtering to narrow results to a specific file and accelerate debugging.

What is the best way to get safe rollback guidance for problematic code changes?

The best way to get rollback guidance is to use a diagnostic tool that proposes safe rollback paths and checkpoints. After identifying static errors, it provides targeted suggestions to help you revert problematic changes introduced by new dependencies or refactors.

How do I retrieve diagnostics for a specific file to speed up debugging?

To retrieve diagnostics for a specific file, apply the filePath filtering option when pulling LSP diagnostics. This narrows the code analysis results to the targeted file, allowing you to quickly pinpoint exact syntax or type errors without scanning the entire project.

Can I use LSP diagnostics to debug static errors introduced by new dependencies?

Yes, you can use LSP diagnostics to debug static errors introduced by new dependencies. The tool surfaces syntax, type, and import issues across your project, allowing you to pinpoint the exact errors and prepare a targeted rollback if the dependency cannot be remediated.

Does this code analysis approach require a language server integration?

Yes, retrieving LSP diagnostics requires language server integration to identify and surface syntax, type, and import errors. The tool relies on the language server to analyze the codebase and return structured diagnostics after changes like refactors or adding dependencies.

When should I use a rollback suggestion instead of directly fixing code issues?

You should use a rollback suggestion when targeted remediation is too complex or risky, such as after a failed major refactor. The tool provides optional rollback suggestions to revert problematic changes to a safe checkpoint when fixing the surfaced static errors directly is not feasible.