devto-publish
БесплатноБез исполняемых скриптовНе проверенUse this skill when you need to publish articles to Dev.to via their API, format markdown content for Dev.to, or manage blog posts programmatically.
от javimosch★ 58 звёзд на GitHubОб этом скилле
Dev.to Publish Plugin
Publish articles to Dev.to (https://dev.to) via their REST API. Requires a Dev.to API key for authentication.
Commands
devto-publish <resource> <action>— Execute devto-publish commandsdevto article publish— Publish an article to Dev.to
Setup
Get your Dev.to API key:
- Go to https://dev.to/settings/account
- Scroll to "API Keys"
- Click "Generate new API key"
- Copy the key
Install the plugin:
sc plugins install ./plugins/devto-publish --on-conflict replace --json
Publishing Articles
Basic Publish
sc devto article publish --api-key "your-api-key" --title "My Article Title" --body-markdown "# Content here" --tags "javascript,nodejs"
Publish with Draft Mode
Save as draft instead of publishing immediately:
sc devto article publish --api-key "your-api-key" --title "Draft Article" --body-markdown "# Content" --published false --tags "webdev"
Publish from File
Publish an existing markdown file:
sc devto article publish --api-key "your-api-key" --title "Article from File" --body-markdown "$(cat my-article.md)" --tags "tutorial"
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key |
string | Yes | Dev.to API key from https://dev.to/settings/account |
title |
string | Yes | Article title |
body_markdown |
string | Yes | Article content in Markdown format |
published |
boolean | No | true to publish immediately, false to save as draft (default: true) |
tags |
string | No | Comma-separated tags (max 4) for categorization |
Response
The command returns the published article object including:
id: Article IDurl: Published article URL (e.g.,https://dev.to/username/article-slug)slug: URL-friendly identifierpublished_timestamp: When it was publishedreading_time_minutes: Estimated reading time
Agent Usage Pattern
When writing an article for a user:
- Draft the content in Markdown format
- Choose appropriate tags (max 4) relevant to the content
- Publish using the command:
sc devto article publish --api-key "your-api-key" --title "Article Title" --body-markdown "<markdown content>" --tags "tag1,tag2,tag3,tag4" - Verify by checking the returned URL
Best Practices
- Tag selection: Use relevant, popular tags to increase visibility
- Title quality: Make titles descriptive and engaging
- Markdown formatting: Use proper Markdown syntax for code blocks, links, images
- Content length: Dev.to recommends articles between 3-15 minutes reading time
- Preview: Use
--published falseto save as draft first, then publish after review
Example: Publishing Technical Article
sc devto article publish \
--api-key "your-api-key" \
--title "How to Build a REST API with Node.js" \
--body-markdown '# Introduction\n\nThis article shows how to build a REST API...\n\n```javascript\nconst express = require("express");\nconst app = express();\n```\n\n## Conclusion\n\n...' \
--tags "javascript,nodejs,api,webdev"
Critical Caveats and Pitfalls
API Key Security
- NEVER commit API keys to git - they grant full access to your Dev.to account
- Treat API keys as secrets - rotate if compromised
- Store in environment variables or secret management systems
- Do not share in public repositories or issue comments
Common Publishing Pitfalls
1. Markdown escaping issues
- When passing markdown via command line, escape special characters properly
- Use single quotes for shell:
--body-markdown '# Title\n\nContent' - For complex markdown, write to a file first:
--body-markdown "$(cat article.md)"
2. Tag format errors
- Tags must be comma-separated string, not array:
--tags "javascript,nodejs" - Dev.to rejects arrays or space-separated tags
- Maximum 4 tags - excess tags are ignored or cause errors
3. Title duplication
- Dev.to prevents duplicate titles within 5 minutes
- If you get this error, wait 5 minutes or modify the title slightly
- Add unique qualifiers: "How to Build X (2026 Edition)"
4. Content length limits
- Dev.to doesn't enforce strict character limits, but very long articles (>15 min read time) may have poor engagement
- Consider splitting very long content into series
- Use code blocks judiciously - they count toward reading time
5. Image handling
- Dev.to supports image uploads via web interface
- External image links work but may break over time
- For production articles, upload images through Dev.to dashboard first
6. Code block formatting
- Use triple backticks with language:
javascript` orpython` - Ensure proper indentation in code blocks
- Dev.to's markdown parser is strict about code block syntax
7. Draft vs Published confusion
- Default is
--published true- article goes live immediately - Use
--published falsefor d
Установить devto-publish в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл devto-publish?
Use this skill when you need to publish articles to Dev.to via their API, format markdown content for Dev.to, or manage blog posts programmatically.
Как установить скилл devto-publish?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devto-publish запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic