Reference › okit CLI

okit CLI

For admins who edit files on the server4 min read

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.

On this page
  1. The short version
  2. What it works on
  3. Commands
  4. Exit codes
  5. What it needs
Coming soon

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, registry and inventory.
  • 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 new refuses to replace an existing file unless you pass --force, and refuses to write a file that fails its checks.
  • JSON everywhere. Add --json to 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):

LayerFile okit writesWhat it is
Tooltools/<name>/TOOL.mdHow to reach one outside service: its address, which secret it needs (by name) and its quirks.
Skillskills/<name>/SKILL.mdA repeatable procedure, for example "chase overdue invoices", and which tools it uses.
Botagents/<name>.md plus agents/<name>.meta.yamlA 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
FlagSets
--descriptionThe one-paragraph description.
--kindTool kind, for example http-api (the default for tools), mcp-server or cli.
--statusStatus. New tools and bots start as draft.
--vendor, --base-url, --owner, --versionTool details: who makes the service, its address, who looks after the file, and the file's version.
--profile, --qa-intensity, --agent-contextBot details: its domain profile, how hard its work is checked, and extra context.
--tags, --tools, --requires-skills, --used-by, --handoff, --docsComma-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-runShow what would be written, write nothing.
--forceOverwrite an existing file.
--jsonPrint 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

0Success, or the files are valid.
1A check failed (the file or document doesn't meet the rules). Nothing was written.
2A usage or file problem: a bad name, a missing template, or a file that already exists without --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_WORKSPACE environment variable, or else the folder above okit's own scripts/ 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.

Last checked against Operation Kit main (f504a64), 11 Nov 2026Suggest an edit