360 Secure SkillHub
360 安全技能中心

Blog Cross-Publisher Lite

该 Skill 说明如何用 Python 脚本调用 Dev.to 的 REST 接口,把本地 Markdown 文件发布为草稿或正式文章:从首个一级标题提取标题、从标签行提取标签,可用参数覆盖标签,并给出 401/422/429 的排查提示。所需脚本文件在文件列表中缺失,无法确认其具体实现。

apex-stack-ai
apex-stack-ai
热度 32.08
最近更新 2026-05-11 17:39:16
分类:营销依赖:代码执行 / 读写文件 / 第三方 API应用场景:博客写作 / 社交媒体

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add blog-cross-publisher-lite
Metadata
name
blog-publisher-lite
description
Publish markdown articles to Dev.to via their REST API. Use this skill whenever the user wants to publish a blog post or article to Dev.to.

Blog Publisher Lite

Publish markdown articles to Dev.to directly from a markdown file using their REST API.

Want cross-posting to Medium and Hashnode too? Upgrade to Blog Cross-Publisher (Full)

What You Need

A Dev.to API key. Get one at https://dev.to/settings/extensions

Article Format

Write your article in standard markdown. The skill extracts the title from the first # heading, tags from the *Tags:* line, and everything after --- becomes the body.

Publishing

python scripts/publish_devto.py article.md --api-key YOUR_API_KEY --publish
Flag What It Does
--publish Publish immediately (omit for draft)
--tags "seo,webdev" Override tags from the file

API Details

POST https://dev.to/api/articles with api-key header and JSON body. Max 4 tags, lowercase.

Troubleshooting

  • 401: API key invalid. Generate new one at dev.to/settings/extensions
  • 422: Check title present, tags <= 4, valid body_markdown
  • 429: Rate limited. Wait 30 seconds.

Built by Apex Stack — tools for developers who ship.