/tia-harness:tia-initfrom TIA Portal Automation Harness
Initializes or updates the current project's CLAUDE.md with the TIA harness operating guide. Idempotent: injects guide between stable markers without touching project content. Use when asked to init, bootstrap, set up, add, or refresh the TIA harness guidance.
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.
Inject (or refresh) the TIA harness operating guide into the current project's
./CLAUDE.md, so that future sessions in this repo automatically know how to drive the tia
MCP, where the gates/guards are, and the hard-won gotchas. This is class R: deterministic,
file-only, never opens TIA Portal and never touches
the serve — the only MCP call it may make is the pure, offline tia_guide.
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.CLAUDE.md (e.g. after a plugin
upgrade ships a newer guide).Write the harness guide into ./CLAUDE.md (the project at the cwd) inside idempotent
markers, so the harness section is self-contained and updatable without disturbing anything
the project authored.
Read the guide — prefer the MCP, fall back to the plugin file.
tia MCP is available in this session, call the tia_guide tool with
{"topic":"full"} and use the returned markdown as the exact content to inject.
This is the preferred source: it always matches the INSTALLED MCP version (the
tia_* tools the user actually has), and it is pure/offline — it does NOT need
the serve running and never opens TIA Portal.tia MCP is not available): read the guide at
${CLAUDE_PLUGIN_ROOT}/.claude-plugin/CLAUDE.md — a GENERATED copy of the
same content (source: mcp/content/ in the harness repo). Drop the file's first
line — the <!-- GENERATED from mcp/content/ ... --> comment — before injecting;
its "run cd mcp && npm run sync" instruction is meaningless in a downstream
project, and dropping it keeps the injected block identical to what
tia_guide {"topic":"full"} returns.In either case inject the guide verbatim — do not paraphrase or trim it.
⚠️ The fallback is NOT
${CLAUDE_PLUGIN_ROOT}/CLAUDE.md.${CLAUDE_PLUGIN_ROOT}is the plugin root (the directory containing.claude-plugin/), so that path is the plugin repo's own development guide — a different document, not meant to ship. Injecting it would dump the repo's internal notes into the user's project.If the MCP is unavailable AND the fallback file is not found: stop and tell the user. Do not fall back to any other
CLAUDE.md, do not search the filesystem for one, and do not reconstruct the guide from memory — an approximate guide is worse than none, because the gates and gotchas in it are safety-relevant.
Locate / create the target. If ./CLAUDE.md does not exist in the current project,
create it. If it exists, read it.
Inject between idempotent markers. The guide block is delimited by:
<!-- tia-harness:start -->
... the guide from ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/CLAUDE.md ...
<!-- tia-harness:end -->
./CLAUDE.md, replace only the text between them
with the current guide. Leave everything outside the markers exactly as-is../CLAUDE.md, separated by a blank line. Do not move or rewrite existing
content.Confirm. Tell the user whether the block was created, inserted (appended), or
updated (replaced), the path written (./CLAUDE.md), and a one-line summary of what the
guide covers (driving the tia MCP, gates vs guards, the GUI-gate handoffs, the
runtime-validated gotchas and recipes).
<!-- tia-harness:start --> and
<!-- tia-harness:end -->. It never appends a second block and never touches project content
outside the markers.tia_guide tool
or the bundled fallback file) and edits a local Markdown file.CLAUDE.md content is preserved verbatim; the only
region this skill owns is the marked block.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-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).Other plugins' skills for the same job