Commit Graph

127 Commits

Author SHA1 Message Date
quanru 2a21a7bb3b docs(skills): switch assert image examples to --image/--image-name pairs
The CLI shape that lands in @midscene/*@1.9.0 was reshaped from a
single `--images JSON` flag into paired `--image` / `--image-name`
flags so agents don't need to assemble JSON in their shells (see
web-infra-dev/midscene#2523). Update the assert examples in each
platform SKILL.md (android / ios / harmony / browser / computer) to
the released flag shape and add a multi-image example showing how
repeated `--image` and `--image-name` pair by position.

The version pin is unchanged — the API redesign rides on the same
unreleased 1.9.0 cut as the original `--images` work.
2026-05-25 14:39:21 +08:00
quanru fbcfff3eb0 docs(skills): document assert --images on platform CLIs
The platform CLIs (@midscene/android, @midscene/ios, @midscene/harmony,
@midscene/web, @midscene/computer) gained multimodal `--images` and
`--convertHttpImage2Base64` flags on the `assert` subcommand. Add a short
example block to each platform SKILL.md right after the basic
`assert --prompt` examples, mirroring the existing `tap --locate` image
guidance. Each example notes the @1.9.0+ version requirement so agents
following the skill against older releases get a clear pointer instead
of a silent "Unknown option" failure.

The vitest-midscene-e2e skill is left untouched because it explicitly
funnels users through `aiAct` rather than `aiAssert`.
2026-05-21 18:51:19 +08:00
Leyang e3df695192 Merge pull request #31 from web-infra-dev/docs/ios-external-wda-session-skill
docs(ios): document external WDA session option
2026-05-21 11:44:58 +08:00
quanru d23b4202f1 ci(workflow): pin skill check actions 2026-05-21 11:42:18 +08:00
quanru 0b423fc321 docs(ios): document external WDA session option 2026-05-21 11:30:41 +08:00
Leyang 129f9a1fce Merge pull request #29 from web-infra-dev/feat/computer-skill-rdp
docs(computer): document RDP mode in computer-automation skill
2026-05-13 19:04:02 +08:00
quanru 8131d0b200 docs(computer): refine RDP guidance with verification findings
After end-to-end CLI verification against a real RDP host, sharpen the
RDP section to reflect what users actually hit:

- Clarify `--desktop-width/--desktop-height` are requests, not guarantees;
  point at `listdisplays --host ...` to confirm the negotiated size.
- Distinguish `list_displays` (platform tool, local-only) from
  `listdisplays` (action tool, RDP-aware), so users know which to call
  in RDP mode.
- Document latency expectations per CLI invocation (~5 s cold start for
  non-AI commands; 8–20 s for `act`/`assert`/`tap --locate`).
- Add connect-failure diagnostics: first stderr line is the actionable
  error (`connect_failed: ERRCONNECT_*`); enumerate common causes and
  fixes.
- Remind callers that every subsequent CLI command must repeat the
  `--host/--username/--password` flags since each invocation is stateless.
2026-05-13 18:53:57 +08:00
quanru b6d9023b57 docs(computer): document RDP mode in computer-automation skill
Add a dedicated "Connect via RDP" subsection that lists every RDP
flag exposed by `@midscene/computer@1 connect` (host, port, username,
password, domain, security-protocol, ignore-certificate, admin-session,
desktop-width, desktop-height), shows a minimum example, and calls out
mode-specific differences (displayId/list_displays semantics, helper
binary, credential hygiene). Update the SKILL.md description and
triggers so RDP/remote-desktop intents route to this skill.
2026-05-12 19:32:32 +08:00
yuyutaotao 70c325067b Merge pull request #28 from web-infra-dev/feat/skills-for-assertion
update skills for computer
2026-05-12 18:59:22 +08:00
ottomao bcb6e21a75 Merge branch 'main' into feat/skills-for-assertion 2026-05-12 18:57:06 +08:00
ottomao 600c6c1dd8 update skills for desktop 2026-05-12 18:56:55 +08:00
yuyutaotao f36878ba95 Merge pull request #27 from web-infra-dev/feat/skills-for-assertion
update skills for ui assertion
2026-04-29 19:03:23 +08:00
ottomao d30bb28095 update skills for ui assertion 2026-04-29 17:40:05 +08:00
yuyutaotao 636e6263a0 Merge pull request #26 from web-infra-dev/codex/add-npx-y-to-skill-examples
docs: add -y to npx examples in skills
2026-04-20 15:38:37 +08:00
quanruzhuoxiu cf31254f9c docs: add -y to npx examples in skills 2026-04-20 15:25:38 +08:00
Otto Mao f5b8486b17 Merge pull request #25 from web-infra-dev/feat/skills-for-report-tool
add skills for report-tool
2026-04-09 10:42:46 +08:00
ottomao 87f1ace37f add skills for report-tool 2026-04-08 19:52:48 +08:00
Otto Mao 62aed9a4af Merge pull request #24 from web-infra-dev/codex/computer-minimize-not-close
[codex] add minimize-only window rule to computer skill
2026-04-03 16:44:18 +08:00
quanruzhuoxiu 95fcc7adde docs: add minimize-only rule for computer skill 2026-04-03 16:34:00 +08:00
Otto Mao 9b4ac6f12b Merge pull request #23 from web-infra-dev/feat/auto-launch-chrome-on-precheck-fail
feat: auto-launch Chrome when CDP/Bridge precheck fails
2026-04-02 16:34:38 +08:00
quanruzhuoxiu 66b26c8315 feat: auto-launch Chrome when CDP/Bridge precheck fails
Instead of immediately falling back to Puppeteer mode when both CDP and
Bridge prechecks fail, try opening Chrome first using a platform-appropriate
shell command, wait briefly, then re-run the precheck before falling back.
2026-04-01 19:57:45 +08:00
Leyang f8bddc4263 Merge pull request #22 from web-infra-dev/codex/add-image-prompting-skill-guidance
docs: add image prompting guidance to automation skills
2026-03-31 17:30:42 +08:00
quanruzhuoxiu 6a0c43286c docs: add image prompting guidance to automation skills 2026-03-31 16:40:21 +08:00
Leyang e9cf26ca6f Merge pull request #17 from web-infra-dev/codex/update-troubleshooting-in-skills-documentation
docs: add @midscene/* dependency version checks to skills troubleshooting
2026-03-26 19:39:38 +08:00
yuyutaotao 9239492c05 docs: add dependency version checks to troubleshooting 2026-03-26 19:34:01 +08:00
Leyang 98468bd30f Merge pull request #18 from web-infra-dev/claude/mac-screenshot-troubleshooting-0GZrt
Add macOS locked screen screenshot troubleshooting guide
2026-03-26 18:57:40 +08:00
Leyang c4441ba455 Merge pull request #19 from web-infra-dev/feat/cdp-browser-connection
feat: add CDP browser connection mode to browser-automation skill
2026-03-26 11:05:23 +08:00
quanruzhuoxiu 7b8475af6a fix: add extension install guidance to Bridge mode section 2026-03-26 10:47:04 +08:00
quanruzhuoxiu 370678f664 feat: add precheck for CDP and Bridge mode availability
- CDP: curl WebSocket handshake on port 9222
- Bridge: curl Socket.IO on port 3766
- Route to Puppeteer if both unavailable
- Add implicit login state as CDP trigger
2026-03-25 16:59:25 +08:00
quanruzhuoxiu dc34d57b1b feat: merge chrome-bridge into browser-automation skill
- Integrate Bridge mode docs into browser/SKILL.md
- Remove chrome-bridge/ skill (now unified in browser/)
- Add mode selection guide: Puppeteer / CDP / Bridge
- CDP mode preferred over Bridge when user doesn't specify
2026-03-25 16:59:25 +08:00
quanruzhuoxiu 657a948f5f fix: use --cdp flag instead of env var in CDP mode docs 2026-03-25 16:58:56 +08:00
quanruzhuoxiu 3203aaa153 feat: support Chrome settings-based remote debugging
- Recommend env var over --cdp flag
- Add chrome://inspect setup method
- Clarify CDP connect navigates existing tab
2026-03-25 16:58:56 +08:00
quanruzhuoxiu 56f8e24c88 fix: trim browser skill description to fit 1200 char limit 2026-03-25 16:58:56 +08:00
quanruzhuoxiu 17a9030eb5 fix: use env var reference in CDP mode example 2026-03-25 16:58:56 +08:00
quanruzhuoxiu d078bde6c1 feat: add CDP browser connection mode to browser-automation skill
Add CDP (Chrome DevTools Protocol) support to the existing
browser-automation skill, allowing connection to an already-running
Chrome browser via --cdp <ws-endpoint> flag.
2026-03-25 16:58:56 +08:00
Leyang 1084a45ded Merge pull request #21 from web-infra-dev/docs/skill-action-space-launch
docs: expose launch and action-space capabilities in skills
2026-03-24 19:39:44 +08:00
quanruzhuoxiu df57c6dcbd docs: clarify low-level command examples in skills 2026-03-24 19:31:28 +08:00
quanruzhuoxiu 54f4ba32ee docs: clarify act capability scope in skills 2026-03-24 19:27:51 +08:00
quanruzhuoxiu 3df6db9aea docs: expose launch and action-space capabilities in skills 2026-03-24 19:08:49 +08:00
Leyang c175eecae3 Merge pull request #20 from web-infra-dev/ci/check-skill-description-length
ci: add skill description length check and trim descriptions
2026-03-23 10:48:28 +08:00
quanruzhuoxiu e686c232b9 ci: add workflow to check skill description length on PR 2026-03-23 10:30:43 +08:00
quanruzhuoxiu 15271bd3a2 ci: add skill description length check and trim long descriptions
Add a check script (scripts/check-skill-description-length.mjs) that
verifies SKILL.md description fields do not exceed 1200 characters.

Also trim redundant use-case entries in browser, chrome-bridge, and
computer-automation skill descriptions to stay within the limit.
2026-03-21 11:27:22 +08:00
Otto Mao 0a6f7ba6ab Merge pull request #15 from web-infra-dev/feat/vitest-midscene
feat(vitest-midscene): introduce vitest-midscene skills
2026-03-19 22:46:53 +08:00
Frank 35f2213e61 feat(vitest-midscene-e2e): make vitest-midscene-e2e skill slim 2026-03-18 16:26:33 +08:00
Otto Mao 5366f004a9 Update SKILL.md 2026-03-15 09:29:40 +08:00
yuyutaotao e4f5595445 Clarify Midscene.js capabilities in README
Removed mention of DOM and accessibility labels for clarity.
2026-03-13 17:28:30 +08:00
Claude ba9a97fd8d docs(computer): add troubleshooting for black screen on locked Mac
When macOS is locked, screenshots return black images due to a
system-level restriction. Added guidance to use a screensaver instead
of locking the screen during automation sessions.

https://claude.ai/code/session_018doP2rApBG4cYAwHnrLhem
2026-03-12 07:56:31 +00:00
ottomao c8c009adfc rename skills 2026-03-12 15:19:42 +08:00
Frank 0d27ad59b9 feat(vitest-midscene): introduce vitest-midscene skills 2026-03-10 20:46:14 +08:00
Leyang e0f094fd5a Merge pull request #13 from web-infra-dev/feat/improve-skill-trigger-keywords
docs: improve skill descriptions and add testing trigger keywords
2026-03-09 11:24:14 +08:00