agentsclimarketplace

Xms environment compatibility

Skill xuluoforcainiao/xms-environment-compatibility/xms-environment-compatibility

XMS 自动化任务运行环境兼容性验证参考。记录在不同屏幕状态(常亮/锁屏/息屏)和浏览器状态下(Chrome 打开/关闭/Extension 断开)的任务执行验证结果,以及已知问题和规避方案。适用于评估 XMS 定时任务在不同运行环境下的可靠性。From its SKILL.md

Install
npx -y skills add xuluoforcainiao/xms-environment-compatibility --skill xms-environment-compatibility

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.3 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

XMS 运行环境兼容性验证表

已验证环境

环境状态验证时间说明
屏幕常亮 + Chrome 已打开正常2026-05-10 15:00首次定时任务,SSO 登录、导出、推送全流程成功
屏幕常亮 + Chrome 完全关闭正常2026-05-10 21:28Agent 检测到无浏览器,自动调用 tabs_context_mcp 启动新 Chrome,全流程成功
Win+L 锁屏 + Chrome 已打开正常2026-05-10 16:00锁屏状态下执行,浏览器 DOM 操作不受影响,全流程成功
Win+L 锁屏 + Chrome 完全关闭未明确验证推断与「屏幕常亮 + Chrome 关闭」相同,Agent 会自动启动浏览器
纯息屏(显示器关闭,未锁屏)未验证仅验证了 Win+L,未单独验证显示器关闭场景

Chrome Extension 连接状态

状态结果验证时间说明与处理方案
Chrome 打开 + Extension 正常连接正常多次验证理想状态,直接执行
Chrome 打开 + Extension 断开(Extension not connected失败2026-05-10 20:55CDP WebSocket 连接后立即断开(code=1005)。仅重新加载 Extension 无效,必须完全关闭 Chrome 后重开
Chrome 完全关闭正常(自动恢复)2026-05-10 21:28Agent 四级恢复策略会检测到无浏览器,自动启动新 Chrome 实例

环境对比与注意事项

对比项Win+L 锁屏纯息屏(未锁屏)
系统状态用户会话锁定,需要密码解锁仅显示器关闭,用户会话仍活跃
后台进程继续运行继续运行
浏览器 MCP可用(已验证)推断可用(未验证)
建议生产环境可用如需使用,建议先单独测试一次

已知问题与规避方案

问题根因规避方案
Extension not connectedChrome 长期运行后 Extension 与 CDP 的 WebSocket 连接断开完全关闭 Chrome 再重开,不要仅重新加载 Extension
PowerShell 屏幕熄灭脚本失败ConstrainedLanguage 模式阻止 Add-Type使用 Python ctypes:python -c "import ctypes; ctypes.windll.user32.SendMessageW(-1, 0x0112, 0xF170, 2)"
窗口极小(256x116)浏览器长时间闲置后窗口自动缩小JS DOM 操作不受窗口大小影响;computer 坐标点击会受影响,需优先用 JS

生产环境建议

  • Chrome 状态:任务执行前保持 Chrome 完全关闭,让 Agent 自动启动干净实例,避免 Extension 断开风险
  • 屏幕状态:Win+L 锁屏已验证可用,可放心使用;纯息屏建议额外测试一次
  • 恢复能力:Agent 内置四级浏览器恢复策略(JS resize → 新建标签页 → 重建窗口 → 报错重试),即使浏览器异常也能自动恢复

What ships with it: 1 file

789 B alongside SKILL.md

Keep looking

Skills are one crate of 326,367. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.