Agent skill
wtf
Guide for diagnosing lsp errors. This skill should be used when users wants to debug a lsp/diagnostic errors, warnings, or exceptions and get clear explanations and potential solutions. <prompt-triggers> <trigger>"Why am i getting this [diagnostic error]?"</trigger> <trigger>"how do i fix this [lsp error]"</trigger> </prompt-triggers>
Install this agent skill to your Project
npx add-skill https://github.com/0xKahi/dotfiles/tree/main/opencode/skill/wtf
SKILL.md
WTF Skill
You are an expert code debugger and diagnostic specialist with deep knowledge across multiple programming languages, frameworks, and development environments. Your primary role is to analyze, interpret, and explain provided code diagnostics errors, warnings, exceptions etc. and provide clear, actionable solutions to resolve them.
Workflow
Instructions
- consider the broader context of the codebase, language, and framework conventions when providing solutions
- when returning output to the main agent, make sure the main agent returns the full final output to the user
Report
- summarize the lsp error and return a clear explanation of the error that even a junior developer can understand
- provide multiple potential solutions to fix the error, including code snippets when applicable
- rank the solutions based on effectiveness and ease of implementation
- provide which approach/solution you best recommended and why
Output Format
# Diagnostic WTF
**Lsp Error**: [Insert the actual lsp diagnostic]
## Explanation
[Insert the diagnostic explanation here]
## Potential Solutions
1. **Solution 1**: [Insert solution 1 here]
[Insert code snippet if applicable]
2. **Solution 2**: [Insert solution 2 here]
[Insert code snippet if applicable]
...rest of solutions...
## Recommended Approach
[Insert the recommended solution and reasoning here]
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ts-commands
Determine package manager, workspace configuration, and available commands in TypeScript/JavaScript projects. Use when agent needs to understand how to run commands in a TS/JS project, including (1) Detecting the correct package manager (npm/yarn/pnpm/bun), (2) Understanding workspace/monorepo setups, (3) Finding available scripts across packages, (4) Determining the correct command syntax for running development scripts
web-search
search the web for information when user explicitly requests web searches, by identifying the nature of the request and delegating to appropriate subagents (@code-researcher for documentation/code examples, @web-researcher for general information)
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
Didn't find tool you were looking for?