Skip to content
Back to skills

Validate

ASecurity

Run the plugin's structural validator on PLC files or directories (ST/SCL, PLCopen XML, IEC 61131-10, SimaticML, SIMATIC SD, TwinCAT, L5X/L5K, Control Expert XEF, IEC 61499, AutomationML, DEXPI, CSV) and explain the findings.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
developmentpythonbash

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add SmailG/plc-programming --skill validate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Validate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Validate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/smailg-validate/badge)](https://www.skillsdirectory.com/skills/smailg-validate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: validate
description: Run the plugin's structural validator on PLC files or directories (ST/SCL, PLCopen XML, IEC 61131-10, SimaticML, SIMATIC SD, TwinCAT, L5X/L5K, Control Expert XEF, IEC 61499, AutomationML, DEXPI, CSV) and explain the findings.
argument-hint: "[paths...] [--xsd schema.xsd] [--strict]"
disable-model-invocation: true
allowed-tools: Bash(python3 *plc_validate.py*)
---

# Validate PLC files

Run:

```bash
python3 "${CLAUDE_PLUGIN_ROOT:-scripts}/plc_validate.py" $ARGUMENTS
```

If `$ARGUMENTS` is empty, use the current directory.

Then:

1. **Group the findings by file.** For each error, explain the cause in one line and give
   the fix. Rule families:
   - `ST` Structured Text
   - `PX` PLCopen XML / IEC 61131-10
   - `SM` SimaticML, `SD` SIMATIC SD
   - `TC` TwinCAT
   - `LX` Logix
   - `CX` Control Expert
   - `FB` IEC 61499
   - `AM` AutomationML
   - `DX` DEXPI
   - `CS` CSV
   - `XS` XSD
2. **Say plainly that this is a structural check, not a compile.** Types, library symbols
   and cross-file references are not resolved.
3. **XSD validation:** if the user wants it and has no schema, point them to
   <https://www.plcopen.org/downloads/> ("XML Exchange"). The schemas cannot be bundled
   because of their licences. Then re-run with `--xsd <path>`.
4. **Offer to fix the errors**, one file at a time.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.