make-local-route
Installation
SKILL.md
Make Local Route
Build a working local URL for a Surge page. Base URL: https://<interface>.jason.surge-eng.com, where <interface> is hq, embed, or api.
Workflow
1. Identify the interface
Infer from the user's request when possible:
- embed - embedded widget, iframe, inbox, phone SDK, conversation embed
- hq - dashboard, admin, account settings, phone number management, calls list
- api - REST endpoint, OpenAPI, curl, programmatic access
If the interface is not clear, ask which one before continuing.
2. Find the route
Search lib/surge_web/router.ex for the matching host: scope (hq., embed., api.). Match the user's page description to a live, get, post, patch, or delete route.