CSDN Publisher for Openclaw

An advanced AI agent skill for generating high-quality technical articles and automating the publishing process on CSDN.

c4chuan
v2.3.0
Feb 14, 2026
2
3.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install csdn-publisher

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install csdn-publisher using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is CSDN Publisher?

CSDN Publisher is a comprehensive automation tool designed for developers and technical writers who want to maintain a consistent presence on CSDN without the manual overhead. It integrates a professional writing methodology that focuses on high-quality, personal-style technical content rather than generic AI output. As a featured part of the Openclaw Skills ecosystem, it leverages browser automation to navigate the CSDN editor, handle authentication, and ensure your content is formatted perfectly.

The skill excels at capturing a specific technical voice by referencing local style guides and existing article examples. By utilizing headless browser technology and robust session management, it provides a reliable bridge between local Markdown drafts and the live CSDN platform, allowing for a fully automated content pipeline.

CSDN Publisher Use Cases

  • Automatically drafting technical tutorials and devlogs based on project notes.
  • Generating and publishing daily technical news summaries with built-in deduplication.
  • Managing multiple CSDN accounts via remote QR code login through Telegram.
  • Ensuring consistent branding and writing style across a series of technical blog posts.

How CSDN Publisher Works

  1. The agent gathers themes, raw materials, or research links from the user.
  2. It analyzes the style-guide-cn.md and existing examples to calibrate the writing tone.
  3. A local Markdown draft is generated and saved to a temporary directory as a fail-safe.
  4. The system checks CSDN login status and initiates a remote QR code login flow via Telegram if needed.
  5. A headless browser is launched using Playwright to access the CSDN Markdown editor.
  6. The content is injected into the editor using a specialized Chrome DevTools Protocol (CDP) script to bypass character limits.
  7. The agent configures tags, sets article metadata, and triggers the final publication.

CSDN Publisher Setup

First, ensure Chrome and the necessary Python dependencies are installed on your environment:

# Install Google Chrome
curl -sL "https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm" -o chrome.rpm
yum install -y ./chrome.rpm

# Install Playwright and dependencies
pip install playwright
playwright install chromium

Configure your browser settings within the Openclaw Skills framework to support headless execution:

# Update gateway configuration
{"browser": {"headless": true, "noSandbox": true}}

CSDN Publisher Data Schema & Taxonomy

The skill manages several key files and directories to ensure persistence and style consistency:

File/Path Purpose
~/.openclaw/workspace/credentials/csdn-cookie.json Persistent session cookies for automated login.
scripts/inject-content.js Core script for injecting Markdown via CDP.
style-guide-cn.md The primary reference for technical writing style and formatting.
examples/ A directory of finalized articles used for few-shot learning style calibration.
/tmp/csdn-article-YYYY-MM-DD.md Local fail-safe storage to prevent data loss during publishing.

CSDN Publisher Advanced Features

  • Semantic News Deduplication: Uses Notion API scripts to check if news items have already been published within the last 14 days.
  • Headless Authentication: Supports Telegram notifications for QR code login, allowing remote management without VNC access.
  • CDP Content Injection: Bypasses standard browser automation limits to handle extremely long technical articles efficiently.
  • Reliable Retry Logic: Implements health checks and automatic browser restarts to ensure Openclaw Skills reliability even under poor network conditions.

SKILL.md


Loading

Related Openclaw Skills

Featured*