Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
wechat-miniprogram avatar

Skyline Config

  • 654 installs
  • 48 repo stars
  • Updated June 3, 2026
  • wechat-miniprogram/skyline-skills

skyline-config is an agent skill that generates and validates WeChat Mini Program Skyline rendering engine JSON across app.json, page configs, and project.config.json for developers migrating from WebView.

About

skyline-config is a wechat-miniprogram skyline-skills agent skill for Skyline 小程序 JSON configuration across three hierarchy levels: global `app.json` (renderer, componentFramework, rendererOptions), per-page json (navigationStyle, disableScroll), and `project.config.json` project settings. Developers use it when creating new Skyline projects, migrating WebView mini programs, configuring hybrid rendering with mixed Skyline and WebView pages, or debugging Skyline compile errors. The skill covers glass-easel component framework options and rendererOptions for style compatibility. Triggers include app.json, renderer, skyline配置, navigationStyle, disableScroll, and componentFramework keywords for WeChat mini program frontend engineers.

  • Enforces the three mandatory app.json keys: renderer, componentFramework, and lazyCodeLoading
  • Handles three-level configuration hierarchy across app.json, page JSON, and project.config.json
  • Supports migration from WebView to Skyline and hybrid rendering setups
  • Provides quick-reference lookup for app-config.md, page-config.md, and project-config.md
  • Prevents common compilation errors caused by missing or incorrect Skyline settings

Skyline Config by the numbers

  • 654 all-time installs (skills.sh)
  • +31 installs in the week ending Jul 27, 2026 (Skillselion tracking)
  • Ranked #533 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/wechat-miniprogram/skyline-skills --skill skyline-config

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs654
repo stars48
Last updatedJune 3, 2026
Repositorywechat-miniprogram/skyline-skills

How do you configure WeChat Skyline app.json correctly?

Generate and validate correct JSON configuration for WeChat Mini Program Skyline rendering engine projects.

Who is it for?

WeChat Mini Program developers creating Skyline projects or migrating WebView pages to the Skyline rendering engine.

Skip if: React Native, Flutter, or standard web frontend projects without WeChat mini program JSON configuration.

When should I use this skill?

The user configures Skyline renderer, migrates WebView mini programs, or debugs app.json and navigationStyle compile errors.

What you get

Validated app.json, page-level json configs, and project.config.json with Skyline renderer and glass-easel settings.

  • validated app.json
  • page-level json configs
  • project.config.json Skyline settings

By the numbers

  • Covers 3 JSON config hierarchy levels: app.json, page json, project.config.json
  • Documents glass-easel componentFramework and rendererOptions compatibility settings

Files

SKILL.mdMarkdownGitHub ↗

Skyline JSON 配置规范

适用场景

  • 创建新的 Skyline 小程序项目
  • 从 WebView 迁移到 Skyline 渲染引擎
  • 配置混合渲染(部分页面 Skyline、部分 WebView)
  • 配置 rendererOptions 优化样式兼容性
  • 排查 Skyline 配置相关的编译错误

核心概念

三级配置层次

层级文件作用关键配置
全局app.json全局启用 Skylinerenderer, componentFramework, rendererOptions
页面页面.json页面级配置/覆盖navigationStyle, disableScroll, renderer
工具project.config.json开发者工具调试setting.skylineRenderEnable

最小必需配置

// app.json
{
  "renderer": "skyline",
  "componentFramework": "glass-easel",
  "lazyCodeLoading": "requiredComponents"
}
// 每个页面的 .json
{
  "navigationStyle": "custom"
}

文档索引

根据需求快速定位(路径相对于 references/):

我想要...查阅文档
了解 app.json 中所有 Skyline 相关配置app-config.md
了解页面级配置和混合渲染page-config.md
配置开发者工具project-config.md
查看完整配置模板patterns.md

强制规则

MUST(必须遵守)

1. app.json 必须包含三项必需配置

   // ❌ 错误:缺少 componentFramework 和 lazyCodeLoading
   {
     "pages": ["pages/index/index"],
     "renderer": "skyline"
   }

   // ✅ 正确:三项缺一不可
   {
     "renderer": "skyline",
     "componentFramework": "glass-easel",
     "lazyCodeLoading": "requiredComponents"
   }

