Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问clear审计未展示

dev.to开发到

Agent Skill

dev.to 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

936

周安装

39

GitHub Stars

56

下载量

312
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dev.to(开发到)
来源仓库:https://github.com/vm0-ai/vm0-skills
仓库路径:skills/dev.to
安装命令:
npx skills add https://github.com/vm0-ai/vm0-skills --skill devto
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vm0-ai/vm0-skills --skill devto

简介

dev.to 发布文章至开发者社区平台,支持标题、正文、标签与发布状态控制。

  • 它通过 API 调用上传内容,可草稿保存或立即发布,助力技术传播与个人品牌建设。
  • 需配置 DEVTO_TOKEN 环境变量,遵循平台内容政策,避免 spam 或侵权行为。
  • 使用前请验证 token 有效性,注意接口速率限制,建议批量操作时分段提交以防超时。
  • dev.to 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Troubleshooting

If requests fail, run zero doctor check-connector --env-name DEVTO_TOKEN or zero doctor check-connector --url https://dev.to/api/articles --method GET

How to Use

All examples below assume you have DEVTO_TOKEN set.

1. Publish an Article

Write to /tmp/devto_request.json:

{
  "article": {
    "title": "My Awesome Article",
    "body_markdown": "## Introduction\n\nThis is my article content.\n\n## Conclusion\n\nThanks for reading!",
    "published": false,
    "tags": ["javascript", "webdev"]
  }
}

Then run:

curl -s -X POST "https://dev.to/api/articles" -H "api-key: $DEVTO_TOKEN" -H "Content-Type: application/json" -d @/tmp/devto_request.json | jq '{id, url, published}'

Response:

{
  "id": 123456,
  "url": "https://dev.to/username/my-awesome-article-abc",
  "published": false
}

2. Publish Immediately

Set published: true to publish right away:

Write to /tmp/devto_request.json:

{
  "article": {
    "title": "Published Article",
    "body_markdown": "Content here...",
    "published": true,
    "tags": ["tutorial"]
  }
}

Then run:

curl -s -X POST "https://dev.to/api/articles" -H "api-key: $DEVTO_TOKEN" -H "Content-Type: application/json" -d @/tmp/devto_request.json | jq '{id, url, published}'

3. Publish with Cover Image

Write to /tmp/devto_request.json:

{
  "article": {
    "title": "Article with Cover",
    "body_markdown": "Content here...",
    "published": true,
    "tags": ["webdev", "tutorial"],
    "main_image": "https://example.com/cover.png"
  }
}

Then run:

curl -s -X POST "https://dev.to/api/articles" -H "api-key: $DEVTO_TOKEN" -H "Content-Type: application/json" -d @/tmp/devto_request.json | jq '{id, url}'

4. Publish from Markdown File

To publish from a markdown file, first convert it to JSON:

cat article.md | jq -Rs '.' > /tmp/content.json

Write to /tmp/devto_request.json:

{
  "article": {
    "title": "My Article Title",
    "body_markdown": "Your article content here...",
    "published": false,
    "tags": ["programming"]
  }
}

Then run:

curl -s -X POST "https://dev.to/api/articles" -H "api-key: $DEVTO_TOKEN" -H "Content-Type: application/json" -d @/tmp/devto_request.json | jq '{id, url, published}'

Managing Articles

5. Get Your Articles

curl -s "https://dev.to/api/articles/me?per_page=10" -H "api-key: $DEVTO_TOKEN" | jq '.[] | {id, title, published, url}'

6. Get Published Articles Only

curl -s "https://dev.to/api/articles/me/published?per_page=10" -H "api-key: $DEVTO_TOKEN" | jq '.[] | {id, title, url}'

7. Get Unpublished (Drafts)

curl -s "https://dev.to/api/articles/me/unpublished" -H "api-key: $DEVTO_TOKEN" | jq '.[] | {id, title}'

8. Get Single Article

