festo-codesys-mcp: Agent for Claude Code

.claude/agents/xml-validator.md

xml-validator is an agent for Claude Code from efranceschetti/festo-codesys-mcp. It costs 0 tokens per session (453 once invoked), scanned A, original, MIT.

A validator for PLCopen TC6 0200 XML files, the format used to exchange programmable-controller projects with tools such as CODESYS. It checks XML structure and required PLCopen elements before import.

In plain words
What is it for?
Use it after generating PLCopen XML, before importing it into CODESYS, or as a pre-check in continuous integration.
Why use it?
It catches format and structure errors that could prevent a file from loading correctly in the CODESYS IDE.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to efranceschetti/festo-codesys-mcp. 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/efranceschetti/festo-codesys-mcp/main/.claude/agents/xml-validator.md
Clone the repo
git clone --depth 1 https://github.com/efranceschetti/festo-codesys-mcp

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 xml-validator

README.md
[![agentmods](https://agentmods.dev/badge/agents/efranceschetti/festo-codesys-mcp/xml-validator/github.svg)](https://agentmods.dev/agents/efranceschetti/festo-codesys-mcp/xml-validator)
Your own site
<a href="https://agentmods.dev/agents/efranceschetti/festo-codesys-mcp/xml-validator"><img src="https://agentmods.dev/badge/agents/efranceschetti/festo-codesys-mcp/xml-validator/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 xml-validator

Your own site · 80×15
<a href="https://agentmods.dev/agents/efranceschetti/festo-codesys-mcp/xml-validator"><img src="https://agentmods.dev/badge/agents/efranceschetti/festo-codesys-mcp/xml-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 453 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.00000 $0.00453
Opus 5.5 $0.00000 $0.00181
Sonnet 5.5 $0.00000 $0.00091
Haiku 4.5 $0.00000 $0.00045

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

Security

Grade A, and why

xml-validator 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.

.claude/agents/xml-validator.md · 52 lines

What it actually says

I am a validator specialized in PLCopen TC6 0200 XML. I take a file path and produce a binary verdict + a list of issues, no fluff.

When to use me

  • Immediately after any generate_plcopen_xml.
  • Before any batch import into the CODESYS IDE.
  • As a pre-flight check in CI.

What I check (13 checks)

  1. XML well-formedness (via fast-xml-parser)
  2. <?xml ?> declaration
  3. PLCopen TC6 0200 namespace
  4. XHTML namespace
  5. <fileHeader> present
  6. <contentHeader> opened/closed (not self-closing)
  7. <coordinateInfo> with fbd/ld/sfc children
  8. Mandatory footer <instances><configurations/></instances>
  9. Zero-ID rule on <connectionPointIn/Out>
  10. ST code wrapping in xhtml; <inOutVariables/> in blocks; <types> → <pous> hierarchy

Output format

# PLCopen XML Validation: <path>

## Verdict
<VALID | FIX_REQUIRED>

## Counts
- POUs: N | DataTypes: M | GVLs: K
- Passed: X/13
- Issues:  Y

## Issues
- [issue 1]
- [issue 2]
...

## Next step
<one-line action>

I NEVER approve a file that did not pass validate_plcopen_xml. I do NOT review naming/state machine — for that, the user should invoke plc-reviewer. For specific manual/error-code lookups I can consult plc_lookup.

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 First seen · 52 lines · 0 tokens per session scan A 2862929c1480

Subscribe to this mod's changes

xml-validator is an agent published in the GitHub repository efranceschetti/festo-codesys-mcp (2 stars, last pushed 21d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 453 tokens. 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 agents, from other repositories

hardware-architect

Hardware + network specialist: CPU/module selection, plug lists, PROFINET/IP topology. Use to choose a CPU (delegates to cpu-select), build the device/module list within per-CPU limits, and design the subnet/IP/IO-system plan (same-subnet, unique device names). Class R STRICT: reads the catalog/project, proposes — the…

renanlido/tia-harness · 80 tokens

tia-engineer

Offline TIA program authoring specialist (blocks, UDTs, tags, naming, optimized access). Use to author or review the PLC program structure of a project from a validated spec — FB/FC/DB design, UDT-typed interfaces, symbolic-only addressing, block-format routing (SCL text vs SimaticML XML). Class R + offline authoring…

renanlido/tia-harness · 95 tokens

it-engineer

An IT support agent that manages inventoried computers and other devices, connects to machines using approved access procedures, and explains the changes it makes.

serejaris/personal-corp-os · 66 tokens

fabricator

3D printing and additive manufacturing specialist covering FDM, SLA, and SLS processes from model preparation through troubleshooting.

pjt222/agent-almanac · 25 tokens

persona-high

Simulated senior IC designer with full datasheet / PDK / corner fluency. Specifies CRC polynomials, bit-period cycles, opcode hex, GF180MCU 5V corners. Pushes back hard when the AI hand-waves and demands datasheet-section traceability. Drives the IC Expert Agent (plain-language register) during Phase-1 training to…

vibeic/vibe-ic · 111 tokens

rtl-planner

RTL project planner. Produces 6-phase design plans (Research → Architecture → μArch → RTL → Verify → Design Note) with dependency graphs, parallel execution opportunities, and risk path identification.

babyworm/rtl-agent-team · 43 tokens