vektis-troubleshoot
vektis-troubleshoot diagnoses problems with the @vektis-io/tracker SDK. Give it an error code or describe the symptom, and it loads the SDK’s live error catalog at runtime and returns ranked hypotheses with concrete next steps.
# Code lookupclaude /vektis-troubleshoot VEK_TRK_INVALID_API_KEY
# Symptom lookupclaude /vektis-troubleshoot "events not arriving"The skill is read-only and non-mutating. It diagnoses; it doesn’t fix. For mutating fixes (re-install the SDK, re-authenticate), it points you at the right sibling skill.
When to use this skill
Section titled “When to use this skill”| You’re in this situation | Use this skill |
|---|---|
Browser console shows a VEK_TRK_* error code | vektis-troubleshoot <code> |
| Events aren’t arriving in your VEKTIS dashboard | vektis-troubleshoot "events not arriving" |
vektis.getStatus() shows state: 'DISABLED' or 'UNINITIALIZED' | vektis-troubleshoot DISABLED |
| The dashboard says you’ve installed the SDK but you’re sure you haven’t | App-side issue — see troubleshooting |
| You don’t know if the issue is the SDK or the dashboard | Run this skill first — it’ll tell you if the SDK is at fault |
How it works
Section titled “How it works”The skill never hardcodes error messages or codes. Every diagnosis comes from @vektis-io/tracker/errors — the SDK’s published catalog — loaded at runtime. This means the catalog is always in sync with the version of the SDK you have installed.
When you give it an error code that matches ^VEK_TRK_[A-Z_]+$, the skill looks it up directly. Anything else is treated as a free-form symptom and matched against every catalog entry’s message and hypothesis text.
Code-lookup output
Section titled “Code-lookup output”For an exact code match, the skill prints:
Error: VEK_TRK_INVALID_API_KEYYour API key was rejected by the VEKTIS server.
Action: Check that the key in your env file matches a key in your VEKTIS dashboardunder Settings → API & CLI tokens, and that it hasn't been rotated or deleted.
Likely causes (most likely first): 1. The key was rotated or deleted in the VEKTIS dashboard. 2. The key in your env file is from a different organization. 3. The env var name doesn't match what the framework expects (e.g. NEXT_PUBLIC_VEKTIS_KEY vs VITE_VEKTIS_KEY).
Docs: /integrations/tracker/troubleshooting#vek-trk-invalid-api-keySymptom-matching output
Section titled “Symptom-matching output”For a free-form symptom, the skill ranks the top 2–3 catalog entries by token overlap and surfaces them in confidence order:
Top matches for "events not arriving":
1. VEK_TRK_NETWORK_ERROR — likely match because: "events not arriving" overlaps with "network failure prevents events from being sent" Error: VEK_TRK_NETWORK_ERROR ... (full code-lookup output)
2. VEK_TRK_CSP_BLOCKED — possible match because: "not arriving" overlaps with "browser blocks the request" Error: VEK_TRK_CSP_BLOCKED ... (full code-lookup output)
3. VEK_TRK_INVALID_API_KEY — less likely, but consider if 1 and 2 don't apply: ... (full code-lookup output)The skill caps at three matches to avoid overwhelming you. The rest are in the troubleshooting matrix.
Hard guarantees
Section titled “Hard guarantees”- No hardcoded error strings. The catalog is the single source of truth — load-and-diagnose.
- No certainty claims. Output uses confidence-shaping language (“most likely”, “possible”, “less likely”). You decide what to investigate.
- No external action. The skill never modifies code, configuration, or your auth state.
- Catalog miss is a soft-fail. If your input doesn’t match any catalog entry, the skill points you at
/integrations/tracker/troubleshootingrather than throwing.
What happens when something goes wrong
Section titled “What happens when something goes wrong”| Situation | What the skill does |
|---|---|
| The SDK isn’t installed locally | Falls back to npx -y -p @vektis-io/tracker@^1.0.0 to fetch the catalog. Network required. |
Both local and npx paths fail | Prints the catalog-miss message with a docs link. Never throws. |
| Your input doesn’t match any catalog entry | Prints “No matching error in the catalog.” plus the docs link. The SDK may have shipped a new error since this skill was published — npm install @vektis-io/tracker@latest and try again. |
| Your input is too ambiguous (e.g., just “broken”) | Prompts for more detail rather than emit a low-quality top-N. |
What this skill does NOT do
Section titled “What this skill does NOT do”- Modify code, config, or env vars. (For SDK re-install:
vektis-install.) - Re-authenticate. (Re-run any other skill — its auth step refreshes credentials.)
- Diagnose dashboard-side issues. The SDK only knows about itself. For app-side issues like “I can’t see metrics on my Dev Item” or “post-release section is blank,” see app-side troubleshooting.
- Look at your code. The skill diagnoses from error codes and symptoms, not from inspection. If you want a deeper look, paste the relevant code into chat after the skill’s output.
Related
Section titled “Related”- Skills overview
- Tracker troubleshooting matrix — full SDK error catalog rendered as a table, plus install-time issues
- App-side troubleshooting — for issues that aren’t the SDK
vektis-install— re-install if the diagnosis points there