mosaic-headless 1.36.2 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/SKILL.md +179 -1119
  2. package/assets/templates/platforms/claude-ai.json +6 -3
  3. package/assets/templates/platforms/claude-code.json +10 -4
  4. package/assets/templates/platforms/codex-cli.json +6 -3
  5. package/assets/templates/platforms/continue.json +1 -1
  6. package/assets/templates/platforms/copilot.json +6 -3
  7. package/assets/templates/platforms/cursor.json +1 -1
  8. package/assets/templates/platforms/gemini-cli.json +6 -3
  9. package/data/pending.csv +8 -0
  10. package/data/terms-zh.csv +97 -0
  11. package/evals/RESULTS.md +41 -0
  12. package/evals/cases.json +329 -0
  13. package/evals/grade.py +121 -0
  14. package/evals/runs/2026-11-16-final-with-skill.json +29 -0
  15. package/evals/runs/2026-11-16-final-without-skill.json +30 -0
  16. package/evals/runs/2026-11-16-r1-with-skill.json +19 -0
  17. package/evals/runs/2026-11-16-r1-without-skill.json +19 -0
  18. package/evals/runs/2026-11-16-r2-with-skill.json +9 -0
  19. package/evals/runs/2026-11-16-r2-without-skill.json +9 -0
  20. package/evals/runs/2026-11-16-r3-without-skill.json +1 -0
  21. package/package.json +1 -1
  22. package/references/building.md +93 -0
  23. package/references/core-rules.md +143 -0
  24. package/references/data-files.md +102 -0
  25. package/references/design-system.md +1 -1
  26. package/references/facts.md +261 -0
  27. package/references/failure-modes.md +1 -1
  28. package/references/maintenance.md +70 -0
  29. package/references/tools.md +84 -0
  30. package/references/tutorials.md +1 -1
  31. package/references/upgrading.md +2 -2
  32. package/references/verification-record.md +395 -0
  33. package/scripts/check-release.mjs +15 -7
  34. package/scripts/install.mjs +35 -14
  35. package/scripts/sync-version.mjs +5 -3
  36. package/tools/check_numbers.py +196 -0
  37. package/tools/mo.py +132 -7
  38. package/tools/test_mosaic.py +373 -0
  39. package/tools/verify_menus.py +1 -1
@@ -17,10 +17,13 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "(filled in from SKILL.md by install.mjs)",
21
21
  "license": "MIT",
22
- "author": "moksa (https://moksaweb.com)",
23
- "version": "1.36.2"
22
+ "metadata": {
23
+ "author": "moksa (https://moksaweb.com)",
24
+ "version": "1.37.0",
25
+ "homepage": "https://github.com/Moksa1123/mosaic-headless"
26
+ }
24
27
  },
25
28
  "loaderBehaviour": "Upload via Settings -> Skills -> Upload. Claude.ai parses SKILL.md frontmatter and surfaces the skill in your library. The extraction tool (extract-block-schema.php) needs a live WP-CLI connection and won't run in the sandbox; use it from a local terminal against your own site instead.",
26
29
  "uploadSteps": [
@@ -13,14 +13,20 @@
13
13
  "references": true,
14
14
  "tools": true,
15
15
  "data": true,
16
- "sites": true
16
+ "sites": true,
17
+ "evals": true,
18
+ "scripts": true
17
19
  },
18
20
  "frontmatter": {
19
21
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
22
+ "description": "(filled in from SKILL.md by install.mjs)",
21
23
  "license": "MIT",
22
- "author": "moksa (https://moksaweb.com)",
23
- "version": "1.36.2"
24
+ "user-invocable": true,
25
+ "metadata": {
26
+ "author": "moksa (https://moksaweb.com)",
27
+ "version": "1.37.0",
28
+ "homepage": "https://github.com/Moksa1123/mosaic-headless"
29
+ }
24
30
  },
25
31
  "loaderBehaviour": "Auto-loads on session start when SKILL.md frontmatter parses successfully.",
26
32
  "verified": true,
@@ -17,10 +17,13 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "(filled in from SKILL.md by install.mjs)",
21
21
  "license": "MIT",
22
- "author": "moksa (https://moksaweb.com)",
23
- "version": "1.36.2"
22
+ "metadata": {
23
+ "author": "moksa (https://moksaweb.com)",
24
+ "version": "1.37.0",
25
+ "homepage": "https://github.com/Moksa1123/mosaic-headless"
26
+ }
24
27
  },
