Skip to content
Skills Library
Programming · Testing

surfaces

/surfaces

This skill should be used when end to end or visual regression has to be set up for the current project, for example "set up e2e", "set up visual regression", "register a surface", "take the first baselines", "add a page to the visual review", or when a stage's offer, at scope, design or review, gets a yes on a kind. It installs the harness from the framework's recipe, writes the surface file review runs, and takes first baselines with a person present.

Author
camoa ↗
Licence
MIT
Last repository change
23.10.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/surfaces-actions.sh

What it does and when to use it

This skill should be used when end to end or visual regression has to be set up for the current project, for example "set up e2e", "set up visual regression", "register a surface", "take the first baselines", "add a page to the visual review", or when a stage's offer, at scope, design or review, gets a yes on a kind. It installs the harness from the framework's recipe, writes the surface file review runs, and takes first baselines with a person present.

Triggers from the description

set up e2eset up visual regressionregister a surfacetake the first baselinesadd a page to the visual review

Arguments

/surfaces <read | show | install | register | baseline | decline> [<kind or id>]
Original author description

This skill should be used when end to end or visual regression has to be set up for the current project, for example "set up e2e", "set up visual regression", "register a surface", "take the first baselines", "add a page to the visual review", or when a stage's offer, at scope, design or review, gets a yes on a kind. It installs the harness from the framework's recipe, writes the surface file review runs, and takes first baselines with a person present.

How it works

  1. Determine the run mode
  2. Read the state first
  3. A command as the end to end surface
  4. Resolve the recipes
  5. Show, then install
  6. Discover the surfaces, then a person confirms
  7. Take the first baselines
  8. Decline
  9. What this skill never does
Original SKILL.md headings · 148 lines, 1,486 words
SKILL.md preview
---
name: surfaces
description: This skill should be used when end to end or visual regression has to be set up for the current project, for example "set up e2e", "set up visual regression", "register a surface", "take the first baselines", "add a page to the visual review", or when a stage's offer, at scope, design or review, gets a yes on a kind. It installs the harness from the framework's recipe, writes the surface file review runs, and takes first baselines with a person present.
argument-hint: "<read | show | install | register | baseline | decline> [<kind or id>]"
arguments: [action, subject]
allowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}/skills/surfaces/scripts/surfaces-actions.sh *), Agent
---

# Surfaces

Set up the surfaces review runs: end to end and visual regression. The framework decides how, and
that answer lives in a recipe outside this plugin. Setup takes no task folder, the way the tool
skill does. With no task active, it runs at the code path. Run from inside a task's worktree,
which is outside the code path, it runs there instead, so the setup ships with the task's branch. The
review skill runs the surfaces;
this skill only sets them up. The guards live in the script: `--enable` and `decline` refuse
unattended. This skill waits for a plain yes before `install`. So a stage's offer may invoke it.

Every call below runs `surfaces-actions.sh`, named in this skill's own grant, so it runs without
asking. Read the exit code first, never the text alone. Exit 1 means no project owns this
directory: say so, name the project skill, and stop.

## Determine the run mode

Read the active task's run mode. A task that states none is interactive, and so is a call with no
task active. Pass `--run-mode autonomous` on every call only when the task states it, or states `light`. Decide this
once, at the start. A mode that names stages in brackets covers this call only when it names the
stage this call runs inside. Exit 70 means a person's answer was passed with nobody present.

## Read the state first

```
"${CLAUDE_PLUGIN_ROOT}"/skills/surfaces/scripts/surfaces-actions.sh read
```
It prints the project, the `surfaces` field, and the surface file with its state. It prints one
line per surface, and a version 5 `registry.yml` when one sits beside the file. That registry is
left in place. Its ids and URLs are candidates for discovery, below.

When the surface file is missing, `read` prints `surface-branch:`, the branch that holds the file,
or `none`. When it names a branch, offer no setup, and `install` refuses. A new file would collide
with that branch's file. Say the file reaches this tree once that branch lands on the trunk. If
that branch is abandoned, deleting it, local and remote, lets setup run.

