Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.
JavaScript agent-skillsai-agentsai-seoclaudeclaude-codeclaude-code-pluginclaude-skillscodexcontent-marketingconversion-rate-optimizationcopywritingcursoremail-marketinggenerative-engine-optimizationgrowth-marketingmarketingmarketing-automationsaas-marketingseoskill-md
fix(sync): update skill tables in CRLF README files
Rudy Celekli0917cc11c76f
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 39ddc4c..68a230d 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -6,7 +6,7 @@},"metadata": {"description": "Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, and growth",- "version": "2.11.26",+ "version": "2.11.27","repository": "https://github.com/coreyhaines31/marketingskills"},"plugins": [diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex f1a5cf8..aabe26f 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "marketing-skills","description": "Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth",- "version": "2.11.26",+ "version": "2.11.27","author": {"name": "Corey Haines"},diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex 45d9d89..9cd1f4c 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "marketing-skills","description": "Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth",- "version": "2.11.26",+ "version": "2.11.27","author": {"name": "Corey Haines"},diff --git a/.github/scripts/sync-skills.js b/.github/scripts/sync-skills.jsindex 8acbc71..a2e1d4a 100644--- a/.github/scripts/sync-skills.js+++ b/.github/scripts/sync-skills.js@@ -117,7 +117,7 @@ function updateReadme(skills) {const content = fs.readFileSync(README_FILE, "utf8");// Match content between skill list markers- const tableRegex = /(<!-- SKILLS:START -->\n)[\s\S]*?(\n<!-- SKILLS:END -->)/;+ const tableRegex = /(<!-- SKILLS:START -->\r?\n)[\s\S]*?(\r?\n<!-- SKILLS:END -->)/;const newTable = generateSkillsTable(skills);if (!tableRegex.test(content)) {@@ -125,7 +125,10 @@ function updateReadme(skills) {return false;}- const newContent = content.replace(tableRegex, (_match, start, end) => start + newTable + end);+ const newContent = content.replace(tableRegex, (_match, start, end) => {+ const newline = start.endsWith("\r\n") ? "\r\n" : "\n";+ return start + newTable.replaceAll("\n", newline) + end;+ });if (newContent === content) {return false;diff --git a/VERSIONS.md b/VERSIONS.mdindex dc6d5ce..5bdad0b 100644--- a/VERSIONS.md+++ b/VERSIONS.md@@ -57,6 +57,10 @@ Current versions of all skills. Agents can compare against local versions to che## Recent Changes+### 2.11.27 (2026-10-10)++- Synchronize README skill tables while preserving CRLF line endings.+### 2.11.26 (2026-10-08)- **lead-magnets** (2.0.0 → 2.1.0): new `references/content-to-skill.md` (plus corpus design and release companions) on packaging a course, webinar series, podcast, or newsletter archive you own as an installable agent skill: a new kind of lead magnet. From @rudycelekli's #725 (closes #432), folded in rather than added as a new skill. Triggers added: 'course as a skill,' 'package our content as an agent skill.' **ai-seo** (2.7.5 → 2.7.6) points to it.diff --git a/tests/clis/sync-readme-line-endings.test.cjs b/tests/clis/sync-readme-line-endings.test.cjsnew file mode 100644index 0000000..c229f56--- /dev/null+++ b/tests/clis/sync-readme-line-endings.test.cjs@@ -0,0 +1,36 @@+const { test } = require('node:test')+const assert = require('node:assert/strict')+const { spawnSync } = require('node:child_process')+const { mkdtempSync, mkdirSync, writeFileSync, readFileSync, rmSync } = require('node:fs')+const { tmpdir } = require('node:os')+const path = require('node:path')+const script = path.resolve(__dirname, '../../.github/scripts/sync-skills.js')++function sync(newline) {+ const root = mkdtempSync(path.join(tmpdir(), 'marketing-sync-metadata-'))+ try {+ mkdirSync(path.join(root, 'skills/example'), { recursive: true })+ mkdirSync(path.join(root, '.claude-plugin'))+ writeFileSync(path.join(root, 'skills/example/SKILL.md'), `---\nname: example\ndescription: Use when reviewing conversion evidence.\nmetadata:\n version: 1.0.0\n---\n# Example\n`)+ writeFileSync(path.join(root, '.claude-plugin/marketplace.json'), JSON.stringify({ metadata: { version: '1.0.0' }, plugins: [{ description: '1 marketing skills' }] }))+ writeFileSync(path.join(root, '.claude-plugin/plugin.json'), JSON.stringify({ version: '1.0.0' }))+ writeFileSync(path.join(root, 'README.md'), ['Before', '<!-- SKILLS:START -->', 'old table', '<!-- SKILLS:END -->', 'After', ''].join(newline))+ const result = spawnSync(process.execPath, [script], { cwd: root, encoding: 'utf8', timeout: 10000 })+ assert.equal(result.status, 0, result.stderr)+ return readFileSync(path.join(root, 'README.md'), 'utf8')+ } finally {+ rmSync(root, { recursive: true, force: true })+ }+}++for (const newline of ['\n', '\r\n']) {+ test(`README synchronization preserves ${JSON.stringify(newline)} line endings`, () => {+ const output = sync(newline)+ assert.match(output, /Use when reviewing conversion evidence/)+ assert.equal(output.includes('old table'), false)+ assert.equal(output.startsWith('Before' + newline), true)+ assert.equal(output.endsWith('After' + newline), true)+ if (newline === '\r\n') assert.equal(/(?<!\r)\n/.test(output), false)+ else assert.equal(output.includes('\r'), false)+ })+}