TIA-Toolkit CLAUDE.md

TIA-Toolkit CLAUDE.md is an instructions file for coding agents from MrFadiAi/TIA-Toolkit. It costs 3,349 tokens per session, scanned A, original, MIT.

Project instructions for a desktop toolkit that extracts Siemens TIA Portal automation data through graphical and command-line Python tools. TIA Portal is Siemens software used to program and configure industrial-control systems.

In plain words
What is it for?
Use them when working on extraction of HMI screens and PLC blocks, their tag links, code, and call relationships, or when starting the toolkit.
Why use it?
They explain the project’s two extraction paths and setup, helping an agent understand where screen, PLC, and tag data come from.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/mrfadiai/tia-toolkit/claude-md
Clone the repo
git clone --depth 1 https://github.com/MrFadiAi/TIA-Toolkit

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for TIA-Toolkit CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mrfadiai/tia-toolkit/claude-md.svg)](https://agentmods.dev/instructions/mrfadiai/tia-toolkit/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mrfadiai/tia-toolkit/claude-md"><img src="https://agentmods.dev/badge/instructions/mrfadiai/tia-toolkit/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,349 This file is loaded in full into every session.
When invoked 3,349 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.03349 $0.03349
Opus 5 $0.01674 $0.01674
Sonnet 5 $0.00670 $0.00670
Haiku 4.5 $0.00335 $0.00335

Measured 5d ago against content hash 82cffc1bdc47, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

TIA-Toolkit CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 262 lines

How it starts

The opening of the file, as written. The whole thing — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What This Project Does

A GUI toolkit for extracting data from Siemens TIA Portal projects. Two extraction pipelines:

  1. HMI Pipeline — extracts screen elements (buttons, IO fields, circles) with PLC tag bindings from Unified HMI projects
  2. PLC Pipeline — extracts program blocks (FB, FC, OB, DB) with interfaces, code, tag cross-references, and call structure

Both use a dual-extraction approach: C# online (TIA Portal API) + Python offline (parses exported files), then merge and report.

Quick Start

Double-click TIA Toolkit.bat to launch the GUI, or run python src/gui.py.

Dependency

pip install openpyxl customtkinter

Project Structure

Extract_PLC_Data_GUI/
├── CLAUDE.md                  ← This file
├── TIA Toolkit.bat            ← Double-click launcher (calls TIA Toolkit.py)
├── TIA Toolkit.py             ← Python launcher entry point
├── .gitignore
├── src/                       ← All source files
│   ├── gui.py                 ← Desktop GUI (CTk class: TiaToolkitApp)
│   ├── generate_claudemd.py   ← Project-specific CLAUDE.md generator
│   ├── extract_plc_full.py    ← PLC offline parser (XML → .plc_cache.json)
│   ├── plc_report.py          ← PLC markdown reports (→ Doc_OUTPUT/Program_Blocks/)
│   ├── merge_plc_data.py      ← PLC online+offline merger
│   ├── extract_hmi_full.py    ← HMI offline parser (RDF → .hmi_offline_data.json)
│   ├── hmi_report.py          ← HMI markdown reports (→ Doc_OUTPUT/hmi_screens/)
│   ├── merge_hmi_data.py      ← HMI online+offline merger
│   ├── tia_export_blocks.cs   ← PLC C# source (V21)
│   ├── tia_export_blocks.exe / .exe.config
│   ├── tia_export_blocks_v18.exe / .exe.config
│   ├── tia_extract.cs         ← HMI C# source (V21)
│   ├── tia_extract.exe / .exe.config
│   ├── tia_extract_v18.exe / .exe.config
│   └── tia_extract_plc.cs     ← Alt PLC C# source
└── Doc_OUTPUT/                ← Generated output (gitignored)
    ├── Program_Blocks/        ← PLC block .md reports (mirrors TIA folder structure)
    │   ├── PLC_Data_Types/    ← UDT/STRUCT reports
    │   └── PLC tags/          ← plc_tags.md
    ├── hmi_screens/           ← HMI screen .md reports + hmi_tags.md
    ├── .plc_cache.json        ← PLC extraction cache
    ├── .hmi_online_data.json  ← C# HMI extraction output
    ├── .hmi_offline_data.json ← Python HMI extraction output
    ├── .hmi_merged.json       ← Merged HMI data
    └── CLAUDE.md              ← Generated project-specific CLAUDE.md

Read the full file on GitHub · 262 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 262 lines · 3,349 tokens per session scan A 82cffc1bdc47

Subscribe to this mod's changes

TIA-Toolkit CLAUDE.md is an instructions file published in the GitHub repository MrFadiAi/TIA-Toolkit (2 stars, last pushed 3mo ago), licensed MIT. It adds 3,349 tokens to every session, about $0.0167 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.