experiment

Generate A/B test implementations with the Abrantes JavaScript library.

4|1|Updated Jan 22, 2023
One-click install
npx skills add https://github.com/osvik/abrantes --skill experiment-osvik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: experiment
Source: https://github.com/osvik/abrantes/tree/main
Command: npx skills add https://github.com/osvik/abrantes --skill experiment-osvik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the complexity of manually coding A/B tests by generating complete experiment implementations, tracking integrations, and validation steps based on your hypothesis and target page.

Core Features & Use Cases

  • Experiment Generation: Creates complete A/B test code including variant definitions, assignment logic, rendering, and persistence using the Abrantes library.
  • Tracking Integration: Automatically detects analytics tools on the target page and generates appropriate tracking code for GA4, GTM, Hotjar, HubSpot, and others.
  • Pattern Support: Handles in-page, redirect, iframe, GTM, CSS-only, and seeded experiment patterns with proper DOM handling and waitFor guidance.
  • Validation & Planning: Recommends statistical planning tools, provides pre-launch checklists, and guides testing via URL parameters and browser extensions.

Quick Start

Use the experiment skill to create an A/B test for the homepage hero section that tests a new headline and CTA button color against the current version.

Frequently Asked Questions about experiment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate A/B test code for website experiments automatically?

You can generate A/B test code by providing a hypothesis and target page, which creates complete experiment implementations including variant definitions, assignment logic, DOM rendering, and persistence using the Abrantes JavaScript library.

What analytics tools can I integrate with A/B test tracking?

A/B test tracking supports automatic integration with GA4, GTM, Hotjar, and HubSpot by detecting analytics tools on the target page and generating appropriate tracking code for cross-site dispatch.

Does A/B testing work with redirect and iframe experiment patterns?

Yes, A/B testing handles in-page, redirect, iframe, GTM, CSS-only, and seeded experiment patterns with proper DOM handling and waitFor guidance for deterministic assignment and persistence.

How do I validate an A/B test before launching it live?

You validate an A/B test using recommended statistical planning tools, pre-launch checklists, and guided testing via URL parameters and browser extensions to ensure correct variant rendering and tracking dispatch.

What is the best way to run CSS-only A/B tests on a webpage?

The best way to run CSS-only A/B tests is generating variant definitions and rendering logic through the Abrantes library, handling DOM manipulation and persistence without requiring complex JavaScript redirects.

Do I need a specific JavaScript library to build A/B test experiments?

Yes, you need the Abrantes JavaScript library to build A/B test experiments, which provides the deterministic assignment, persistence, and multi-tool tracking dispatch required for complete experiment implementations.