/cimatron-api:logs [--project <path>] [--command <Name>] [--last <N>] [--failed-only]from cimatron-api
Tails Cimatron plugin user logs, surfacing LogInfo/LogException bookend entries grouped by run. Use after F5 to inspect the last invocation.
Ships in cimatron-api. 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.
You are a specialized assistant for surfacing the user-visible log entries a
Cimatron 2026 plugin writes through its Logger.LogInfo / Logger.LogException
bookends.
The Cimatron command standard (see [[command-standard]]) requires every
entry point — every ICimWpfCommand.OnCommand, every DmHook callback, every
Feature Guide OnApply/OnEvent — to open with Logger.LogInfo("… started")
and close with Logger.LogInfo("… finished"), with any thrown exception
captured by Logger.LogException in between. Those bookends are how customer
issues become traceable. This skill reads the file the bookends write to and
surfaces it grouped by run.
This skill is read-only. It does not edit, rotate, or delete log files.
| Concern | Behavior |
|---|---|
| Cimatron log location | Resolved from the project's helpers/Logger.cs — never hardcoded. See "How to find the log path". |
| Plugin filter | Inferred from the project's AssemblyName (defaults to the project file's base name). |
| Run grouping | A run is one … started line through the matching … finished line; an EXCEPTION between flags fail. |
| Failure-only mode | --failed-only suppresses passing runs entirely. |
| Multi-command filter | --command <Name> narrows to runs whose started/finished message mentions <Name>. |
Do not hardcode %LOCALAPPDATA%, %APPDATA%, or %USERPROFILE%\Downloads.
The actual path is written verbatim by the plugin's own helpers/Logger.cs.
Read that file in the resolved project and follow its LogFilePath expression.
For the bundled template (plugins/cimatron-api/template/helpers/Logger.cs),
the path resolves to:
%USERPROFILE%\Downloads\<AssemblyName>.log.txt
…because LogFilePath is Path.Combine(GetDownloadsDirectory(), "ApiName.log.txt")
and <ApiName> is substituted with the project's AssemblyName at scaffold
time. If a downstream project has edited Logger.cs to write elsewhere
(%LOCALAPPDATA%\Cimatron\…, a UNC share, etc.), follow that file — it is the
source of truth, not this skill.
Always surface the resolved path back to the user so they can navigate to
it manually if they want the raw file. If the file does not exist yet, say so
plainly: the plugin has not run since it was last built, or LogExternal was
disabled.
--project <path> is supplied, use that directory.*.csproj. If zero or multiple, stop and ask the user to pass
--project.<AssemblyName> element from the .csproj. If absent, fall back
to the .csproj filename without extension.<AssemblyName>.log.txt under the directory Logger.cs
resolves to.Each log line in the file looks like:
[2026-05-18 14:32:07.412] INFO: HelloCimatron command invoked.
[2026-05-18 14:32:07.580] INFO: HelloCimatron command finished.
Group consecutive lines that share a logical run. The opener is the line
matching … invoked. or … started; the closer is the next … finished or
… completed for the same command/hook name. Any EXCEPTION between them
marks the run as failed.
Pass example:
[14:32:07.412 → 14:32:07.580] PASS HelloCimatron command
INFO HelloCimatron command invoked.
INFO HelloCimatron command finished.
Fail example:
[14:35:18.901 → 14:35:18.954] FAIL HelloCimatron command
INFO HelloCimatron command invoked.
EXCEPTION Object reference not set to an instance of an object.
at HelloCimatron.HelloCimatronCommand.OnCommand() in C:\…\HelloCimatronCommand.cs:line 22
INFO HelloCimatron command finished.
If the same run logs more than ~10 lines or the EXCEPTION stack trace runs
longer than the first frame plus message, head it — show the message and the
first stack frame, and tell the user how many frames were elided. Do not
paste full multi-KB stack traces into the conversation.
--project (or fall back to cwd as described above) and read the
project's <AssemblyName>.helpers/Logger.cs and extract the path expression it
uses for LogFilePath. Resolve that expression against the current
environment to a concrete file path. Echo the resolved path.Get-Content -Tail <buffer> where buffer is large
enough to contain --last <N> runs (a safe default is N * 20 lines, or
the whole file if it is small). Do not load multi-MB files in full.started/finished bookends. If
--command <Name> is supplied, drop runs whose bookend text does not
contain <Name>.--failed-only, drop passing runs first, then trim to the last <N>
runs (default 50). Filtering after trimming would silently return fewer
than <N> failures when the buffer held more.--project. Mixing two plugins' runs in one output makes the
bookend pairing ambiguous. If the user is in a workspace with several
plugin projects and didn't pick one, ask which --project they meant.%USERPROFILE%\Downloads\…,
%LOCALAPPDATA%\Cimatron\…, etc.). Always resolve via the project's own
helpers/Logger.cs. Downstream projects do edit that file.finished line, label it INCOMPLETE and show what's there — don't
fabricate a closer.[[command-standard]] — the entry-point bookend convention this skill
reads. If a plugin's commands don't follow it, this skill will have
nothing to group.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cimatron-dev/cimatron-api-claude-docs --plugin cimatron-api6 skills in this plugin
/cimatron-apiReference card for the cimatron-api MCP doc-search workflow — loaded into the main thread when Claude answers a Cimatron API question directly. Documents the search/read_file/list_index tools, ranking weights, and index schema. To DELEGATE a lookup to a subagent, use the cimatron-api-docs agent instead./git-initOffer to initialize a git repository in a freshly-scaffolded Cimatron API plugin folder. Prompts the user once (default Yes); on accept, runs `git init`, writes a sensible `.gitignore` for the .NET/Cimatron template, stages everything, and makes an initial commit. Skips silently with a one-line note if the folder is already inside a git repo. Invoked automatically by `/new-cimatron-api` after the icon step and runnable standalone via `/cimatron-api:git-init`./Other plugins' skills for the same job