25
28
  "loaderBehaviour": "Confirmed (2026-07-11): Codex CLI natively supports the SKILL.md spec. Place SKILL.md under .codex/skills/<name>/ (project) or ~/.codex/skills/<name>/ (personal) and Codex loads the name+description at session start, then the full body on demand. A parallel, broader convention .agents/skills/ (searched from cwd up to repo root, then ~/.agents/skills/) also exists across multiple tools - if your Codex CLI version prioritizes that path instead, mirror the same SKILL.md there.",
26
29
  "verified": true,
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "(filled in from SKILL.md by install.mjs)",
21
21
  "alwaysApply": false
22
22
  },
23
23
  "loaderBehaviour": "Continue reads .continue/rules/*.md as Rules. Set alwaysApply: true to attach to every chat, or leave false and rely on the description for relevance matching. Rule files load in lexicographic order if you split this into several numbered files. References must be embedded inline; the installer concatenates key reference files into the rule body.",
@@ -17,10 +17,13 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "(filled in from SKILL.md by install.mjs)",
21
21
  "license": "MIT",
22
- "author": "moksa (https://moksaweb.com)",
23
- "version": "1.36.2"
22
+ "metadata": {
23
+ "author": "moksa (https://moksaweb.com)",
24
+ "version": "1.37.0",
25
+ "homepage": "https://github.com/Moksa1123/mosaic-headless"
26
+ }
24
27
  },
25
28
  "loaderBehaviour": "CHANGED as of 2026-07-11: GitHub Copilot added a proper '.github/skills/' Agent Skills directory (December 2025), alongside the older single-file .github/copilot-instructions.md convention. This config targets the new skills-directory form. If your Copilot version predates this (pre Dec 2025), use the instructions-append fallback instead (see fallback below).",
26
29
  "fallback": {
@@ -16,7 +16,7 @@
16
16
  "sites": false
17
17
  },