A stage's offer names the kind in its invocation. Run by hand with no kind, ask which kind after
`read`, naming each kind's state, and then work that kind only.

## A command as the end to end surface

A project with no page to drive, such as a command-line tool, has no setup recipe for `e2e`. Its
end to end surface is a command. It needs no recipe and no install:
```
"${CLAUDE_PLUGIN_ROOT}"/skills/surfaces/scripts/surfaces-actions.sh --run-mode <mode> register <id> --command "<line>" --kind e2e --critical --enable
```
The line is the command that walks the path, such as a script in the code repository. Exit 0
means the path works. The line is split at spaces and runs without a shell. So a quote or a shell
character is refused at 3. With no surface file, `register` writes one and turns end to end on in
the project record, and commits both. Review runs the command in the task's tree, and nobody walks
it. Exit 3 also means the file holds an e2e page surface already, because a project uses one form.

The command runs with the session's PATH. So it must reach this tree's own build, never an
installed copy, for example through a path inside the tree. Register it before the build starts:
on the trunk before tasks are cut, or in the first task's tree. A register during review moves the
code under review, and review refuses that. A task cut before the trunk had the file cannot run it.
Review reads a command unknown when the range changed it, or deleted its files, or changed their mode.

## Resolve the recipes

Dispatch `catalog-identifier`, naming the role, once per point. The points are `e2e-setup` for
the `e2e` kind, `visual-regression` for the `visual-regression` kind, and `review` when a baseline
is taken. Each dispatch names the point as a line `point: <phase>`, then every framework the
project records, then the project folder. A point
is a point of AIDA's process, never a keyword search. Pass the answer in its own word, one flag per
framework. A path on disk is `--recipe <framework>=<path>`. A failed lookup is
`--lookup-failed <framework>=<word>`, with `no-recipe`, `listing-unreachable` or `fetch-failed`.
Only the first word says anything about the framework. Never retype a command out of a recipe. The
script reads the blocks.

Before `install` or `baseline`, invoke the tool skill with `require <path>` for each recipe path.
Its section "Tools a recipe names" says what each answer means. Go on only when it exits 0.

## Show, then install

```
"${CLAUDE_PLUGIN_ROOT}"/skills/surfaces/scripts/surfaces-actions.sh show <kind> <recipe flags>
"${CLAUDE_PLUGIN_ROOT}"/skills/surfaces/scripts/surfaces-actions.sh --run-mode <mode> install <kind> <recipe flags>
```
`show` prints the recipe, its commands, the files it writes, its viewports and its seed surfaces,
and runs nothing. A recipe with no install block exits 3 from `show` too, so the exit code
says what `install` would do. Interactive: run `show` first, print the commands and the files,
and wait for a plain yes before `install`. Autonomous: halt here and say the install needs a
person, because an install changes the project and nobody is there to approve it.

`install` runs every command in order and writes each file only when absent. It writes the
surface file when absent, and turns the kind on in the project record. It runs again safely.
It refuses a dirty tree at 61 before writing anything. It commits what it wrote, with the
reason in the message, the way `baseline` does. It commits the project record too.

| Exit code | Meaning | What to do |
|---|---|---|
| 0 | Every step ran, or `not-applicable`: no framework has a recipe. | Nothing more for this kind. Name `templates/process-recipe-setup.md` in this plugin as the shape a catalog recipe follows. |
| 3 | A recipe with no install block, a refused command, a file present with content no version of the recipe declares, or `unknown`: nobody looked. | Show the text and stop. It names the recipe or the file, which is where the fix belongs. |
| 4 | A step failed. | The `first:` line quotes its first line of output. Show it; do not install by hand. |
| 61 | The tree is dirty. | Say which paths. Commit or move them aside, then run install again. |
| 72 | Two frameworks each carry a recipe. | Say which two, and stop. |

`--viewport <name>=<w>x<h>` replaces the recipe's viewport list. It is a person's answer, so pass
it only when a person gave it.

## Discover the surfaces, then a person confirms

