From cm
Takes unstructured input (links, ideas, raw text), writes a markdown article, and publishes it to an Astro site via the Content Factory Router API.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cm:cm-auto-publisherThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Goal:** Take unstructured input (links, ideas, raw text), write a highly engaging article following Content Factory rules, and instantly publish it via the Content Factory Router API.
Goal: Take unstructured input (links, ideas, raw text), write a highly engaging article following Content Factory rules, and instantly publish it via the Content Factory Router API.
ALWAYS when:
read_url_content (or your browsing tool) to read the source. If given images or Youtube links, extract them.##, ###).<YouTube id="VIDEO_ID" />..Identify all external images that need to be published with the article.
DO NOT try to download them to the local disk using bash commands. The Content Factory Router will handle this.
Instead, build a media array mapping the original URLs to the desired clean filenames.
"media": [
{
"url": "https://source.com/raw-image-123.jpg",
"filename": "clean-seo-friendly-name.jpg"
}
]
Construct the JSON payload matching the target site's schema.
Standard Target: cody-master (mapped to tody-agent/todyle-web).
{
"site_id": "cody-master",
"title": "[Engaging Title]",
"description": "[1-2 sentence SEO meta description]",
"category": "news", // or "guide", "use-case"
"readingTime": "5 min read",
"tags": ["AI", "Vibe Coding", "Automation"],
"content": "The raw markdown content here...",
"media": [ ... ]
}
Send the payload to the Cloudflare Worker via a standard fetch or curl command.
.env file or ask the user for the PUBLISHER_API_KEY.# Example curl (assuming the payload is saved to payload.json)
curl -X POST https://content-factory-router.<YOUR-CLOUDFLARE-ACCOUNT>.workers.dev/publish \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API_KEY>" \
-d @payload.json
{"success": true, "message": "Published...", "commit_sha": "..."}..mdx files in src/content/articles/ and run git push if using this skill! Let the Router API handle the Git history and image blob creation to ensure data consistency.cat or echo to build complex JSON payloads in bash. Save the payload to a .json file using your file writing tool, then pass it to curl.npx claudepluginhub tody-agent/codymaster --plugin cmGenerates original blog posts in HTML from text/URL/topic, adds images via Fal.ai or Playwright screenshots, commits to a GitHub Pages repo, and returns the public URL.
Expert Astro Content Layer API — content.config.ts, glob/file loaders, custom loaders, getCollection, getEntry, render(), Zod schemas, MDX, Remark/Rehype plugins. Use when managing structured content, blog posts, or any typed data collections.
Builds content-focused websites with Astro using islands architecture, zero-JS-by-default output, multi-framework components, and Markdown/MDX support. Useful for blogs, docs, portfolios, and marketing sites.