Skip to content
Back to skills

Surfaces

ASecurity

Test and personalize page content with Surface AI — add a surface to a page of this codebase, write and manage its variants, and check results. Use when the user wants to test, experiment with, A/B test or personalize page copy (headlines, calls to action, hero images), or asks about their surfaces, variants, results or the Surface dashboard.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgo

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add surface-ai-code/claude-plugins --skill surfaces --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Surfaces?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Surfaces
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/surface-ai-code-surfaces/badge)](https://www.skillsdirectory.com/skills/surface-ai-code-surfaces)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: surfaces
description: Test and personalize page content with Surface AI — add a surface to a page of this codebase, write and manage its variants, and check results. Use when the user wants to test, experiment with, A/B test or personalize page copy (headlines, calls to action, hero images), or asks about their surfaces, variants, results or the Surface dashboard.
---

# Surface AI

Surface serves a different version of chosen page content to each visitor and learns which version
gets more visitors to the page's goal. The `surface` MCP server's tools do the work; this skill is
how to use them well.

If no `surface` tools are available, the server isn't connected — follow the `connect` skill
first.

## Setting up a new surface

When the user wants Surface on a page of this codebase, follow
[setup-workflow.md](setup-workflow.md) step by step. It is the same workflow as the server's
`new_surface` prompt. Don't skip its **Ask** checkpoints: nothing is created until the user has
approved the elements, goals and variants.

## How Surface is organized

- **Surface:** one page placement, identified by `surface_id` — the only id the tools take. It has
  a `page_url`, an `edge_url` (where its bundle is served) and a `dashboard_url`.
- **Variants:** the versions of content a surface serves. Each one sets a value for the surface's
  fields.
- **Control:** one variant per segment is the control — the page's current copy, which the others
  are measured against. Change it with `variant_set_control`; never fake it by editing contents.
- **Goals:** the clicks or form submits that count as success. The first goal is the one the
  surface optimizes.
- **Live state:** `surface_get` returns `live_state`. `LIVE` means the snippet is on the deployed
  page and reporting; anything else means visitors aren't being served yet.

## Variant lifecycle

| Status | Served? | Editable? |
|---|---|---|
| `DRAFT` | No | Yes — `variant_update` |
| `ACTIVE` | Yes | No — create a new variant instead |
| `PAUSED` | No | No |
| `ARCHIVED` | No | No |

Variants added with `variant_create` start as drafts. Show the user the drafts, then activate the
approved ones with `variant_set_status`. Pause a variant rather than archiving it if the user may
want it back.

## Working with the user

- **"How is it doing?" / "show me the results":** call `surface_results`. Lead with each variant's
  `rate_per_session` and `win_probability`, the control first. Only call a winner when
  `termination.should_terminate` is true; until then say which variant is ahead. If `variants` is
  empty, relay its `note` (no test yet, or no results until the snippet has traffic).
- **"How much traffic?":** `surface_traffic` gives sessions per day.
- **"Open it":** open `dashboard_url` from `surface_get` or `surface_results` (the latter opens the
  Optimize page, with charts).
- **Writing variants:** start from the control's copy, change one idea per variant, and keep each
  value close to the original's length so the layout holds.
- **Deletes** aren't available through the tools. Archive instead, or point the user to the
  dashboard.
- **Errors:** relay a tool's error message as it is — it explains the rule that was hit. A plan
  limit error includes a link to the billing page; share it.

Files in this skill

  • SKILL.md3.2 KB
  • setup-workflow.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.