Skip to content
Back to skills

Verification

ASecurity

Verify a Cherry Studio change from a reproducible scenario through evidence a reviewer can rerun. Use when reproducing a bug, validating an implementation or PR claim, checking an affected contract, capturing a screenshot or recording, diagnosing a performance symptom, or measuring a performance change.

  • 24 stars
  • 0 votes
  • 2 copies
  • 2 views
  • Added December 2, 2026
testinggosqltestinggitdatabaseperformancedocumentation

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill verification --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Verification?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Verification
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-verification/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-verification)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: verification
description: Verify a Cherry Studio change from a reproducible scenario through evidence a reviewer can rerun. Use when reproducing a bug, validating an implementation or PR claim, checking an affected contract, capturing a screenshot or recording, diagnosing a performance symptom, or measuring a performance change.
---

# Verification

Use this workflow with Cherry Studio's launch, control, and capture tools. Start with the [replay scenarios](references/replay-examples.md) for working commands and observable results.

For a new desktop verification run, use [Desktop verification](references/desktop-verification.md) for a clean launch, readiness check, and scenario selection.
For a standalone screenshot or recording request, go directly to [UI capture](references/ui-capture.md).
For a performance symptom or an existing profile, start with [Performance investigations](references/performance-investigations.md).

## Plan the proof

1. Run `pnpm change:scope --base <verified-ref>`. For a PR, resolve its live base and head and confirm the checked-out revision. Record the exact baseline and candidate SHAs, or the SHA and local diff for a pre-commit run. Use the revision that exhibited the bug or provided the performance baseline. For a stack, use the relevant parent or last known bad revision and say which. Refresh the evidence affected by a head change.
2. Turn each material claim or affected acceptance criterion into a scenario with a real entry point, initial state, input, and observable outcome. For a fix, say how the same check should fail on the baseline and pass on the candidate. Include a failure or recovery case when the changed contract covers it. Trace affected callers and side effects so a nearby test or a matching proposal is not mistaken for coverage.
3. Choose the smallest check that reaches the boundary where the claim can fail. Use the repository's fixtures and normal callers. Record OS, build mode, profile, and external prerequisites when they affect the result. Reset mutable state between revisions and keep the workload and settings comparable.

## Run the scenario

For UI and runtime claims, use this loop on each revision:

1. **Launch and check readiness.** Use [Electron Instance Management](../cherry-electron-dev/references/electron-instance.md) to select the profile and confirm the PID, worktree, CDP listener, and target. Run the [desktop doctor](references/desktop-verification.md#check-the-instance) and confirm the scenario's starting state. Recheck the instance after an unexpected failure before retrying.
2. **Drive and observe.** Use Playwright/CDP through the normal entry point. Assert the postcondition and check the side effect the change promises. Save evidence before resetting state. For a repair, run the same actions again after editing and record both outcomes.
3. **Clean up.** Stop only the processes and remove only the scratch state created by this run, including after a failed attempt. Confirm the evidence is still readable afterward.

| Development task | Execution path | What to observe |
| --- | --- | --- |
| Reproduce and fix a regression | Run the same scenario on baseline and candidate through the failing boundary. Use the focused project test for a code contract, or the Electron or E2E path for an app-level failure. | Baseline fails for the reported reason, candidate passes, and any affected side effect still holds. A setup failure on the baseline is inconclusive. |
| Verify a user-visible UI fix | Use [UI capture](references/ui-capture.md) for the before and after. Use [cherry-regression-test](../cherry-regression-test/SKILL.md) when an existing Playwright case covers the path. | Capture the same input, window size, theme, and region. Use video for motion or action order and inspect both outputs. Check relevant state after the interaction, including persistence if claimed. |
| Diagnose or measure a performance change | Use [Performance investigations](references/performance-investigations.md) to choose the evidence. Use the existing workload harness or drive the same scenario on each revision. | Establish the limiting operation and distinguish a confirmed cause from a hypothesis. Apply the benchmark protocol below when reporting an improvement. |
| Verify a shared contract, migration, or runtime boundary | Use `pnpm check --plan` to discover scope, then run the applicable project wrapper with explicit affected test paths, including affected consumers. Use the [production migration fixture](../../../docs/dev/references/testing/database-testing.md) for SQLite changes. Exercise the real IPC, process restart, or packaged app when that is where the behavior can fail. | Assert consumer outcomes for valid and failure paths. Include an existing-data upgrade, retry, or cleanup case when the change affects it. Record which boundary each check actually reached. |
| Verify documentation or tooling | Run the owning docs, skill, or tool checks. For a workflow change, follow its instructions on a representative task or known historical case. | Confirm the instructions reach the expected result and expose a known failure or missing prerequisite. |

Mock external systems at existing boundaries when needed for repeatability. Identify the substitution and keep evidence from the real application or package path where the claim lives.

### Benchmark protocol

1. State the workload, metric, unit, and operation being timed. Read the runner to establish what it executes and what the timer includes. Use the same production-relevant settings, fixture, warm-up, and cache state on each revision. If the optimization changes the fixture alongside the code under test, hold the fixture fixed when measuring the isolated optimization.
2. Check machine load and identify the limiting operation in a separate diagnostic run. Measure the full path a user or developer waits on for any end-to-end claim. Check that the claimed improvement is plausible given the measured cost of the changed operation.
3. Alternate at least five measured runs per side. Record each measurement, completed work, output checks, and errors. Verify that the work ran inside the timed interval and produced equivalent results on both sides. Label a shorter run as a smoke check.
4. Report median, range, sample count, delta, and any non-comparable conditions. Treat results within run-to-run variation as no measurable difference. Report the comparison as inconclusive when failures, unchecked work, or differing conditions prevent a fair comparison.

## Leave evidence another reviewer can replay

Keep local artifacts under `.context/verification/<scenario>/`, or link evidence from the tool's existing output location. For every material claim, record:

- **Revisions and setup** — baseline, candidate, relevant environment, fixture and initial state.
- **Replay** — exact command or steps and inputs, with expected observations for each side.
- **Result** — observed outcome and supporting output, including any material side effect. Link labeled before and after media for UI fixes. For performance, include metric, unit, before and after values, delta, and raw samples when available.
- **Coverage** — which claim or AC this proves, what was blocked or remains unverified, and why. Keep local, hosted CI, and interactive results identifiable.

For PR delivery, put the result and reviewer-accessible artifact links in `Verification` per the [PR template](../../../.github/pull_request_template.md). Follow [gh-attach](../gh-attach/SKILL.md) when the PR workflow uses GitHub media attachments. Keep credentials, private inputs, and unredacted profile data out of evidence shared with reviewers.

See [Replay examples](references/replay-examples.md) for an Electron regression and a development-tool benchmark with pinned revisions.

## Replay during review

Start from the actual diff and affected callers. Open the evidence and check that the setup, revisions, observations, and claim agree. When an important result is in doubt, rerun the smallest decisive scenario in an isolated environment using the same inputs. If the run cannot be repeated, state the missing prerequisite or evidence and continue the rest of the review. Follow [gh-pr-review](../gh-pr-review/SKILL.md) for review scope, existing CI, and reporting.

## Maintain a replay

When a verification entry point, fixture, or runner changes:

1. Use the change scope to identify affected scenarios. Trace their entry points and prerequisites against the current code and owning docs. For a historical comparison, check that the pinned revisions still exhibit the expected difference and that the current capture tool can drive both.
2. Run the affected scenario live, using its documented setup and checks. Classify any discrepancy by what failed: stale instructions, an unsupported runner action, a product regression, or a missing prerequisite. For a blocked run, record the attempted action and the missing prerequisite.
3. Correct stale instructions or the runner in the owning file and repeat the affected scenario through cleanup. Report product regressions with the observed result and leave the expected behavior intact. Check that the evidence remains readable after cleanup.

Files in this skill

  • SKILL.md9.1 KB
  • references/desktop-verification.md4.7 KB
  • references/performance-investigations.md6.4 KB
  • references/replay-examples.md3.5 KB
  • references/settings-search.mjs3.5 KB
  • references/ui-capture.md3.9 KB
  • scripts/capture.mjs13.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.