check-code-quality
You are performing static code quality analysis on the Scopy package: `$ARGUMENTS`
You are validating the JavaScript API class implementation 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-apiContext preview
What this command does when you run it.
You are validating the JavaScript API class implementation for the Scopy plugin: `$ARGUMENTS`
You are validating the JavaScript API class implementation for the Scopy plugin: `$ARGUMENTS`
The `api-quality-checks` skill rules (checks A1–A7) govern this analysis.
Use the Glob tool to locate:
If no `*_api.h` is found, report "No API class found for `$ARGUMENTS`" and stop.
Read **all** discovered files before starting analysis.
Apply every rule from the `api-quality-checks` skill:
**[A1] Inheritance & Structure**
**[A2] Plugin Integration**
**[A3] Null Safety**
**[A5] Conversion Correctness** Cross-reference tool's IIOWidget lambdas (`setDataToUIConversion` / `setUItoDataConversion`):
**[A4] API Coverage**
**[A6] Private Helper Pattern**
**[A7] Naming & Types**
## API Validation Report: $ARGUMENTS ### Summary | Check | Severity | Result | |-------|----------|--------| | [A1] Inheritance & Structure | CRITICAL | PASS/FAIL | | [A2] Plugin Integration | CRITICAL | PASS/FAIL | | [A3] Null Safety | CRITICAL | PASS/FAIL | | [A5] Conversion Correctness | CRITICAL | PASS/FAIL | | [A4] API Coverage | WARNING | PASS/WARN | | [A6] Private Helper Pattern | WARNING | PASS/WARN | | [A7] Naming & Types | INFO | PASS/INFO | ### Critical Issues **[A2] initApi() not last in onConnect()** `src/myplugin.cpp:87` — `initApi()` is called before widget setup completes. > **Fix:** Move `initApi()` to the line immediately before `return true`. ### Warnings ... ### Info ... ### 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.