mosaic-headless 1.36.2 → 1.36.3
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.
- package/SKILL.md +1 -1
- package/assets/templates/platforms/claude-ai.json +6 -3
- package/assets/templates/platforms/claude-code.json +6 -3
- package/assets/templates/platforms/codex-cli.json +6 -3
- package/assets/templates/platforms/continue.json +1 -1
- package/assets/templates/platforms/copilot.json +6 -3
- package/assets/templates/platforms/cursor.json +1 -1
- package/assets/templates/platforms/gemini-cli.json +6 -3
- package/package.json +1 -1
- package/scripts/check-release.mjs +5 -2
- package/scripts/install.mjs +28 -9
- package/scripts/sync-version.mjs +5 -3
package/SKILL.md
CHANGED
|
@@ -17,10 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"frontmatter": {
|
|
19
19
|
"name": "mosaic-headless",
|
|
20
|
-
"description": "
|
|
20
|
+
"description": "(filled in from SKILL.md by install.mjs)",
|
|
21
21
|
"license": "MIT",
|
|
22
|
-
"
|
|
23
|
-
|
|
22
|
+
"metadata": {
|
|
23
|
+
"author": "moksa (https://moksaweb.com)",
|
|
24
|
+
"version": "1.36.3",
|
|
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": [
|
|
@@ -17,10 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"frontmatter": {
|
|
19
19
|
"name": "mosaic-headless",
|
|
20
|
-
"description": "
|
|
20
|
+
"description": "(filled in from SKILL.md by install.mjs)",
|
|
21
21
|
"license": "MIT",
|
|
22
|
-
"
|
|
23
|
-
|
|
22
|
+
"metadata": {
|
|
23
|
+
"author": "moksa (https://moksaweb.com)",
|
|
24
|
+
"version": "1.36.3",
|
|
25
|
+
"homepage": "https://github.com/Moksa1123/mosaic-headless"
|
|
26
|
+
}
|
|
24
27
|
},
|
|
25
28
|
"loaderBehaviour": "Auto-loads on session start when SKILL.md frontmatter parses successfully.",
|
|
26
29
|
"verified": true,
|
|
@@ -17,10 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"frontmatter": {
|
|
19
19
|
"name": "mosaic-headless",
|
|
20
|
-
"description": "
|
|
20
|
+
"description": "(filled in from SKILL.md by install.mjs)",
|
|
21
21
|
"license": "MIT",
|
|
22
|
-
"
|
|
23
|
-
|
|
22
|
+
"metadata": {
|
|
23
|
+
"author": "moksa (https://moksaweb.com)",
|
|
24
|
+
"version": "1.36.3",
|
|
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": "
|
|
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": "
|
|
20
|
+
"description": "(filled in from SKILL.md by install.mjs)",
|
|
21
21
|
"license": "MIT",
|
|
22
|
-
"
|
|
23
|
-
|
|
22
|
+
"metadata": {
|
|
23
|
+
"author": "moksa (https://moksaweb.com)",
|
|
24
|
+
"version": "1.36.3",
|
|
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": "
|
|
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": "
|
|
20
|
+
"description": "(filled in from SKILL.md by install.mjs)",
|
|
21
21
|
"license": "MIT",
|
|
22
|
-
"
|
|
23
|
-
|
|
22
|
+
"metadata": {
|
|
23
|
+
"author": "moksa (https://moksaweb.com)",
|
|
24
|
+
"version": "1.36.3",
|
|
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,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mosaic-headless",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.3",
|
|
4
4
|
"description": "AI-agent skill: build Mosaic Pro (Nextend) WordPress sites by writing the underlying data model directly - 23 custom tables, no visual editor, no DOM. Every node type, style property and node property swept against a live install and asserted on the delivered HTML and compiled CSS. Installs into Claude Code, Cursor, Codex CLI, Gemini CLI, Copilot, Continue, Windsurf and Claude.ai.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wordpress",
|
|
@@ -75,8 +75,11 @@ else if (fmVersion[1].trim() !== want)
|
|
|
75
75
|
const platDir = path.join(ROOT, "assets", "templates", "platforms");
|
|
76
76
|
for (const f of fs.readdirSync(platDir).filter((x) => x.endsWith(".json"))) {
|
|
77
77
|
const cfg = JSON.parse(fs.readFileSync(path.join(platDir, f), "utf8"));
|
|
78
|
-
const
|
|
79
|
-
|
|
78
|
+
const fm = cfg.frontmatter || {};
|
|
79
|
+
for (const k of ["version", "author"])
|
|
80
|
+
if (k in fm) fail(`${f} frontmatter has a top-level ${k} - it belongs under metadata`);
|
|
81
|
+
const v = fm.metadata?.version;
|
|
82
|
+
if (v !== undefined && v !== want) fail(`${f} frontmatter metadata.version ${v} != ${want}`);
|
|
80
83
|
if (JSON.stringify(cfg).includes("gutenberg-headless"))
|
|
81
84
|
fail(`${f} still names another skill`);
|
|
82
85
|
}
|
package/scripts/install.mjs
CHANGED
|
@@ -172,18 +172,37 @@ function detectPlatforms() {
|
|
|
172
172
|
|
|
173
173
|
// ---------- content assembly ------------------------------------------------
|
|
174
174
|
|
|
175
|
+
// SKILL.md's own `description: |` block is the one source of truth. The platform
|
|
176
|
+
// templates only say *whether* a description goes in their frontmatter; their copy
|
|
177
|
+
// of the text used to be pasted in by hand and went stale (installs kept announcing
|
|
178
|
+
// the 1.0.10-era counts while the repo said 1.0.12).
|
|
179
|
+
function readSkillDescription() {
|
|
180
|
+
const raw = fs.readFileSync(path.join(ROOT, "SKILL.md"), "utf8");
|
|
181
|
+
const end = raw.indexOf("\n---", 3);
|
|
182
|
+
const head = raw.startsWith("---") && end !== -1 ? raw.slice(0, end) : "";
|
|
183
|
+
const m = /^description:\s*\|\s*\n((?:[ \t]+.*(?:\n|$))+)/m.exec(head);
|
|
184
|
+
if (!m) die("SKILL.md frontmatter has no `description: |` block");
|
|
185
|
+
return m[1].split("\n").map((l) => l.replace(/^ {2}/, "")).join("\n").trim();
|
|
186
|
+
}
|
|
187
|
+
|
|
175
188
|
function buildFrontmatter(fm) {
|
|
176
189
|
if (!fm) return "";
|
|
190
|
+
if ("description" in fm) fm = { ...fm, description: readSkillDescription() };
|
|
177
191
|
const lines = ["---"];
|
|
178
|
-
|
|
179
|
-
if (v === null || v === undefined)
|
|
180
|
-
if (Array.isArray(v)) lines.push(`${k}: [${v.map((x) => JSON.stringify(x)).join(", ")}]`);
|
|
181
|
-
else if (typeof v === "boolean") lines.push(`${k}: ${v}`);
|
|
182
|
-
else if (typeof v === "
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
192
|
+
const emit = (k, v, ind) => {
|
|
193
|
+
if (v === null || v === undefined) return;
|
|
194
|
+
if (Array.isArray(v)) lines.push(`${ind}${k}: [${v.map((x) => JSON.stringify(x)).join(", ")}]`);
|
|
195
|
+
else if (typeof v === "boolean") lines.push(`${ind}${k}: ${v}`);
|
|
196
|
+
else if (typeof v === "object") {
|
|
197
|
+
// `metadata:` - the Agent Skills spec rejects a top-level author/version
|
|
198
|
+
lines.push(`${ind}${k}:`);
|
|
199
|
+
for (const [k2, v2] of Object.entries(v)) emit(k2, v2, ind + " ");
|
|
200
|
+
} else if (typeof v === "string" && (v.includes("\n") || v.length > 100)) {
|
|
201
|
+
lines.push(`${ind}${k}: |`);
|
|
202
|
+
for (const sub of v.split("\n")) lines.push(`${ind} ${sub}`);
|
|
203
|
+
} else lines.push(`${ind}${k}: ${JSON.stringify(v)}`);
|
|
204
|
+
};
|
|
205
|
+
for (const [k, v] of Object.entries(fm)) emit(k, v, "");
|
|
187
206
|
lines.push("---");
|
|
188
207
|
return lines.join("\n") + "\n\n";
|
|
189
208
|
}
|
package/scripts/sync-version.mjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Targets:
|
|
13
13
|
* SKILL.md frontmatter `version:`
|
|
14
|
-
* assets/templates/platforms/*.json frontmatter.version, where present
|
|
14
|
+
* assets/templates/platforms/*.json frontmatter.metadata.version, where present
|
|
15
15
|
* .claude-plugin/plugin.json version (the Claude plugin directory reads it)
|
|
16
16
|
*
|
|
17
17
|
* check-release.mjs asserts afterwards that this worked, so a silent miss here
|
|
@@ -55,8 +55,10 @@ const platDir = path.join(ROOT, "assets", "templates", "platforms");
|
|
|
55
55
|
for (const f of fs.readdirSync(platDir).filter((x) => x.endsWith(".json"))) {
|
|
56
56
|
const p = path.join(platDir, f);
|
|
57
57
|
const cfg = JSON.parse(fs.readFileSync(p, "utf8"));
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
// under metadata:, like SKILL.md - a top-level version fails the Agent Skills upload
|
|
59
|
+
const meta = cfg.frontmatter?.metadata;
|
|
60
|
+
if (meta && "version" in meta && meta.version !== v) {
|
|
61
|
+
meta.version = v;
|
|
60
62
|
fs.writeFileSync(p, JSON.stringify(cfg, null, 2) + "\n");
|
|
61
63
|
touched.push(`assets/templates/platforms/${f}`);
|
|
62
64
|
}
|