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.
Publish markdown articles to Medium, Dev.to, and Hashnode. Handles SEO, formatting, and canonical URLs for cross-posting.
| 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 |
Ensure article has: - Title (H1) - Subtitle/description - Tags (3-5 relevant tags) - Content body (markdown) - Optional: cover image URL
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
1. Navigate to https://medium.com/new-story
2. Paste title and content
3. Click "Publish" → set tags → confirm
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"
}
}'
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 } } }"
}'
canonical_url pointing to the original7w4.net收录了海量优质技能插件。
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"
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
这个 Skill 质量不错,能帮助用户把文章发布到多个平台。它把 Medium、Dev.to 和 Hashnode 的发布方式都讲得很清楚,还提供了 SEO 优化建议。文档写得很详细,步骤清晰易懂,容易上手。美中不足的是 Medium 需要用浏览器操作可能不太方便,整体缺少一些出错时的处理说明。对于需要在多个平台发布内容的用户来说,这是一个实用且值得参考的工具。