okit CLI
okit is a command-line tool for writing tool, skill and bot files by hand. It creates them from templates, checks them, and rebuilds the lists Operation Kit reads.
Not on your server yet. okit ships with an upcoming release. The current installer doesn't include it, so these commands won't run on a fresh install. This page documents okit 1.0.0 ahead of that release. Until then, add tools, skills and bots as described in Tools, skills and integrations and Bot files and templates.
The short version
- Five commands:
new,check,validate,registryandinventory. - It never touches a secret. Tool files name the environment variable that holds a key, never the key, and the lists okit builds carry names only.
- It won't overwrite your work.
okit newrefuses to replace an existing file unless you pass--force, and refuses to write a file that fails its checks. - JSON everywhere. Add
--jsonto any command for machine-readable output.
What it works on
okit works on three kinds of file, one per layer, inside its authoring folder (see What it needs):
| Layer | File okit writes | What it is |
|---|---|---|
| Tool | tools/<name>/TOOL.md | How to reach one outside service: its address, which secret it needs (by name) and its quirks. |
| Skill | skills/<name>/SKILL.md | A repeatable procedure, for example "chase overdue invoices", and which tools it uses. |
| Bot | agents/<name>.md plus agents/<name>.meta.yaml | A bot persona for board work: the instructions in the .md file, the details (skills, tools, status) in the .meta.yaml file next to it. |
On the command line the bot layer is agent (as in okit new agent) because that is the folder name. Bots on the Bots screen use a different file, agent.yaml, which okit doesn't create. See Bot files and templates.
A name must be lowercase letters, digits or underscores, joined by single hyphens: invoice-chase works, Invoice Chase and billing/invoices don't.
Commands
okit new
Creates a tool, skill or bot file from its template, fills in the name, checks it, then writes it.
okit new tool <name> # writes tools/<name>/TOOL.md
okit new skill <name> # writes skills/<name>/SKILL.md
okit new agent <name> # writes agents/<name>.md and agents/<name>.meta.yaml
| Flag | Sets |
|---|---|
--description | The one-paragraph description. |
--kind | Tool kind, for example http-api (the default for tools), mcp-server or cli. |
--status | Status. New tools and bots start as draft. |
--vendor, --base-url, --owner, --version | Tool details: who makes the service, its address, who looks after the file, and the file's version. |
--profile, --qa-intensity, --agent-context | Bot details: its domain profile, how hard its work is checked, and extra context. |
--tags, --tools, --requires-skills, --used-by, --handoff, --docs | Comma-separated lists: tags, tool names, skill names, skills that use this tool, bots to hand off to, and links or paths to docs. |
--from-json <file> | Read the details (and optionally the body) from a JSON file, or from standard input with -. |
--body-file <file> | Use this markdown file (or - for standard input) as the body instead of the template. |
--dry-run | Show what would be written, write nothing. |
--force | Overwrite an existing file. |
--json | Print the result as JSON. |
Fernleaf Garden Supply adding an invoicing tool (dry run) and a skill that uses it:
okit new tool invoicing --kind http-api --vendor "Your invoicing app" --dry-run
okit new skill invoice-chase --description "Chase invoices more than 30 days overdue" --tools invoicing
okit check
Checks a JSON document against the rules for its layer without touching any file. Meant for scripts and other programs.
echo '{"layer":"skill","name":"invoice-chase","frontmatter":{"description":"…"}}' | okit check --json
Flags: --layer tool|skill|agent (if the JSON doesn't say), --from-json <file> (default: standard input), --json.
okit validate
Checks the files on disk. With no path it checks every tool, skill and bot file in the authoring folder. Pass a file or folder to check only that.
okit validate
okit validate skills/invoice-chase/SKILL.md --json
Beyond the format rules, it fails any file that points at something missing, such as a skill listing a tool with no tools/<name>/TOOL.md. A tool whose name doesn't match its folder fails; for skills and bots that's a warning.
Flags: --json, --verbose (include every file's result, not just failures) and --full (also run the extra self-checks script; whole folder only).
okit registry
Rebuilds tools/registry.json and skills/registry.json, the lists Operation Kit reads to know which tools and skills exist. Files are rewritten only when something changed.
Flags: --tools-only, --skills-only, --dry-run, --json.
okit inventory
Prints how many tools, skills and bots the authoring folder holds. With --json it prints the full merged list, which Operation Kit's own authoring API uses.
okit --version prints the version; okit <command> --help lists one command's flags.
Exit codes
--force.What it needs
The release will set this up for you. For reference, okit needs:
- Python 3 with the PyYAML and jsonschema packages.
- An authoring folder: the path in the
AI_WORKSPACEenvironment variable, or else the folder above okit's ownscripts/folder. This is a folder on disk, not an Operation Kit workspace. - The rule files (
docs/schemas/tool.schema.json,skill.schema.json,agent.schema.json) and the templates (skills/agent-builder/templates/) in that folder.
Operation Kit's server can also drive okit: its local authoring API lists, checks and creates these files through okit, so the rules live in one place.
f504a64), 11 Nov 2026Suggest an edit