> ## 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.

# Documentation and source of truth

> Find the contract, implementation and version behind a Nika explanation.

Nika's documentation teaches you how to write workflows and use the engine.
When you need to check a precise behavior, follow the reference to its source
and compare it with the version you have installed.

## Which source answers your question?

| Your question | Start here | What it establishes |
| - | - | - |
| How do I write my first workflow? | [First workflow](https://docs.nika.sh/getting-started/first-workflow.md) | A complete example to validate and run |
| What does a YAML field mean? | [Language reference](https://docs.nika.sh/reference/language/overview.md) | Its type, placement and declared behavior |
| What arguments does a tool accept? | [Builtins](https://docs.nika.sh/reference/builtins.md) | Its contract, permissions and errors |
| What is available in my installation? | `nika --version` and `nika catalog --tools --json` | The installed version and tool catalog |
| How does the engine implement a feature? | [Architecture](https://docs.nika.sh/concepts/architecture.md) and [engine source](https://github.com/supernovae-st/nika) | The implementation and its interfaces |
| How do I use Nika from an application? | [SDK overview](https://docs.nika.sh/sdk/overview.md) | Client setup and application integration |
| Why did a workflow fail? | [Error codes](https://docs.nika.sh/reference/error-codes.md) and [traces](https://docs.nika.sh/concepts/traces.md) | The diagnostic and evidence from that execution |

## Contract, implementation and explanation

The [specification](https://github.com/supernovae-st/nika-spec) defines the
language contract, schemas and conformance fixtures. The
[reference engine](https://github.com/supernovae-st/nika) implements that
contract. These guides explain how to use it. The [product website](https://nika.sh)
introduces Nika; keep documentation bookmarks on `docs.nika.sh`.

```mermaid theme={"system"}
flowchart LR
  Contract[Specification: expected behavior] --> Engine[Engine: implementation]
  Contract --> Reference[Reference: fields and tools]
  Engine --> Guides[Guides: using the released engine]
  Reference --> Workflow[Your workflow]
  Guides --> Workflow
  Workflow --> Check[Validate with nika check]
```

A schema declaration describes a contract. It does not, by itself, prove that
an installed binary implements that behavior. Check [engine status](https://docs.nika.sh/reference/status.md)
and validate your complete workflow before running it.

## Read the version with the example

Generated field and builtin references link to a specific specification revision.
A Git revision identifies the exact source used for the explanation. Schema
pointers locate the declaration inside that source file.

For example, a field can be allowed in several places with different requirements.
Read the **Meaning and placement** section for the object you are editing;
a shared field name does not mean it is valid everywhere.

> [!NOTE]
>
> A source excerpt is a fragment. Its surrounding tasks, inputs and permissions
> may be omitted. Use a [complete example](https://docs.nika.sh/examples/overview.md) or
> [template](https://docs.nika.sh/guides/templates.md) when you need a runnable starting point.

## What verification tells you

| Evidence | What you can conclude | What you still need to check |
| - | - | - |
| A source revision and matching content hash | The reference uses the identified source | Whether that source is the latest version |
| A schema declaration | The field is defined at that location | Support in your installed engine |
| A successful `nika check` | The workflow passed validation | The result of actually running it |
| A recorded trace | What happened in that execution | Whether a different input behaves the same way |

For an integration, prefer the [versioned machine interfaces](https://docs.nika.sh/reference/machine-surfaces.md)
to parsing prose. For documentation used by an agent, start with the
[documentation index](https://docs.nika.sh/llms.txt).

If an explanation and your installed version disagree, report the page URL,
`nika --version`, a minimal example and the diagnostic in a
[documentation issue](https://github.com/supernovae-st/nika-docs/issues).
Remove credentials and personal data from your example before sharing it.


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