mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 20:32:20 +03:00
Implements POST /api/agent-skills/generate (F4): - Requires management auth via requireManagementAuth (same pattern as usage/combo-health-dashboard and other management routes) - Validates body via GenerateBodySchema (dryRun defaults true, prune defaults false — safe preview mode) - Dynamic import of @/lib/agentSkills/generator so the route coexists before F3 (generator.ts) is merged; returns 503 if module unavailable - Hard Rule #12: all error paths use buildErrorBody (400/401/403/503/500) - Hard Rule #7: Zod validates both JSON parse and schema shape