publish-juejin

Publishes Simplified Chinese blog posts to Juejin via opencli browser automation.

1.0k|141|Updated Sep 18, 2022
One-click install
npx skills add https://github.com/childrentime/reactuse --skill publish-juejin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: publish-juejin
Source: https://github.com/childrentime/reactuse/tree/main/.claude/skills/publish-juejin
Command: npx skills add https://github.com/childrentime/reactuse --skill publish-juejin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Juejin (juejin.cn) has no public publishing API, so cross-posting Simplified Chinese blog articles to reach Chinese React developers previously required manual copy-paste into the editor. This Skill automates the entire publishing flow through opencli browser automation.

Core Features & Use Cases

  • Automated Draft Creation: Opens the Juejin draft editor, fills the React-controlled title input, and injects markdown body content through the CodeMirror setValue API so ByteMD syncs and auto-saves.
  • Full Publish Flow: Selects the required category (前端), picks existing tags from the byte-select dropdown (React.js, JavaScript), and clicks through the publish dialog to submission.
  • Verification & Review Handling: Confirms success via the page title, captures the draft ID, and dismisses the standard post-publish review-queue dialog.
  • Use Case: After committing a new reactuse.com blog post, say "发到掘金" to cross-post the prepared juejin.md Chinese translation as part of a multi-platform distribution run alongside dev.to, Medium, and Hashnode.

Quick Start

Publish the Chinese version of my latest blog post to Juejin using the prepared juejin.md file.

Frequently Asked Questions about publish-juejin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I publish a blog post to Juejin automatically?

Use opencli browser automation to open the Juejin draft editor, fill the title input with a native setter plus input event, and inject the markdown body through the CodeMirror setValue API. Then select a category, pick tags from the dropdown, and click the publish button.

Does Juejin have a public API for publishing articles?

No, Juejin does not offer a public publishing API. Publishing must be done through browser automation that drives the web editor, which is why this workflow uses opencli to control an authenticated Chrome session.

Why does filling the Juejin title input not trigger onChange?

The title input is React-controlled, so a plain value assignment never reaches React state. You must call the native HTMLInputElement value setter and dispatch an input event so React registers the change.

Why does pasting markdown into the Juejin editor body fail?

The ByteMD editor is backed by CodeMirror, which does not read from the hidden textarea. You must call the CodeMirror instance's setValue method so ByteMD syncs the content and triggers draft auto-save.

Can I create new tags when publishing on Juejin?

No, tags must be selected from existing options in the byte-select dropdown. Type the tag name to trigger the dropdown, then click the matching li.byte-select-option item; free-form tag input will not publish.

Why does my Juejin article show a review message after publishing?

A review-queue prompt after the "发布成功" title is Juejin's normal moderation flow, not an error. The article is submitted and will appear on your profile as juejin.cn/post/<id> once review passes.