跳到正文
cccskills
免费在 GitHub 公开

cm-auto-publisher

Comprehensive publishing automation skill bridging AI agents (OpenClaw, Manus, Claude) to the Content Factory Router. Uses the Router API to publish markdown articles with rich media to any connected Astro site natively.

中文简介正在准备中。当前显示原文说明。

集成工具YouTubeCloudflare
查看安装方法

包含的文件(1)

  • SKILL.md3.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

cm-auto-publisher: The Agentic Publishing 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.

When to Use

ALWAYS when:

  • User provides a link/video and says "Write an article about this and publish it".
  • User says "Draft and push this news to the blog".
  • You have finished drafting an article and need to deploy it to the live site.
  • An automated cron job triggers you to aggregate news and auto-publish.

The Process

Phase 1: Content Extraction & Structuring

  1. Analyze Input: If given a URL, use read_url_content (or your browsing tool) to read the source. If given images or Youtube links, extract them.
  2. Draft Content: Write a compelling article in standard Markdown.
    • Use headings (##, ###).
    • For YouTube videos, use the Astro component: <YouTube id="VIDEO_ID" />.
    • For images, just use standard markdown: ![Alt text](image_filename.jpg).

Phase 2: Media Preparation

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"
  }
]

Phase 3: API Payload Construction

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": [ ... ]
}

Phase 4: Publish via Router API

Send the payload to the Cloudflare Worker via a standard fetch or curl command.

  1. Get the Secret: Retrieve the API token from the .env file or ask the user for the PUBLISHER_API_KEY.
  2. Send POST Request: Use a local script or curl to send the data to the worker.
# 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

Phase 5: Verification

  1. Check the response from the Worker. It should return {"success": true, "message": "Published...", "commit_sha": "..."}.
  2. Inform the user that the article has been successfully committed to GitHub and Cloudflare Pages is now building it.

Red Flags - STOP!

  • ❌ DO NOT manually create .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.
  • ❌ DO NOT use 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

End-to-end ad conversion tracking: Meta Pixel+CAPI, TikTok Events API, Google Ads Enhanced Conversions, GTM, attribution. Auto-detects industry, maps standard events, outputs a developer-ready implementation doc. Use for pixels, GTM, CAPI, ROAS, or 'set up tracking' requests.

中文简介正在准备中。当前显示原文说明。

tody-agent/codymaster542026年8月26日 更新

Easy-to-use conversational CLI (Codex style) for non-technical users to spawn parallel AI tasks supervised by a visual web dashboard.

中文简介正在准备中。当前显示原文说明。

tody-agent/codymaster542026年8月26日 更新

Easy-to-use conversational CLI (Claude Code style) for non-technical users to spawn parallel AI tasks supervised by a visual web dashboard.

中文简介正在准备中。当前显示原文说明。

tody-agent/codymaster542026年8月26日 更新

Booking & Calendar CRO Engine — Packages all booking, scheduling, .ics download, and Google Calendar integration into a revenue-boosting system. Auto-detect industry → select matching pattern → generate calendar engine + booking UI + export logic. Integrates with cm-google-form (form → sheet) and cm-ads-tracker (conversion events). ALWAYS trigger for: booking, appointment, calendar, reminder, download ics, google calendar, add to calendar, book appointment, schedule, "create booking", "add scheduling", "appointment reminder system", "calendar CRO", "reduce no-show"

中文简介正在准备中。当前显示原文说明。

tody-agent/codymaster542026年8月26日 更新

Strategic analysis gate for existing products — multi-dimensional evaluation (tech, product, design, business) using Design Thinking + 9 Windows (TRIZ) + Double Diamond. Outputs 2-3 qualified options with recommendations. Use BEFORE cm-planning for complex initiatives and enhancements on existing codebases.

中文简介正在准备中。当前显示原文说明。

tody-agent/codymaster542026年8月26日 更新

cm-browse

免费

Use when you need visual QA, screenshots, or post-deploy smoke testing through a real browser with Playwright.

中文简介正在准备中。当前显示原文说明。

tody-agent/codymaster542026年8月26日 更新

查看 tody-agent 的全部技能

报告此技能的问题