Replace <your-article-id> with an actual article ID from the "List My Articles" response (example 5) or from the id field in the create article response (example 1).

curl -s "https://dev.to/api/articles/<your-article-id>" -H "api-key: $DEVTO_TOKEN" | jq '{id, title, url, published}'

9. Update an Article

Replace <your-article-id> with an actual article ID from the "List My Articles" response (example 5) or from the id field in the create article response (example 1).

Write to /tmp/devto_request.json:

{
  "article": {
    "title": "Updated Title",
    "body_markdown": "Updated content..."
  }
}

Then run:

curl -s -X PUT "https://dev.to/api/articles/<your-article-id>" -H "api-key: $DEVTO_TOKEN" -H "Content-Type: application/json" -d @/tmp/devto_request.json | jq '{id, url}'

10. Publish a Draft

Replace <your-article-id> with an actual article ID from the "List My Articles" response (example 5) or from the id field in the create article response (example 1).

Write to /tmp/devto_request.json:

{
  "article": {
    "published": true
  }
}

Then run:

curl -s -X PUT "https://dev.to/api/articles/<your-article-id>" -H "api-key: $DEVTO_TOKEN" -H "Content-Type: application/json" -d @/tmp/devto_request.json | jq '{id, url, published}'

Article Parameters

ParameterTypeDescription
titlestringArticle title (required)
body_markdownstringContent in Markdown
publishedbooleantrue to publish, false for draft
tagsarrayUp to 4 tags (lowercase, no spaces)
main_imagestringCover image URL
canonical_urlstringOriginal article URL (for cross-posts)
seriesstringSeries name to group articles

Examples

Tech Tutorial

Write to /tmp/devto_request.json:

{
  "article": {
    "title": "Getting Started with Docker",
    "body_markdown": "## What is Docker?\n\nDocker is a platform for developing...\n\n## Installation\n\n```bash\nbrew install docker\n```\n\n## Your First Container\n\n```bash\ndocker run hello-world\n```",
    "published": true,
    "tags": ["docker", "devops", "tutorial", "beginners"]
  }
}

Then run:

curl -s -X POST "https://dev.to/api/articles" -H "api-key: $DEVTO_TOKEN" -H "Content-Type: application/json" -d @/tmp/devto_request.json | jq '{url}'

Cross-post from Blog

Write to /tmp/devto_request.json:

{
  "article": {
    "title": "My Blog Post",
    "body_markdown": "Content from my blog...",
    "published": true,
    "canonical_url": "https://myblog.com/original-post",
    "tags": ["webdev"]
  }
}

Then run:

curl -s -X POST "https://dev.to/api/articles" -H "api-key: $DEVTO_TOKEN" -H "Content-Type: application/json" -d @/tmp/devto_request.json | jq '{url}'

Article in a Series

Write to /tmp/devto_request.json:

{
  "article": {
    "title": "React Hooks - Part 1: useState",
    "body_markdown": "First part of the series...",
    "published": true,
    "series": "React Hooks Deep Dive",
    "tags": ["react", "javascript", "hooks"]
  }
}

Then run:

curl -s -X POST "https://dev.to/api/articles" -H "api-key: $DEVTO_TOKEN" -H "Content-Type: application/json" -d @/tmp/devto_request.json | jq '{url}'

Guidelines

  1. Max 4 tags: Dev.to limits articles to 4 tags
  2. Lowercase tags: Tags should be lowercase without spaces
  3. Escape markdown: Use jq -Rs to properly escape markdown content
  4. Cover images: Must be URLs, not local files
  5. Draft first: Set published: false to review before publishing
  6. Check response: Always verify the returned URL

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Antigravity

29.85%
按下载量换算93

Claude Code

22.08%
按下载量换算69

Gemini CLI

16.78%
按下载量换算52

OpenCode

11.16%
按下载量换算35

kilo

7.65%
按下载量换算24

windsurf

3.6%
按下载量换算11

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills