diagnostics

Detect LSP-reported syntax, type, and import errors across project files.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Celia-12/Proyecto-Mern --skill diagnostics-celia-12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnostics
Source: https://github.com/Celia-12/Proyecto-Mern/tree/main/frontend/.local/skills/diagnostics
Command: npx skills add https://github.com/Celia-12/Proyecto-Mern --skill diagnostics-celia-12

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps developers quickly find static code problems reported by the language server and guide users to safely revert changes when those problems are widespread or blocking progress.

Core Features & Use Cases

  • LSP Diagnostics Retrieval: Collects syntax, type, and import errors across files or for a specific file after edits to speed up debugging.
  • Rollback Suggestion: Generates a concise, user-facing rollback suggestion and prompts a checkpoint-based rollback flow without performing the rollback automatically.
  • Use Case: After a large refactor or dependency upgrade that causes many static errors, run diagnostics to list failures by file, fix targeted issues, or suggest reverting to a known good checkpoint.

Quick Start

Run a full LSP diagnostics scan for the changed files and, if widespread static errors are detected, suggest rolling back with a concise reason.

Frequently Asked Questions about diagnostics

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

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

To retrieve LSP diagnostics, run a full scan across changed project files. The scan collects syntax, type, and import errors, returning a file-scoped diagnostic list to speed up debugging and validate post-change code quality.

What is the best way to suggest a safe rollback when static analysis reports widespread code errors?

The best way to suggest a rollback is generating a concise, user-facing reason for the failure and prompting a checkpoint-based rollback UI action. This ensures safe reversion to a known good state without automatically applying the rollback.

Can I check for type errors in a specific file instead of scanning the whole project?

Yes, you can check for type errors in a specific file. The diagnostics tool collects LSP-reported syntax, type, and import errors for individual files after edits, helping you validate targeted changes quickly.

When do I need a checkpoint-based rollback flow for build failures?

You need a checkpoint-based rollback flow when a large refactor or dependency upgrade causes widespread static errors. It guides you to safely revert changes to a known good checkpoint when progress is completely blocked.

Does the rollback suggestion execute automatically when LSP diagnostics detect blocking errors?

No, the rollback suggestion does not execute automatically. It generates a concise user-facing reason and prompts a checkpoint-based rollback UI action, requiring manual confirmation to safely revert the changes.

Why are my post-change validation checks failing after a dependency upgrade?

Post-change validation checks fail because the dependency upgrade introduced syntax, type, or import errors. Run LSP diagnostics to list these static analysis failures by file, then fix targeted issues or suggest reverting.