check-code-quality
You are performing static code quality analysis on the Scopy package: `$ARGUMENTS`
You are creating JavaScript automated test scripts for a Scopy plugin, mapping RST manual test cases to API calls.
> /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.
/create-automated-testsContext preview
What this command does when you run it.
You are creating JavaScript automated test scripts for a Scopy plugin, mapping RST manual test cases to API calls.
You are creating JavaScript automated test scripts for a Scopy plugin, mapping RST manual test cases to API calls.
**Plugin:** `$ARGUMENTS`
Use the Read tool to check if a port state file exists:
Before writing tests, verify these inputs exist: 1. **Plugin API class** — use the Glob tool to search for `*_api.h` in `scopy/packages/$ARGUMENTS/` 2. **Test RST docs** — use the Read tool on `scopy/docs/tests/plugins/$ARGUMENTS/$ARGUMENTS_tests.rst`
If the API class does not exist, stop and tell the user to run `/create-api $ARGUMENTS` first. If the test RST does not exist, stop and tell the user to run `/create-test-docs $ARGUMENTS` first.
Read these specific files:
1. **Plugin API header** (all `Q_INVOKABLE` methods):
2. **Test RST documentation** (all UIDs and steps):
3. **Existing test files** (check for update mode):
4. **Test framework API**:
5. **Cross-plugin APIs** (if RST steps reference other plugins):
When JS test files already exist in `scopy/js/testAutomations/$ARGUMENTS/`, do NOT create new files from scratch. Instead:
1. **Read all existing test files** completely. 2. **Run all T1–T7 checks** from the `test-automation-quality-checks` skill against the existing code (same as `/validate-automated-tests`). 3. **Present a fix plan** listing:
4. **AUTO-APPROVE and proceed** — apply all fixes to the existing test files:
5. Continue to **Step 4: Validate** below to confirm all checks pass after fixes.
Do NOT regenerate tests from scratch — fix the existing code in place, preserving existing test logic.
---
After reading all source material, present a classification report:
All steps AND expected results can be verified via API (write-readback, getTools, switchToTool).
Steps automatable but expected result requires human visual observation (`supervisedCheck()`).
No API exists for required step, requires OS dialogs, external hardware, or Scopy restart.
**Wait for user approval before writing any JavaScript.**
**File locations:**
**Critical rules (non-negotiable):** 1. Every setter is followed by `msleep(500)` 2. Every test saves original value before modifying, and restores it in ALL code paths 3. Visual tests use `TestFramework.supervisedCheck("description")` — never `msleep(VISUAL_DELAY)` 4. Test names in `TestFramework.runTest()` must be the exact UID from the RST doc 5. Never invent API methods — only use what's in the `*_api.h` header 6. Files end with `TestFramework.disconnectFromDevice()`, `TestFramework.printSummary()`, `scopy.exit()` 7. Category C tests get a Missing API Report comment block at the top of DocTests.js
## Status - Phase: AUTO_TESTS_COMPLETE
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 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.
You are creating JavaScript unit test scripts for a Scopy plugin that test every IIOWidget attribute via…