Skyline Route
Skyline custom routes and page transitions covering presets, routeBuilder animations, pop gestures, and container transitions.
- CCM score
- 62 of 100
- skills.sh installs
- 1.1K
- GitHub stars
- 58
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers three route layers: 7 preset
wx://route types, customrouteBuilderanimations, and<open-container>card-to-detail transitions - Includes reference guides for the Router API, navigateTo route parameters, route events, pop gesture configuration, and half-sheet code patterns
- Enforces worklet declarations, paired startUserGesture and stopUserGesture calls, and didPop on confirmed returns
- Designed for WeChat mini-program developers building half-sheets, zoom, bottom-sheet, or expanding-card transitions on Skyline pages
Install
$ npx -y skills add wechat-miniprogram/skyline-skills --skill skyline-route -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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(必须遵守)
Details
- Repository
- github.com/wechat-miniprogram/skyline-skills
- Categories
- Frontend & UI Code, Mobile Apps, Animation & Motion
- First seen
- Jun 3, 2026
Questions
What does the skyline-route skill do?
The skyline-route skill covers custom page routes and transition animations for the Skyline rendering engine in WeChat Mini Programs. It includes routeBuilder custom route animations, seven preset wx:// route types, page back gestures, open-container card transitions and the Router API. It suits half-screen popups, page scaling, bottom sheets and card expansion effects.
How do I install the skyline-route skill?
Run npx -y skills add wechat-miniprogram/skyline-skills --skill skyline-route -y in your project to install it. Once installed, the agent can build custom route animations, preset route transitions and back gesture settings for Skyline pages.
Which skills lead the Frontend & UI Code category on Claude Marketplaces?
Skyline-route sits in the Frontend & UI Code category alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. Its focus on Skyline page transitions and routing sets it apart from general React or design guidance.
Does skyline-route work with WebView pages?
No, custom routes only take effect between consecutive Skyline pages. If the source page is a WebView page, the route falls back to the default route, so both pages must run on Skyline.
More from wechat-miniprogram/skyline-skills
All 7Similar to Skyline Route
More Frontend & UI Codeskyline-overviewSkillwechat-miniprogram/skyline-skills1.2K installsSkyline rendering engine overview and migration guide covering architecture, performance, and rollout steps for WeChat Mini Programs.
skyline-workletSkillwechat-miniprogram/skyline-skills1.1K installsWorklet animation skill for high-performance UI-thread interactive animations in Skyline, covering drag, gesture follow, and spring rebound.
ssgoiPluginmeursyphus/ssgoi1K starsBuild mobile web app routing, layouts, and native app-like page transitions with SSGOI.
page-transitionsSkilldylantarre/animation-principles815 installsAnimation patterns for route changes, modals, and shared-element transitions, mapped to Disney's 12 principles.
expo-routerSkillexpo/skills37.2K installsFile-based routing and native navigation for Expo Router apps, from layouts and links through tabs and sheets.