new-pou
Skill0 starsChanged 37 days agoMITView on GitHub
Scaffold a new POU (PROGRAM, FUNCTION_BLOCK, FUNCTION, DUT or GVL) for a chosen platform and file format, validated before delivery.
In this repository12 other files it gives its agents.
- convertSkill
- debugSkill
- developSkill
- exchange-formatsSkill
- iec-61131-3Skill
- iec-61499Skill
- other-platformsSkill
- packml-isa88-opcuaSkill
- reviewSkill
- schneiderSkill
- siemensSkill
- validateSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Use the project naming scheme if one exists.
- Distinctive: line 33
Call timers and edges unconditionally.
- Distinctive: line 34
Write each output once.
- Distinctive: line 36
Write a header comment stating purpose, author placeholder and version.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scaffold a new POU
The request is: $ARGUMENTS. It usually reads <kind> <name> [platform/format], for
example fb FB_Pump m262, fb FB_Pump tia-scl, program Main twincat or
fb FB_Pump plcopen.
- Resolve anything missing, in one question round:
- Kind: PROGRAM, FUNCTION_BLOCK, FUNCTION, a DUT (struct or enum), or a GVL.
- Target:
- IEC ST text
- Siemens SCL source (
.scl) or SIMATIC SD - TwinCAT
.TcPOU/.TcDUT/.TcGVL - PLCopen XML (
tc6_0201, ortc6_0200for CODESYS-family import) - Machine Expert or CODESYS (PLCopenXML or text)
- Logix AOI (L5X)
- Control Expert DFB
- Purpose, in one sentence, plus its inputs and outputs, or "empty skeleton".
- Start from the closest template:
- The
other-platformsskill assetsFB_Template.TcPOUandE_TemplateState.TcDUT. - The
exchange-formatsskill assetplcopen-st-pou.xml. - The
siemensandschneiderskill assets. - The patterns in the
developskill'sreferences/code-patterns.md.
- The
- Apply the conventions:
- Use the project naming scheme if one exists; otherwise ask.
- Make an explicit state enum for any sequential behaviour.
- Call timers and edges unconditionally.
- Write each output once.
- Give every
CASEanELSE. - Write a header comment stating purpose, author placeholder and version.
- Generate fresh identifiers where the format needs them: TwinCAT
IdGUIDs, SimaticMLID/UIdnumbering, PLCopenglobalIdas an NCName. - Run
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/plc_validate.py <file>and fix the findings. - Deliver the file, the import steps for the target IDE, and what was not verified (the file was never compiled).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

