Appendix › The tools and skills layers

The tools and skills layers

9 min read

Appendix. Background reading on how Operation Kit is built. You don't need it to install or use Operation Kit; start with the main docs.

Why Operation Kit keeps connections to services, repeatable procedures and judgment in separate files, why the links between them are written down rather than searched for, and how they are checked. For the practical side, see Tools, skills and integrations.

On this page
  1. The short version
  2. Three layers, one direction
  3. Tools: how to reach a service
  4. Skills: how to do a job
  5. Checking the links
  6. The okit command-line tool
  7. References

The short version

  • Three layers. A tool says how to reach a service. A skill says how to do a job. A bot decides which job to do.
  • Secrets by name only. A tool file names the secret it needs; the value stays encrypted in Settings → Secrets or in a person's connection.
  • Written links, checked. A bot lists its skills and a skill lists its tools. A check can then catch a link to something that doesn't exist before a job relies on it.
  • okit is coming. A small command-line tool for creating and checking these files ships with an upcoming release.

This page explains the design. To add a tool, a skill or an integration today, read Tools, skills and integrations.

Three layers, one direction

Every tool, skill and bot file in your workspace folder belongs to exactly one layer:

LayerWhat it holdsFile
Bots: judgmentA role, an area, limits and when to hand a decision to a person. Decides which skill to run and whether to run it at all. Contains no procedure.agents/<name>.md
Skills: procedureA repeatable job with a clear "done" test. Uses tools. Has no role and can't refuse.skills/<name>/SKILL.md
Tools: capabilityAn API, an MCP server, a command-line program or a database: how to connect, which secret it needs, what goes wrong. No opinion about when to use it.tools/<name>/TOOL.md

The links run one way. Bots use skills; skills use tools. A tool never mentions a bot, and a skill never takes on a role. That is what lets you change one layer without touching the others: switch your invoicing provider and you rewrite one tool file, while the skill "chase overdue invoices" and the bookkeeping bot that runs it stay as they are.

To decide which layer a new file belongs to, ask three questions in order: would it be rewritten if you switched provider (tool), is it a repeatable job with a clear finish (skill), does it decide and can it refuse (bot). The full rule, with examples, is in Designing a bot.

Tools: how to reach a service

A tool is the thinnest possible layer between Operation Kit and an outside service. Its file holds connection facts: the address, how it signs in, and which secret it needs. It doesn't know why you would call the service, and it doesn't name a business process. Above all, it names the environment variable that will hold each secret, never the secret itself.

A tool file for Fernleaf Garden Supply's invoicing app might start like this:

---
name: invoicing
kind: http-api
description: Read invoices and customers in the invoicing app.
auth:
  secrets:
    - env: INVOICING_API_KEY
      source: "Settings → Secrets"
---

That tells a newcomer exactly what is missing and where to put it, and it is useless to anyone who copies the file. The value itself lives in Settings → Secrets, encrypted (AES-256-GCM) and write-only: nobody, admins included, can read it back. A job receives it as the named environment variable when it starts, if it is allowed to use it. A person's own GitHub and Google connections (Settings → Integrations) reach a job the same way, encrypted per person.

Never

Never put a secret value in a tool file. Tool files are plain text that get copied, shared and saved in version control. A key written there is a key you will have to replace. Nothing can tell a real key from a placeholder automatically, so this rule depends on you and on whoever reviews the file.

A tool, like a skill, is a folder with one main file. Longer reference material or a helper script can sit next to it in the same folder, so someone who can add a skill can add a tool without learning a second layout.

Why the quirks belong in the tool file

Every service has friction that only shows up in use: an API that needs a particular header, a usage limit that resets at midnight UTC rather than over a rolling 24 hours, a page-size limit buried in the provider's changelog. That knowledge usually lives in one person's head or an old chat thread.

A tool file has a "Gotchas" section for exactly this. Problems that cost someone time become part of the tool's definition, not a footnote in some skill, and every job that uses the tool reads them. Toolformer (Schick et al., 2023) showed that models can learn when and how to call outside APIs. Knowing how to call a service is not the same as knowing its quirks, though: limits, odd responses and sign-in edge cases still have to be found. Writing them down once beats having every job discover them again.

MCP servers are tools too

An MCP server is a capability with a connection, so the first question of the three-question rule says it is a tool. Its file has kind: mcp-server and an mcp section naming the server, so there is one place that says how to connect it instead of install commands scattered through skills. You connect MCP servers and other integrations in Settings → Integrations.

Skills: how to do a job

A skill is a procedure: a series of steps that, followed in order, produce a specific result you can check. It uses tools and may build on other skills. It has no role and can't refuse work. If it needs judgment (whether to run at all, when to stop and ask), that judgment belongs in the bot that uses it.

