/cimatron-api:git-init [<path>] [--yes] [--no]from cimatron-api
Initializes a git repository in a freshly-scaffolded Cimatron API plugin folder with a sensible .gitignore and initial commit. Skips if already in a repo.
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.
Offer to put a freshly-scaffolded Cimatron API plugin under git, with one initial commit so the user has a clean rollback point before they start changing things.
Arguments: $ARGUMENTS
<path> — optional. Folder to operate in. If omitted, use the current working directory. Callers like /new-cimatron-api pass the scaffolded project folder explicitly so the skill doesn't depend on cd state.--yes — skip the prompt and initialize. Used by callers that have already collected consent.--no — skip the prompt and do nothing. Used by callers that want to suppress the step entirely (e.g. CI).If both --yes and --no are present, error out — the caller has a bug. Don't silently pick one.
If <path> was passed, use it verbatim. Otherwise use the current working directory.
Validate it exists and is a directory. If not, stop with a one-line error — don't try to create it. The caller is supposed to have scaffolded into it already.
Run, from inside the target folder:
git rev-parse --is-inside-work-tree 2>$null
true: the folder is already inside a git repository (either it's a repo itself, or it lives inside one — e.g. a monorepo). Stop with a one-line note like git-init: already inside a git repo at <toplevel> — skipping. (Use git rev-parse --show-toplevel to get <toplevel>.) Don't prompt, don't double-init.If git itself isn't on PATH, stop with git-init: git not found on PATH — skipping. Run /setup-env to install git, then re-run this skill. Don't try to install git inline.
--yes / --no was passed).Ask once, defaulting to yes:
Initialize a git repository in <folder>? [Y/n]
Y, y, yes → proceed to init.N, n, no → stop with git-init: skipped by user. Don't loop, don't re-ask.If --yes was passed, skip the prompt and proceed. If --no was passed, skip the prompt and stop with git-init: skipped (--no)..
Issue these in sequence (each depends on the previous one's success). All commands run with the target folder as the working directory.
git init
# Write .gitignore only if one doesn't already exist — the template might ship one in the future.
$gi = Join-Path $target '.gitignore'
if (-not (Test-Path $gi)) {
@'
# Build output
bin/
obj/
# VSCode / VS user state
.vs/
*.user
*.suo
# Rider / JetBrains
.idea/
*.DotSettings.user
# NuGet
*.nupkg
packages/
# Misc OS noise
Thumbs.db
.DS_Store
'@ | Set-Content -Path $gi -Encoding utf8
}
git add -A
git -c commit.gpgsign=false commit -m "Initial scaffold via /cimatron-api:new-cimatron-api"
The -c commit.gpgsign=false is only for this initial commit. Some users have global gpg signing on and an unconfigured key here would block the commit with a non-obvious error. Disabling signing for this one commit is the friendlier default. If the user wants signed history, every subsequent commit they make themselves uses their own config — we're not changing anything globally.
If git commit fails because user.name / user.email aren't set, fall back to a one-time local identity using the Claude Code user context if available, otherwise print the exact commands the user needs to run (git config user.name "..." and git config user.email "...") and stop. Don't invent values.
Print a one-line summary the caller can include in its own report:
git-init: initialized repo at <folder> with initial commit <shortsha>.git-init: already inside <toplevel> — skipped.git-init: skipped by user.git-init: skipped (--no).Don't print the full git status or commit body — the caller will surface what it needs to.
/cimatron-api:git-init), when the user wants to git-ize an existing scaffolded folder they didn't init at scaffold time./new-cimatron-api, after the icon step and before the final summary. Pass the just-scaffolded project folder as <path> so the skill is unambiguous about where to act.git add -A blindly without writing a .gitignore first. Otherwise the bin/ and obj/ from any incidental build slip into the initial commit and pollute history immediately.git submodule status). Detect, report, stop.-c we set is commit.gpgsign=false, and it's per-command, not stored./cimatron-api:git-init later.git init mid-flight failures by rolling back. If git init succeeded but git commit failed, leave the half-initialized repo in place and surface the exact failure. The user can fix user.email and re-run git commit -m ... themselves; deleting the .git/ they just got is more destructive than the half-state.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 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./logsTail Cimatron user logs for the current plugin project. Surfaces the LogInfo/LogException bookend entries the Cimatron command standard requires on every entry point, grouped by run. Use after F5/run to see what happened on the last invocation./package-installerPackage a built Cimatron API plugin into a single self-elevating `.exe` installer end-users can double-click to deploy the DLL into their Cimatron Program folder and register it in `ExternalCommands.ini`. Same EXE supports `/uninstall` to reverse both steps. Invoked by the `/package-installer` slash command; also runnable standalone when a caller needs the recipe without the orchestration layer./run-cimatronMid-conversation F5 equivalent for a Cimatron API plugin project. Closes any running CimatronE.exe, builds the project, launches Cimatron, and attaches the managed (clr) debugger so the user can hit breakpoints without leaving the chat. Reads CimatronRootPath from the project's Directory.Build.props./setup-envVerify the local environment is ready for Cimatron API plugin development — Git, VSCode, the C# Dev Kit extension, the .NET Framework 4.8 targeting pack, and at least one installed Cimatron 2024.0 or newer. Reports a pass/fail table and offers per-item install for anything missing. Run this before `/new-cimatron-api` on a fresh machine.npx claudepluginhub cimatron-dev/cimatron-api-claude-docs --plugin cimatron-apiOther plugins' skills for the same job