/tckit:tc-hardwarefrom tckit
Inspects and configures TwinCAT hardware via TcKit: EtherCAT diagnostics, IPC health, NC axis state, live PLC symbol read/write, RPC invocation, and I/O tree authoring (scan, scaffold, add/remove masters and boxes).
Ships in tckit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Three distinct lanes, each with a different transport and precondition. Pick the lane that matches the request before calling anything.
| Lane | Tools | Transport / precondition |
|---|---|---|
| Diagnostics (read-only) | ListEtherCatMasters, GetEtherCatStatus, GetIpcHardware, ListAxes, GetAxisState | ADS to a running target by AMS Net ID. No XAE. |
| Symbol I/O | ReadSymbols, WriteSymbols, InvokeRpc | ADS to a target in Run mode by AMS Net ID. No XAE. |
| I/O authoring (COM) | ScanHardware, ScaffoldHardwareCode, AddEtherCatMaster, AddEtherCatBox, DeleteIoDevice | XAE open with a solution loaded (the writer constraint). Reads/edits the configured project, not the physical bus. |
targetAmsId comes fromThe diagnostics and symbol-I/O tools take targetAmsId (the target's AMS Net ID). If you don't have it, ask the user — it's the same target you'd deploy to. Don't guess or hunt the filesystem.
ListEtherCatMasters(targetAmsId) — enumerate masters (most systems have one). Use the returned NetId as masterNetId for the next call.GetEtherCatStatus(targetAmsId, masterNetId="") — master diagnostic flags plus the slave table (state machine, identity, link health, per-port CRC counters). masterNetId defaults to targetAmsId (the usual single-master layout).GetIpcHardware(targetAmsId) — TwinCAT version, CPU (temperature / usage / frequency), memory, fans, network adapters, UPS. Modules not present come back null/empty — report that, don't infer failure.ListAxes(targetAmsId) / GetAxisState(targetAmsId, axisId) — NC axis state (name, error code, position, velocity, lag error, derived state name). ListAxes is empty when no NC axes are configured.These read live state and never change anything; call them directly and report with the fields that answer the question.
ReadSymbols(targetAmsId, paths) is read-only: call directly. Best-effort — an unreadable path comes back null in values rather than failing. The target must be in Run mode (symbols resolve at port 851).WriteSymbols(targetAmsId, writesJson, confirmed) and InvokeRpc(targetAmsId, symbolPath, methodName, paramsJson, confirmed) mutate / execute live PLC state and gate on confirmed=true (the same safety contract as deploy):
confirmed returns an error telling you confirmation is required. Treat it as a control-flow signal, not a failure.confirmed=true.writesJson is a JSON object of path -> value (e.g. {"MAIN.nSetpoint": 42, "GVL.bEnable": true}); writes are best-effort, with per-symbol failures in details.errors and success true only when every write landed.InvokeRpc targets a method decorated {attribute 'TcRpcEnable'}; paramsJson is a JSON array of positional parameters in VAR_INPUT order.Every authoring/scan verb takes project (the TwinCAT project name). A solution can hold more than
one TwinCAT project, each with its own I/O tree. If you omit project when several exist, the verb is
refused and lists the available projects — it will not guess (silently landing I/O in the wrong
project, e.g. GLR_Hardware, is exactly the failure this guards against). With a single-project solution
project is optional. Run ScanHardware first — it reports the resolved project names so you know
what to pass. Every write is saved to that project's .tsproj on disk immediately (no Build needed).
ScanHardware(project?) reads the configured EtherCAT topology (each
master with its terminals: slot, full tree name, order number) plus the resolved project name. No
physical bus scan, so no I/O is interrupted. Use it to discover the project names and real tree names.ScaffoldHardwareCode(gvlName="HardwareIO", plcName, parentFolder, project?)
writes a VAR_GLOBAL GVL of I/O declarations from project's topology (variables named
Slot{N}_{OrderNumber}_{Channel}; unknown terminals get a comment placeholder). project selects
which TwinCAT project's I/O to scan; plcName selects the PLC project the GVL is added to.AddEtherCatMaster(deviceName="Device 1 (EtherCAT)", project?).AddEtherCatBox(parentName, boxName, orderNumber, before="", project?).
E-bus terminals (EL...) nest under their coupler, so parentName is the coupler (e.g. Box 1 (EK1100)); EtherCAT-native slaves go directly under the master. orderNumber may be
revision-qualified (EL1008, EK1100-0000-0017). before names the sibling to insert before (empty
appends). If you don't know the order number's specs, look it up first via tc-beckhoff-docs
(FindHardware).DeleteIoDevice(target, project?, confirmed=false) removes a device
or box and cascades its children. target is a display name that must be unique within the
project (an ambiguous name is refused, listing the candidate ^-paths) or an exact
^-delimited path for precision. The first call (confirmed=false) returns a preview — the
resolved path and the child items that will cascade — and deletes nothing; call again with
confirmed=true to commit. Surface the preview to the user and get approval before confirming.project (from ScanHardware). A
success result echoes the resolved project — check it landed where you intended.ScanHardware gives you the real project
names and parentName / device-name strings to target.confirmed=true. Prefer the exact ^-path when a name is ambiguous. (True undo is git;
there is no tckit un-delete.)tc-write-st.WriteSymbols / InvokeRpc with confirmed=true without first showing the user the target and the exact write/call.ScanHardware, Add*) against a target by AMS Net ID — they operate on the open XAE solution, not a remote runtime. Conversely, using the ADS diagnostics tools to inspect a project that isn't running.tc-beckhoff-docs (FindHardware).tc-write-st.tc-build-test-loop.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub georgeturneruk/tckit --plugin tckit7 skills in this plugin
/tc-beckhoff-docsUse when researching a Beckhoff TwinCAT library, function block, or function via Beckhoff infosys, OR when looking up a Beckhoff hardware product by order number. Triggers on requests like "what does FB_EcCoESdoRead do", "which TF library has SDO read", "what are the inputs of FB_X", "what are the technical specs of EL3004", "look up EPP6228", "how many channels does the EK1100 have", or as a precondition before writing code that uses an unfamiliar Beckhoff FB. Uses TcKit's FindFb, SearchDocs, FindHardware, and GetDocPage MCP tools. Do NOT use for inspecting the user's local project (that is tc-read-project)./tc-build-test-loopUse when building a TwinCAT project, deploying to a target, running TcUnit tests, or iterating on build/test failures through TcKit (Build, Deploy, StartRuntime, RunTests, GetTestResults). Triggers on requests like "build it", "run the tests", "fix the build errors", "deploy to <NetId>", "make the tests pass". Enforces the build-before-deploy ordering, the 2-attempt-per-error build fix limit, the 5-iteration test loop limit, the permission-gate rules for Deploy and StartRuntime (surface denials, never self-elevate), and the save+install rule for multi-PLC solutions with library references. Do NOT use for the initial code write itself (that is tc-write-st)./tc-configUse when configuring TcKit's safety stance (the permission gate), including initial setup ("set me up", "configure tckit", "make tckit read-only"), ongoing edits ("raise the mode to execute", "add NetId to allowed", "block this NetId"), or inspecting the stance ("what permissions does tckit have", "why was deploy denied", "tckit not working"). Wraps the GetPermissions / SetPermissions MCP tools and the user-global permission file at `~/.tckit/permissions.json`. Do NOT use for runtime tool calls like building, deploying, reading projects, or researching Beckhoff FBs (those are owned by tc-build-test-loop, tc-read-project, tc-write-st, and tc-beckhoff-docs)./tc-orient-projectUse on the FIRST encounter with a TwinCAT project in a session, or when the user asks for a "structural overview", "subsystem map", "what's in this project", "introduce me to this project", "give me the lay of the land", "tell me about this codebase", "summarise this project", or any first-touch orientation. Triggers BEFORE tc-read-project; tc-read-project takes over for follow-up reads once orientation is done. Do NOT use mid-task on a project already mapped this session./tc-read-projectUse when inspecting, navigating, or searching a TwinCAT 3 PLC project through TcKit's MCP tools (GetStructure, GetPouInterface, GetPouItem, GetGvl, GetDut) AFTER orientation. Triggers on requests like "show me FB_X", "what's the public API of FB_Motor", "list the methods of FB_TestSuite", "summarise the motor controller POU", "what does ST_Config look like", or any task that requires reading specific PLC code before writing it. Do NOT use for first-touch orientation (use tc-orient-project), and do NOT use for researching Beckhoff library FBs (use tc-beckhoff-docs)./tc-write-stUse when writing or modifying Structured Text (ST) code in a TwinCAT 3 project. Triggers on requests like "add a method to FB_Motor", "add a property to FB_Pid", "create FB_PumpControl", "add ST_Config struct", "add E_State enum", "tweak the Execute body", "rename X to Y inside Execute", "add a VAR_INPUT to FB_PumpControl", "change one line in this method", or any other ST edit. Uses TcKit's writer MCP tools (OpenProject, CreateProject, AddPou, AddGvl, AddDut, AddMethod, AddProperty, UpdatePouDeclaration, UpdatePouImplementation, UpdateMethodBody, UpdatePouDeclarationPatch, UpdatePouImplementationPatch, UpdateMethodBodyPatch, AddVariable). Use these tools INSTEAD of Edit/Write on .TcPOU or .plcproj files; the MCP tools go through TcKit's writer backend so GUIDs and project cross-references stay consistent. Enforces comment style, naming conventions, the bError propagation pattern, the rename guard, and the safety-critical naming guard. If the code uses an unfamiliar Beckhoff library FB, hand off to tc-beckhoff-docs first. Do NOT use for read-only inspection or for build/test orchestration.Other plugins' skills for the same job