rdoyle99/whyusersleave-plugin/setup

Claude Code and agent skill by rdoyle99/whyusersleave-plugin

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Set up WhyUsersLeave for this project from the terminal — create the account, add the tracking snippet to the codebase, register the sites to record, and pull the first fix list. Use when the user installs the plugin, has no API key yet, asks to start tracking a site, or asks which of their sites should be recording visitors.

Install

npx vskill@latest install rdoyle99/whyusersleave-plugin/setup

SKILL.md

The same SKILL.md was published earlier as rdoyle99/whyusersleave-plugin/setup.

Get this user from "nothing" to "real visitor data flowing and a fix list" without them opening a browser.

Step 0 — do they already have a key?

Call get_site_context (whyusersleave MCP). If it returns data, they are already set up: skip to Step 5.

If the whyusersleave MCP tools are missing or error with a key/auth problem, they have no key yet. Continue.

Step 1 — account

Ask for one thing, in one line: "What email should I put the account on?" Nothing else. No password, no plan choice.

Then create it:

bash
curl -s -X POST https://whyusersleave.com/api/signup \
-H 'Content-Type: application/json' \
-d '{"email":"THEIR_EMAIL","domain":"THEIR_PRIMARY_DOMAIN"}'

Include domain only if you already know their main site from the repo (Step 3 heuristics). Otherwise send email alone.

Responses:

  • { user_api_key, site, snippet } — new account. Continue.
  • { status: "existing", message } — the email already has an account and a magic link was just sent. Relay the message verbatim, tell them to click the link, grab the key from the dashboard, then come back. Stop here.
  • HTTP 429 — too many signups from this IP. Tell them to try again in an hour or sign up at https://whyusersleave.com/login.

Show the key once, plainly, and tell them to store it:

Your key: wul_u_...
Paste it into /plugin → WhyUsersLeave → API key, or export WUL_API_KEY=wul_u_... in your shell. Restart Claude Code after.

The MCP server will not work this session until they do that. Everything below still works without it, because it goes over plain HTTP with the key you just got. Use Authorization: Bearer $KEY on every call in this skill.

Step 2 — put the snippet in their codebase

The response includes snippet (a one-line <script> tag with their site id).

Find where it goes and offer to add it. Search in this order, take the first hit:

  • Next.js App Router: src/app/layout.js|jsx|tsx or app/layout.* → inside <head>, or use next/script with strategy="afterInteractive" if the file already imports Script.
  • Next.js Pages Router: pages/_document.* → <Head>.
  • Vite/CRA/static: index.html, public/index.html → before </head>.
  • Astro: src/layouts/*.astro. SvelteKit: src/app.html. Nuxt: nuxt.config.* app.head.script. Rails: app/views/layouts/application.html.erb.

Show the exact diff and ask before writing. If nothing matches, print the snippet and say where to paste it.

Then tell them the one thing that matters: it only records once deployed. No data until the tag is live in production.

Step 3 — which sites should we record?

Look for other properties this user owns, from the machine, not from them:

bash
git remote -v
cat vercel.json 2>/dev/null; cat .vercel/project.json 2>/dev/null
cat CNAME 2>/dev/null; cat netlify.toml 2>/dev/null
grep -rEho 'https?://[a-z0-9.-]+\.[a-z]{2,}' README.md package.json 2>/dev/null | sort -u | head -20

Also check sibling project folders one level up if the cwd looks like one repo among many (ls ..), and read their package.json name / git remote.

Present the candidates as a short numbered list, most likely first, and ask: "Which of these should start recording visitors?" Do not create anything they did not pick.

For each pick:

bash
curl -s -X POST https://whyusersleave.com/api/sites \
-H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
-d '{"domain":"example.com","name":"Example"}'

A 402 means they hit the free plan's 1-site cap. Say so in one line, name the upgrade link in the response, and move on. Do not retry.

Each response has its own snippet. If a picked site lives in a repo you can reach, offer Step 2 for it too.

Step 4 — context is worth more than another site

Fill in what the product is, so recommendations come back in dollars instead of percentages. Read the repo (README, landing page copy, pricing page) and call set_site_context with description, key_pages, user_journey, and — if you can find them — monthly_visitors, conversion_rate, avg_revenue_per_conversion. Ask only for numbers you cannot infer.

Step 5 — first value

Call get_recommendations.

If it comes back with no behavioral data, that is expected on day one. Say this shape, then offer the loop:

Nothing to analyze yet. The tag only records once it's live in production, and real patterns need a day of traffic. Want me to check back on my own tomorrow? I can set /loop 1d /whyusersleave:review. Otherwise just run /whyusersleave:review yourself in a day.

If they say yes, set the loop. Otherwise run the full /whyusersleave:review flow when data exists.

Rules

  • One question per turn, maximum. This is a setup wizard, not an interview.
  • Never print the API key more than once, never write it into a tracked file, never commit it.
  • Lowercase, short, no preamble. Lead with the next action.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rdoyle99/whyusersleave-plugin/setup/badge)](https://verified-skill.com/skills/rdoyle99/whyusersleave-plugin/setup)

Something wrong with this skill or its page? Tell us.