01What it is
A curation layer from OpenAPI (and modules) into agent-facing skills. You include tags / operations, classify read vs write vs approval, then toHandlers() / register() onto a ToolRegistry or pass handlers into AgentOS. Prefer Skillgate over raw openApiToSkills (ungoverned — no opt-in / classify / HITL).
02Problem it solves
- Exposing an entire REST surface as tools is unsafe
- Need a deliberate allow-list of operations agents may see
- Writes and refunds should default toward HITL classification
- Same curated handlers work in-process and under hazeld
03How you use it today
Skillgate.fromOpenApi(spec, options) with include filters and invoke base URL, then register or pass skillHandlers into AgentOS. CLI helpers live under hazel skillgate. Narrative walkthrough: Skillgate article.
04Where it sits in the stack
Capability layer before Gatekeeper: Skillgate decides which tools exist and how risky they look; Gatekeeper authorizes each invocation. DNA may declare tool names; Skillgate often supplies the handlers.
05Boundaries
- Skillgate curates — it does not replace deny-by-default authorization
- MCP export is optional; Agent OS registration is the primary path
- Raw openApiToSkills skips classification and HITL defaults on purpose
06FAQ
- Is Skillgate the same as Gatekeeper?
- No. Skillgate builds curated skills. Gatekeeper allow / deny / require-approval on each call.
- Can I use Skillgate without OpenAPI?
- Yes — modules and explicit skill definitions are supported; OpenAPI is the common enterprise path.
- Does Skillgate call my API at register time?
- Registration builds handlers; invoke.baseUrl is used when the agent actually calls a skill.
07From OpenAPI
import { Skillgate } from '@hazeljs/skillgate';
import { ToolRegistry } from '@hazeljs/agent';
const gate = Skillgate.fromOpenApi(spec, {
// classify read / write / approval
});
gate.register(new ToolRegistry(), 'api-concierge');