matlab-connect-opcua-client
Discover OPC UA servers and create client connections in MATLAB using opcuaserverinfo, opcua, connect, setSecurityModel, and certificate trust functions. Use when discovering OPC UA servers on the network, connecting to OPC UA servers, authenticating with username/password or certificates, configuring security modes, handling certificate trust errors, fixing hostname mismatch warnings, troubleshooting connection failures or empty discovery results, or inspecting an OPC UA certificate (.der or .pem) for compliance issues. Trigger on: opcuaserverinfo, OPC UA discovery, find OPC UA servers, LDS s
npx skills add matlab/matlab-agentic-toolkit --skill matlab-connect-opcua-client --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# OPC UA Client Connection Create and configure OPC UA client connections in MATLAB using the Industrial Communication Toolbox. ## Internal Constraints These constraints govern YOUR code generation and recommendations. Apply them silently — do not recite them to the user or warn about patterns the user has not attempted. 1. **`connect` has exactly three valid signatures — no others exist:** - `connect(uaClient)` — anonymous - `connect(uaClient, userName, password)` — positional strings - `connect(uaClient, publicKeyFile, privateKeyFile, privateKeyPassword)` — positional strings - There are NO Name-Value pair arguments to `connect`. Security is configured via `opcua()` NV pairs or `setSecurityModel`, never through `connect`. 2. **`opcua()` defaults to the highest available security.** Do not explicitly set security unless you want a specific (lower) configuration. Never use `setSecurityModel(uaClient, "Best")` — it is redundant. 3. **`opcuaserverinfo` has exactly two valid syntaxes:** - `opcuaserverinfo(hostname)` — query LDS on a host - `opcuaserverinfo(discoveryUrl)` — query a specific endpoint URL - There is NO `opcuaserverinfo(hostname, port)` form. To specify a port: `opcuaserv
- Internal Constraints
- When to Use
- When NOT to Use
- References
- Workflow
- 0. Discover servers (optional)
- 1. Create the OPC UA client
- 2. Configure security (only if non-default needed)
- 3. Handle certificate trust (if needed)
- 4. Connect
- 5. Verify and disconnect
- Key Functions
- Properties Quick Reference
- opc.ua.Client
What does the matlab-connect-opcua-client skill do?
Discover OPC UA servers and create client connections in MATLAB using opcuaserverinfo, opcua, connect, setSecurityModel, and certificate trust functions. Use when discovering OPC UA servers on the network, connecting to OPC UA servers, authenticating with username/password or certificates, configuring security modes, handling certificate trust errors, fixing hostname mismatch warnings, troubleshooting connection failures or empty discovery results, or inspecting an OPC UA certificate (.der or .pem) for compliance issues. Trigger on: opcuaserverinfo, OPC UA discovery, find OPC UA servers, LDS s
How do I install it?
Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-connect-opcua-client --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
