[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7155NAKMWJ5X7Q5BGZ05TQP":3,"skill-same:01M7155NAKMWJ5X7Q5BGZ05TQP":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":14,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M7155NAKMWJ5X7Q5BGZ05TQP","android_ui_verification",null,"Automated end-to-end UI testing and verification on an Android Emulator using ADB.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fandroid_ui_verification\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31],"android","verification","ui","ui verification","android ui verification","testing","safe","emulator","ui testing","adb","community","end","2026","2026-11-10 10:12:30",false,"---\nname: android_ui_verification\ndescription: Automated end-to-end UI testing and verification on an Android Emulator using ADB.\nrisk: safe\nsource: community\ndate_added: \"2026-02-28\"\n---\n\n# Android UI Verification Skill\n\nThis skill provides a systematic approach to testing React Native applications on an Android emulator using ADB commands. It allows for autonomous interaction, state verification, and visual regression checking.\n\n## When to Use\n- Verifying UI changes in React Native or Native Android apps.\n- Autonomous debugging of layout issues or interaction bugs.\n- Ensuring feature functionality when manual testing is too slow.\n- Capturing automated screenshots for PR documentation.\n\n## 🛠 Prerequisites\n- Android Emulator running.\n- `adb` installed and in PATH.\n- Application in debug mode for logcat access.\n\n## 🚀 Workflow\n\n### 1. Device Calibration\nBefore interacting, always verify the screen resolution to ensure tap coordinates are accurate.\n```bash\nadb shell wm size\n```\n*Note: Layouts are often scaled. Use the physical size returned as the base for coordinate calculations.*\n\n### 2. UI Inspection (State Discovery)\nUse the `uiautomator` dump to find the exact bounds of UI elements (buttons, inputs).\n```bash\nadb shell uiautomator dump \u002Fsdcard\u002Fview.xml && adb pull \u002Fsdcard\u002Fview.xml .\u002Fartifacts\u002Fview.xml\n```\nSearch the `view.xml` for `text`, `content-desc`, or `resource-id`. The `bounds` attribute `[x1,y1][x2,y2]` defines the clickable area.\n\n### 3. Interaction Commands\n- **Tap**: `adb shell input tap \u003Cx> \u003Cy>` (Use the center of the element bounds).\n- **Swipe**: `adb shell input swipe \u003Cx1> \u003Cy1> \u003Cx2> \u003Cy2> \u003Cduration_ms>` (Used for scrolling).\n- **Text Input**: `adb shell input text \"\u003Cmessage>\"` (Note: Limited support for special characters).\n- **Key Events**: `adb shell input keyevent \u003Ccode_id>` (e.g., 66 for Enter).\n\n### 4. Verification & Reporting\n#### Visual Verification\nCapture a screenshot after interaction to confirm UI changes.\n```bash\nadb shell screencap -p \u002Fsdcard\u002Fscreen.png && adb pull \u002Fsdcard\u002Fscreen.png .\u002Fartifacts\u002Ftest_result.png\n```\n\n#### Analytical Verification\nMonitor the JS console logs in real-time to detect errors or log successes.\n```bash\nadb logcat -d | grep \"ReactNativeJS\" | tail -n 20\n```\n\n#### Cleanup\nAlways store generated files in the `artifacts\u002F` folder to satisfy project organization rules.\n\n## 💡 Best Practices\n- **Wait for Animations**: Always add a short sleep (e.g., 1-2s) between interaction and verification.\n- **Center Taps**: Calculate the arithmetic mean of `[x1,y1][x2,y2]` for the most reliable tap target.\n- **Log Markers**: Use distinct log messages in the code (e.g., `✅ Action Successful`) to make `grep` verification easy.\n- **Fail Fast**: If a `uiautomator dump` fails or doesn't find the expected text, stop and troubleshoot rather than blind-tapping.\n","# Android UI Verification Skill\n\nThis skill provides a systematic approach to testing React Native applications on an Android emulator using ADB commands. It allows for autonomous interaction, state verification, and visual regression checking.\n\n## When to Use\n- Verifying UI changes in React Native or Native Android apps.\n- Autonomous debugging of layout issues or interaction bugs.\n- Ensuring feature functionality when manual testing is too slow.\n- Capturing automated screenshots for PR documentation.\n\n## 🛠 Prerequisites\n- Android Emulator running.\n- `adb` installed and in PATH.\n- Application in debug mode for logcat access.\n\n## 🚀 Workflow\n\n### 1. Device Calibration\nBefore interacting, always verify the screen resolution to ensure tap coordinates are accurate.\n```bash\nadb shell wm size\n```\n*Note: Layouts are often scaled. Use the physical size returned as the base for coordinate calculations.*\n\n### 2. UI Inspection (State Discovery)\nUse the `uiautomator` dump to find the exact bounds of UI elements (buttons, inputs).\n```bash\nadb shell uiautomator dump \u002Fsdcard\u002Fview.xml && adb pull \u002Fsdcard\u002Fview.xml .\u002Fartifacts\u002Fview.xml\n```\nSearch the `view.xml` for `text`, `content-desc`, or `resource-id`. The `bounds` attribute `[x1,y1][x2,y2]` defines the clickable area.\n\n### 3. Interaction Commands\n- **Tap**: `adb shell input tap \u003Cx> \u003Cy>` (Use the center of the element bounds).\n- **Swipe**: `adb shell input swipe \u003Cx1> \u003Cy1> \u003Cx2> \u003Cy2> \u003Cduration_ms>` (Used for scrolling).\n- **Text Input**: `adb shell input text \"\u003Cmessage>\"` (Note: Limited support for special characters).\n- **Key Events**: `adb shell input keyevent \u003Ccode_id>` (e.g., 66 for Enter).\n\n### 4. Verification & Reporting\n#### Visual Verification\nCapture a screenshot after interaction to confirm UI changes.\n```bash\nadb shell screencap -p \u002Fsdcard\u002Fscreen.png && adb pull \u002Fsdcard\u002Fscreen.png .\u002Fartifacts\u002Ftest_result.png\n```\n\n#### Analytical Verification\nMonitor the JS console logs in real-time to detect errors or log successes.\n```bash\nadb logcat -d | grep \"ReactNativeJS\" | tail -n 20\n```\n\n#### Cleanup\nAlways store generated files in the `artifacts\u002F` folder to satisfy project organization rules.\n\n## 💡 Best Practices\n- **Wait for Animations**: Always add a short sleep (e.g., 1-2s) between interaction and verification.\n- **Center Taps**: Calculate the arithmetic mean of `[x1,y1][x2,y2]` for the most reliable tap target.\n- **Log Markers**: Use distinct log messages in the code (e.g., `✅ Action Successful`) to make `grep` verification easy.\n- **Fail Fast**: If a `uiautomator dump` fails or doesn't find the expected text, stop and troubleshoot rather than blind-tapping.\n",{"name":5,"risk":25,"source":29,"date_added":37,"description":7},"2026-02-28","main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fcursor\u002Fandroid_ui_verification","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill android_ui_verification",{"tool":50,"command":51},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill android_ui_verification",{"tool":53,"command":54},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill android_ui_verification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fandroid_ui_verification\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fverify_ui.sh","SCRIPT","脚本",895,"https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fandroid_ui_verification\u002Fscripts\u002Fverify_ui.sh",[65,75,82,90,96,104],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":74},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":74},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":91,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":74},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":74},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":74},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]