AGENT SKILL

control-ui

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.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 214
Forks
32

01 前言 Front Matter

name
control-ui
description
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.

03 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

Symptom Likely cause Action
Wrong tab or window Selector relied on tab order Enumerate pages and choose a positive app marker
Click changes nothing Stale locator or wrong state Capture a fresh snapshot and wait for the state marker
Screenshot differs only on one machine Fonts, viewport, scale, or locale drift Pin the test inputs and classify as INCONCLUSIVE until comparable
Browser remains after the run Cleanup path missed an exception Use 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

04 同仓库更多 Skills

AnastasiyaW
AnastasiyaW/codex-claude-code-config

owner-voice

暂无简介

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

humanize-russian

Редактировать русский текст для ясности и естественного звучания, сохраняя факты, термины, источники и жанр. Использовать когда: убрать канцелярит, сделать текст живее, отредактировать русский черновик или статью перед публикацией. Не определяет авторство и не обещает обход детекторов. Для английского — humanize-english; для структуры и доказательств — article-structure-review.

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

humanize-english

Edit English drafts for clear, natural language while preserving facts, uncertainty, technical meaning, citations and genre. Use when: humanize this text, remove AI-style filler, improve English prose, or edit an English article before publication. Not an authorship detector or a promise to bypass one. For Russian use humanize-russian; for thesis/evidence and structure use article-structure-review.

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

caveman

Ultra-compressed reply mode. Cuts output tokens ~65-75% by answering in terse "caveman" style while keeping full technical accuracy, and shapes what survives: action first, state restated every turn, concrete time estimates, visible wins. Intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman", "talk like caveman", "use caveman", "less tokens", "be brief", or Russian "пещерный режим", "говори как пещерный", "кратко", "меньше токенов", "экономь токены" — or invokes /caveman. Preserves the user's language (Russian in → Russian caveman out). Off only: "stop caveman" / "normal mode" / "обычный режим". Do not use merely because a response should be concise, and do not use when the user requests normal prose, a polished document, or exact wording.

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

article-structure-review

Проверить структуру технической статьи после черновика: задача читателя, жанр, опора значимых утверждений на доказательства и честные ограничения. Use after the first draft, before publication. Исправлять структуру, когда это входит в запрос; не создавать обязательный конвейер из других навыков. Для локальной языковой редактуры — humanize-english или humanize-russian.

★ 214
AnastasiyaW
AnastasiyaW/codex-claude-code-config

video-post-production

Video post-production rules: audio mastering, color, captions, platform export. Use when: 'add music', 'add voiceover', 'export for tiktok', 'add captions', 'color grade', 'audio levels', 'master audio', 'export settings', 'platform requirements'. Covers FFmpeg patterns, audio chain, subtitle standards, and platform-specific export configs. Do NOT use to generate or animate the video frames/scenes in code (use remotion-production-guide), to write the script (use video-narrative-arc), or to evaluate script quality (use script-evaluator); this is the finishing stage applied to an already-rendered video.

★ 214