Mobile Hexin (Tonghuashun) Automated Trading: Executing Explicit Instructions via uiautomator2

Introduction

When developing automation for A-shares, common approaches involve broker-provided open APIs or desktop scripts. If you are already using the Tonghuashun (THS) app on an Android phone for paper or live trading, and you want the Agent to only handle the execution layer—such as “clicking the interface, placing orders, and checking positions”—rather than selecting stocks or writing strategies, you need a Skill capable of controlling the app on a real device. Below is an introduction to Mobile THS Auto Trading (@user_d5f611dc/ths-adb-trader) available on SkillHub. It drives the Tonghuashun app on your phone via uiautomator2, translating the trading actions you specify in the conversation into on-screen operations.

What is this

Mobile THS Auto Trading is a community-sourced (community) Agent Skill categorized under professional. The current version is v1.0.0, maintained by the publisher user_d5f611dc.

In one sentence: It uses uiautomator2 to execute explicit trading actions—such as buying, selling, canceling orders, and querying accounts/positions—on the Tonghuashun Android client, supporting interface-level automation for both paper and live trading scenarios.

The boundary between this and a “Strategy Skill” is clearly defined in the official description: it does not perform stock selection, does not predict stock prices, does not provide strategy recommendations, and is solely responsible for executing trading actions.

Core Features

The following capabilities are derived from the SkillHub page and captured data descriptions; features not explicitly listed are omitted.

  1. Interface Automation Execution: Controls the Tonghuashun app on an Android device via uiautomator2 to complete interface operations related to trading.
  2. Paper and Live Trading: The description specifies it can perform both paper and live trading. The specific mode depends on the configuration and account type on your phone’s Tonghuashun app; the Skill does not replace broker compliance reviews.
  3. Conversational Triggers: When user intent involves trading-related operations, specific trigger words can guide the Skill. Officially listed words include: 交易 (trade), 下单 (place order), 买卖 (buy/sell), 账户 (account), 持仓 (position), 撤单 (cancel order).
  4. No API Key Required: Tagged as requires_api_key=false, installation and usage do not depend on additional SkillHub API Key configuration.

SkillHub Statistics (based on captured data): Rating 100000, 3932 downloads; the page shows 0 installations (subject to real-time store data).

Installation and Activation

The installation method provided on the official SkillHub skill page instructs the Agent to follow the general installation documentation for this coordinate:

Please install `@user_d5f611dc/ths-adb-trader` according to https://skillhub.cn/install/skillhub.md.

If SkillHub CLI is already installed on your machine, you can follow Section 3 of SkillHub Installation and Priority Source Configuration to install the skill into the skills directory recognized by the current Agent (You must use --dir, otherwise it defaults to ./skills/ and may not be recognized):

command -v skillhub && skillhub --version

If the CLI is not installed, the documentation provides a one-click installation command (internet connection required):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Example of installing this skill (replace <skills directory> with the client path you are using):

skillhub install user_d5f611dc/ths-adb-trader --dir <skills directory>

Common client skills directories (excerpted from official installation documentation):

Client skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project
Windsurf ~/.codeium/windsurf/skills/ or .windsurf/skills/

After installation, restart or refresh the skill list according to the requirements of your Agent. This Skill is a generic SKILL.md format package. Specific prerequisites (ADB, uiautomator2 environment, mobile debugging authorization, etc.) are subject to the SKILL.md inside the package. Since the public store page does not expand on these details, commands are not speculated here.

Typical Usage

Public materials do not provide copy-paste script examples; usage should be understood around “explicit instructions + trigger words”:

  1. Use natural language in the conversation to describe a single, verifiable action, such as querying positions, placing an order for a specified quantity of a target asset, or canceling an order. Avoid letting the Agent autonomously “select stocks” or “judge buy/sell points”—this aligns with the Skill’s design boundaries.
  2. When the intent closely matches official trigger words, it is easier to route to this Skill: 交易, 下单, 买卖, 账户, 持仓, 撤单.
  3. Execution occurs within the Tonghuashun app on a connected Android phone controllable by uiautomator2. The Agent uses the Skill to implement steps on the interface, rather than calling broker HTTP APIs not mentioned in the description.

To verify skill metadata, visit the SkillHub page: https://www.skillhub.cn/skills/user_d5f611dc/ths-adb-trader.

Applicable Scenarios and Notes

Who is it for

  • People already trading or practicing with paper trading on Android + Tonghuashun who want to use an Agent for execution layer automation.
  • Those whose strategies, signals, and risk control logic are produced by themselves or other systems, and simply need a Skill to “click instructions onto the screen.”

Limitations and Risks

  • Relies on the real device and the Tonghuashun client UI. Interface redesigns may cause automation failures, requiring troubleshooting based on the skill package maintenance instructions.
  • Live trading involves capital and compliance; the Skill does not provide investment advice. Any automated order placement should have your own confirmation and risk control processes.
  • This is a community-sourced (community) skill. The path for upgrades and feedback is subject to the SkillHub publisher user_d5f611dc.

Conclusion

Mobile THS Auto Trading encapsulates Tonghuashun Android operations into an Agent-callable Skill: uiautomator2 drives the APP, trigger words cover common intents like trading, ordering, and positions, and it explicitly abstains from stock selection and strategy responsibilities. If your pain point is “letting the model only execute the trading actions I explicitly state,” you can start by installing and reading the skill package instructions from the official address.

  • SkillHub Page: https://www.skillhub.cn/skills/user_d5f611dc/ths-adb-trader
  • Coordinate: @user_d5f611dc/ths-adb-trader (v1.0.0)
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye