Quickstart

From javimosch/supercli · View interactive version

Quickstart is an AI agent skill from the GitHub repository javimosch/supercli. 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.

How to use this skill

Skill file

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

Setup

  1. Get your Dev.to API key:
  1. Install the plugin:

```bash

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:

Agent Usage Pattern

When writing an article for a user:

  1. Draft the content in Markdown format
  2. Choose appropriate tags (max 4) relevant to the content
  3. Publish using the command:

```bash

sc devto article publish --api-key "your-api-key" --title "Article Title" --body-markdown "<markdown content>" --tags "tag1,tag2,tag3,tag4"

```

  1. Verify by checking the returned URL

Best Practices

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

Common Publishing Pitfalls

1. Markdown escaping issues

2. Tag format errors

3. Title duplication

4. Content length limits

5. Image handling

6. Code block formatting

7. Draft vs Published confusion

8. Rate limiting

9. Character encoding

10. URL and link validation

Troubleshooting

Error: "unauthorized" or 401

Error: "Tag list exceed the maximum of 4 tags"

Error: "Title has already been used in the last five minutes"

Error: 429 Too Many Requests

Error: 400 Bad Request

Dev.to API Limits

Related Commands

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.