Skyline Config
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
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) andnavigationStyle: "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 -yInstalls 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 | 全局启用 Skyline | renderer, 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(必须遵守)
-
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 7Similar to Skyline Config
More Mobile Appsskyline-overviewSkillwechat-miniprogram/skyline-skills1.2K installsSkyline rendering engine overview and migration guide covering architecture, performance, and rollout steps for WeChat Mini Programs.
skyline-componentsSkillwechat-miniprogram/skyline-skills1.2K installsSkyline component guide covering scroll-view modes, swiper variants, input, text, draggable sheets, and shared-element transitions.
uniappSkillhairyf/skills394 installsCross-platform uni-app guide for Vue apps targeting App, H5, and mini-program builds from one codebase.
react-native-webPluginTheBushidoCollective/han201 starsValidation and quality enforcement for React Native Web projects with cross-platform components, styling, navigation, performance, and testing.
create-blazor-projectSkilldotnet/skills4.6K installsScaffolds ASP.NET Core Blazor web apps with a chosen render mode, from static SSR to Interactive Auto.