← ClaudeAtlas

sync-openmclisted

Maintenance skill for the openmc-claude-skills knowledge base. Diffs two OpenMC release tags (OLD NEW, e.g. v0.15.2 v0.15.3), maps changed Python source files to the affected KB doc files, writes a per-release migration notes file at skills/openmc/releases/vNEW.md, and updates .last-synced-release. Invoke as: /sync-openmc v0.15.2 v0.15.3. Requires gh CLI (authenticated) and curl. This is a maintainer-only tool; the consumer openmc skill is separate.
itaybnv/openmc-claude-skills · ★ 0 · AI & Automation · score 78
Install: claude install-skill itaybnv/openmc-claude-skills
# /sync-openmc — OpenMC KB Sync Command Maintenance skill for the openmc-claude-skills knowledge base. Run this when a new OpenMC release is published to get a precise, deterministic list of which KB docs need a re-validation authoring pass. **This command is a detector/mapper + migration-note writer. It does NOT auto-edit shipped docs.** The cardinal sin is shipping unvalidated content. All doc rewrites require a human-driven authoring pass following the validated-before-commit methodology. **Prerequisites:** - `gh` CLI installed and authenticated (`gh auth status` to verify) - `curl` available (standard Linux/macOS) - `conda` with the `openmc-env` environment (OpenMC 0.15.3) - Run from the repo root of `openmc-claude-skills` --- ## Invocation ``` /sync-openmc OLD NEW ``` Example: `/sync-openmc v0.15.2 v0.15.3` `OLD` and `NEW` must match the pattern `vX.Y.Z` (e.g., `v0.15.3`). Both are validated before any network request is made. --- ## Workflow Execute the following steps in order using the Bash tool. Each step is a concrete set of shell commands. Do not skip steps. Do not proceed past Step 1 on a version mismatch. --- ### Step 0 — Pre-flight and argument validation Run these checks before anything else: ```bash # Extract OLD and NEW from the skill invocation arguments OLD="$1" # e.g. v0.15.2 NEW="$2" # e.g. v0.15.3 # Validate both args match vX.Y.Z before interpolating into any URL or command if ! echo "$OLD" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$'; the