No slash command · from ignition-ops
The ign (ignition-cli) agent contract — frozen JSON envelope, exit-code taxonomy, guarded writes, output modes, and the three surfaces (CLI/MCP/LSP). Use when scripting ign commands, parsing ign output, or driving gateways non-interactively.
Ships in ignition-ops. 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.
ign is a single Rust binary that operates and inspects Ignition 8.3+ gateways. It is built agent-first: every subcommand is non-interactive by default and machine-readable. This skill covers the rules that make scripting it safe and predictable.
.zip release asset, and the TUI needs Windows Terminal).jq is optional and only needed for the filtering examples below. All examples are POSIX shell (bash/zsh).Before any ign task, probe what the task needs and install only what is missing:
| Dep | Probe | Needed for | Install if missing |
|---|---|---|---|
ign ≥ 1.1 | command -v ign >/dev/null && ign --version | everything | see below |
jq | command -v jq | envelope filtering in the examples (optional) | brew install jq / apt-get install -y jq / winget install jqlang.jq |
| docker + compose v2 plugin | docker compose version | ign rig verbs only | Docker Desktop (macOS / Windows) / Docker Engine (Linux) — compose ≥ v2 required; the legacy docker-compose v1 binary is unsupported (rig verbs fail fast, exit 7 + install hint) |
| Rust 1.88+ toolchain | cargo --version | building ign from source only | rustup — skip entirely if using the tarball path |
| gateway profile | ign profile list | every gateway-touching verb | ign profile add (config, not install — see Profiles & auth below) |
ign# 1. Probe
command -v ign >/dev/null 2>&1 && ign --version
# 2. Install — exactly ONE path, chosen by probe (never run both)
if command -v cargo >/dev/null 2>&1; then
# 2a. Preferred: build from source (needs Rust 1.88+ toolchain)
cargo install ignition-cli
else
# 2b. Fallback: prebuilt release tarball (no Rust toolchain needed)
# Asset format (pinned by .github/workflows/release.yml):
# ign-<tag>-<target>.tar.gz (Windows: .zip) — the unversioned
# latest/download name 404s
DEST="${HOME}/.local/bin" # user-owned, no sudo — ensure it is on PATH
case "$(uname -sm)" in # CI target triple
"Darwin arm64") T="aarch64-apple-darwin" ;;
"Darwin x86_64") T="x86_64-apple-darwin" ;;
"Linux x86_64") T="x86_64-unknown-linux-gnu" ;;
"Linux aarch64") T="aarch64-unknown-linux-gnu" ;;
*NT*) T="x86_64-pc-windows-msvc" ;; # Git Bash / MSYS: MINGW*_NT-…
*) echo "unsupported host: $(uname -sm)"; exit 1 ;;
esac
TAG=$(curl -fsSLI -o /dev/null -w '%{url_effective}' \
https://github.com/TheThoughtagen/ignition-cli/releases/latest \
| grep -o 'tag/[^/]*$' | cut -d/ -f2) # resolves the release tag, jq-free
mkdir -p "$DEST"
if [ "$T" = "x86_64-pc-windows-msvc" ]; then
curl -fsSL "https://github.com/TheThoughtagen/ignition-cli/releases/download/${TAG}/ign-${TAG}-${T}.zip" \
-o "${TMPDIR:-/tmp}/ign.zip" && unzip -j -o "${TMPDIR:-/tmp}/ign.zip" "*/ign.exe" -d "$DEST" # zip wraps ign-<tag>-<target>/ign.exe
else
curl -fsSL "https://github.com/TheThoughtagen/ignition-cli/releases/download/${TAG}/ign-${TAG}-${T}.tar.gz" \
| tar xz -C "$DEST" --strip-components=1 # archive wraps the binary in ign-<tag>-<target>/
fi
# system-wide instead? /usr/local/bin needs root: sudo install -m755 "$DEST/ign" /usr/local/bin/
fi
# 3. Verify
ign --version
Rules:
ign --version 404s or the download fails, check the actual release assets for a renamed format before improvising..sha256 companions are published per tarball; verify with shasum -a 256 -c when the integrity matters (rigs handling licensed gateways).cargo is absent and there is no network path to GitHub releases, stop and tell the user; do not improvise alternate install paths.DOCKER_DEFAULT_PLATFORM=linux/amd64 if compose doesn't pin it (see ign-rigs).ign binary exists but ign --version is older than the WebDev routes on the target gateway, the versioning discipline below (route mismatch) is the guide — never pin an old CLI.| Surface | Invocation | Consumers |
|---|---|---|
| CLI JSON | ign <verb> --json (default: human table on stdout) | Scripts, agents |
| MCP | ign mcp serve (stdio JSON-RPC 2.0) | MCP clients — 83 tools derived from the CLI's own argument parser |
| TUI | ign tui | Humans only — full cockpit, never scripted |
Every CLI verb's MCP twin exists automatically (catalog derives from the clap tree with a CI parity test), so anything documented for the CLI is drivable over MCP.
With --json (or --compact, which implies it), every command emits one of:
Success: {"ok": true, "profile": <name|null>, "data": {...}}
Failure: {"ok": false, "profile": <name|null>, "error": {"code": "<slug>", "message": "...", "endpoint": <url|null>, "hint": "..."}}
Rules:
ok, then branch. error.code is a stable slug — key automation on slugs, never on message prose (messages may improve between releases).render_error's JSON branch) — the exit code carries the same signal either way. Automation must read error.code / error.message from stderr when the exit code is nonzero; stdout stays empty on failure.ign completions <SHELL> (sourced by shells), ign tags export --format xml -- - and CSV/XML file payloads (byte-faithful gateway passthrough), and ign rig logs (streams compose log lines directly to stdout in both default and --json forms — never parse them as JSON), plus ign edit (zero stdout — the editor owns the terminal).| Code | Class | Meaning |
|---|---|---|
| 0 | ok | success |
| 1 | internal | unexpected failure — report as a bug |
| 2 | usage | clap usage error, destructive op without --yes, invalid import file, or an api call the gateway rejected with an unclassified 4xx |
| 3 | config | local configuration problem (profile not found, no active profile, secret unavailable, config invalid) |
| 4 | network | gateway unreachable / timeout / TLS |
| 5 | auth | gateway rejected credentials |
| 6 | target_state | command invalid for gateway's current state (not_found, eam_not_controller, routes_not_deployed, bundle_not_available, …) |
| 7 | rig | docker/compose rig failure |
Scripts should branch on exit class; the error.code slug disambiguates within a class.
Destructive operations are refused with exit 2 unless --yes is passed (CLI) or confirm: true is set (MCP tool call — the field is deliberately optional so agents cannot auto-fill it).
--yes: workspace push conflicts refuse even with --yes (manual reconciliation required); ign edit staleness refusals are never force-able; ign script requires a deploy-time secret (structural opt-in, no --yes exists).eam_not_controller (exit 6) means the target gateway is not an EAM controller.ign api callFor any REST endpoint ign doesn't curate:
ign api call --method GET --path /data/status/statusinfo --json
ign api call --method POST --path /some/endpoint --data '{"k": "v"}' --json
data is gateway-verbatim (raw passthrough, never re-serialized) — the one documented envelope exception.gateway_client_error with the gateway's body carried verbatim (up to 4 KiB) — never an exit-1 storm.--profile <NAME> selects a gateway; default is the active profile in config. ign profile manages them.IGNITION_USER / IGNITION_PASSWORD), then OS keyring.IGNITION_PROFILE env var sets the profile for a whole session.ign mcp serve # register in any MCP client as command: ign, args: ["mcp", "serve"]
ign lsp # LSP for ignition-nvim / editors — TTL-cached gateway truth
Before scripting against a gateway, confirm the CLI's WebDev routes are deployed and version-matched: ign webdev status reports per-route {deployed_version, expected_version}. A stale deploy refuses with route_version_mismatch (exit 6) — fix with ign webdev deploy, never by pinning an old CLI.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/ign-gatewayGateway operations with ign — the daily health check (status, license, redundancy, GAN), diagnostics bundles, logs tailing, doctor diagnosis, and restart/wait primitives. Use when inspecting or operating an Ignition 8.3+ gateway./ign-rigsTest-rig lifecycle with ign — Docker compose rigs for Ignition 8.3 (up/down/reset/status), OIDC trial resets for licensed testing, and commissioning waits. Use when spinning up disposable Ignition gateways for development or verification./ign-tagsTag operations with ign — providers, browse, read/write values, config CRUD, UDTs, alarms, history, and byte-faithful XML/CSV bulk transfer with loss gates. Use when managing Ignition tag providers, values, configurations, or bulk transfers.Other plugins' skills for the same job
npx claudepluginhub thethoughtagen/ignition-cli --plugin ignition-ops