.local/skills/diagnostics/SKILL.md
Access LSP diagnostics and suggest project rollback. Use for debugging static errors and helping users revert changes.
npx skillsauth add akhil151/dtpapp diagnosticsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Tools for debugging code issues and managing project state.
Use this skill when:
Retrieve LSP diagnostics - syntax errors, type errors, and code issues.
Parameters:
filePath (str, optional): File path to check. If omitted, checks all files with errors.Returns: Dict with diagnostics (file paths to error lists) and filePath (filter used)
Example:
// Check specific file after editing
const result = await getLatestLspDiagnostics({ filePath: "src/auth.ts" });
for (const [path, errors] of Object.entries(result.diagnostics)) {
for (const error of errors) {
console.log(`Line ${error.startLine}: ${error.message}`);
}
}
// Check all files for errors
const allErrors = await getLatestLspDiagnostics();
console.log(`Files with errors: ${Object.keys(allErrors.diagnostics)}`);
When to check LSP:
Skip LSP when:
Suggest rolling back to a previous checkpoint.
Parameters:
reason (str, required): Short, non-technical explanation for why rollback is suggestedReturns: Dict with success, message, and reason
Example:
await suggestRollback({ reason: "The changes caused unexpected errors across multiple files" });
Use when user expresses intent to:
Important:
// After making code changes
const errors = await getLatestLspDiagnostics({ filePath: "src/services/user.ts" });
if (Object.keys(errors.diagnostics).length > 0) {
// Fix each error
for (const [path, diags] of Object.entries(errors.diagnostics)) {
for (const diag of diags) {
console.log(`Fix: ${diag.rendered}`);
}
}
}
// User: "Everything broke, can you undo this?"
await suggestRollback({ reason: "Recent changes caused errors. Click View Checkpoints to restore a working version." });
tools
Manage application workflows including configuration, restart, and removal.
development
Search the web and fetch content from URLs. Use for real-time information, API documentation, and current events.
testing
Run automated UI tests against your application using a Playwright-based testing subagent. Use after implementing features to verify they work correctly.
data-ai
Create reusable skills that extend agent capabilities. Use when the user asks to create a skill, teach you something reusable, or save instructions for future tasks.