360 Secure SkillHub
360 安全技能中心

AI Content Publisher

核心功能:将符合规范的Markdown文章发布至Medium、Dev.to、Hashnode,支持调度发布,提供SEO优化清单,跨平台发布时添加规范URL避免内容重复惩罚;Medium用浏览器自动化,其余两平台通过API发布。典型场景:创作者跨平台发布技术、AI类博客。输入为含标题、标签的Markdown内容,支持单篇或批量发布。

qoohsuan
qoohsuan
热度 38.07
最近更新 2026-05-11 17:36:38
分类:自动化依赖:联网浏览搜索 / 第三方 API / 读写文件应用场景:博客写作 / 社交媒体 / 工作流 / 日程安排

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ai-content-publisher
Metadata
name
content-publisher
description
Publish content to Medium, Dev.to, and Hashnode from markdown files. Handles formatting, SEO optimization, scheduling, and cross-posting with canonical URLs. Use when asked to publish articles, blog posts, or cross-post content across platforms.

Content Publisher

Publish markdown articles to Medium, Dev.to, and Hashnode. Handles SEO, formatting, and canonical URLs for cross-posting.

Supported Platforms

Platform Method Auth
Medium Browser automation Google login
Dev.to API API key in env DEVTO_API_KEY
Hashnode API API key in env HASHNODE_TOKEN

Workflow

1. Prepare content

Ensure article has:

  • Title (H1)
  • Subtitle/description
  • Tags (3-5 relevant tags)
  • Content body (markdown)
  • Optional: cover image URL

2. SEO optimization checklist

Before publishing, verify:

  • Title contains target keyword (under 60 chars)
  • Meta description (under 155 chars)
  • H2/H3 structure with keywords
  • Internal/external links
  • Alt text on images
  • Call-to-action at end

3. Publish to Medium (browser)

1. Navigate to https://medium.com/new-story
2. Paste title and content
3. Click "Publish" → set tags → confirm

4. Publish to Dev.to (API)

curl -X POST https://dev.to/api/articles \
  -H "api-key: $DEVTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "article": {
      "title": "TITLE",
      "body_markdown": "CONTENT",
      "published": true,
      "tags": ["ai", "productivity"],
      "canonical_url": "MEDIUM_URL"
    }
  }'

5. Publish to Hashnode (GraphQL)

curl -X POST https://gql.hashnode.com \
  -H "Authorization: $HASHNODE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "mutation { publishPost(input: { title: \"TITLE\", contentMarkdown: \"CONTENT\", publicationId: \"PUB_ID\", tags: [{slug: \"ai\"}] }) { post { url } } }"
  }'

Cross-posting strategy

  1. First: Publish on Medium (or your primary platform)
  2. Wait 24-48h: Let search engines index the original
  3. Cross-post: Use canonical_url pointing to the original
  4. Why: Avoids duplicate content penalties in SEO

Publication submission (Medium)

To get more reach, submit to Publications:

  1. Find publication's "Write for us" page
  2. Follow their submission guidelines
  3. Submit via Medium's story settings → "Add to publication"

High-traffic AI Publications

  • Towards AI (AI/ML focused)
  • Better Programming (dev tools)
  • The Startup (business/tech)
  • Geek Culture (tech general)
  • Level Up Coding (programming)

Batch publishing

For multiple articles, process sequentially with delays:

  • Medium: max 2 articles per 24 hours
  • Dev.to: no strict limit, but space them 1+ hours apart
  • Hashnode: no strict limit