A skill lists the tools its own steps use:

---
name: invoice-chase
description: Find invoices more than 30 days overdue, send each customer a reminder, and confirm every reminder went out.
tools: [invoicing, google-workspace]
---

List only what this skill's own steps call. If a skill hands part of the work to another skill, it names that skill under requires_skills and lets the other skill list its own tools. That keeps every link true: each one stands for a real call, not a second-hand dependency that may change.

Operation Kit's own authoring API also allows one level of sub-skill, at skills/<parent>/<child>/SKILL.md, for a step inside a job that you want to run on its own. The child names its parent, the parent lists its children, and nothing deeper than one level is accepted. If a step needs steps of its own, make it a separate skill.

Why skills are named, not searched for

A bot's file lists the skills it always uses and the ones it may use. Skills aren't picked by searching a library for something that sounds right. The reason is how each approach fails.

A search that returns a skill that sounds right but is the wrong procedure leads the bot to do a real job the wrong way, confidently. Nothing in its context says anything is wrong, until the result fails review. ToolLLM (Qin et al., 2023), which studied models choosing among more than 16,000 real APIs, found that models confidently call the wrong API, or the right one with the wrong details, when the choice is large: the confidence comes from the context, not from being right.

Naming skills moves that failure from "during the job", where it produces a plausible wrong answer, to "while writing the file", where a check catches it. Gorilla (Patil et al., 2023) showed that grounding a model's tool choice in real documentation cuts down invented API calls. Operation Kit goes one step further: the bot's list is the index, and the list is checked.

You can narrow the choice further. In Settings → Agents & Skills → Assignments you can limit a skill to one workspace, project or person. A job then sees only the skills assigned to its card's workspace or project, and is told not to use others.

Checking the links

Because the links between bots, skills and tools are written down, a program can walk them. okit validate does that, and fails on a broken link:

  • a skill or bot that lists a tool with no tools/<name>/TOOL.md,
  • a bot that lists a skill (always used or available) with no skills/<name>/SKILL.md,
  • a tool whose name doesn't match its folder (for skills and bots this is a warning),
  • a file that doesn't follow the rules for its layer.

An unused tool or skill is not an error. It may be waiting for a bot that needs it, or it may be a candidate for clean-up. A missing link is a mistake; an unused part is spare.

Like a spell-checker for references

A programming language's compiler catches a call to a function that doesn't exist before the program runs. okit validate catches a reference to a skill or tool that doesn't exist before a bot depends on it. In both cases finding it later is strictly worse: at run time, in the middle of real work, with a plausible-looking wrong result.

A compiler catchesokit validate catches
A function that isn't definedA skill that isn't on disk
A module that can't be foundA tool with no TOOL.md
A badly formed declarationA file that breaks its layer's rules
Error: the build stopsFailure: the command exits with an error

Sumers et al. (2024) argue that agents working from a consistent, structured description of what they can do outperform those reasoning over messy or contradictory context. HuggingGPT (Shen et al., 2023) made a related point: confirm which capabilities exist and what they accept before committing to a plan. The check makes that confirmation automatic instead of something every job has to remember.

The okit command-line tool

Coming soon

okit ships with an upcoming release. The current installer doesn't put it on your server. Until then, add tools and skills as described in Tools, skills and integrations. Full details: okit CLI.

okit creates new tool, skill and bot files from templates and checks them. It has five commands:

okit new tool invoicing          # writes tools/invoicing/TOOL.md
okit new skill invoice-chase     # writes skills/invoice-chase/SKILL.md
okit new agent bookkeeper        # writes agents/bookkeeper.md and agents/bookkeeper.meta.yaml
okit check --json                # checks a document passed in as JSON, writes nothing
okit validate                    # checks every tool, skill and bot file on disk
okit registry                    # rebuilds tools/registry.json and skills/registry.json
okit inventory --json            # lists every tool, skill and bot

On the command line the bot layer is called agent, because that is the folder name.

Why a command, not just a template

The usual alternative is a template file and a page explaining how to fill it in. Then mistakes are caught when someone reviews the file, if at all. okit new fills in the required fields, checks the result and refuses to write a file that fails. It won't overwrite an existing file unless you pass --force, and --dry-run shows what it would write without writing anything.

The same rules sit behind okit new, okit check and okit validate, and Operation Kit's own authoring API calls okit rather than keeping a copy of the rules. So there is one set of rules, whether a person or a program adds the file.

The workflow is short: okit new, fill in the content, okit validate, save. You can also run okit validate in your own automated checks so a broken link never reaches your bots.

References

Published research behind the choices above.

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