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 article to Dev.to. Triggers include: posting to Dev.to, publishing articles, 'publish my article', 'post this on dev.to', or any mention of publishing written content to Dev.to. Also trigger when user has markdown content they want published on a developer blogging platform.From its SKILL.md
npx -y skills add apex-stack-ai/blog-publisher-liteAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.4 KB, 754 tokens by cl100k_base, as published. Nobody here has run it
Blog Publisher Lite
Publish markdown articles to Dev.to â the largest developer blogging platform â directly from a markdown file using their REST API.
Want cross-posting to Medium and Hashnode too? Upgrade to Blog Cross-Publisher (Full) for canonical URL management, Hashnode GraphQL integration, Medium browser automation, and platform-specific tag mapping.
What You Need
A Dev.to API key. Get one in 30 seconds:
- Go to https://dev.to/settings/extensions
- Scroll to "DEV Community API Keys"
- Enter a description, click "Generate API Key"
- Copy the key
Article Format
Write your article in standard markdown with optional metadata at the top:
# Your Article Title
*Tags: javascript, webdev, programming, ai*
*Read time: ~5 min*
---
Your article body starts here. Standard markdown works: **bold**, *italic*,
[links](https://example.com), code blocks, images, and headings.
## A Section Heading
More content...
The skill extracts the title from the first # heading, tags from the *Tags:* line, and everything after --- becomes the body.
Publishing
Use the bundled script:
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 |
The script outputs the published URL and article ID as JSON.
API Details
POST https://dev.to/api/articles
Header: api-key: <key>
Header: Content-Type: application/json
Payload:
{
"article": {
"title": "Article Title",
"published": true,
"body_markdown": "Full markdown body",
"tags": ["seo", "webdev", "programming", "ai"]
}
}
Constraints: Max 4 tags, lowercase, no spaces (use hyphens). Dev.to auto-generates a slug from the title.
Updating an Existing Article
PUT https://dev.to/api/articles/{id}
Same payload structure. Use the article id from the original publish response.
Network Restrictions
If curl or urllib fails with connection errors in sandboxed environments, use browser JavaScript fetch() as a workaround:
fetch('https://dev.to/api/articles', {
method: 'POST',
headers: {
'api-key': 'YOUR_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
article: {
title: 'Your Title',
published: false,
body_markdown: 'Your content...',
tags: ['seo', 'webdev']
}
})
}).then(r => r.json()).then(console.log)
Troubleshooting
401 Unauthorized
API key invalid or expired. Generate a new one at https://dev.to/settings/extensions
422 Unprocessable Entity
Check: title is present, tags ⤠4, body_markdown is valid, no duplicate draft with same title.
429 Too Many Requests
Rate limited. Wait 30 seconds and retry.
Built by Apex Stack â tools for developers who ship.
What ships with it: 3 files
8.7 KB alongside SKILL.md, 1 of them executable
scripts/
- publish_devto.pyruns4.4 KB
- blog-cross-publisher-lite.skill3.6 KB
- README.md779 B