/tckit:tc-read-projectfrom tckit
Inspects and navigates TwinCAT 3 PLC projects using TcKit MCP reader tools (GetStructure, GetPouInterface, GetPouItem, GetGvl, GetDut) after initial orientation. Handles requests for POU APIs, method implementations, GVLs, and DUTs.
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.
First-touch orientation belongs to tc-orient-project. This skill picks up once orientation is done and the user asks for something specific.
Always read in layers. Never fetch a full POU when one method suffices.
This skill uses only the TcKit reader tools and the stock Read/Grep/Glob. The reader tools are:
mcp__tckit__GetStructure — project map (POUs, GVLs, DUTs, tasks, libraries)mcp__tckit__GetPouInterface — declarations and method signatures for one POUmcp__tckit__GetPouItem — declaration + body for one method, action, or property accessormcp__tckit__GetGvl — one GVL's declarationmcp__tckit__GetDut — one DUT's declaration (struct, enum, union, alias)Reader tools read XML directly from disk. They do NOT need XAE or a live PLC. They work whenever the TcKit MCP server is reachable, even with no XAE open and no PLC connected.
Do NOT call writer or build tools from this skill. mcp__tckit__OpenProject, AddPou, Build, Deploy, RunTests, and similar are out of scope here. They need XAE open (or a live target) and have no bearing on reading. If you see one of those tools error because XAE or the target isn't reachable, that error tells you nothing about whether the reader tools work — keep using get_*.
Common request shapes and the one-call answer:
| Request | Tool |
|---|---|
| "What's the API / methods / signatures of FB_X?" | GetPouInterface(X) |
| "Show me FB_X.Execute's implementation" | GetPouItem(X, "Execute") |
| "What fields does ST_Config have?" | GetDut("ST_Config") |
| "What's in GVL_Params?" | GetGvl("GVL_Params") |
| "Where does FB_X live in the project?" | check the earlier GetStructure payload |
If the request matches one of these, make the matching call first. Do not glob, grep, or read the raw .TcPOU XML when a single reader call answers the question.
GetStructure(project_path). Skip if the user named the symbol.GetPouInterface(pou_name) to get declarations and method signatures. Do NOT fetch bodies yet. For API-shape questions (methods, signatures, public surface) this is usually the only call you need.GetPouItem(pou_name, item_name). One call per item. Stop fetching as soon as you have what you need.GetGvl(gvl_name) for global variable lists.GetDut(dut_name) for structs, enums, unions, and aliases. Do NOT try to read these via GetPouItem — they are not POUs.GetStructure is a one-shot orientation, not a per-turn refresh.OpenProject, AddPou, Build, Deploy, RunTests) to "set up" a read. The reader tools do not need the project opened in XAE; they work directly on the files on disk.GetPouItem for every method "just in case".GetStructure at the start of every turn.tc-beckhoff-docs territory.GetPouItem for an enum or struct (use GetDut).Read or Grep on .TcPOU / .TcGVL / .TcDUT files as a substitute for GetPouInterface / GetPouItem / GetGvl / GetDut when those tools are available. The MCP calls return just the slice you need; the raw XML files contain a lot of envelope noise.If the TcKit reader tools (mcp__tckit__GetStructure and friends) are not registered in this session, fall back to disciplined stock-tool reads:
Glob (e.g. **/FB_Motor.TcPOU). One call.Read the file with a limit that catches the <Declaration> block (typically the first ~80 lines of a POU file). Don't pull the whole file.Grep for the method name and Read with offset/limit around the match. Resist pulling the whole POU.Same layered discipline as with the MCP tools, just done with Glob/Grep/Read. "Unavailable" here means the reader tools genuinely aren't registered, not that some other TcKit tool failed.
The anti-pattern is using raw XML reads instead of TcKit when TcKit is available, not using them as a fallback when it isn't.
If the task moves into writing or modifying code, hand off to tc-write-st. If a Beckhoff library FB needs research, hand off to tc-beckhoff-docs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 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-hardwareUse when inspecting or configuring TwinCAT hardware through TcKit — EtherCAT master/slave diagnostics, IPC hardware health, NC axis state, reading/writing live PLC symbols, invoking RPC methods, or authoring the I/O tree (scan the bus topology, scaffold I/O GVLs, add/remove EtherCAT masters and boxes). Triggers on requests like "what's the EtherCAT bus status", "list the EtherCAT masters", "check the IPC CPU/temperature/UPS", "what state is axis 1 in", "read MAIN.nCounter on the target", "set GVL.bEnable to TRUE", "call the Reset method on fbPid", "scan the hardware", "scaffold I/O variables", "add an EK1100 under the master", "delete Box 3". Do NOT use for reading/writing ST code (tc-write-st), build/deploy/test (tc-build-test-loop), or looking up a product's datasheet by order number (tc-beckhoff-docs / FindHardware)./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-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.npx claudepluginhub georgeturneruk/tckit --plugin tckitOther plugins' skills for the same job