After `install`, open the discovery step through the script and follow it:
```
"${CLAUDE_PLUGIN_ROOT}"/skills/surfaces/scripts/surfaces-actions.sh step discover
```
A `Read` rule naming the plugin root does not reliably expand, which is why the step is read this
way. Discovery ends with one `register` call per surface the person confirmed:
```
"${CLAUDE_PLUGIN_ROOT}"/skills/surfaces/scripts/surfaces-actions.sh --run-mode <mode> register <id> --url <url> --kind <kind>... [--mask <css>]... [--path <glob>]... [--critical] --enable
```
Pass `--enable` only for a surface the person confirmed. Nothing is enabled unattended. Each
`--path` is a glob, relative to the code tree, naming files that render the surface. Review runs
the surface only when the diff touches one of them. `--critical` makes it run on every review.
A surface with no `--path` runs on every review too. Each `register` commits the surface file,
the way `install` does, so `baseline` finds a clean tree.
Exit 62 means `install` has not run. Exit 3 names an id already registered with different
fields. Exit 61 means the tree is dirty with something else.

## Take the first baselines

```
"${CLAUDE_PLUGIN_ROOT}"/skills/surfaces/scripts/surfaces-actions.sh --run-mode <mode> baseline [<id>]... --check-recipe <framework>=<path> [--value base-url=<address>]
```
Without `--confirmed` it prints the plan: the ids given, or every enabled visual regression
surface, at every viewport. Show the plan and take the person's yes. Then run it again with
`--confirmed`. It runs the review recipe's accept row over those ids only, and commits the
baselines with the reason in the message. Never write a baseline unattended, and never by hand.

Ask for the base URL once, interactive, and pass it as `--value base-url=<address>`. Nothing stores
it. When the task record has `environment.address`, pass that as `--value base-url=` and do not ask.
Exit 3 means the recipe carries no accept row, exit 61 that the tree is dirty.

## Decline

```
"${CLAUDE_PLUGIN_ROOT}"/skills/surfaces/scripts/surfaces-actions.sh decline <kind>
```
Records that the person declined that kind's setup. Every stage's offer, at scope, design and
review, reads it and does not ask again for that kind. It is a person's answer, so it refuses
unattended at 70. No kind, or an unknown one, refuses at 3, naming `e2e` and `visual-regression`.
It commits the project record too.

## What this skill never does

It never edits a recipe, and it never runs a command a recipe supplied through a shell.
Files in this package (3)
  • SKILL.md 10 KB
  • references/discover.md 3 KB
  • scripts/surfaces-actions.sh 23 KB

Versions

RepositoryScoreLicence
This page · camoa/claude-skills95MIT
surface-ai-code/claude-plugins90MIT

Database snapshot: 13.11.2026 · package version b0a895f696ed (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100test-visual-regression
    Set up Playwright screenshot baselines and CI diffing so UI changes fail pixel by pixel instead of by eye. Use when "add visual regression tests" or "catch UI regressions". Functional clicks → test-playwright.
  • 95tool
    This skill should be used when a tool has to be installed or run in the AIDA project that owns this directory, for example PHPUnit, PHPStan, Playwright or that project's own test runner, or when a stage needs a tool before it can do its work. It follows that tool's recipe for…
  • 100ac-qa-e2e-review
    Reviews spec implementation with E2E visual browser validation via Playwright. Triggers on keywords: e2e review, visual review, spec review, browser validation
  • 100playwright-ops
    Playwright end-to-end testing operations - selectors, fixtures, network mocking, auth, parallelism, CI, visual regression, flake hunting. Use for: playwright, e2e test, end-to-end testing, browser test, getByRole, page object, storageState, trace viewer, flaky test, test…
  • 100visual-diff-review
    Use when asked to review a diff and produce a 7-section visual page. Not for interactive review walks or PR-specific review: use show-review.
  • 100playwright
    Playwright E2E testing framework. Covers browser automation, assertions, and test generation. Use for end-to-end testing. USE WHEN: user mentions "playwright", "e2e test", "browser test", "end-to-end", asks about "page.goto", "page.click", "locators", "cross-browser testing",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.