control-ui
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
Skill by hasegama
Chalk Labs
Need help deploying control-ui?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/hasegama-control-ui
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
control-ui- Description
- Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI. Use for local UI verification, screenshots, accessibility snapshots, perf profiles, visual diffs, or reproducing UI bugs.
- License
- MIT
- Instructions
- 106 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Control UI
Use local browser automation to verify UI behavior with evidence. First reuse the repo's own Playwright, browser, or Electron harness if it exists; otherwise assemble a temporary local harness around the app's dev server or Chromium debug port.
## What It Is Used For
- Reproducing UI bugs that depend on real browser focus, keyboard input, scrolling, resizing, or rendering.
- Verifying visual or accessibility changes with screenshots and snapshots.
- Checking local web, IDE, or Electron behavior before shipping.
- Capturing console logs, network logs, CPU profiles, traces, or heap snapshots.
- Creating before/after evidence for `verify-this`.
## Setup Pattern
1. Start the app locally using the repo's documented dev command.
2. Discover existing local harnesses: Playwright tests, Cypress specs, Storybook, browser scripts, Electron launch scripts, or snapshot tools.
3. For a web app, connect to the local URL with the existing browser tooling.
4. For Electron/Chromium, enable a remote debugging port when supported.
5. Select the correct page by stable app markers, not by tab order alone.
6. Prefer accessibility roles, labels, and stable `data-*` selectors over coordinates.
## Generic Web Harness
Use the repo's installed browser tooling when possible. If the repo already has Playwright, a minimal one-off probe looks like:
```javascript
import { chromium } from "playwright";
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1280, height: 800 } });
await page.goto("http://127.0.0.1:<port>");
await page.getByRole("button", { name: /submit/i }).click();
await page.screenshot({ path: "/tmp/ui-harness-after.png", fullPage: true });
await browser.close();
```
Do not add Playwright as a project dependency just for this probe unless the user asks. Prefer existing dev dependencies or external browser tools already available in the environment.
## Generic CDP Harness
For Electron or a Chromium app launched with `--remote-debugging-port=<port>`, connect over CDP:
```javascript
import { chromium } from "playwright";
const browser = await chromium.connectOverCDP("http://127.0.0.1:<debug-port>");
const pages = browser.contexts().flatMap((context) => context.pages());
let page;
for (const candidate of pages) {
if (await candidate.locator("<app-root-selector>").count()) {
page = candidate;
break;
}
}
if (!page) {
console.log(await Promise.all(pages.map(async (p) => ({
title: await p.title(),
url: p.url(),
}))));
throw new Error("No matching app page found");
}
await page.screenshot({ path: "/tmp/ui-harness-cdp.png", fullPage: true });
await browser.close();
```
Replace `<app-root-selector>` with a stable marker from the current repo, such as a root app node, landmark, or product-specific `data-*` attribute.
## Interaction Loop
1. Capture a page snapshot or screenshot before acting.
2. Choose a target from the latest page structure.
3. Perform exactly one structural action: click, type, keypress, drag, scroll, navigate, or resize.
4. Capture a fresh snapshot/screenshot.
5. Verify the expected state change.
6. Save artifacts for before/after comparisons when the user asked for proof.
## CDP Capabilities
Use raw CDP only when higher-level browser APIs are insufficient:
- Performance: CPU profiles, traces, paint flashing, FPS meter, layout shift inspection.
- Memory: heap snapshots and forced GC for leak investigations.
- Network: request blocking, throttling, cache disablement, request/response logs.
- Rendering: viewport changes, color scheme emulation, reduced motion, accessibility checks.
- Debugging: console streaming, exception capture, DOM snapshots.
## Page Selection
When multiple app windows/tabs share a debug port:
- Prefer a positive marker for the surface under test, such as an app root selector.
- Use a negative marker to avoid the wrong surface when necessary.
- If no page matches, list available page titles and URLs instead of guessing.
## Guardrails
- Do not rely on stale element references after navigation or structural changes.
- Avoid coordinate clicks unless a fresh screenshot was captured immediately before the click.
- Keep test data local and disposable.
- Do not store screenshots or heap snapshots from privacy-sensitive workspaces unless the user explicitly agrees.
- Do not hard-code selectors, ports, or script paths from another repository. Discover the current repo's local app markers.
- Clean up dev servers, debug sessions, and temp profiles when done.From hasegama/pstack-agents, MIT.
More from hasegama/pstack-agents
- 0.570score
explainer
hasegama
特定の読み手に向けて、概念・PR・設計を「冗長にならない水準」の速習資料として説明し、図と主張を道具で検証する。読み手のペルソナ(既に知っていること・知らないこと・読み方)を質問と公開情報から作り、その差分だけを書く。図は vlmkit-anim…
SkillAFreshness: AClaude Code +9 - 0.566score
explainer-book
hasegama
1 本の速習資料では収まらない、章立ての学習資料(topic-book/01-quickstart.md, 02-….md …)を、読み手のペルソナに合わせて設計・執筆・検証する。章ごとの学習目標と理解度チェックの対応、概念を導入より前に使わない順序、章の読了時間の予算、「未完成なら落ち、答えなら通る」演習、book…
SkillAFreshness: AClaude Code +9 - 0.565score
explanatory-animation
hasegama
Explain an algorithm, protocol, data structure, state machine, or architecture as a checked animation or still figure with `vlmkit-anim` — one JSON scene (a…
SkillAFreshness: AClaude Code +9 - 0.565score
d2-diagram
hasegama
Draw a software architecture, system, data-model or call-flow diagram as D2 text laid out by TALA (D2's whiteboard-style engine, open source since D2 0.9)…
SkillAFreshness: AClaude Code +9 - 0.565score
explain-with-anim
hasegama
Answer "how does this work / how is this structured / what does this change" with a drawn figure and a narration that follows it — a module map from the…
SkillAFreshness: AClaude Code +9 - 0.560score
d2-slides
hasegama
Build a slide deck whose source is text and whose figures are laid out by TALA — one Markdown file with a ```d2 fence per figure, compiled to a self-contained…
SkillAFreshness: AClaude Code +9 - 0.544score
diagnosing-bugs
hasegama
Diagnosis loop for hard bugs and performance regressions.
SkillAFreshness: AClaude Code +9 - 0.539score
domain-modeling
hasegama
Build and sharpen a project's domain model.
SkillAFreshness: AClaude Code +9 - 0.533score
ask-matt
hasegama
Ask which skill or flow fits your situation.
SkillAFreshness: AClaude Code +9 - 0.528score
architect
hasegama
型・関数シグネチャ・モジュール構成を設計し、独立した複数案を比較してから実装する。/architect や、構造の判断を伴う実装に使う。
SkillAFreshness: AClaude Code +9 - 0.528score
blast-radius
hasegama
変更が差分の外に及ぼす影響を調べ、成立条件を実コードの実行で確認する。影響範囲や小さな差分の安全性をレビューするときに使う。
SkillAFreshness: AClaude Code +9 - 0.528score
create-verification-skill
hasegama
アプリを利用者と同じ経路で検証するプロジェクト用スキルと機能マップを作る。/create-verification-skill や、検証手順をスキルにしたい依頼に使う。
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 5, 2026 (25 days ago)
- Last release
- Oct 5, 2026 (25 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/hasegama/pstack-agents
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.513score
control-ui
sediman-agent
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillCFreshness: C★ 394Claude Code +9 - 0.357score
control-ui
pstack-ports
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillAFreshness: A★ 2Claude Code +9 - 0.350score
control-ui
v1truv1us
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillBFreshness: B★ 8Claude Code +9 - 0.347score
control-ui
beremaran
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillAFreshness: A★ 1Claude Code +9 - 0.345score
control-ui
Velclaw
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillAFreshness: A★ 1Claude Code +9 - 0.337score
control-ui
MachineLearning-Nerd
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillAFreshness: AClaude Code +9 - 0.337score
control-ui
zskbot
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillAFreshness: AClaude Code +9 - 0.334score
control-ui
jaki95
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillAFreshness: AClaude Code +9 - 0.334score
control-ui
paramcodes
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillAFreshness: AClaude Code +9 - 0.331score
control-ui
Velclaw
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillAFreshness: AClaude Code +9 - 0.313score
control-ui
oerd
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillBFreshness: BClaude Code +9 - 0.313score
control-ui
BramVR
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI.
SkillBFreshness: BClaude Code +9
More from hasegama
- 0.570score
explainer
hasegama
特定の読み手に向けて、概念・PR・設計を「冗長にならない水準」の速習資料として説明し、図と主張を道具で検証する。読み手のペルソナ(既に知っていること・知らないこと・読み方)を質問と公開情報から作り、その差分だけを書く。図は vlmkit-anim…
SkillAFreshness: AClaude Code +9 - 0.566score
explainer-book
hasegama
1 本の速習資料では収まらない、章立ての学習資料(topic-book/01-quickstart.md, 02-….md …)を、読み手のペルソナに合わせて設計・執筆・検証する。章ごとの学習目標と理解度チェックの対応、概念を導入より前に使わない順序、章の読了時間の予算、「未完成なら落ち、答えなら通る」演習、book…
SkillAFreshness: AClaude Code +9 - 0.565score
explanatory-animation
hasegama
Explain an algorithm, protocol, data structure, state machine, or architecture as a checked animation or still figure with `vlmkit-anim` — one JSON scene (a…
SkillAFreshness: AClaude Code +9 - 0.565score
explain-with-anim
hasegama
Answer "how does this work / how is this structured / what does this change" with a drawn figure and a narration that follows it — a module map from the…
SkillAFreshness: AClaude Code +9 - 0.565score
d2-diagram
hasegama
Draw a software architecture, system, data-model or call-flow diagram as D2 text laid out by TALA (D2's whiteboard-style engine, open source since D2 0.9)…
SkillAFreshness: AClaude Code +9 - 0.560score
d2-slides
hasegama
Build a slide deck whose source is text and whose figures are laid out by TALA — one Markdown file with a ```d2 fence per figure, compiled to a self-contained…
SkillAFreshness: AClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get control-ui running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
control-ui skill. Agent Mart. https://agentmart.dev/skills/hasegama-control-ui (last updated 2026-10-24)