TIA-Toolkit: Instructions file for Claude Code

CLAUDE.md

TIA-Toolkit CLAUDE.md is an instructions file for Claude Code 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 for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is MrFadiAi/TIA-Toolkit's own configuration. It tells Claude Code how to work on TIA-Toolkit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TIA-Toolkit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MrFadiAi/TIA-Toolkit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MrFadiAi/TIA-Toolkit/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/MrFadiAi/TIA-Toolkit

Made for: Claude Code.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for TIA-Toolkit CLAUDE.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.01340 $0.01340
Sonnet 5.5 $0.00670 $0.00670
Haiku 4.5 $0.00335 $0.00335

Measured 2mo ago against content hash 82cffc1bdc47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 5mo ago), licensed MIT. It adds 3,349 tokens to every session, about $0.0134 per session on Opus 5.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.

Related

TIA-Toolkit CLAUDE.md compared with instructions from other repositories

TIA-Toolkit CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
TIA-Toolkit CLAUDE.mdMrFadiAi/TIA-ToolkitInstructions file25mo agoMITA3,349Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file282k3d agoMITA4,335Codex, OpenCode