tckit: Skill for Claude Code

.claude/skills/tc-write-st/SKILL.md

tc-write-st is a skill for Claude Code from georgeturneruk/tckit. It costs 270 tokens per session (3,071 once invoked), scanned A, original, MIT.

A coding guide for Structured Text, the PLC programming language used by TwinCAT 3 automation projects. It works with TcKit, which edits project files while preserving their links and identifiers.

In plain words
What is it for?
It is for adding or changing function blocks, methods, properties, variables, enums, configuration types, and cyclic PLC code in TwinCAT 3 projects.
Why use it?
It reduces the risk of breaking TwinCAT project structure when changing declarations, methods, variables, or program logic.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is georgeturneruk/tckit's own configuration. It tells Claude Code how to work on tckit 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 tckit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to georgeturneruk/tckit. 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/georgeturneruk/tckit/main/.claude/skills/tc-write-st/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/georgeturneruk/tckit

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 tc-write-st

README.md
[![agentmods](https://agentmods.dev/badge/skills/georgeturneruk/tckit/tc-write-st.svg)](https://agentmods.dev/skills/georgeturneruk/tckit/tc-write-st)
Your own site
<a href="https://agentmods.dev/skills/georgeturneruk/tckit/tc-write-st"><img src="https://agentmods.dev/badge/skills/georgeturneruk/tckit/tc-write-st.svg" alt="Measured on agentmods" height="20"></a>
Per session 270 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,071 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.
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.00270 $0.03071
Opus 5 $0.00135 $0.01536
Sonnet 5 $0.00054 $0.00614
Haiku 4.5 $0.00027 $0.00307

Measured 8d ago against content hash 60c585c40ca1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tc-write-st 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 8d 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/skills/tc-write-st/SKILL.md · 87 lines

How it starts

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

Writing ST through TcKit

Follow this procedure every time you produce ST that will be written to the project.

Tool selection — read this before calling anything

These TcKit writer tools go through the selected writer backend (the XAE Automation Interface by default on Windows; a deterministic on-disk XML writer elsewhere or when TCKIT_WRITER=xml), which keeps GUIDs and project cross-references consistent. Use them in place of Edit/Write on .TcPOU or .plcproj files.

Request Tool
Tweak one line in a method / action / property body UpdateMethodBodyPatch(pou, method, old, new)
Tweak one line in the POU's own declaration block (FB-level VAR) UpdatePouDeclarationPatch(pou, old, new)
Tweak one line in the POU's own cyclic body (FB / PRG implementation) UpdatePouImplementationPatch(pou, old, new)
Add one variable to a VAR_INPUT / VAR_OUTPUT / VAR etc. scope AddVariable(pou, scope, declaration, item?)
Rewrite a method / action / property body UpdateMethodBody(pou, method, code)
Rewrite the POU's own declaration block UpdatePouDeclaration(pou, code)
Rewrite the POU's own cyclic body (FB / PRG implementation) UpdatePouImplementation(pou, code)
Add a brand-new method to an existing POU AddMethod(pou, method_name, code)
Add a brand-new property to an existing POU (Get, Set, or both) AddProperty(pou, name, return_type, getter_code?, setter_code?)
Add a brand-new POU (FB / function / program / interface) AddPou(name, pou_type, code)
Add a brand-new GVL (VAR_GLOBAL declarations) AddGvl(name, code)
Add a brand-new DUT (struct, enum, or union) `AddDut(name, code, dut_kind="struct"
Create a brand-new PLC project CreateProject(name, path)
Open / re-open a TwinCAT solution in XAE OpenProject(solution_path)
Read the current item body before deciding on a patch anchor GetPouItem(pou, item) (reader)
Read just the FB-level VAR block before AddVariable GetPouDeclaration(pou) (reader)

Read the full file on GitHub · 87 lines

Files

What ships with it

1 file 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. 8d ago First seen · 87 lines · 270 tokens per session scan A 60c585c40ca1

Subscribe to this mod's changes

tc-write-st is a skill published in the GitHub repository georgeturneruk/tckit (5 stars, last pushed 14d ago), licensed MIT. It adds 270 tokens to every session and 3,071 once invoked, about $0.0014 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.

Related

Other skills, from other repositories

cardputer-buddy

Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already provisioned via m5-onboard. Use when the user wants to add a new app, push a single changed .py without re-flashing, watch device serial logs, or run a one-shot REPL command. Trigger on "add an app", "push to…

anthropics/claude-plugins-official · 109 tokens

doca-argp

Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…

NVIDIA/skills · 267 tokens

holoscan-install-wheel

Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.

NVIDIA/skills · 37 tokens

zener-language

Read or edit Zener HDL, package APIs, and tool-managed dependencies.

diodeinc/pcb · 19 tokens

embedded-stm32

Best practices for embedded C/C++ development on STM32 microcontrollers using the HAL, covering peripherals, DMA, interrupts, memory constraints, and hardware-focused testing. Use when writing STM32 HAL code, configuring peripherals generated by STM32CubeMX, working with interrupts or DMA, debugging with SWD/JTAG…

Mindrally/skills · 87 tokens

003-skills-inventory

Use when you need to generate a checklist document with Java system prompts from skills.xml, following the embedded section template and producing INVENTORY-SKILLS-JAVA.md. This should trigger for requests such as Create Java system prompts checklist; Generate INVENTORY-SKILLS-JAVA.md; Use @003-skills-inventory…

jabrena/plinth · 88 tokens