feat(skills): add agent-browser and electron skills with dev:cdp script#13567
Draft
feat(skills): add agent-browser and electron skills with dev:cdp script#13567
Conversation
Add public skills for agent-browser CLI and Electron app automation via CDP. Add `dev:cdp` npm script using electron-vite's built-in REMOTE_DEBUGGING_PORT support for development with Chrome DevTools Protocol enabled. Use file copy instead of symlinks for cross-platform compatibility in skill sync. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: suyao <sy20010504@gmail.com>
…ot-symlink # Conflicts: # .agents/skills/public-skills.txt # .claude/skills/.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Before this PR:
agent-browserandelectronskills were not available as public skills in the repositoryAfter this PR:
agent-browserskill (browser automation CLI for AI agents) andelectronskill (Electron app automation via CDP) as public skillspnpm dev:cdpscript that starts the dev server with--remote-debugging-port=9222using electron-vite's built-inREMOTE_DEBUGGING_PORTenv var.agents/skills/and.claude/skills/agent-browseras a project dependencyWhy we need it and why it was done in this way
AI agents working on Cherry Studio need the ability to visually verify their UI changes during development. The
agent-browser+electronskills enable agents to connect to a running Electron instance via CDP, take snapshots, screenshots, and interact with UI elements.The following tradeoffs were made:
dotenv -v REMOTE_DEBUGGING_PORT=9222for thedev:cdpscript to leverage electron-vite's native CDP support rather than passing raw CLI args, ensuring cross-platform compatibilityThe following alternatives were considered:
cross-envfor env var injection — rejected becausedotenv -vis already a project dependencyELECTRON_EXTRA_LAUNCH_ARGS— not supported by electron-viteBreaking changes
None
Special notes for your reviewer
electron-vitesource code atnode_modules/electron-vite/dist/chunks/lib-q6ns0vZr.js:225-226confirms native support forREMOTE_DEBUGGING_PORTenv var in dev modeChecklist
/gh-pr-review,gh pr diff, or GitHub UI) before requesting review from othersRelease note