18
18
  "frontmatter": {
19
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
19
+ "description": "(filled in from SKILL.md by install.mjs)",
20
20
  "globs": [
21
21
  "**/*.php",
22
22
  "**/wp-content/**",
@@ -17,10 +17,13 @@
17
17
  },
18
18
  "frontmatter": {
19
19
  "name": "mosaic-headless",
20
- "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
20
+ "description": "(filled in from SKILL.md by install.mjs)",
21
21
  "license": "MIT",
22
- "author": "moksa (https://moksaweb.com)",
23
- "version": "1.36.2"
22
+ "metadata": {
23
+ "author": "moksa (https://moksaweb.com)",
24
+ "version": "1.37.0",
25
+ "homepage": "https://github.com/Moksa1123/mosaic-headless"
26
+ }
24
27
  },
25
28
  "loaderBehaviour": "CHANGED as of 2026-07-11: Gemini CLI now natively supports the same SKILL.md standard as Claude Code and Codex CLI - the same directory-based skill works unmodified. Gemini CLI discovers skills in this precedence order: built-in, extension skills, ~/.gemini/skills/ (personal), .gemini/skills/ (project, shared via version control). At session start Gemini injects each discovered skill's name+description into the system prompt and calls activate_skill when a task matches.",
26
29
  "verified": true,
@@ -0,0 +1,8 @@
1
+ date,question,why_not_found,asked_by,status
2
+ 2026-11-16,Node properties ariaLive and positioning (popover / 1.0.10+) have no probe row,sweep_node_properties.py was last run before they existed; needs a scratch-site re-sweep on 1.0.12,mosaic skill (SOP pass: 201 vs 191 explanation),open
3
+ 2026-11-16,The style and node property sweeps predate 1.0.12,source tables were re-extracted on 1.0.12 and the node sweep re-run; the property sweeps were not (references/verification-record.md says which version each ran on),mosaic skill (SOP pass),open
4
+ 2026-11-16,gridColumnStart / gridColumnEnd / gridRowStart / gridRowEnd emit nothing headlessly,the editor's stored shape for grid child placement has not been captured; author it once in the editor and read the row back,references/verification-record.md (known gaps),open
5
+ 2026-11-16,Interaction shapes still unmeasured: player actions; dropdown open-on-hover settings; form integration actions,not yet authored in the editor and read back (the method that solved tween values in v1.35.0),mosaic skill,open
6
+ 2026-11-16,terms-zh.csv rows marked inferred are colloquial words with no Mosaic string; rows marked house-style follow the 2026-11-05 designer glossary which Mosaic 1.0.12 does not ship,Mosaic's shipped zh_TW still carries 邊框間距 / 邊界 / 游標暫留 / 中斷點; both spellings are mapped. Promote to documented when a Mosaic release ships the glossary,mosaic skill (terms-zh.csv),open
7
+ 2026-11-16,Shared msgids that need a msgctxt from Mosaic: Fixed / Select / Snap / Toggle / Scale down,one English string serves a verb and a noun so one zh_TW string cannot fit both (選取 for the Select field),zh_TW review 2026-11-05,open
8
+ 2026-11-16,Is a top-level user-invocable key accepted by the claude.ai skill upload,scripts/check-release.mjs notes the Agent Skills spec allows only six top-level keys; Claude Code reads user-invocable and the claude-code platform template now writes it; the other platform templates do not; the claude.ai upload path is untested,mosaic skill (SOP item 0),open
@@ -0,0 +1,97 @@
1
+ zh,en,kind,note,source,trust
2
+ 內距,padding,css,paddingTop/Right/Bottom/Left; designer term (Mosaic 1.0.12 ships 邊框間距),zh_TW designer glossary 2026-11-05,house-style
3
+ 邊框間距,padding,css,Mosaic's shipped zh_TW for Padding,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
4
+ 外距,margin,css,marginTop/Right/Bottom/Left; designer term (Mosaic 1.0.12 ships 邊界),zh_TW designer glossary 2026-11-05,house-style
5
+ 邊界,margin,css,Mosaic's shipped zh_TW for Margin,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
6
+ 邊框,border,css,border*Width/Style/Color per side; designer term (Mosaic 1.0.12 ships 框線),zh_TW designer glossary 2026-11-05,house-style
7
+ 框線,border,css,Mosaic's shipped zh_TW for Border,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
8
+ 圓角,border-radius,css,borderRadius; designer term,zh_TW designer glossary 2026-11-05,house-style
9
+ 半徑,border-radius,css,Mosaic's shipped zh_TW for Radius,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
10
+ 寬度,width,css,also min-width / max-width,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
11
+ 高度,height,css,also min-height / max-height,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
12
+ 背景,background,css,backgroundColor / backgroundStyle,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
13
+ 背景色,background-color,css,,colloquial; no Mosaic string,inferred
14
+ 色彩,color,css,matches every *-color property,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
15
+ 顏色,color,css,matches every *-color property,colloquial; no Mosaic string,inferred
16
+ 字型,font-family,css,a site-wide typeface is a fontFamily collection variable (references/styling.md),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
17
+ 字級,font-size,css,,colloquial; no Mosaic string,inferred
18
+ 字體大小,font-size,css,,colloquial; no Mosaic string,inferred
19
+ 行高,line-height,css,,colloquial; no Mosaic string,inferred
20
+ 字距,letter-spacing,css,,colloquial; no Mosaic string,inferred
21
+ 字重,font-weight,css,,colloquial; no Mosaic string,inferred
22
+ 粗細,font-weight,css,,colloquial; no Mosaic string,inferred
23
+ 不透明度,opacity,css,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
24
+ 透明度,opacity,css,,colloquial; no Mosaic string,inferred
25
+ 陰影,shadow,css,box-shadow and text-shadow,colloquial; no Mosaic string,inferred
26
+ 間隙,gap,css,columnGap / rowGap,colloquial; no Mosaic string,inferred
27
+ 對齊,align,css,align-items / align-self / align-content / text-align,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
28
+ 顯示,display,css,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
29
+ 位置,position,css,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
30
+ 黏性定位,position,css,position: sticky,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
31
+ 溢出,overflow,css,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
32
+ 轉場,transition,css,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
33
+ 變形,transform,css,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
34
+ 網格,grid,css,grid-template-* / grid-auto-*; child placement emits nothing (references/facts.md),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
35
+ 濾鏡,filter,css,filter and backdrop-filter,colloquial; no Mosaic string,inferred
36
+ 層級,z-index,css,,colloquial; no Mosaic string,inferred
37
+ 按鈕,button,type,url -> <a>; none -> <button>; inactive -> <span>,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
38
+ 文字,text,type,renders <div>; set tagName for h1-h6 / p,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
39
+ 標題,text,type,a heading is a text node with tagName h1-h6,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
40
+ 圖片,image,type,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
41
+ 圖示,icon,type,renders inline <svg>,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
42
+ 連結,button|menu-link|wysiwyg-link|dropdown-toggle,type,only these four take a url; wrap anything else in a Link-variant button,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
43
+ 摺疊面板,accordion,type,nest accordion > accordion-item > accordion-title / accordion-content; designer term,zh_TW designer glossary 2026-11-05,house-style
44
+ 手風琴,accordion,type,Mosaic's shipped zh_TW for Accordion,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
45
+ 頁籤,tabs,type,the tab element (a browser tab stays 分頁); designer term,zh_TW designer glossary 2026-11-05,house-style
46
+ 索引標籤,tabs,type,Mosaic's shipped zh_TW for Tabs / Tab,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
47
+ 彈出視窗,modal,type,blocking dialog; Popover-API host since 1.0.10,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
48
+ 浮動框,popover,type,non-blocking dialog (1.0.10),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
49
+ 彈窗,modal|popover,type,modal blocks the page; popover does not (references/dialog-and-triggers.md),colloquial; no Mosaic string,inferred
50
+ 燈箱,modal,type,,colloquial; no Mosaic string,inferred
51
+ 下拉式選單,dropdown|dropdown-wide,type,openOn hover for a desktop menu,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
52
+ 導覽列,navbar,type,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
53
+ 選單,menu|menu-link|wp-menu,type,site menus: references/design-system.md,colloquial; no Mosaic string,inferred
54
+ 漢堡選單,navbar|modal,type,phone menu = navbar or a modal drawer; there is no off-canvas node,colloquial; no Mosaic string,inferred
55
+ 輪播,slider,type,nest as default-children requires; bare slider is unsafe,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
56
+ 表單,form|form-wrapper,type,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
57
+ 選取,select,type,1.0.12 Select: select > select-toggle + select-options > select-option; the .po uses 選取 for the shared msgid Select,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
58
+ 下拉欄位,select,type,1.0.12 Select (select-input is gone),colloquial; no Mosaic string,inferred
59
+ 影片,video|youtube|vimeo,type,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
60
+ 地圖,googlemaps|openstreetmap,type,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
61
+ 容器,div|section,type,section arrives with 80px top and bottom padding,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
62
+ 區段,section,type,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
63
+ 清單,list|list-item,type,,colloquial; no Mosaic string,inferred
64
+ 元件,component-internal|component-instance,type,a spec node with "component" becomes an instance (references/design-system.md),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
65
+ 迴圈,loop,type,local-context loopSource is @VAR('post/<loop>'),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
66
+ 程式碼,code,type,last resort; a code node's content is a template (@media( kills the page),colloquial; no Mosaic string,inferred
67
+ 懸停,hover,state,designer term (Mosaic 1.0.12 ships 游標暫留),zh_TW designer glossary 2026-11-05,house-style
68
+ 游標暫留,hover,state,Mosaic's shipped zh_TW for Hover,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
69
+ 滑鼠移入,hover,state,,colloquial; no Mosaic string,inferred
70
+ 聚焦,focus,state,,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
71
+ 作用中,active,state,state ids like ___tab--active / ___slide--active,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
72
+ 展開,opened,state,___accordion-item--opened / ___dropdown--opened,colloquial; no Mosaic string,inferred
73
+ 斷點,breakpoint,concept,style keys _ (desktop) / _t (tablet) / _m (mobile): references/responsive.md; designer term,zh_TW designer glossary 2026-11-05,house-style
74
+ 中斷點,breakpoint,concept,Mosaic's shipped zh_TW for Breakpoint: references/responsive.md,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
75
+ 響應式,responsive,concept,_t / _m style keys; verify with verify_rwd.py and audit_mobile.py (references/responsive.md),colloquial; no Mosaic string,inferred
76
+ RWD,responsive,concept,_t / _m style keys; verify with verify_rwd.py and audit_mobile.py (references/responsive.md),colloquial; no Mosaic string,inferred
77
+ 手機版,mobile,concept,the _m style key (references/responsive.md),colloquial; no Mosaic string,inferred
78
+ 平板,tablet,concept,the _t style key (references/responsive.md),colloquial; no Mosaic string,inferred
79
+ 母版,master,concept,header/footer shell; build_site.py makes one per site,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
80
+ 範本,template,concept,mo.py routes --grep template; references/templates-and-conditions.md,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
81
+ 變體,variant,concept,mo.py classes; theme-global element classes (references/design-system.md),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
82
+ 類別,class,concept,variants and universal classes: mo.py classes,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
83
+ 變數,variable,concept,collection variables = design tokens; {"token": "--x"} in a spec (references/design-system.md),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
84
+ 集合,collection,concept,collection of variables; modes for dark/light (references/design-system.md),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
85
+ 模式,mode,concept,a second mode on the colour collection = dark/light (references/design-system.md),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
86
+ 互動,interaction,concept,mo.py interactions; build with tools/interactions.py (references/interactions.md),mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
87
+ 動畫,interaction,concept,animations are interactions (tools/interactions.py); never @keyframes in a code node,colloquial; no Mosaic string,inferred
88
+ 條件,condition,concept,mo.py conditions; references/templates-and-conditions.md,mosaic 1.0.12 Languages/dist/mosaic-zh_TW-AppMosaicEditor.json,documented
89
+ 覆寫,override,concept,component instance overrides (references/design-system.md),zh_TW designer glossary 2026-11-05,house-style
90
+ 佈景,theme,concept,move a theme: theme_zip.py (Mosaic's ZIP) or theme_export.php / theme_import.php (references/building.md),colloquial; no Mosaic string,inferred
91
+ 主題,theme,concept,move a theme: theme_zip.py (Mosaic's ZIP) or theme_export.php / theme_import.php (references/building.md),colloquial; no Mosaic string,inferred
92
+ 動態內容,dynamic,concept,@VAR() values: mo.py vars (references/dynamic-content.md),colloquial; no Mosaic string,inferred
93
+ 自訂欄位,custom field,concept,@VAR('post/meta_<key>'); run tools/list_fields.php (references/custom-fields.md),colloquial; no Mosaic string,inferred
94
+ 深色模式,mode,concept,dark/light = a second mode on the colour collection (references/design-system.md),colloquial; no Mosaic string,inferred
95
+ 下拉選單,select|dropdown,type,a form field = select (1.0.12); a menu that drops down = dropdown,colloquial; no Mosaic string,inferred
96
+ 不安全,unsafe,concept,mo.py types --unsafe; mo.py check <types> exits 1 on one,colloquial; no Mosaic string,inferred
97
+ 付費版,pro,concept,mo.py types --edition pro,colloquial; no Mosaic string,inferred
@@ -0,0 +1,41 @@
1
+ # evals 結果
2
+
3
+ 最新的在最上面。題目與評分標準見 `cases.json`,評分程式 `grade.py`。
4
+
5
+ ## 2026-11-16(現行題組,Mosaic Pro 1.0.12 資料)
6
+
7
+ - 第 1 輪 16 題:沒 skill 也答對 4 題(scrollDepth slot、section 預設內距、modal 開啟判斷、customDeclarations dvh),標 `retired`,補 4 題。
8
+ - 第 2 輪:補的題裡 `image-attachment-path` 沒 skill 也對,再標 `retired`,補 `class-name-grammar`(第 3 輪只問沒 skill 那一方)。
9
+ - `accordion-content-bare` 的評分放寬:原本硬性要求答出「54 bytes」,但題目問的是「會怎樣、要放哪」。有 skill 的作答答出了 BROKE_PAGE 和 accordion-item,卻因為沒寫 54 被判錯,所以改成答出頁面會壞掉即可(理由寫在 cases.json 的 `note`)。
10
+ - 有 skill 的作答者回報路由缺口:`下拉選單` 查不到、沒有 unsafe/Pro 的路由列、前台行為只能 grep facts.md、class 命名沒有路由列。都已補上:terms-zh.csv、路由列、`mo.py facts`。
11
+ - 下表把各輪答案合併評分,每題都用最後一版題目和評分標準。
12
+ - 舊的 `claude plugin eval` 題組(5 題,1.0.8 時期)還在 `evals/<case>/`,最後一次紀錄是 2026-09-14:有 skill 0.867、沒有 skill 0.00,詳見 `evals/results/`。
13
+
14
+
15
+ | 項目 | 有 skill | 沒有 skill |
16
+ |---|---|---|
17
+ | 計分題答對率(16 題) | **16/16(100.0%)** | 0/16(0.0%) |
18
+ | 全部題目(16 題) | 16/16 | 0/16 |
19
+ | 模型 | claude-opus-5-5 | claude-opus-5-5 |
20
+ | 作答方式 | subagent 讀 SKILL.md、用 mo.py 與 references 查(r1+r2 合併) | subagent 不用任何工具,憑記憶作答(r1+r2+r3 合併) |
21
+ | 答案檔 | `evals/runs/2026-11-16-final-with-skill.json` | `evals/runs/2026-11-16-final-without-skill.json` |
22
+
23
+ | 題目 | 可信度 | 有 skill | 沒有 skill | 備註 |
24
+ |---|---|---|---|---|
25
+ | `select-split-1012` | measured | ✅ | ❌ | |
26
+ | `popover-trigger-slots` | measured | ✅ | ❌ | |
27
+ | `popover-flipped-state` | measured | ✅ | ❌ | |
28
+ | `shorthand-interaction-types` | documented | ✅ | ❌ | |
29
+ | `interaction-value-shape` | measured | ✅ | ❌ | |
30
+ | `wysiwyg-text-escape-1011` | measured | ✅ | ❌ | |
31
+ | `pro-only-types-1011` | documented | ✅ | ❌ | |
32
+ | `url-capable-types` | measured | ✅ | ❌ | |
33
+ | `unsafe-type-count` | measured | ✅ | ❌ | |
34
+ | `accordion-content-bare` | measured | ✅ | ❌ | |
35
+ | `local-loop-source` | measured | ✅ | ❌ | |
36
+ | `button-text-editable` | measured | ✅ | ❌ | |
37
+ | `no-template-status` | measured | ✅ | ❌ | |
38
+ | `unprobed-node-props` | measured | ✅ | ❌ | |
39
+ | `variant-delete` | measured | ✅ | ❌ | |
40
+ | `class-name-grammar` | documented | ✅ | ❌ | |
41
+
@@ -0,0 +1,329 @@
1
+ {
2
+ "about": "mosaic-headless 真題。考模型記不住的東西:Mosaic 1.0.10-1.0.12 的新結構與改名、量測出來的失敗方式、只有實測才知道的值的形狀。評分:must 每一組都要命中(組內任一正規式命中即可),全部命中才算對。沒 skill 也答對的題沒有鑑別度(SOP 6-4),標 retired 換題。答案出處都是 mo.py 查詢或 references/ 的實測紀錄(Mosaic Pro 1.0.12 測試站)。",
3
+ "cases": [
4
+ {
5
+ "id": "select-split-1012",
6
+ "question": "Mosaic Pro 1.0.12 把表單的下拉選單改成可以自己組的 Select。要用哪些 node type、怎麼巢狀?舊的哪個 type 已經不存在?",
7
+ "must": [
8
+ [
9
+ "select-toggle"
10
+ ],
11
+ [
12
+ "select-options"
13
+ ],
14
+ [
15
+ "select-option(?!s)"
16
+ ],
17
+ [
18
+ "select-input"
19
+ ]
20
+ ],
21
+ "source": "python tools/mo.py placement select; references/upgrading.md (1.0.11 -> 1.0.12)",
22
+ "trust": "measured"
23
+ },
24
+ {
25
+ "id": "scrolldepth-slot-1010",
26
+ "question": "Mosaic 1.0.10 起,scrollDepth 觸發器的動作要放在哪個 slot 名稱底下?如果還放在舊的 slot 名稱會怎樣?",
27
+ "must": [
28
+ [
29
+ "\\breached\\b"
30
+ ],
31
+ [
32
+ "never runs|不會執行|不會跑|永遠不|沒有作用|不執行|stored|kept|保留"
33
+ ]
34
+ ],
35
+ "source": "references/facts.md (scrollDepth's action slot)",
36
+ "trust": "measured",
37
+ "retired": "2026-11-16 r1: no-skill answer also matched"
38
+ },
39
+ {
40
+ "id": "popover-trigger-slots",
41
+ "question": "Mosaic 1.0.10 的 popover(浮動框)作為互動觸發器時,有哪三個 slot?做三步驟導覽時,下一步應該掛在哪個 slot?",
42
+ "must": [
43
+ [
44
+ "\\bshow\\b"
45
+ ],
46
+ [
47
+ "beforeClose"
48
+ ],
49
+ [
50
+ "afterClose"
51
+ ]
52
+ ],
53
+ "source": "references/facts.md; data/popover-verification.csv",
54
+ "trust": "measured"
55
+ },
56
+ {
57
+ "id": "popover-flipped-state",
58
+ "question": "Mosaic popover 設了 keepInView,空間不夠被翻到另一側時,要用哪個 style state ID 才能幫翻轉後的樣子另外設樣式?",
59
+ "must": [
60
+ [
61
+ "_{2,3}popover--flipped"
62
+ ]
63
+ ],
64
+ "source": "python tools/mo.py states --grep popover",
65
+ "trust": "measured"
66
+ },
67
+ {
68
+ "id": "shorthand-interaction-types",
69
+ "question": "Mosaic 的 modal 可以用 interactionShorthand 直接掛觸發器。哪幾種 interaction type 可以當 shorthand?用其他種會怎樣?",
70
+ "must": [
71
+ [
72
+ "pageLoad"
73
+ ],
74
+ [
75
+ "exitIntent"
76
+ ],
77
+ [
78
+ "scrollDepth"
79
+ ]
80
+ ],
81
+ "source": "references/facts.md (InteractionTypesManager::getShorthandInteractionTypes)",
82
+ "trust": "documented"
83
+ },
84
+ {
85
+ "id": "interaction-value-shape",
86
+ "question": "用 headless 方式寫 Mosaic interaction 動畫的 keyframe 值時,initial 和 properties 的 key 要用什麼?值要寫成什麼型別?",
87
+ "must": [
88
+ [
89
+ "uuid"
90
+ ],
91
+ [
92
+ "meta"
93
+ ],
94
+ [
95
+ "string|字串|\"80%\"|單位"
96
+ ]
97
+ ],
98
+ "source": "references/interactions.md; tools/interactions.py",
99
+ "trust": "measured"
100
+ },
101
+ {
102
+ "id": "wysiwyg-text-escape-1011",
103
+ "question": "在 Mosaic 1.0.11 的 wysiwyg-text 文字段落裡寫 A<strong>B</strong>,前台會顯示什麼?要做行內粗體或換行,正確做法是什麼?",
104
+ "must": [
105
+ [
106
+ "literal|escap|&lt;|跳脫|原樣|字面|直接顯示|印出"
107
+ ],
108
+ [
109
+ "wysiwyg-span|format"
110
+ ]
111
+ ],
112
+ "source": "references/facts.md (A wysiwyg-text run prints no markup since 1.0.11)",
113
+ "trust": "measured"
114
+ },
115
+ {
116
+ "id": "pro-only-types-1011",
117
+ "question": "Mosaic 1.0.11 調整了 Free/Pro 分界之後,哪些 node type 需要 Pro?(列出 type 名稱)",
118
+ "must": [
119
+ [
120
+ "\\bcode\\b"
121
+ ],
122
+ [
123
+ "\\bmodal\\b"
124
+ ],
125
+ [
126
+ "popover"
127
+ ],
128
+ [
129
+ "modal-overlay"
130
+ ],
131
+ [
132
+ "modal-window"
133
+ ]
134
+ ],
135
+ "source": "python tools/mo.py types --edition pro",
136
+ "trust": "documented"
137
+ },
138
+ {
139
+ "id": "url-capable-types",
140
+ "question": "Mosaic 裡只有哪幾種 node type 的 url 屬性真的會輸出 <a href>?把 url 放在 image 或 text 上會怎樣?",
141
+ "must": [
142
+ [
143
+ "\\bbutton\\b"
144
+ ],
145
+ [
146
+ "menu-link"
147
+ ],
148
+ [
149
+ "wysiwyg-link"
150
+ ],
151
+ [
152
+ "dropdown-toggle"
153
+ ]
154
+ ],
155
+ "source": "references/facts.md (Only four types take a url)",
156
+ "trust": "measured"
157
+ },
158
+ {
159
+ "id": "section-default-padding",
160
+ "question": "Mosaic 的 section node 如果完全不設 padding,前台量到上下各有多少內距?",
161
+ "must": [
162
+ [
163
+ "(?<!\\d)80 ?px"
164
+ ]
165
+ ],
166
+ "source": "references/facts.md (section arrives with 80px)",
167
+ "trust": "measured",
168
+ "retired": "2026-11-16 r1: no-skill answer also matched"
169
+ },
170
+ {
171
+ "id": "unsafe-type-count",
172
+ "question": "在 mosaic-headless 的實測裡(Mosaic 1.0.11/1.0.12),單獨提交會讓請求失敗或讓整頁壞掉、被列為不安全(unsafe to commit)的 node type 有幾個?",
173
+ "must": [
174
+ [
175
+ "(?<!\\d)27(?!\\d)"
176
+ ]
177
+ ],
178
+ "source": "python tools/mo.py stats",
179
+ "trust": "measured"
180
+ },
181
+ {
182
+ "id": "modal-open-1010",
183
+ "question": "Mosaic 1.0.10 把 modal 改成 Popover API 之後,用 JavaScript 要怎麼判斷 modal 目前是開著的?dialog.open 還能用嗎?",
184
+ "must": [
185
+ [
186
+ ":popover-open|data-mosaic-dialog-state"
187
+ ],
188
+ [
189
+ "false|不能|不可|沒用|無效|永遠"
190
+ ]
191
+ ],
192
+ "source": "references/facts.md (Since 1.0.10 the modal is a Popover-API host)",
193
+ "trust": "measured",
194
+ "retired": "2026-11-16 r1: no-skill answer also matched"
195
+ },
196
+ {
197
+ "id": "custom-declarations-dvh",
198
+ "question": "在 Mosaic 的 customDeclarations 裡寫 height: 100dvh,同一個區塊其他宣告會怎樣?",
199
+ "must": [
200
+ [
201
+ "whole|entire|整個|全部|all|其他.{0,8}(也|一起|都)"
202
+ ],
203
+ [
204
+ "drop|丟|消失|不見|失效|無效|捨棄|移除|不會輸出"
205
+ ]
206
+ ],
207
+ "source": "references/facts.md (customDeclarations is all or nothing)",
208
+ "trust": "measured",
209
+ "retired": "2026-11-16 r1: no-skill answer also matched"
210
+ },
211
+ {
212
+ "id": "accordion-content-bare",
213
+ "question": "把 Mosaic 的 accordion-content 直接放在一般 div 底下提交,會發生什麼事?正確要放在哪裡?",
214
+ "must": [
215
+ [
216
+ "BROKE_PAGE|error string|錯誤字串|整頁|整個.{0,6}頁|54"
217
+ ],
218
+ [
219
+ "accordion-item"
220
+ ]
221
+ ],
222
+ "source": "python tools/mo.py type accordion-content",
223
+ "trust": "measured",
224
+ "note": "2026-11-16 r1: rubric relaxed - the 54-byte size was not the point of the question; the page-breaking verdict and the parent are"
225
+ },
226
+ {
227
+ "id": "local-loop-source",
228
+ "question": "Mosaic 的 local-context loop,loopSource 應該怎麼寫?為什麼不能用 @LOOP()?",
229
+ "must": [
230
+ [
231
+ "@VAR\\(\\s*'post/"
232
+ ],
233
+ [
234
+ "editor|編輯器"
235
+ ]
236
+ ],
237
+ "source": "references/facts.md (A local-context loop's loopSource)",
238
+ "trust": "measured"
239
+ },
240
+ {
241
+ "id": "button-text-editable",
242
+ "question": "headless 建 Mosaic 按鈕時,按鈕文字要放在什麼結構裡,客戶在編輯器才能雙擊編輯文字?",
243
+ "must": [
244
+ [
245
+ "\\btext\\b"
246
+ ],
247
+ [
248
+ "Inherited text|6381b2f3"
249
+ ]
250
+ ],
251
+ "source": "references/facts.md (A button's words go in a text node); tools/build_page.py wrap_text_runs",
252
+ "trust": "measured"
253
+ },
254
+ {
255
+ "id": "no-template-status",
256
+ "question": "Mosaic 網站上某個網址沒有任何範本對應時,未登入的訪客會收到什麼 HTTP 狀態碼和內容?",
257
+ "must": [
258
+ [
259
+ "(?<!\\d)406(?!\\d)"
260
+ ],
261
+ [
262
+ "empty|空白|空的|沒有內容|無內容"
263
+ ]
264
+ ],
265
+ "source": "references/core-rules.md (406 is Mosaic's no template matched)",
266
+ "trust": "measured"
267
+ },
268
+ {
269
+ "id": "unprobed-node-props",
270
+ "question": "mosaic-headless 的 node property 實測(node-property sweep)裡,有哪兩個宣告過的 property 名稱還沒有任何探測紀錄?",
271
+ "must": [
272
+ [
273
+ "ariaLive"
274
+ ],
275
+ [
276
+ "positioning"
277
+ ]
278
+ ],
279
+ "source": "python tools/mo.py stats; data/pending.csv",
280
+ "trust": "measured"
281
+ },
282
+ {
283
+ "id": "image-attachment-path",
284
+ "question": "Mosaic image node 用 wp-attachment:// 協定指定圖片時,路徑要相對於哪個目錄?如果寫成完整的 wp-content/uploads/... 會怎樣?",
285
+ "must": [
286
+ [
287
+ "uploads"
288
+ ],
289
+ [
290
+ "twice|兩次|重複|double|又加|再加|再次|second"
291
+ ]
292
+ ],
293
+ "source": "references/facts.md (attachment-protocol path)",
294
+ "trust": "measured",
295
+ "retired": "2026-11-16 r2: no-skill answer also matched"
296
+ },
297
+ {
298
+ "id": "variant-delete",
299
+ "question": "想刪掉 Mosaic 的一個 variant(例如 Heading 2 的樣式),對它送 status:\"delete\" 會怎樣?正確做法是什麼?",
300
+ "must": [
301
+ [
302
+ "ignor|忽略|沒有作用|無效|不會刪|不理"
303
+ ],
304
+ [
305
+ "empty|清空|空的|\\{\\s*\\}|states"
306
+ ]
307
+ ],
308
+ "source": "references/facts.md (A variant row cannot be deleted, only emptied)",
309
+ "trust": "measured"
310
+ },
311
+ {
312
+ "id": "class-name-grammar",
313
+ "question": "Mosaic 使用者自訂的 class 名稱(variant sub class、universal class)每一段最多幾個字元?哪個前綴是保留的不能用?名稱撞到時會怎樣?",
314
+ "must": [
315
+ [
316
+ "(?<!\\d)60(?!\\d)"
317
+ ],
318
+ [
319
+ "m-"
320
+ ],
321
+ [
322
+ "-2|編號|數字|suffix|後綴"
323
+ ]
324
+ ],
325
+ "source": "references/facts.md (User class names have a grammar)",
326
+ "trust": "documented"
327
+ }
328
+ ]
329
+ }