Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Imported from wechat-miniprogram/skyline-skills (skills/skyline-route/SKILL.md) via skills.sh. Install upstream with npx skills add wechat-miniprogram/skyline-skills --skill skyline-route. Copyright stays with the author.
Skyline 自定义路由与页面转场
适用场景
实现自定义页面转场动画(半屏、缩放、渐显等)
使用预设路由快速实现常见转场效果
配置页面返回手势(横向/纵向/多方向)
实现卡片展开到详情页的容器转场动画
通过 Router API 管理自定义路由
核心概念
路由能力层级
层级
能力
适用场景
预设路由
一行代码使用 7 种内置效果
快速实现常见转场
自定义路由
通过 routeBuilder 完全控制动画
高度定制化转场
容器转场
<open-container> 元素级过渡
卡片展开到详情页
动画控制器
属性
说明
primaryAnimation
页面进入/退出动画进度(0→1 进入,1→0 退出)
secondaryAnimation
下一页进入时当前页动画进度(与下一页 primaryAnimation 同步)
userGestureInProgress
当前路由进度是否由手势控制
startUserGesture / stopUserGesture
手势接管/释放路由控制
didPop
确认返回上一页
文档索引
根据需求快速定位(路径相对于 references/):
我想要...
查阅文档
了解自定义路由原理和接口
custom-route/custom-route-guide.md
查看半屏/手势返回代码模式
custom-route/route-patterns.md
快速使用预设路由
preset-route/preset-route.md
配置页面返回手势
pop-gesture/pop-gesture.md
实现卡片展开转场
open-container/open-container.md
查看 Router API
api/router-api.md
了解 navigateTo 路由参数
api/navigate-to.md
监听路由事件
api/route-events.md
强制规则
MUST(必须遵守)
自定义路由仅在连续 Skyline 页面间生效:WebView 页面不支持自定义路由
// ✅ A 页(Skyline) → B 页(Skyline):自定义路由生效// ❌ A 页(WebView) → B 页(Skyline):降级为默认路由
Install skyline-route and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.