Skip to content

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers three route layers: 7 preset wx:// route types, custom routeBuilder animations, 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 -y

Installs 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 APIapi/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 7

Similar to Skyline Route

More Frontend & UI Code