Command Palette

Search for a command to run...

Назад к скиллам
скилл № 29113

hospital-android-adb

Book hospital appointments in Shanghai via USB ADB, through the WeChat 服务号 上海市级医院互联网总平台 (上海医联 / internethospital.shdc.org.cn). Battle-tested 2026-10-14 with a…

БесплатноБез исполняемых скриптов
openlittlebearот openlittlebear1 040 установок в других каталогах

Установить hospital-android-adb в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Shanghai Hospital Booking (微信服务号「上海市级医院互联网总平台」)

Book appointments at 37 Shanghai municipal hospitals (华山, 瑞金, 仁济, 第九, 中山, 第六 …) through the WeChat 服务号 上海市级医院互联网总平台 — the platform formerly known as 上海医联. This doc reflects one successful end-to-end booking on a Realme RMX3350 (1080×2400, USB ADB), 2026-10-14.

⚠️ The old 上海医联 app is dead

The standalone app com.wonders.mobile.app.yilian is out of service. Everything moved to the WeChat 服务号. Do not look for the app package — it will fail. (Version 1.x of this skill documented that app; that content is obsolete and has been replaced wholesale.)

Field Value
Package com.tencent.mm (WeChat)
Entry 服务号「上海市级医院互联网总平台」→ bottom menu 便民服务
WebView URL internethospital.shdc.org.cn
UI type WeChat XWeb WebView — single-page app, the URL never changes
Navigation signal OCR only — there is no activity chain to lean on
Input method clipboard + keyevent 279 (paste) — see below

🚨 Setup

Requires the appium-android-adb base skill. It ships ocr_bridge.py, which both this skill's commands and book_helper.py load. ClawHub has no dependency resolver, so it will not be installed for you; install it alongside:

clawhub install appium-android-adb
# venv (one-time, shared with the other *-android-adb skills). The pins ship
# with the base skill — that is the other reason to install it first.
BASE=~/.openclaw/workspace/skills/appium-android-adb   # the base skill (ships ocr_bridge.py)
PY=~/.openclaw/workspace/.venv-adb/bin/python
test -f $BASE/ocr_bridge.py || echo "base skill missing — clawhub install appium-android-adb"
python3 -m venv ~/.openclaw/workspace/.venv-adb        # no-op if it already exists
$PY -m pip install -r $BASE/requirements-adb.txt

Keep the screen awake and don't let it sleep mid-flow:

adb shell svc power stayon true

All screen reading / tapping goes through ocr_bridge.py from the appium-android-adb base skill: screenshot → RapidOCR → click/swipe → re-OCR verify. book_helper.py (in this skill) wraps the whole flow — prefer it over hand-driving coordinates. If you keep skills outside the usual directory, book_helper.py honours ADB_OCR_BASE.

Preconditions (check BEFORE starting)

  1. User is logged in on the platform. If a 用户登录 page appears (手机号 / 密码 / 短信验证码), the account is usually browser-autofilled — you still need the SMS code from the user.
  2. A 就诊卡 (visit card) is bound. A card that exists but isn't bound makes 确认预约 fail at submit time — after you've burned an SMS code. Verify a card is checked on the 预约信息 page before requesting the code.
  3. 12306 must not be running — the accessibility service is shared. adb shell am force-stop com.MobileTicket
  4. An SMS code is required and only the user can supply it. Say so up front.

🖐️ Chinese & numeric input — clipboard paste

IME switching is blocked on these devices, and this is a WebView anyway. The proven route (works for Chinese and for the numeric SMS code):

d.set_clipboard("华山医院")
subprocess.run(["adb", "shell", "input", "keyevent", "279"])   # PASTE

Focus the field first (d.click(x, y)), or the paste goes nowhere. This is simpler and more reliable than the long-press → 粘贴 menu dance, and it works for plain digits too.

🕳️ Three traps that will cost you the whole session

1. FLAG_SECURE blanks your screenshots

When a password / secure field is focused, WeChat raises its 安全键盘 (adb shell dumpsys window | grep -i secure shows SECURE), and screencap returns nothing — a 0-byte file.

ocr_bridge.shot() detects this and raises a RuntimeError naming FLAG_SECURE, so you won't have to guess. (Older versions fell through to RapidOCR and died with a cryptic cannot identify image file.)

  • Confirm by hand if needed: ls -la ~/.cache/ocr-bridge/sc.png — 0 bytes is FLAG_SECURE, not a broken cable.
  • Recover: tap an inert part of the page to blur the field, wait ~2 s, re-shoot. $BASE/ocr_bridge.py a11y still reads these screens via the accessibility tree.
  • Note: the plain numeric 验证码 field does not trigger this — only the password field did. So the booking flow itself is screenshottable; the login page may not be.

A uniformly black capture is a different failure: it means the phone is asleep (mWakefulness=Dozing). shot() raises for that too, pointing at adb shell input keyevent KEYCODE_WAKEUP. Prevent it with adb shell svc power stayon true.

2. The keyboard reflows the whole page — never reuse stale coordinates

Focusing the 验证码 input scrolls the page so the button sits above the keyboard:

State 确认预约 at
Keyboard up ≈ (540, 1480)
Keyboard down ≈ (540, 2310)

Tapping the wrong one is a no-op at best. Always re-OCR right before the tap and locate the button from the fresh text box, then click i

Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл hospital-android-adb?

Book hospital appointments in Shanghai via USB ADB, through the WeChat 服务号 上海市级医院互联网总平台 (上海医联 / internethospital.shdc.org.cn). Battle-tested 2026-10-14 with a real end-to-end booking (华山医院 皮肤科 普通门诊). Covers the WeChat WebView navigation, the 便民服务 entrance, hospital/department/date-slot selection, the SMS verification gate, and the FLAG_SECURE + keyboard-layout traps. Uses uiautomator2 + RapidOCR, and requires the appium-android-adb base skill (it ships ocr_bridge.py) — ClawHub has no dependency resolver, so install it alongside.

Как установить скилл hospital-android-adb?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл hospital-android-adb запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить hospital-android-adb с