Skip to content

Configuration spec for Skyline mini-program JSON files covering app.json, page JSON, and project.config.json.

CCM score
67 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 global app.json settings (renderer, componentFramework, rendererOptions), page-level navigationStyle and disableScroll, and project.config.json
  • Includes required and recommended values, a rendererOptions quick reference, and a scenario decision table for new projects, WebView migration, and mixed rendering
  • Enforces required app.json keys (renderer, componentFramework, lazyCodeLoading) and navigationStyle: "custom" on every page
  • Designed for developers creating new Skyline projects, migrating WebView projects, or configuring mixed rendering

Install

$ npx -y skills add wechat-miniprogram/skyline-skills --skill skyline-config -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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"
    }
    

Details

Repository
github.com/wechat-miniprogram/skyline-skills
Categories
Mobile Apps, Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the skyline-config skill cover?

The skyline-config skill covers JSON configuration for WeChat Mini Program Skyline projects. It explains app.json global settings such as renderer, rendererOptions and componentFramework, page-level settings such as navigationStyle and disableScroll, and project.config.json.

How do I install the skyline-config skill?

Run npx -y skills add wechat-miniprogram/skyline-skills --skill skyline-config -y inside your project. This adds the skyline-config skill so your agent can follow Skyline configuration rules.

When should I use the skyline-config skill?

Use it when creating a new Skyline project, migrating a WebView project to Skyline, or setting up mixed rendering where some pages use Skyline and others use WebView. It also helps when troubleshooting Skyline configuration compile errors.

Which skills are related to skyline-config?

Related skills in the same repository include skyline-wxss for WXSS style compatibility, skyline-glass-easel for the glass-easel framework, skyline-overview for migration steps, and skyline-components for components like scroll-view. In the Mobile Apps category, skyline-config sits alongside skills such as vercel-react-native-skills and animate-expo.

More from wechat-miniprogram/skyline-skills

All 7

Similar to Skyline Config

More Mobile Apps