2. 每个页面的 json 必须配置 `"navigationStyle": "custom"`

   // ❌ 错误:缺少 navigationStyle,编译报错
   // getAppConfig error: the "navigationStyle" configuration
   // for the page should be set to "custom"
   {
     "usingComponents": {}
   }

   // ✅ 正确
   {
     "navigationStyle": "custom"
   }

Skyline 不支持原生导航栏,必须使用自定义导航栏。

3. 使用 scroll-view 替代页面级滚动时配置 `"disableScroll": true`

   // ❌ 错误:未禁用页面滚动,可能与 scroll-view 冲突
   {
     "navigationStyle": "custom"
   }

   // ✅ 正确:禁用页面滚动,使用 scroll-view 管理滚动
   {
     "navigationStyle": "custom",
     "disableScroll": true
   }

4. rendererOptions 应配置 defaultDisplayBlock 和 defaultContentBox 以对齐 WebView 行为

   // ❌ 错误:未配置 rendererOptions,Skyline 默认 display:flex + border-box
   {
     "renderer": "skyline"
   }

   // ✅ 正确:对齐 WebView 的 block + content-box 默认行为
   {
     "renderer": "skyline",
     "rendererOptions": {
       "skyline": {
         "defaultDisplayBlock": true,
         "defaultContentBox": true
       }
     }
   }

NEVER(禁止行为)

1. NEVER 遗漏任何页面的 navigationStyle: "custom" 配置——即使页面不需要导航栏,Skyline 下也必须声明 2. NEVER 在 Skyline 页面中依赖页面级全局滚动——Skyline 不支持页面级滚动,必须使用 scroll-view 组件

Quick Reference

必需配置速查

配置项位置级别
rendererapp.json"skyline"必需
componentFrameworkapp.json"glass-easel"必需
lazyCodeLoadingapp.json"requiredComponents"必需
navigationStyle页面 json"custom"必需
disableScroll页面 jsontrue推荐

rendererOptions 配置速查

配置项类型默认值推荐值说明
defaultDisplayBlockbooleanfalsetrue默认 display:block(对齐 WebView)
defaultContentBoxbooleanfalsetrue默认 box-sizing:content-box(对齐 WebView)
tagNameStyleIsolationstring"isolated""legacy"标签选择器全局匹配(对齐 WebView)
enableScrollViewAutoSizebooleanfalsetruescroll-view 自动撑开高度
disableABTestbooleanfalsetrue关闭 Skyline AB 实验,确保稳定性

场景决策表

场景推荐配置
新建 Skyline 项目三项必需 + rendererOptions 全部推荐值
WebView 迁移三项必需 + rendererOptions 兼容配置 + disableABTest
混合渲染app.json 不设 renderer,页面级单独设 "renderer": "skyline"
仅部分页面用 Skyline页面 json 中设 "renderer": "skyline" 覆盖全局

相关技能

场景推荐技能说明
WXSS 样式兼容skyline-wxssrendererOptions 影响的默认值详解(display/flex-direction/align-items/box-sizing)
glass-easel 框架skyline-glass-easelcomponentFramework 详细迁移指南
Skyline 概览与迁移skyline-overview渲染引擎概览、迁移步骤
组件使用skyline-componentsscroll-view 等组件配置
路由配置skyline-route自定义路由与页面转场

References 目录结构

references/
├── app-config.md
├── page-config.md
├── patterns.md
└── project-config.md

Related skills

How it compares

Pick skyline-config over generic JSON schema skills when WeChat Skyline renderer migration and glass-easel framework settings are the target.

FAQ

Which files does skyline-config cover?

skyline-config covers three configuration levels: global `app.json` for renderer and componentFramework, per-page json for navigationStyle and disableScroll, and `project.config.json` for project-wide Skyline settings.

When should developers use skyline-config?

skyline-config fits new Skyline mini program creation, WebView-to-Skyline migration, hybrid rendering setups, and debugging Skyline compile errors tied to renderer or rendererOptions misconfiguration.

Frontend Developmentintegrationsfrontend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.