Documentation v1.0.0

blog-publisher-lite

Publish markdown articles to Dev.to via their REST API. Use this skill whenever the user wants to publish a blog post or...

apex 更新于 2026-04-02 1 浏览
下载 SKILL

技能说明

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.

使用场景

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

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/blog-publisher-lite
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 18 kB
SKILL.md text/markdown
---
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)](https://apexstack.gumroad.com/l/blog-cross-publisher)

## 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

```bash
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](https://apexstack.gumroad.com) — tools for developers who ship.*

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。