check-code-quality
You are performing static code quality analysis on the Scopy package: `$ARGUMENTS`
You are validating the JavaScript automated test scripts for the Scopy plugin: `$ARGUMENTS`
> /plugin marketplace add analogdevicesinc/scopy > /plugin install scopy_dev_plugin@scopy-plugins
How it fires
How this command gets triggered: by you, by Claude, or both.
/validate-automated-testsContext preview
What this command does when you run it.
You are validating the JavaScript automated test scripts for the Scopy plugin: `$ARGUMENTS`
You are validating the JavaScript automated test scripts for the Scopy plugin: `$ARGUMENTS`
The `test-automation-quality-checks` skill rules (checks T1–T7) govern this analysis.
Use the Glob tool to locate:
If no JS test files are found, report "No automated test files found for `$ARGUMENTS`" and stop.
**Cross-plugin header discovery:** After reading the JS test files, scan them for API object references using the pattern `<objectName>.<method>()`. Collect every distinct object name that is not `TestFramework`, `scopy`, or a built-in (e.g. `msleep`, `assertEqual`). For each such name, use the Glob tool to search for a matching `*_api.h` across all packages: `scopy/packages/*/plugins/*/include/**/*_api.h`. Read any headers found so that [T2] can validate cross-plugin method calls against the correct plugin's header.
Read **all** discovered files (primary + cross-plugin) before starting analysis.
Apply every rule from the `test-automation-quality-checks` skill:
**[T1] UID Matching**
**[T2] API Method Validity**
**[T3] Sleep After Setters**
**[T4] State Restoration**
**[T5] Visual Test Pattern**
**[T6] File Termination**
**[T7] Coverage**
## Automated Test Validation Report: $ARGUMENTS ### Summary | Check | Severity | Result | |-------|----------|--------| | [T1] UID Matching | CRITICAL | PASS/FAIL | | [T2] API Method Validity | CRITICAL | PASS/FAIL | | [T3] Sleep After Setters | CRITICAL | PASS/FAIL | | [T4] State Restoration | CRITICAL | PASS/FAIL | | [T5] Visual Test Pattern | WARNING | PASS/WARN | | [T6] File Termination | WARNING | PASS/WARN | | [T7] Coverage | INFO | X/Y UIDs covered | ### Critical Issues **[T2] Invented API method** `js/testAutomations/myplugin/myTests.js:42` — `mypluginApi.setFoo()` does not exist in `myplugin_api.h`. > **Fix:** Use the correct method name from the API header, or add the method to the API class. ### Warnings ... ### Info **[T7] Coverage** - RST Category A: 5 UIDs — 5 implemented (100%) - RST Category B: 3 UIDs — 2 implemented (67%) — missing: `MY_PLUGIN_0003` ### Verdict [PASS/FAIL] — [one sentence summary]
PASS = zero critical issues. FAIL = one or more critical issues.
You are performing static code quality analysis on the Scopy package: `$ARGUMENTS`
**Recommended model:** Opus — this command performs deep codebase exploration and multi-step reasoning to produce high-quality…
You are creating a JavaScript API class for a Scopy plugin so it can be controlled from test automation scripts.
You are creating JavaScript automated test scripts for a Scopy plugin, mapping RST manual test cases to API calls.
You are creating Sphinx RST documentation for a Scopy plugin user guide.
You are creating Sphinx RST test case documentation for a Scopy plugin, following the established test documentation format.