Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 3.18 KB

SKILL.md

File metadata and controls

41 lines (28 loc) · 3.18 KB
name plugged
description Inspect this computer's hardware connections with the read-only `plugged` command - what's plugged in, the speed each link runs at against its best (USB, PCIe lanes and generation, SATA, NVMe, memory MT/s, display refresh rates, network links), what limits a slow one, issues with advice, free ports, and on Windows the devices and drivers it remembers but doesn't use. Use when the user asks about connected devices, a slow drive, dock, GPU or port, which port or slot to use, USB or PCIe speeds, RAM or monitor running below its rating, driver problems, Bluetooth devices, or cleaning up old devices.

Plugged

plugged reports every port, link and device on this computer and whether each runs as fast as it can. It is read-only: it never changes a driver, a setting or a device, and never uses the network. On Windows it's plugged.exe in Plugged's bin folder (on PATH after the installer).

Workflow

  1. Start with plugged summary --json: device and port counts, links at full speed, every issue.
  2. Find devices: plugged list <filter> --json. Each device has a handle id like d-3f2a1b9c.
  3. One device in full: plugged device <id or name> --json.
  4. Problems only: plugged issues --json (exit code 1 when there are any).
  5. Ports and what's on them: plugged ports --json, to suggest a faster free port or slot.
  6. Windows clean-up: plugged leftovers --json.

Run plugged help <command> for any command's options; plugged help json lists every field.

Filters

Plain words plus keys, all must match: bus:usb, kind:storage, is:slow, is:problem, is:removable, is:connected, is:off, speed:<5g (<= = >= >, g or m). A - negates a key: -bus:bluetooth. Examples: plugged list bus:usb is:slow --json, plugged list kind:storage speed:<10g --json.

Reading the answers

  • running is the speed now; capable the best the device or its port could do; slow is true when running is below capable.
  • limit says what holds a slow link back (port, hub, cableoradapter, unknown); lanes_from: chipset means a PCIe device shares the chipset's link to the CPU.
  • notes are normal things that look slow (a GPU or Wi-Fi card idling at an older PCIe generation; memory at its DDR base speed). Mention them, don't call them problems.
  • Issues have severity bad, warn or info and advice written for the user: pass it on.
  • Speeds are text in the bus's units (10 Gbps, PCIe 4.0 x4, 6000 MT/s, 165 Hz); null means the OS doesn't report it.

Boundaries

  • Never suggest that Plugged fixes anything: it can't. Explain what to change (another port, a cable, a BIOS memory profile, the display's refresh rate) and where.
  • To remove a leftover device, give the user its remove_command (needs --ids) to run in an administrator terminal, or point to Device Manager. Bluetooth pairings: Settings › Bluetooth & devices.
  • Output leaves out OS device IDs because they can contain serial numbers. Ask for them with --ids only when the task needs them, and never put them in web searches.

Exit codes

0 done; 1 issues found (plugged issues) or a file couldn't be written; 2 wrong usage (unknown command or option, no such device).