What problem does it solve?
Adding raw game screenshots to the MaaEnd node recognition test suite risks leaking private information like UIDs and nicknames, and requires correctly wiring images into the tests/MaaEndTestset submodule and test_*.json case files. This Skill automates redaction, placement, test definition, and validation so no unredacted original ever enters the repository.
Core Features & Use Cases
- Privacy Redaction: Covers fixed ADB/Win32 ROIs with pure green, runs the bundled MaaEnd OCR model to detect UID/# regions, and supports extra custom ROIs for anything OCR misses.
- Test Case Authoring: Guides correct controller/resource paths, image naming with explicit .png, hits arrays (including per-controller box values and empty-array negative cases), and JSONC formatting conventions.
- Validation & Submodule Commits: Runs pnpm check and pnpm test, inspects error_details.json, and commits images to the tests/MaaEndTestset submodule on main before updating the parent repo pointer.
- Use Case: A contributor has a 1280x720 ADB screenshot for the delivery task transfer flow. The Skill redacts the UID, writes it to tests/MaaEndTestset/ADB/Official_CN/, adds a case with hits ["DeliveryJobsConfirmTaskTransfer"] to the matching test JSON, and verifies everything passes.
Quick Start
Add the screenshot at C:\Screenshots\confirm.png to the ADB Official_CN test set as a redacted image named delivery_confirm.png with expected hit DeliveryJobsConfirmTaskTransfer, then run pnpm check and pnpm test.