instrument-power-supply

23 stars

Best use case

instrument-power-supply is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Teams using instrument-power-supply should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/instrument-power-supply/SKILL.md --create-dirs "https://raw.githubusercontent.com/wangjianjq/Skill/main/.agents/skills/instrument-power-supply/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/instrument-power-supply/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How instrument-power-supply Compares

Feature / Agentinstrument-power-supplyStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

This skill provides specific capabilities for your AI agent. See the About section for full details.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Skill: Programmable DC Power Supply (SCPI)

## 1. Overview

Standard control for T&M power supplies (e.g., Keysight E36300, Rigol DP800).

* **Primary Roles**: Automated DUT power cycling, Current consumption profiling.
* **Interface**: USB, LAN (LXI), GPIB.

## 2. Common SCPI Commands

* **Channel Select**: `INSTrument:SELect CH1`
* **Set Voltage/Current**:
  * `APPLy CH1, 3.3, 0.5` (Set CH1 to 3.3V, 0.5A limit).
  * `VOLTage 3.3; CURRent 0.5` (Component command style).
* **Output Control**:
  * `OUTPut ON` / `OUTPut OFF`.

## 3. Automation Example (PyVISA)

```python
import pyvisa
import time

rm = pyvisa.ResourceManager()
psu = rm.open_resource('USB0::...')

# 1. Reset
psu.write("*RST")

# 2. Configure Channel 1 to 3.3V, 1.0A
psu.write("INST CH1")
psu.write("VOLT 3.3")
psu.write("CURR 1.0")

# 3. Turn On
psu.write("OUTP ON")

# 4. Measure Actual Voltage/Current
meas_v = float(psu.query("MEAS:VOLT?"))
meas_i = float(psu.query("MEAS:CURR?"))
print(f"V: {meas_v:.3f}V, I: {meas_i:.4f}A")
```

## 4. OVP/OCP Protection

Always set Over-Voltage Protection (OVP) to prevent frying the DUT if the PSU glitches.

* `VOLTage:PROTection 3.6` (Trip if > 3.6V).
* `VOLTage:PROTection:STATe ON`.