Skip to content

matlab/matlab-agentic-toolkit / skills-catalog/test-and-measurement/matlab-discover-hardware

matlab-discover-hardware

Unverified

Discovers connected MATLAB-supported hardware devices, searches by capability, and checks required support packages and add-ons. Use when the user asks what hardware is connected, finds a device that supports a capability (e.g., CAN, analog input), or checks if required support packages or add-ons are installed. Does NOT connect to, configure, or acquire data from devices — defers to device-specific skills for usage workflows.

scripts/hardwareDeviceCache.m

View on GitHub
function result = hardwareDeviceCache(action, varargin)
% hardwareDeviceCache Shared in-memory cache for hardware device enumeration results.
%   hardwareDeviceCache(ACTION, ...) manages a persistent cache of device
%   enumeration results, keyed by plugin name. Used internally by all
%   Layer 1 and Layer 2 discovery functions to avoid repeated full sweeps.
%
%   Actions:
%     hardwareDeviceCache("set", pluginName, pluginClass, pluginObj, devices)
%       Store or update a cache entry for the given plugin.
%
%     result = hardwareDeviceCache("get", pluginName)
%       Return cached entry for a plugin. Returns [] if expired or missing.
%       Use pluginName="" to return all valid entries.
%
%     tf = hardwareDeviceCache("isValid", pluginName)
%       Return true if the cache entry exists and is within TTL.
%       Use pluginName="" to check if any entries exist.
%
%     hardwareDeviceCache("clear", pluginName)
%       Clear a specific plugin entry. Use pluginName="" to clear all.
%
%     result = hardwareDeviceCache("all")
%       Return a struct with Devices (cell array) and PluginNames (string
%       array) aggregated across all valid cache entries.
%
%     result = hardwareDeviceCache("find", deviceName)
%       Case-insensitive partial match on FriendlyName across all cached
%       devices. Returns struct with Devices, PluginNames, and Count.

%   Copyright 2026 The MathWorks, Inc.

    arguments
        action (1, 1) string {mustBeMember(action, ["set", "get", "isValid", "clear", "all", "find"])}
    end

end
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 321kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 321kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 321kUpdated Claude CodeCodexVerifiedInstall