/tckit:tc-orient-projectfrom tckit
Provides a fixed-budget structural overview of a TwinCAT project on first encounter. Identifies subsystems, tasks with cycle times, libraries, entry points, and conventions using GetStructure and sampled GetPouInterface calls.
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 is a fixed-budget activity. The point is to give the user a useful overview, not to inventory every POU. Stay disciplined.
GetStructure call. Call GetStructure(project_path) exactly once. Read the full response. The returned ProjectStructure already contains everything needed for the overview:
pous[].folder groups POUs by subsystem (POUs sharing a folder are part of the same subsystem).tasks lists each task with cycle_time_us, priority, and the bound programs.libraries lists library references (Beckhoff and third-party).gvls, duts are flat name lists.pous by folder. Each non-empty folder is a candidate subsystem. The flat (folder="") group is the project's "loose" code. Report the folder names and how many POUs each contains.tasks[].programs, identify which POU is bound to the primary cyclic task (typically the one with the shortest cycle_time_us). Call GetPouInterface on that one POU.GetPouInterface on it. The aim is to learn the project's naming and error-handling conventions, not to map every method.tc-read-project.GetStructure + at most one entry-point read + at most four subsystem-sample reads.GetPouInterface, you are no longer orienting; stop and report what you have.GetPouItem during orientation. Bodies come later, via tc-read-project.Read or Grep on .TcPOU / .TcGVL / .TcDUT files as a substitute for GetStructure / GetPouInterface when those tools are available. GetStructure already mapped them; raw XML reads in that case waste the context window.GetStructure again later in the session "to refresh". It is one-shot per session unless the project changes on disk.tc-beckhoff-docs.If mcp__tckit__GetStructure is not registered in this session (e.g. the MCP server isn't running, or the user has not configured TcKit), fall back to the minimum-cost path:
.plcproj (item manifest, library refs) and .tsproj (tasks) directly. These are small project-shaping XML files; reading them is cheap and gives most of what GetStructure would..plcproj..TcPOU bodies in bulk; sample one or two at the declaration level only, via Read on specific files, to learn conventions.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.
"TcUnit splits into four subsystems by folder:
POUs(15 FBs) — the test framework core (FB_TestSuite, FB_TestResults, FB_TcUnitRunner).POUs/Functions(12 FUNCTIONs) — helpers used by the framework.POUs/Functions/WRITE_PROTECTED_(16 FUNCTIONs) — type-specific write-protect wrappers.DUTs/GVLs/ITFs— supporting types and interfaces.No PLC tasks are defined; this is a library project. Library refs: Tc2_Standard, Tc2_System, Tc2_Utilities, SysFile, SysDir, plus a direct ref to Base Interfaces.
Conventions in FB_TestSuite: PascalCase FB names,
bErrorpropagation,// :Description:doc comments. Inputs are prefixed by type (sName,nValue)."
That is the shape: subsystems with one-line summaries, tasks if any, libraries, conventions inferred from one or two sampled interfaces. Then stop.
When orientation is done and the user asks something specific, hand off to:
tc-read-project for deeper reads (method bodies, GVL contents, DUT details).tc-write-st if the next request is to modify code.tc-beckhoff-docs if an unfamiliar Beckhoff FB needs research.What SKILL.md sets; muted values are Claude Code's defaults
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).npx claudepluginhub georgeturneruk/tckit --plugin tckitOther plugins' skills for the same job