$git clone https://github.com/Czarnak/totally-integrated-claudeA Claude Code plugin for Siemens TIA Portal engineering automation.
| 1 | # totally-integrated-claude |
| 2 | |
| 3 | A Claude Code plugin for **Siemens TIA Portal engineering automation**. |
| 4 | |
| 5 | Provides a routed skill framework covering the full TIA Portal Openness API surface — Python TIA Scripting for everyday tasks and C# Openness for advanced object-model work. |
| 6 | |
| 7 |  |
| 8 | |
| 9 | --- |
| 10 | |
| 11 | ## Features |
| 12 | |
| 13 | - **Automatic routing** - one entry-point skill (`tia-openness-roadmap`) selects Python or C# and loads the right domain skill |
| 14 | - **Python TIA Scripting** - full coverage of PLC blocks/tags, HMI, libraries, devices, project lifecycle via `tia-python` |
| 15 | - **C# Openness** - nine domain skills covering every Openness API area (see table below) |
| 16 | - **TIA Portal Add-In development** — VS Code–based Add-In authoring workflow |
| 17 | - **TIA Portal MCP server** - work with your agent directly in TIA Portal V21 (separate installation required, see below) |
| 18 | - **MCP write safety hooks** - Claude Code blocks TIA Portal writes unless the call includes `confirm=true` and a server-issued `safetyToken` |
| 19 | - **Environment diagnostics** - manually run `tia-doctor` to check TIA Portal, Openness, Python TIA Scripting, and MCP prerequisites |
| 20 | |
| 21 | --- |
| 22 | |
| 23 | ## Skills |
| 24 | |
| 25 | | Skill | Purpose | |
| 26 | | --- | --- | |
| 27 | | `tia-openness-roadmap` | **Entry point.** Routes all TIA Portal tasks to the correct implementation path and domain skill. Load this first for every TIA Portal task. | |
| 28 | | `tia-doctor` | **Manual diagnostic.** Checks local prerequisites and reports exact remediation steps without mutating the machine. | |
| 29 | | `plc-code-analysis` | **Standalone.** Multi-perspective security and quality analysis for PLC code (SCL/LAD/FBD) via SimaticML or MCP. | |
| 30 | | `tia-portal-mcp` | **Interactive.** Direct TIA Portal interaction via MCP tools (browse tree, read/write logic, list tags, hardware config). | |
| 31 | | `tia-python` | Python TIA Scripting: PLC blocks/tags/UDTs, HMI tags/screens, library types/versions, project lifecycle, CAx import/export. | |
| 32 | | `tia-csharp-common` | C# foundation: TIA Portal process attach, `ExclusiveAccess`, `Transaction`, disposable patterns. Required first load for every C# task. | |
| 33 | | `tia-project-general` | C# project & portal lifecycle: open, create, save, archive, retrieve, UMAC/UMC, language settings, diagnostics. | |
| 34 | | `tia-devices-general` | C# device & device-item operations: hardware catalog, device creation/deletion, slot/subslot traversal, software containers, network connections, hardware parameters. | |
| 35 | | `tia-plc-operations` | C# PLC software engineering: program/system blocks, PLC tags/UDTs, software units, Safety, alarms, OPC-UA, technological objects, watch/force tables, online/download, compare. | |
| 36 | | `tia-hmi-operations` | C# Unified HMI: screens, screen items, elements, parts, tags, alarms, scripts, cycles, connections, dynamization, events, runtime settings, system services. | |
| 37 | | `tia-networks` | C# topology: subnets, nodes, IO systems, port channels, addresses, IO timing. | |
| 38 | | `tia-simatic-drives` | C# Startdrive / SINAMICS: drive controller access, drive engineering, motion control, download. | |
| 39 | | `tia-import-export` | C# & Python import/export: SimaticML, AML/CAx, PLC blocks, HMI screens/tags/alarms, hardware AML, project data. | |
| 40 | | `tia-multiuser` | C# Multiuser Engineering: server project management, local sessions, multiuser commissioning workflows. | |
| 41 | | `tia-teamcenter` | C# Teamcenter Integration: Teamcenter storage management and Teamcenter-managed project operations. | |
| 42 | | `tia-testsuite` | C# TestSuite & Application Test: test sets, application tests, style-guide rules, automated system testing. | |
| 43 | | `addin-operations` | TIA Portal Add-In development: project structure, VS Code workflow, Add-In lifecycle, menus, permissions, deployment. | |
| 44 | |
| 45 | --- |
| 46 | |
| 47 | ## Prerequisites |
| 48 | |
| 49 | ### For Python TIA Scripting |
| 50 | |
| 51 | - Siemens TIA Portal V17 or later |
| 52 | - TIA Scripting Python downloaded from Siemens Industry Online Support |
| 53 | - Python 3.12.x for the current `siemens_tia_scripting` wheel |
| 54 | |
| 55 | ### For C# Openness |
| 56 | |
| 57 | - Siemens TIA Portal V17 or later |
| 58 | - TIA Portal Openness assemblies (installed with TIA Portal) |
| 59 | - .NET Framework 4.8 or later |
| 60 | |
| 61 | ### For Add-In development |
| 62 | |
| 63 | - Visual Studio 2022 or VS Code with C# Dev Kit |
| 64 | - TIA Portal Add-In SDK (available from Siemens Industry Online Support) |
| 65 | |
| 66 | TIA Scripting Python is not installed from PyPI by package name. Download the |
| 67 | TIA Scripting Python ZIP from Siemens, then use one of Siemens' supported setup |
| 68 | paths: |
| 69 | |
| 70 | - File import: unzip it and set `TIA_SCRIPTING` to the extracted `binaries` |
| 71 | directory. |
| 72 | - Wheel install: from the extracted `binaries` directory, install the matching |
| 73 | wheel file, for example: |
| 74 | |
| 75 | ```powershell |
| 76 | cd C:\Path\To\Your\TIA_Scripting_Python\binaries |
| 77 | py -3.12 -m pip install .\siemens_tia_scripting-x.x.x-cp312-cp312-win_amd64.whl |
| 78 | ``` |
| 79 | |
| 80 | To check a local machine, run the bundled doctor probe: |
| 81 | |
| 82 | ```powershell |
| 83 | powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills\tia-doctor\probe.ps1 |
| 84 | ``` |
| 85 | |
| 86 | For machine-readable output: |
| 87 | |
| 88 | ```powershell |
| 89 | powershell.exe -NoProfile -ExecutionPolicy Bypass -File skills\tia-doctor\pr |