agentleFS
AnastasiyaWAnastasiyaW/codex-claude-code-config/skills/development/control-ui/SKILL.md

control-ui

Skill153 starsChanged 7 months agoMITView on GitHub

Drive and inspect a local web, IDE, or Electron UI with browser or CDP automation and evidence. Use for UI regressions, screenshots, accessibility snapshots, visual diffs, focus, keyboard, scrolling, resize, console, network, performance, or heap checks. Do not use for backend-only changes or for a screenshot without a behavior claim.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify UI behavior at the real browser or Electron boundary.

    line 8
  2. Distinctive:

    Read the project's documented start command and identify the local URL or debug port.

    line 14
  3. Very specific:

    Use verify-this for before/after claims.

    line 26
  4. Distinctive:

    Do not install Playwright just for a one-off probe when an existing browser tool or dependency is available.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Control UI

Verify UI behavior at the real browser or Electron boundary. Reuse the project's Playwright, Cypress, browser, or Electron harness before creating a probe. Keep the data local and disposable.

Workflow

  1. Read the project's documented start command and identify the local URL or debug port.
  2. Discover existing browser tests and stable app markers.
  3. Select the target page by a positive root marker, role, label, or stable data-* attribute, not tab order or coordinates.
  4. Capture the initial DOM/accessibility snapshot, screenshot, console state, or network baseline relevant to the claim.
  5. Perform one structural action: click, type, keypress, drag, scroll, navigate, or resize.
  6. Capture the new state and assert the expected change.
  7. Clean up the dev server, debug session, temporary profile, and artifacts.

Use verify-this for before/after claims. Use raw CDP only when higher-level APIs cannot provide the required CPU, heap, trace, network, or rendering signal. Do not install Playwright just for a one-off probe when an existing browser tool or dependency is available.

Evidence and privacy

Screenshots, traces, network bodies, and heap snapshots may contain private code or user data. Keep them outside public Git unless they are explicitly sanitized and approved. A public report should contain the command, revision, safe metric, and artifact hash or private location, not the payload.

Gotchas

  • A screenshot without an assertion proves that rendering occurred, not that the workflow is correct.
  • Coordinates and stale locators are fragile after navigation or layout change; select from the latest structure.
  • A successful page load does not prove console, network, accessibility, or keyboard behavior.
  • A visual diff can be caused by viewport, font, locale, or reduced-motion differences; record those inputs before interpreting it.

Troubleshooting

SymptomLikely causeAction
Wrong tab or windowSelector relied on tab orderEnumerate pages and choose a positive app marker
Click changes nothingStale locator or wrong stateCapture a fresh snapshot and wait for the state marker
Screenshot differs only on one machineFonts, viewport, scale, or locale driftPin the test inputs and classify as INCONCLUSIVE until comparable
Browser remains after the runCleanup path missed an exceptionUse a bounded cleanup step and verify the process/profile is gone

Source

Adapted from Cursor Team Kit's MIT-licensed control-ui workflow: https://github.com/cursor/plugins/tree/main/cursor-team-kit/skills/control-ui

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.