/tia-harness:spec-planfrom TIA Portal Automation Harness
Generates a dry-run ordered build plan from a validated TIA project-spec without mutating anything. Use after spec-validate passes and before tia-scaffold to preview scaffolding steps, assumptions, and warnings.
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.
Transform a structured project-spec (the project-spec model, §13.2) into the
ordered sequence of offline operations that tia-scaffold would execute — without
touching the project. This is the bridge between spec-validate (is the spec legal?) and
tia-scaffold (build it): it shows the plan so a human can review it first.
It is class R. Both tools it uses — tia_spec_validate and tia_spec_plan — are
pure: they run deterministically on the spec text and never call the serve API or
open TIA. So this never mutates and never crosses a gate.
One optional step comes after the plan (step 4, Impact on the open project): with a project
already open it reads, through serve, how the existing objects the plan would write to are
cross-referenced. It is only a read, it never changes the plan and the plan never waits for it.
serve and no TIA Portal: the tia_* tools named here are pure and offline, so do not call tia_ping. If they are not in the tool list, say so and use the fallback this skill names, or stop.error, kind, hint) and state what was done and what was not. Never fix the input silently, never retry with changed input to get past a failure, and never report success after an error.tia_spec_validate and tia_spec_plan. The optional Impact on the open project step (step 4) is the only part that reads through serve: only there call tia_ping, and only after the plan is presented. If it cannot run or fails (serve unreachable or not activated, no project open, tia_crossrefs or a read tool missing, a tool error), say impact not read with the reason (quote error, kind and hint verbatim for a tool error) and keep the plan as the answer. Never block or withdraw the plan on it, and never retry with changed arguments beyond the repeats step 4 names.status:"running" + jobId (only tia_crossrefs answers it) identifies THIS request: poll tia_job_status {jobId} until the final result and never repeat the call; after a timeout, check the state before repeating anything. kind:"busy" means THIS request did not run: only for a running job whose jobId is known (e.g. details.jobId), wait with tia_job_status {jobId}, never use that job's result for this read, then repeat the same read once with unchanged arguments; if it answers busy again, say impact not read with the reason. Without a known running job ID, report impact not read/complete and wait/recheck with tia_status; for connect_incomplete, follow the host-inspection handoff in tia_guide {"topic":"gui-gates"}, never retry connect.409 cursor_stale, or coverage counts that differ between pages, restarts that object's page walk from the first page, once for each, and a page that arrives with an omission marker is repeated with a smaller limit, at most three times; step 4 says how. A read that cannot be completed is reported as impact not complete with the reason, never as an absence of impact.spec-validate is green and before tia-scaffold, to preview the build.tia_spec_validate.serve.status — plan_ok or invalid (with the validation violations if invalid).steps[] — the ordered operations, each { op, method, path, body, summary }
(subnets → devices → modules → network → tag tables → tags → blocks → compile).assumptions[] — e.g. "tag/block target CLP = the first role:cpu device".warnings[] — non-blocking spec warnings.Impact on the open project (only when step 4 ran) — for each existing object the plan writes
to: its related objects with the referenceType and access as TIA reports them, and whether
the read was complete; or impact not complete (the related objects read so far and the reason);
or impact not read with the reason.connect,
download) are intentionally not in the plan.tia_spec_validate (or run the spec-validate skill). If it
reports any error, STOP and return the violations — do not plan an invalid spec.tia_spec_plan with the spec. It returns the ordered steps +
assumptions + warnings. (It is pure — no serve.) If tia_spec_plan is not available,
say so and stop: a plan written by hand from memory is not this skill's output.summary, surface the
assumptions explicitly (especially the target CLP), and list any warnings. State that
tia-scaffold (with a project open) is what actually applies this, and that a bare CPU
will need the protection recipe to compile clean (see ../tia-scaffold/RECIPES.md).tia_ping must report reachable:true and
activated:true, and tia_status hasProject:true. Otherwise say impact not read, give
the reason (no serve, not activated, no project open) and stop.path carries the literal {plc} and plan.plc.device
names the device, so take the name that tia_plcs lists and that is among that device's items in
tia_devices (or devices[].plcName of the spec); if none matches, say impact not read (the open
project does not hold it) and stop. Take the names the steps
create: fb.create and instancedb.create (blocks), tag.create (tags), tagtable.create
(tag tables) and a type name if a step carries one. Compare them with tia_plc_blocks,
tia_plc_tags and, only for a type name, tia_plc_types (exact name first, then ignoring
case). If none exists, say that no existing object is touched and stop.tia_crossrefs {plc, target, kind, filter:"ObjectsWithReferences", limit:200}
with kind set to block, type, tag or tagtable; on a big project it can take long, and
every page re-reads what it covers. Follow nextCursor as the cursor of the next call, passed
back unchanged with the other arguments the same, until it is null. Read coverage on EVERY
page, never only on the first: every page re-reads the PLC, so a later page can report less than an
earlier one. Keep coverage.complete, coverage.owners, coverage.queried and
coverage.unavailable of each page and compare them.
(a) status:"running" + jobId identifies this request: poll tia_job_status {jobId} until
the final result and never repeat the call; after a timeout, check the state before
repeating. (b) kind:"busy" means this request did not run: only for a running job whose
jobId is known (e.g. details.jobId), wait with tia_job_status {jobId}, do not use its
result for this object, then repeat the same call once with unchanged arguments; if it is
busy again, stop that object's walk and say impact not read (no page read) or impact not complete (some pages read), with the reason. Without a known running job ID, stop that walk,
report impact not read/complete and wait/recheck with tia_status; for connect_incomplete,
follow the host-inspection handoff in tia_guide {"topic":"gui-gates"}, never retry connect.
(c) If the result is 409 ambiguous_target,
repeat once with the kind from the candidates in its details that matches the step.
(d) 409 cursor_stale means the project changed during the walk, and counts that differ between
pages mean the same: restart that object from the first page, without cursor, once for each; if
it is stale or the counts differ again, say impact not complete. (e) A page
where sources is replaced by an object with omitted:true (an omission marker) carries no
nextCursor: repeat that same call, with the same cursor (or none for the first page) and a
smaller limit, for example half of the last one, at most three times, and follow a nextCursor
only from a page that arrives without a marker; never follow a cursor from an omitted page, it
would skip what the marker replaced. If a marker remains, say impact not complete.nextCursor: null with every page
intact and coverage.complete is true on every page, with the same coverage.owners,
coverage.queried and coverage.unavailable on all of them. In every other case say impact not complete for that object with the reason (a marker you could not clear, a walk you did not
finish, counts that still differ after the restart, or coverage.complete: false or
coverage.unavailableOwnersTruncated: true on any page, even when earlier pages said complete,
which means some owners could not be queried: list coverage.unavailableOwners with each kind,
name and reason from every page that has any, at most the 50 each holds, and say so when
coverage.unavailableOwnersTruncated is true), show only the related objects you did read, and
never say that the object has no related objects, or that nothing depends on it, from an
incomplete read.name, path, type) with the
referenceType and the access of each location, next to its location, all copied as
returned. Group them as UsedBy relations, Uses relations and other relations (every
other referenceType, each with its own value), and label the groups "direction as reported
by TIA": never say which object depends on which, and call a group "depends on the target"
only when the human, after seeing the raw values, confirms what the value means. An object
whose complete read has no related objects says so. This is information for the human, never a
step to run.tia_spec_validate and tia_spec_plan are pure (no serve, no TIA);
this skill must not call any M-off/gated tool. The only calls that reach serve are the
optional read-only ones of step 4 (tia_ping, tia_status, tia_plcs, tia_plc_blocks,
tia_plc_tags, tia_plc_types, tia_crossrefs, tia_job_status), and the plan never depends
on them.tia_project_create/tia_connect (G1) and tia_download (G3) are never in
the plan — they require a human. The plan is offline build steps only.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub renanlido/tia-harness --plugin tia-harness9 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-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).Other plugins' skills for the same job