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