skyline-route

skyline-route is a skill for Claude Code, Codex from wechat-miniprogram/skyline-skills. It costs 118 tokens per session (2,030 once invoked), scanned A, original, MIT.

A Skyline routing and page-transition guide for a mobile interface framework. It covers preset and custom animations, return gestures, card-to-detail transitions, and the Router API used to manage page navigation.

In plain words
What is it for?
Use it to implement custom route animations, preset transitions, swipe-back gestures, half-screen navigation, card expansion into detail pages, route events, and navigation through navigateTo.
Why use it?
It gives developers documented patterns for building page changes such as half-screen panels, zoom effects, bottom sheets, and expanding cards. It also clarifies that custom transitions work only between Skyline pages, not WebView pages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to implement custom route animations, preset transitions, swipe-back gestures, half-screen navigation, card expansion into detail pages, route events, and navigation through navigateTo.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wechat-miniprogram/skyline-skills/skyline-route
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wechat-miniprogram/skyline-skills --skill skyline-route
Clone the repo
git clone --depth 1 https://github.com/wechat-miniprogram/skyline-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skyline-route

README.md
[![agentmods](https://agentmods.dev/badge/skills/wechat-miniprogram/skyline-skills/skyline-route/github.svg)](https://agentmods.dev/skills/wechat-miniprogram/skyline-skills/skyline-route)
Your own site
<a href="https://agentmods.dev/skills/wechat-miniprogram/skyline-skills/skyline-route"><img src="https://agentmods.dev/badge/skills/wechat-miniprogram/skyline-skills/skyline-route/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skyline-route

Your own site · 80×15
<a href="https://agentmods.dev/skills/wechat-miniprogram/skyline-skills/skyline-route"><img src="https://agentmods.dev/badge/skills/wechat-miniprogram/skyline-skills/skyline-route.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,030 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 24 Apr 2026
  • Snyk pass 24 Apr 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.02030
Opus 5 $0.00059 $0.01015
Sonnet 5 $0.00024 $0.00406
Haiku 4.5 $0.00012 $0.00203

Measured 9d ago against content hash ac9e8c3f9aad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

skyline-route scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/skyline-route/SKILL.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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(必须遵守)

  1. 自定义路由仅在连续 Skyline 页面间生效:WebView 页面不支持自定义路由

    // ✅ A 页(Skyline) → B 页(Skyline):自定义路由生效
    // ❌ A 页(WebView) → B 页(Skyline):降级为默认路由
    
  2. 动画处理函数必须声明 'worklet' 指令

    // ✅ 正确
    const handlePrimaryAnimation = () => {
      'worklet'
      return { transform: `translateX(${...}px)` }
    }
    
    // ❌ 错误:缺少 worklet 指令,无法在 UI 线程执行
    const handlePrimaryAnimation = () => {
      return { transform: `translateX(${...}px)` }
    }
    
  3. 手势接管必须成对调用 startUserGesture / stopUserGesture

    // ✅ 正确
    handleDragStart() {
      'worklet'
      this.customRouteContext.startUserGesture()
    }
    handleDragEnd() {
      'worklet'
      // ... 动画完成回调中:
      stopUserGesture()
    }
    
  4. 确认返回时必须调用 didPop:引擎无法自动判断开发者是否要退出页面

    // ✅ 正确:动画完成后调用 didPop
    primaryAnimation.value = timing(0.0, { duration }, () => {
      'worklet'
      didPop()
      stopUserGesture()
    })
    

Read the full file on GitHub · 199 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 199 lines · 118 tokens per session scan A ac9e8c3f9aad

Subscribe to this mod's changes

skyline-route is a skill published in the GitHub repository wechat-miniprogram/skyline-skills (53 stars, last pushed 3mo ago), licensed MIT. It adds 118 tokens to every session and 2,030 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

animate-expo

Build animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and…

emilkowalski/skills · 112 tokens

leanback-to-compose-tv-migration

Provides instructions and architectural patterns for migrating Android TV applications from legacy Leanback UI Toolkit, Android Views, or Support Fragments to Jetpack Compose for TV (androidx.tv). Use this skill for Leanback to Compose migrations, including browse screen, settings screen, authentication screen, login…

android/skills · 151 tokens

maui-data-binding

Guidance for .NET MAUI XAML and C# data bindings — compiled bindings, INotifyPropertyChanged / ObservableObject, value converters, binding modes, multi-binding, relative bindings, fallbacks, and MVVM best practices. USE FOR: setting up compiled bindings with x:DataType, implementing INotifyPropertyChanged or…

dotnet/skills · 180 tokens

web-haptics

Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.

lochie/web-haptics · 47 tokens

migrate-xml-views-to-jetpack-compose

Provides a structured workflow for migrating an Android XML View to Jetpack Compose. This skill details the step-by-step process, from planning and dependency setup, to theming and layout migration, validation and XML cleanup. Use this skill when you need to migrate an XML View to Jetpack Compose in an Android…

android/skills · 98 tokens

axiom-swiftui

Use when building, fixing, or improving ANY SwiftUI UI — views, navigation, layout, animations, performance, architecture, gestures, debugging, iOS 26 features.

CharlesWiltgen/Axiom · 41 tokens