/tia-harness:tia-backupfrom TIA Portal Automation Harness
Backs up a physical Siemens CPU into a dedicated empty project by saving the working project, creating a dated backup project, uploading the station with human approval, verifying, and archiving to .zap21. Use before risky work on a live controller or when asked to back up or read out the CPU.
Ships in TIA Portal Automation Harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The upload adds a new station to the open project — so the backup always goes into a
dedicated, dated, EMPTY project, never the working project. The .zap21 archive is
the restorable artifact.
tia_ping: continue only if it reports reachable:true and activated:true. activated:null with a busy detail means serve is occupied, not necessarily by an MCP job: poll tia_job_status only for a running job whose jobId is known. Without one, wait/recheck with tia_status; for connect_incomplete, follow the host-inspection handoff in tia_guide {"topic":"gui-gates"}, never retry connect. Otherwise stop, quote its detail and hint verbatim and say that nothing was changed (prerequisites: tia_guide {"topic":"gotchas"}).tia_* tool is available, the tia MCP is not connected: say so and stop. Never continue from memory and never work around it with hand-made HTTP calls (they bypass the MCP's gate checks).isError:true), quote its error and kind verbatim, relay its hint, and state what was done and what was not. Apply only the remedy the hint or this skill names, at most once; otherwise stop and ask.requires_human_action answer verbatim and wait for the human.status:"running" + jobId identifies a running job: poll tia_job_status {jobId} without repeating the original call. On kind:"busy", poll only for a running job whose jobId is known (e.g. details.jobId); without one, wait/recheck with tia_status. For connect_incomplete, follow the host-inspection handoff in tia_guide {"topic":"gui-gates"}, never retry connect. After a timeout, check the state before repeating anything.deploy scope (tia_upload, the G4 step, is deploy-class).tia_pg_interfaces on the working
project's PLC before switching projects (the adapter list is host-wide), or call
tia_upload without confirm. Without a connectionMode the plan stays plan_blocked (connection_unresolved)
and, when serve reports any, lists in connectionCandidates the {connectionMode, pcInterfaceName, pcInterfaceNumber} of each available mode (up to 8 modes, 32 candidates; #192). An empty
connection.pcInterface.available there does NOT mean the host has no adapter. Repeat tia_upload without
confirm with one candidate's exact fields, then relay the G4 handoff. Without connectionCandidates, repeat it
without confirm with a connectionMode from connection.mode.available.tia_status shows a project: tia_project_save,
then tia_project_archive { directory:"<an-existing-folder>", name:"<working-project>_<YYYYMMDD-HHmm>.zap21" } (the directory must already exist;
the name carries the .zap21 extension — a missing or extension-less name fails).
Report the resulting <directory>/<name> path. Tell the human the next step
closes it: tia_project_create replaces the open project, and serve refuses it with
unsaved_changes while that project has unsaved work — which is why the save comes
first. If the save or the archive fails, STOP and report it: never create the backup
project over unsaved work.tia_project_create in a folder the human
picks, named PLC_backup_<station-or-ip>_<YYYYMMDD-HHmm>. Create no device in it.
The first connect of a new TIA process may raise G1.
If it answers unsaved_changes, the working project changed after the save in step 0:
STOP and report details.projects. Never retry with saveUnsavedChanges or
discardUnsavedChanges (a flag would save or lose work the step-0 archive does not
contain).tia_upload without confirm. Relay the handoff verbatim. STOP if the project path
isn't the new backup project or devices isn't empty.tia_upload with the SAME ip,
connectionMode, pcInterfaceName and pcInterfaceNumber shown in the approved plan,
plus confirm:true and that planHash (+ password only if the human typed it — G6,
never invented). Changed connection fields invalidate the approval (plan_mismatch);
ip is required on every call.
running → poll tia_job_status.upload_password → ask the human for the password (G6), then get a fresh confirmation.outcome_unknown → check tia_devices first; never repeat the call.createdDevices / tia_devices show the one new station. Optionally
tia_plc_blocks on it and tia_compile (M-off; a GUI-gated license message is not a
backup failure).tia_project_save + tia_project_archive { directory:"<an-existing-folder>", name:"PLC_backup_<station-or-ip>_<YYYYMMDD-HHmm>.zap21" }. The .zap is the backup.
Report its <directory>/<name> path, what it contains (expected) and what it doesn't.tia_connect (the human decides). It
closes the backup project, which step 5 saved; if it answers unsaved_changes, STOP and
report it, and never pass discardUnsavedChanges.Runtime status: validated 2026-09-26 on S7-1200 1214C (bench): upload added the station,
CPU stayed in RUN, archive .zap21 1.6 MB; G6 password path not hardware-verified.
tia_devices first.discardUnsavedChanges is never passed in a backup: an
unsaved_changes refusal is reported to the human, never worked around.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
siemens, plc-backup, tia-portal, cpu-upload, industrial-automation
9 skills in this plugin
/cpu-selectRecommend a Siemens S7-1500/S7-1200 CPU family + variant + order number (MLFB) from an engineering need (I/O count, scan/performance, memory, communication ports, safety, redundancy, motion). Use when the user asks "which CPU / PLC should I use", gives selection criteria instead of a model, or needs a typeIdentifier for a project-spec. Deterministic heuristic over the bundled CPU reference — NO MCP. Output: recommended CPU + justification + the OrderNumber:{MLFB}/V{fw} TypeIdentifier (flagged: confirm/resolve the concrete MLFB+firmware with tia_catalog before building). Not for validating a spec (spec-validate) or when the user already named a model./spec-planTurn a VALIDATED TIA project-spec into the ordered, named sequence of offline build operations WITHOUT mutating anything (a dry plan). Use after spec-validate passes and before tia-scaffold — when the user asks to "plan / preview / dry-run the build", or wants to see exactly what scaffolding a spec would do and in what order. Class R: runs tia_spec_validate then tia_spec_plan, both PURE (no serve, no TIA Portal); with a project open it can add a read-only impact check (tia_crossrefs) for the existing objects the plan would write to. Output: the ordered M-off steps + assumptions + warnings (+ that impact); nothing is applied and no gate is crossed. Not for validating (spec-validate) or applying the build (tia-scaffold)./spec-validateValidate a TIA project-spec against the JSON Schema AND the deterministic cross-field engineering rules (same-subnet, unique names, OrderNumber:{MLFB}/V{fw} format, module limits, language-by-family, and the G5 safety rule). Use when the user provides or edits a project-spec, asks to "validate / check / lint my spec", or before scaffolding a project from a spec. Class R (deterministic, read-only, no serve or TIA Portal; its only tool is the pure tia_spec_validate) — rung 0 of the verification ladder, fully offline. Not for recommending a CPU (cpu-select) or planning the build (spec-plan)./tia-handoffPrepare a human-approval envelope for a GATED operation — download / CPU-STOP (G3), go-online (G4), network scan (G7), credentials (G6: master secret, UMAC, upload / block / certificate passwords, password policy), safety/F (G5). Use when the user wants to "download / deploy / go online / commission", or after tia-verify is clean and the next step touches the physical controller. Class GATE: this skill NEVER performs the gated action — it produces the plan + planHash + exactly what the human must approve, and the precise resume call. The AI never approves, never invents a secret, never deploys F autonomously. Not for building (tia-scaffold) or compiling (tia-verify)./tia-initInitialize or update the current project's CLAUDE.md with the TIA harness operating guide. Use when the user asks to "init / bootstrap / set up the TIA harness", "add the harness guidance to CLAUDE.md", or "update the TIA harness section / refresh the harness guide in this project". Idempotent: injects the guide between stable markers and re-running only refreshes that block, never touching the project's own content. Class R (deterministic, file-only, no serve/TIA — the only MCP call it may make is the pure, offline tia_guide). Not for building, verifying or deploying a project (tia-scaffold / tia-verify / tia-handoff)./tia-reviewAudit an EXISTING / open TIA project against the engineering baseline (optimized access, symbolic addressing, FB + instance-DB, UDT typing, per-task language, versioned library TYPEs, PLCopen naming) and the verification-ladder posture. Use when the user asks to "review / audit / lint my TIA project", check best-practices / code health / maintainability, or before a handoff. Class R (READ-ONLY): reads blocks/types/tags/devices via the `tia` MCP; never mutates. Output: findings by rule + severity + location + concrete fix, plus a separate informational list of unused-object candidates from the cross-references. Not for the compile / consistency ladder (tia-verify) or for validating a spec offline (spec-validate).npx claudepluginhub renanlido/tia-harness --plugin tia-harnessOther plugins' skills for the same job