CherryHQ/cherry-studio/.agents/skills/cherry-pr-test/SKILL.md
cherry-pr-test
Test Cherry Studio PRs by resolving and checking out a PR, statically inspecting its changes, running interactive UI tests against a safely tracked Electron instance through CDP, producing a structured report, cleaning up only the owned test instance, and restoring the original branch.
- Source repository stars
- 49,062
- Declared platforms
- 0
- Static risk flags
- 1
- Last source update
- 2026-07-28
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
Use this workflow for a bounded PR test. Use cherry-electron-dev for ongoing implementation or debugging in the current checkout.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/CherryHQ/cherry-studio --skill ".agents/skills/cherry-pr-test"Inspect the Agent Skill "cherry-pr-test" from https://github.com/CherryHQ/cherry-studio/blob/dda7cc99d730c36bde685bec586dafe458722a4d/.agents/skills/cherry-pr-test/SKILL.md at commit dda7cc99d730c36bde685bec586dafe458722a4d. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Workflow
If no PR is specified, list recent PRs and ask the user to choose unless they requested the latest:
blocked or deprecated v1/v2-refactor fileshardcoded user-visible strings instead of i18nconsole.log instead of loggerService - 02
Prerequisites and safety
$ARGUMENTS may contain a PR number, PR URL, latest/recent, or nothing.
Require authenticated gh, pnpm, and installed project dependencies.Use Playwright/CDP or optional agent-browser for UI control.Before touching Electron, read - 03
1. Resolve and inspect the PR
If no PR is specified, list recent PRs and ask the user to choose unless they requested the latest:
If no PR is specified, list recent PRs and ask the user to choose unless they requested the latest:Record the current branch for restoration, inspect the PR, then check it out:Read the changed files and nearby instructions. Record the exact checked-out HEAD. - 04
2. Analyze and start the app
Run static analysis while the app starts when both can proceed independently.
blocked or deprecated v1/v2-refactor fileshardcoded user-visible strings instead of i18nconsole.log instead of loggerService - 05
3. Run interactive tests
Bind the controller to the exact target returned by the shared reference. Never navigate to a guessed root URL or select a target by index.
Capture the initial state.Inspect interactive elements with the available CDP controller.Exercise the changed behavior.
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
git status --shortRuns scripts
The documentation asks the agent to run terminal commands or scripts.
git branch --show-currentEvidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 89/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 49,062 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- CherryHQ/cherry-studio
- Skill path
- .agents/skills/cherry-pr-test/SKILL.md
- Commit
- dda7cc99d730c36bde685bec586dafe458722a4d
- License
- AGPL-3.0
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
Cherry Studio PR Test
Use this workflow for a bounded PR test. Use cherry-electron-dev for ongoing
implementation or debugging in the current checkout.
Prerequisites and safety
- Require authenticated
gh,pnpm, and installed project dependencies. - Use Playwright/CDP or optional
agent-browserfor UI control. - Before touching Electron, read
Electron Instance Management
and select its
ephemeralpolicy. - Treat that reference as the only authority for discovery, target selection, launch, replacement, shutdown, tracking, and troubleshooting.
- Never discard local changes. Stop and ask if checkout would overwrite them.
- Show the report before posting it anywhere.
$ARGUMENTS may contain a PR number, PR URL, latest/recent, or nothing.
Workflow
1. Resolve and inspect the PR
If no PR is specified, list recent PRs and ask the user to choose unless they requested the latest:
gh pr list --repo CherryHQ/cherry-studio --state open --limit 10 \
--json number,title,author,createdAt,headRefName,changedFiles
Record the current branch for restoration, inspect the PR, then check it out:
git status --short
git branch --show-current
gh pr view <NUMBER> --json title,body,author,headRefName,files
gh pr checkout <NUMBER>
Read the changed files and nearby instructions. Record the exact checked-out HEAD.
2. Analyze and start the app
Run static analysis while the app starts when both can proceed independently.
For static analysis:
pnpm typecheck
Also check:
- blocked or deprecated v1/v2-refactor files
- hardcoded user-visible strings instead of i18n
console.loginstead ofloggerService- missing types on new public interfaces
For Electron:
- Use the shared reference to verify existing instances.
- Reuse only an instance from this workspace whose recorded launch HEAD equals the checked-out PR HEAD.
- When reusing one, mark it borrowed and preserve its existing policy and ownership. Never reclassify a persistent instance as ephemeral.
- Otherwise gracefully replace only the verified same-workspace instance.
- Launch an
ephemeral, agent-owned instance with an isolatedCS_DEV_USER_DATA_SUFFIX, such asPR-<NUMBER>. - Keep its managed terminal/session, PIDs, ports, log, exact target, and
pr-test:<NUMBER>launch purpose ininstance.json.
Do not use broad process or port cleanup.
3. Run interactive tests
Bind the controller to the exact target returned by the shared reference. Never navigate to a guessed root URL or select a target by index.
Build test cases from the PR description and changed files:
- Capture the initial state.
- Inspect interactive elements with the available CDP controller.
- Exercise the changed behavior.
- Capture the result and verify relevant persisted state.
- Repeat edge cases justified by the change.
Consider UI rendering, interactions, persistence, light/dark themes, relevant window sizes, i18n, empty states, and rapid interaction only when in scope.
Store screenshots and the report under /tmp/pr-<NUMBER>/:
mkdir -p /tmp/pr-<NUMBER>
If an isolated profile shows the migration wizard or splash, follow the shared troubleshooting guidance and startup logs. Do not reset or force-close data.
4. Clean up and restore
Use the shared ephemeral finish procedure. Stop only an instance launched by
this PR-test workflow whose verified record remains ephemeral, agent-owned,
and scoped to pr-test:<NUMBER>. Leave every borrowed instance running. Do not
stop unrelated workspaces or packaged apps.
Restore the branch recorded before checkout. If it no longer exists, resolve the repository default branch and report the fallback before switching:
git checkout <ORIGINAL_BRANCH>
5. Report
Save /tmp/pr-<NUMBER>/report.md and show it to the user. Match the report
language to the user's language; the template uses English labels:
# PR #<NUMBER> Test Report
**Title**: <title>
**Author**: @<author>
**Branch**: <branch>
**Changed files**: <count>
## Static Analysis
| Check | Result | Notes |
| --- | --- | --- |
| TypeScript typecheck | ✅/❌ | ... |
| Blocked-file check | ✅/⚠️ | ... |
| Logging, i18n, and types | ✅/❌ | ... |
## UI Tests
### <Test Case>
<scenario, evidence, and result>

## Findings
<findings or none>
## Conclusion
- Total findings: N
- Recommendation: APPROVE / REQUEST_CHANGES / COMMENT
Do not post the report or submit a GitHub review unless the user explicitly asks.
Alternatives
Compare before choosing
event4u-app/agent-config
design-review
Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.
affaan-m/ECC
browser-qa
Use this skill to automate visual testing and UI interaction verification using browser automation after deploying features.
MoizIbnYousaf/marketing-cli
conversion-flow-cro
Optimizes multi-step conversion flows including signup, onboarding, upgrade, and checkout. Maps each step, identifies friction and drop-off risks, then recommends specific copy/UX changes with A/B test plans. Use when someone says 'signup flow', 'onboarding optimization', 'checkout conversion', 'paywall optimization', 'activation rate', 'funnel analysis', 'why are users dropping off', 'registration flow', 'trial conversion', 'free to paid', 'upgrade flow', 'user journey', or wants to improve any
coreyhaines31/marketingskills
ab-testing
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program