tia-csharp-common

tia-csharp-common is a skill for Claude Code from Czarnak/totally-integrated-claude. It costs 17 tokens per session (3,587 once invoked), scanned A, original, MIT.

An internal reference for using the C# API of Siemens TIA Portal Openness, a tool for automating TIA Portal engineering tasks.

In plain words
What is it for?
It is for setting up C# projects and locating namespaces and assemblies for TIA Portal automation.
Why use it?
It helps developers choose the correct API assemblies and avoid runtime errors caused by missing or incorrect DLL references.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the totally-integrated-claude plugin — 18 skills, 1 MCP server shipped together

Good fit It is for setting up C# projects and locating namespaces and assemblies for TIA Portal automation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/czarnak/totally-integrated-claude/tia-csharp-common
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.

Any agent
npx skills add Czarnak/totally-integrated-claude --skill tia-csharp-common
Clone the repo
git clone --depth 1 https://github.com/Czarnak/totally-integrated-claude

Made for: Claude Code.

Or install totally-integrated-claude, the plugin that ships this one along with the rest of its 18 skills, 1 MCP server.

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-csharp-common

README.md
[![agentmods](https://agentmods.dev/badge/skills/czarnak/totally-integrated-claude/tia-csharp-common/github.svg)](https://agentmods.dev/skills/czarnak/totally-integrated-claude/tia-csharp-common)
Your own site
<a href="https://agentmods.dev/skills/czarnak/totally-integrated-claude/tia-csharp-common"><img src="https://agentmods.dev/badge/skills/czarnak/totally-integrated-claude/tia-csharp-common/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-csharp-common

Your own site · 80×15
<a href="https://agentmods.dev/skills/czarnak/totally-integrated-claude/tia-csharp-common"><img src="https://agentmods.dev/badge/skills/czarnak/totally-integrated-claude/tia-csharp-common.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,587 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 342
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00017 $0.03587
Opus 5.5 $0.00007 $0.01435
Sonnet 5.5 $0.00003 $0.00717
Haiku 4.5 $0.00002 $0.00359

Measured 1mo ago against content hash 0ed0f5d4d470, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tia-csharp-common 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 1mo 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.

skills/tia-csharp-common/SKILL.md · 448 lines

How it starts

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

TIA Portal Openness C# — Common Foundation

Source: TIA Portal Openness General Functions Manual (03/2026, V21); V21 IntelliSense XML documentation files (PublicAPI\V21\net48*.xml)


V21 modular assembly architecture

V21 splits the API across multiple DLLs instead of a single Siemens.Engineering.dll. Every project needs Siemens.Engineering.Base.dll; add domain DLLs as required. Referencing the wrong DLL (or omitting one) causes TypeLoadException at runtime.

Full mapping: See references/assembly-namespace-map.md for the V21 namespace → DLL → domain skill table, cross-assembly warnings, and csproj patterns.

Namespaces by assembly

Only import what is actually used. Commented using blocks for each assembly (Base, Step7, WinCC, Startdrive, Safety) are in references/assembly-namespace-map.md under "Common using blocks by assembly".


Assembly loading — mandatory for standalone Openness apps

Not needed for Add-Ins. TIA Portal loads Add-In assemblies via its own loader. This section applies only to standalone console/desktop Openness applications.

V21 installation paths

  • Registry key: HKLM\SOFTWARE\Siemens\Automation\InstalledApps\Totally Integrated Automation Portal V21 → value INSTALLPATH
  • Binary path: C:\Program Files\Siemens\Automation\Portal V21\PublicAPI\V21\net48\
  • Manifest schemas: C:\Program Files\Siemens\Automation\Portal V21\PublicAPI\V21\Schemas\

Resolver pattern

When using the AssemblyResolve approach, register the event before any Openness type is referenced. This includes method parameters, return types, and class properties — not just method bodies. A correctly configured app.config binding is an alternative.

Recommended pattern: register in a static constructor of Program, then move all Openness code to a separate class so the resolver is active before those classes are loaded.

internal static class Program
{
    // Register resolver at earliest possible point
    static Program()
    {
        AppDomain.CurrentDomain.AssemblyResolve += OnAssemblyResolve;
    }

    public static void Main()
    {
        // All Openness code must be in a separate class
        var app = new OpennessApp();
        app.Run();
    }

    private static Assembly OnAssemblyResolve(object sender, ResolveEventArgs args)
    {
        // Read install path from registry (recommended) or hardcode for simple tools
        string opennessFolder = GetOpennessInstallPath(); // implement per project
        AssemblyName requestedName = new AssemblyName(args.Name);
        string filePath = Path.Combine(opennessFolder,
            string.Concat(requestedName.Name, ".dll"));

        if (!requestedName.Name.StartsWith("Siemens.Engineering.") ||
            !File.Exists(filePath))
            return null;

        Assembly loaded = Assembly.LoadFrom(filePath);
        if (requestedName.FullName != loaded.GetName().FullName)
            throw new FileNotFoundException(
                "TIA Portal Openness version does not match", filePath);

        return loaded;
    }
}

Read the full file on GitHub · 448 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -194 lines 0ed0f5d4d470
  2. 2mo ago Changed 46c15e3040bf
  3. 3mo ago First seen · 642 lines · 17 tokens per session scan A 029d7f58b681

Subscribe to this mod's changes

tia-csharp-common is a skill published in the GitHub repository Czarnak/totally-integrated-claude (102 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 3,587 once invoked, about $0.0001 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-30.

Related

tia-csharp-common compared with skills from other repositories

tia-csharp-common next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tia-csharp-commonCzarnak/totally-integrated-claudeSkill1021mo agoMITA17Claude Code
bootstrap-solutiongaelic-ghost/socketSkill123mo agoApache-2.0A38Claude Code
build-csharp-projectgaelic-ghost/socketSkill123mo agoApache-2.0A37Claude Code
csharp-developerJeffallan/claude-skillsSkill13ktodayMITA92Claude Code
dotnet-core-expertJeffallan/claude-skillsSkill13ktodayMITA48Claude Code
scenario-unity-architecturescenario-labs/skillsSkill4.7kyesterdayMITA133Claude Code
phx-deps-auditoliver-kriska/claude-elixir-phoenixSkill5803d agoMITA58Claude Code, Codex