the standard library
nika:write
Write a file · returns the path. overwrite defaults true · create_dirs defaults false. One of 28 builtins in the closed nika: namespace: workspace files: read, write, search (permits.fs-gated).
- filefamily5 tools
- 4argsdeclared contract
- 2requiredcheck teaches a miss
- 5skeletonsship this tool
the contract
4 args · 2 requiredA missing required arg is a nika check finding before anything runs; the vocabulary below comes from the binary itself (nika catalog --tools --json), not from prose.
- path*
stringdestination path- content*
stringthe content to write- overwrite
boolean- create_dirs
boolean
in a real file
from the chain skeleton persist: with: think: ${{ tasks.think.output }} invoke: tool: "nika:write" args: path: "./output.md" # SLOT: destination content: "${{ with.think }}" # ALWAYS pass content · a write without it writes nothinga verbatim excerpt, real line numbers from chain.nika.yaml, conformance-gated upstream on every spec push. open the full skeleton →
cross-references
ships in skeletons
the check gates
the file family
5 toolsworkspace files: read, write, search (permits.fs-gated).
Machines read the same vocabulary at /tools/catalog.json; the contract lives in spec 06 · stdlib. Install and ask the binary itself: nika catalog --tools. Read the spec →