agentleFS
bettyguobettyguo/browser-skills/skills/exit-tracking-popup/SKILL.md

exit-tracking-popup

Skill8 starsChanged 7 months agoMITView on GitHub

Dismisses exit-intent popups ("Wait! Before you go!", "Don't leave without your discount", abandonment recovery overlays) that fire on mouse-leave or scroll-up patterns.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After the agent has been on the page for a few seconds and is about to navigate away (or after a scroll-pattern that triggers exit-intent …

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Exit Tracking Popup

When to invoke

After the agent has been on the page for a few seconds and is about to navigate away (or after a scroll-pattern that triggers exit-intent JS), a "Wait!" overlay appears trying to keep them. The dismiss controls are typically a small "x", a "no thanks" link, or Escape.

The matcher fires this skill when exit-intent markers are present and the page is not in initial-load.

Recipe

  1. wait extra=200ms
  2. try_each selectors=[ "[class*='exit-intent' i] button[aria-label*='close' i]", "[data-exit-intent] button[aria-label*='close' i]", "[class*='abandonment' i] button[aria-label*='close' i]", "[class*='discount-popup' i] button[aria-label*='close' i]", "[class*='exit-intent' i] button:has-text('No thanks')", "[class*='exit-intent' i] button:has-text('I'm not interested')", "[class*='abandonment' i] button.btn-close", "[data-exit-intent] button.dismiss", ] action=click on_success=stop timeout=1000ms
  3. press_key key=Escape

Success criteria

  • assert no_visible_element selector="[class*='exit-intent' i]" OR no_change_was_needed

When NOT to use

  • The user is interested in the offer. Don't auto-dismiss.

Known failures

  • Exit-intent popups that block scroll until clicked: dismissal must be clicking the visible close, not Escape.
  • Exit-intent popups that DOM-remove themselves on second hover: the recipe runs while it's still attached; later state is fine.
  • Exit-intent popups stacked behind other popups: dismiss newsletter/modal first, then exit-intent.

Related skills

  • dismiss-newsletter-popup — sibling skill; matcher orders by signal strength
  • handle-modal-dialog — generic dialog parent

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.