agentsclimarketplace

Wxml config

Skill N0v4ont0p/wxml-masterguide-/skills/wxml-config

Mini Program configuration and the framework reference — app.json global config, page config, usingComponents registration, and the App/Page/Router/getApp/getCurrentPages APIs plus scene values. Use when registering a component or page, setting a window/tabBar/navigation option, wiring page lifecycle or routing, or checking which config key controls a behaviour.From its SKILL.md

Install
npx -y skills add N0v4ont0p/wxml-masterguide- --skill wxml-config

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.0 KB, as published. Nobody here has run it

Configuration and framework reference

Sources: ${CLAUDE_SKILL_DIR}/../../docs/07-reference-api/

TopicFile
Reference overview01-framework-reference-overview.md
App(Object object)02-app.md
Page(Object object)03-page.md
Router04-router.md
getApp · getCurrentPages05-get-app.md · 06-get-current-pages.md
Global config (app.json)07-global-configuration.md
Page config08-page-configuration.md
Scene value list09-scene-value-list.md
Module system (require, module, exports)10-require.md · 11-module.md · 12-exports.md
Plugins, WebAssembly13-require-plugin.md · 14-require-mini-program.md · 15-wx-web-assembly.md
console, timers16-console.md … 27-clear-interval.md

07-global-configuration.md is the largest page in the corpus and the authoritative list of app.json keys — read it rather than recalling a key name, and note that page config overrides the global window block for the page it belongs to.

Registration, in one place

// app.json — every page must be listed, first entry is the launch page
{
  "pages": ["pages/index/index"],
  "window": { "navigationBarTitleText": "Demo" },
  "usingComponents": { "global-widget": "components/global-widget/index" }
}
// page or component .json — component registration is per-consumer
{ "usingComponents": { "my-widget": "components/my-widget/index" } }

A component declared in app.json is global; one declared in a page's JSON is local to that page. The component's own JSON still needs "component": true — see the wxml-components skill.

Page versus Component

Page() handlers sit at the top level of the object; Component() handlers sit under methods. Page lifecycle runs onLoad → onShow → onReady, with onHide and onUnload on the way out; onPullDownRefresh and onReachBottom handle scroll interactions. A component observes its host page's lifecycle through pageLifetimes instead.

getCurrentPages() returns the page stack, newest last. The docs are explicit that it is for inspection — do not mutate the stack or hold page instances past their lifetime; use Router / the navigation APIs to change routes.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.