Wxml review
Audit WXML, WXSS, WXS, and custom-component code against the bundled official documentation, reporting concrete defects with the doc page that backs each one. Use when asked to review, audit, check, or lint Mini Program markup or components, and as a self-check after generating a non-trivial amount of WXML.From its SKILL.md
npx -y skills add N0v4ont0p/wxml-masterguide- --skill wxml-reviewAssembled 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.6 KB, as published. Nobody here has run it
WXML review
Audit the target against the bundled docs at
${CLAUDE_SKILL_DIR}/../../docs/. Every finding must name a real defect and
cite the page that establishes the rule — no style opinions, no findings you
have not verified against the source.
The master skill's reference files carry the checkable material:
${CLAUDE_SKILL_DIR}/../wxml/invariants.md for the cross-file contracts,
${CLAUDE_SKILL_DIR}/../wxml/does-not-exist.md for imported non-existent APIs,
and ${CLAUDE_SKILL_DIR}/../wxml/syntax-card.md for exact spellings.
Target: $1 if given, otherwise the WXML/WXSS/WXS/component files changed
on this branch (git diff --name-only main...HEAD), otherwise ask.
Checklist
Read the relevant doc page before reporting anything in a category you are not certain of.
Bindings and directives — docs/01-syntax/
- Boolean attributes written as bare strings:
checked="false"is truthy. Needs{{false}}. - Statements or function calls inside
{{ }}outside WXS. - Attribute bindings placed outside the quotes.
wx:forwithoutwx:keywhere items can reorder or be inserted, or awx:keythat is dynamic or non-unique. Watch forwx:key="{{id}}"— it takes a bare property name or*this.- Whitespace between
}}and the closing quote, which coerces the value to a string. wx:ifon a hot toggle wherehiddenis the cheaper choice, or vice versa.
Events — docs/01-syntax/06-event-system.md
catchused wherebindwas meant, silently killing a parent handler.targetused wherecurrentTargetwas meant inside a list.- Per-item state passed through anything other than
data-*/dataset. - Handlers assumed to bubble that do not: only the documented touch, transition, and animation events bubble.
Components — docs/03-component-system/
- Missing
"component": true, or a tag absent from the consumer'susingComponents. - Tag names outside lowercase letters, hyphens, and underscores.
- Handlers at the top level of
Component()instead of undermethods. triggerEventexpected to reach an ancestor withoutbubbles, or across a component boundary withoutcomposed.- Multiple
<slot>withoutoptions.multipleSlots. - ID, attribute, or tag selectors in component WXSS.
selectComponentreached for where a property or event would do.this.setDataincreated.
WXS — docs/04-wxs/
- ES2015+ syntax: arrow functions,
let/const, template literals, destructuring, classes,Promise. - Methods that are not in the documented basic library.
- Missing
module.exports, or a<wxs>tag withoutmodule.
Config — docs/07-reference-api/
- A page missing from
app.jsonpages. - Config keys checked against
07-global-configuration.md, not from memory.
Versions — flag any feature used without regard to its minimum base-library
version when the doc page shows one (mut-bind 2.8.2, capture-bind 1.5.0,
WXS response events 2.4.4, and so on).
Output
Group by severity — correctness bugs first, then likely bugs, then maintainability. For each: the file and line, one sentence on what breaks, the fix, and the doc page. If a category is clean, say so in one line rather than padding. If nothing is wrong, say that plainly.