New: Decision Runtime — closed-set judgments for Agent OS. Read the guide →
HazelJS LogoHazelJS

Skillgate

Skillgate (@hazeljs/skillgate) turns OpenAPI specs and modules into curated agent skills with read/write/approval classification, then registers them on ToolRegistry.

01Why it exists

Exposing an entire REST surface as agent tools is unsafe. Skillgate curates and classifies capabilities before Gatekeeper authorizes each call.

02From OpenAPI

typescript
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');