Skip to content
Development
Command

/publisher-devto

Generate Dev.to RSS feed from all blog posts for automatic syndication

From plugin
claude-code-templates
30k200 skills200 agents200 commands2 MCP
Install
$ npx -y skills add davila7/claude-code-templates --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/publisher-devto

Context preview

What this command does when you run it.

Generate Dev.to RSS feed from all blog posts for automatic syndication

Command definition

publisher-devto.md
allowed-tools: Read, Write, Bash, Glob
argument-hint:
description: Generate Dev.to RSS feed from all blog posts for automatic syndication

Dev.to RSS Feed Generator

Generate a complete RSS feed from all your blog posts for automatic import to Dev.to.

**Usage:** `/publisher:devto` (no arguments needed)

**What it does:**

  • Scans all blog posts in your codebase
  • Converts markdown to HTML
  • Generates RSS 2.0 feed with proper encoding
  • Creates `public/rss-devto.xml` file
  • Provides setup instructions for Dev.to

**Process:**

1. **Scan for Blog Posts**

  • Search codebase for markdown files
  • Common patterns:
  • `src/content/blog/**/*.md`
  • `content/blog/**/*.md`
  • `posts/**/*.md`
  • `blog/**/*.md`

2. **Parse Blog Posts**

  • Extract frontmatter (title, date, description, tags)
  • Convert markdown body to HTML
  • Encode HTML properly for RSS (CDATA sections)
  • Extract publication dates

3. **Generate RSS Feed**

  • Create valid RSS 2.0 XML structure
  • Include all blog posts as items
  • Add proper channel metadata
  • HTML-encode content for Dev.to compatibility

4. **Save Feed File**

  • Write to `public/rss-devto.xml`
  • Ensure proper XML formatting
  • Validate RSS structure

5. **Display Setup Instructions**

  • Show how to add RSS to Dev.to
  • Explain deployment requirements
  • Guide user through configuration

**One-time Setup:** 1. Run this command to generate RSS feed 2. Deploy your site (make RSS publicly accessible) 3. Go to https://dev.to/settings/extensions 4. Add your RSS URL (e.g., `https://yoursite.com/rss-devto.xml`) 5. Dev.to will auto-import all future posts

**Benefits:**

  • Automatic syndication to Dev.to
  • All future posts sync automatically
  • No manual copying required
  • Maintains original formatting
Read more
Ships withclaude-code-templates

Ready-to-use configurations for Anthropic's Claude Code. A comprehensive collection of AI agents, custom commands, settings, hooks, external integrations (MCPs), and project templates to enhance your development workflow.

Get the whole plugin, auto-invoked
Stats
30,155
Stars
18
Views
3,377
Forks
Active
Maintenance
Python
Language
MIT
License
1h ago
Last commit
1y ago
Created

Repo: davila7/claude-code-templates