> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Sharing workflows

> Publish and install Nika workflows through nika-registry — every entry machine-re-proven before it runs.

Nika workflows are one portable `.nika` file, so sharing one is just
sharing text. [**nika-registry**](https://github.com/supernovae-st/nika-registry)
adds a trust layer: every entry is re-proven by CI — pinned to a full
commit + sha256, re-run through the conformance oracle, and certified by
the engine's static analysis. You see what a workflow *can do* — exec,
tools, cost ceiling, secrets — **before a single token is spent**.

> [!NOTE]
>
> Trust lives in the artifact, not a gatekeeper: the certificate re-derives
> locally with `nika check`. You never have to believe the registry — you
> re-run the proof yourself, offline.

## Install an artifact

The supported path is a short, auditable script in the registry
repository. It needs **Python 3.11 or newer** (it reads TOML with the
standard library) and **PyYAML** for its local audit step:

```sh theme={"system"}
python3 -m pip install pyyaml                 # once · the audit step reads YAML
git clone https://github.com/supernovae-st/nika-registry && cd nika-registry
python3 scripts/get.py --list                 # what exists
python3 scripts/get.py meeting-actions        # fetch → verify sha256 → local audit → done
```

`get.py` refuses on any mismatch (hash · advisory · file already there) and
**never executes anything** — the workflow lands on disk and you decide to
run it. Not `curl | sh`. Then check and run the file by its path like any
other workflow.

> [!WARNING]
>
> **The engine's `registry:` door is refused in 0.124.1.**
> `nika check registry:owner/name` and `nika run registry:…` stop at the
> first fetch with `NIKA-REG-005`: the public index speaks schema 2 and this
> engine reads schema 1. Use `get.py`, then the local file
> ([Known limits](https://docs.nika.sh/changelog/known-limits.md#registry-coordinates-are-refused)).

## The guarantees

| Rule | What it prevents |
| - | - |
| Entries are **immutable** — new version = new file; withdrawal is an advisory | rug-pulls · silent tampering |
| **Full-commit + full-sha256 pinning** — no tags, no branches | tag-rewrite attacks |
| CI **re-hashes** the fetched bytes and **re-runs the oracle** | broken or lying artifacts |
| **Key-shaped strings refuse the gate** | shared-template credential leaks |
| **Zero install-time execution** — entries and artifacts are data | the entire malicious-postinstall class |

## Machine surfaces (for agents)

* [`index.json`](https://raw.githubusercontent.com/supernovae-st/nika-registry/main/index.json) — every artifact with its pin, digest, cert summary and advisory state in one fetch
* [`llms.txt`](https://raw.githubusercontent.com/supernovae-st/nika-registry/main/llms.txt) — the consume/verify path in agent-readable form

## Publish

Your artifact stays in **your** git repo — the registry stores a pointer, a
digest and a proof, never a copy. Open a PR adding an entry under your
GitHub-owner namespace; CI re-proves it. See the
[contributing guide](https://github.com/supernovae-st/nika-registry/blob/main/CONTRIBUTING.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.