Skip to content

Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.

ci: keep the Codex plugin manifest version in sync with the repo version

Corey Haines061a640411de
diff --git a/scripts/check-versions.mjs b/scripts/check-versions.mjs
index af312b1..6dc0fea 100644
--- a/scripts/check-versions.mjs
+++ b/scripts/check-versions.mjs
@@ -6,7 +6,7 @@
//
// Consistency:
// - every skill's metadata.version matches its VERSIONS.md row, and every skill has a row
-// - plugin.json and marketplace.json share one repo version, matching the newest `### x.y.z` block in VERSIONS.md
+// - plugin.json, marketplace.json, and .codex-plugin/plugin.json share one repo version, matching the newest `### x.y.z` block in VERSIONS.md
// - every file in skills/<name>/references/ is linked from that skill's SKILL.md
// or from another of its reference files (no orphans)
// With --base:
@@ -61,6 +61,11 @@ for (const name of Object.keys(table)) {
const plugin = repoVersion(read(".claude-plugin/plugin.json"));
const market = marketVersion(read(".claude-plugin/marketplace.json"));
if (plugin !== market) errors.push(`plugin.json is ${plugin} but marketplace.json metadata.version is ${market}`);
+const codexPath = resolve(ROOT, ".codex-plugin/plugin.json");
+if (existsSync(codexPath)) {
+ const codex = repoVersion(readFileSync(codexPath, "utf8"));
+ if (codex !== plugin) errors.push(`.codex-plugin/plugin.json is ${codex} but plugin.json is ${plugin}`);
+}
const latestHeading = versionsMd.match(/^### (\d+\.\d+\.\d+)(\s|$)/m)?.[1];
if (latestHeading !== plugin) errors.push(`VERSIONS.md: newest changelog block is ${latestHeading ?? "missing"}, but repo version is ${plugin}`);