local-testing

Automate local app and bot testing with agent-browser and osascript.

Updated May 11, 2026
One-click install
npx skills add https://github.com/zmh13928433602-sys/lobe-chat --skill local-testing-zmh13928433602-sys
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: local-testing
Source: https://github.com/zmh13928433602-sys/lobe-chat/tree/main/.agents/skills/local-testing
Command: npx skills add https://github.com/zmh13928433602-sys/lobe-chat --skill local-testing-zmh13928433602-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agent-browser, ffmpeg, electron-vite, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Local app and bot testing is streamlined by providing a cohesive set of scripts to automate macOS app interactions (Discord, Slack, Telegram, WeChat, Lark/飞书, QQ) and Electron/web UIs with the agent-browser CLI.

Core Features & Use Cases

  • Ready-to-run scripts for Electron desktop testing (electron-dev.sh), window capture (capture-app-window.sh), and screen recording (record-app-screen.sh).
  • Cross-platform bot testing workflows for Discord, Slack, Telegram, WeChat, Lark, and QQ using osascript-based automation and AppleScript references in references/.
  • Quick-start sample workflows and references to patterns for easy integration into CI or local QA.

Quick Start

Run the local-testing suite to execute a bot test by invoking the provided scripts to start apps, navigate the UI, and verify bot responses.

Frequently Asked Questions about local-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate macOS app testing for Discord and Slack bots?▼

You can automate macOS app testing for Discord and Slack bots by using osascript-based scripts to start apps, navigate the UI, and verify bot responses. This Skill coordinates agent-browser and osascript to execute end-to-end UI test flows.

Can I use agent-browser for Electron desktop testing on macOS?▼

Yes, agent-browser is used for Electron desktop testing on macOS. The Skill provides ready-to-run scripts like electron-dev.sh to automate Electron/web UIs, alongside osascript for native macOS application interactions.

What's the best way to record and capture an app window during local testing?▼

The best way to capture and record app windows during local testing is by using the included shell scripts. The Skill provides capture-app-window.sh for window capture and record-app-screen.sh for screen recording, utilizing ffmpeg.

Does local bot testing for WeChat and Lark require a macOS environment?▼

Yes, local bot testing for WeChat and Lark requires a macOS environment. The automation workflows rely on osascript for native interactions, alongside agent-browser and Electron-based tooling, which are prerequisites for executing the test scripts.

How do I run end-to-end UI test flows for Telegram and QQ desktop clients?▼

You run end-to-end UI test flows for Telegram and QQ by invoking the provided scripts that coordinate agent-browser and osascript. The scripts handle app startup, UI navigation, and bot response verification across these desktop environments.