跳到正文
Skillpedia
测试20k · #10436

Interceptor

它能做什么

控制真实的浏览器和 Mac 应用,使智能体能够打开页面、点击、读取屏幕上的内容并截图。它适用于需要确认网站或应用真正可用、而不只是测试通过的开发者。

适用场景

  • ✓当你需要确认部署后网站的外观是否正确的时候。
  • ✓当页面出现控制台错误或内容空白,你想调试它的时候。
  • ✓当你需要某个页面在特定屏幕宽度下的截图的时候。

技能链接

https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Interceptor/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Interceptor/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请检查新的定价页面在桌面和手机宽度下能否正常加载,并告诉我任何布局问题。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能在隔离的测试配置文件中运行浏览器,因此你自己的登录状态和窗口不会受到影响。它会读取页面结构、控制台和网络状态,并在声称任何功能正常之前检查截图。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Interceptor

Contents: Ideal State · Intent Routing · Data & Config · Gotchas · Examples

Drives the real Chrome test profile and native macOS apps through the interceptor CLI and guarded wrappers.

Ideal State

  • Every browser action ran in the pinned isolated test context, only after that run's preflight gate exited 0; the operator's Default profile, windows and focus are untouched, and a gate failure ends the run instead of falling back.
  • Browser work the operator would otherwise do by hand (open, click, fill, log in) was driven by the agent, up to the single step that needs a secret it does not hold or an OAuth or consent screen, where the operator sees the client, scopes and account and approves.
  • Every "verified", "works" or "fixed" claim cites evidence from the real page or app: a structured read, console and network state, and a Tools/Capture.sh screenshot that was read; motion and lifecycle claims come from Tools/VerifyViewport.ts or a ScrubFlow gallery.
  • A capture request gets one screenshot per width it names (usually 1440 and 390), each read back and confirmed to be the requested page, not another tab's or session's, and every element the request names is reported present or absent.
  • A page called verified or live was judged as a whole at each width: overlapping, clipped or misplaced layout (cards over the header, a cut-off top) fails the claim even when the requested element is present.
  • A fine-detail claim (logo, glyph, icon, a figure's limbs, hands and grip) rests on a Tools/Zoom.ts crop of the full-resolution capture, so an extra arm cannot pass on a downscaled view.
  • When Interceptor could not deliver evidence, the report says verification was not captured; it never substitutes screencapture, osascript or file existence for visual evidence.
  • Native-app work leaves the frontmost app unchanged, shown by frontmost before and after, and the tabs a run opened in the test profile are closed when it ends.

Intent Routing

Before an intent runs, load its bundle: bun "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/LIFEOS/TOOLS/ContextLoad.ts" Interceptor load BUNDLE

Follow every requirement it returns; guide paths are relative to the skill root. Reload after compaction or a source change. Any truncation warning means the load failed, even if the END CONTEXTLOAD marker survived.

list shows sections and bundles; search "query" searches the indexed source; a failed search proves nothing (broaden it or load full). If the loader fails, read References/CompleteGuide.md and the relevant intent directly; never proceed on a partial load.

Task Bundle
Browser reads, interaction, or screenshot verification verify
Motion, responsive behavior, or hidden-tab issues motion
Native macOS application operations native
Installation, platform troubleshooting, delegation, or a task no bundle fits or you are unsure of full
Intent Trigger File
LaunchTestProfile "test profile", "launch test profile", "isolated browser", "separate Chrome window", "start interceptor-test" Intents/LaunchTestProfile.md
VerifyDeploy "verify deploy", "check deploy", "confirm deploy", "deploy verification" Intents/VerifyDeploy.md
ScrubFlow "scrub flow", "record flow to video", "motion bug", "animation jank", "transition stutter", "flicker", "flow gallery", "catch motion a screenshot misses" Intents/ScrubFlow.md
Reproduce "reproduce", "reproduce bug", "debug page", "check page", "blank screen" Intents/Reproduce.md
ReadAndExtract "extract value", "read page", "pull a fact", "SPA state" Intents/ReadAndExtract.md
DriveRichEditor "drive Canva", "drive Docs", "drive Slides", "rich editor", "scene", "scene graph", "canvas-rendered" Intents/DriveRichEditor.md
OverrideXhr "override request", "request override", "force 500", "rewrite response", "mutate XHR" Intents/OverrideXhr.md
ScreenshotForVlm "screenshot for VLM", "VLM screenshot", "agent screenshot", "WebP 1568" Intents/ScreenshotForVlm.md
MultiPageCompare "compare pages", "multi-page compare", "facts across N pages", "designed by X vs Y" Intents/MultiPageCompare.md
CaptureBackgroundedApp "screenshot of Brave / Signal / Mail / X", "capture backgrounded app", "capture occluded window" Intents/CaptureBackgroundedApp.md
DriveBackgroundedApp "scroll Mail / type int
常见问题

它会使用我个人浏览器的登录状态吗?

不会。操作在隔离的测试配置文件中运行,你的默认配置文件和窗口不受影响。

它能处理登录吗?

它可以自行执行步骤,但遇到它没有的密钥或同意界面时会停止,由你批准。

它能在不同宽度下截图吗?

能。你指定的每个宽度截一张图,通常为 1440 和 390 像素。

详情

作者的原始描述

Real Chrome plus macOS Computer Use from inside the browser, real sessions; mandatory for visual deploy verification. USE WHEN verify deploy, confirm UI, screenshot verification, debug web, visual check, animation bug, console errors, JS errors, network traffic, HAR export, blank-page debug, what is happening on the page, authenticated page, reproduce bug, drive native app. NOT FOR pixel-only GUI work (ComputerUse), crawling (BrightData), scraping.

repo: danielmiessler/LifeOS

热度

GitHub 星标
20k
排名
#10436
许可证
MIT
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能