juejin-publish

Automate Juejin article publishing via CodeMirror editor and DOM actions.

8.4k|1.4k|Updated Apr 24, 2024
One-click install
npx skills add https://github.com/TeamWiseFlow/wiseflow --skill juejin-publish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: juejin-publish
Source: https://github.com/TeamWiseFlow/wiseflow/tree/main/addons/officials/crew/selfmedia-operator/skills/juejin-publish
Command: npx skills add https://github.com/TeamWiseFlow/wiseflow --skill juejin-publish

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the repetitive, error-prone manual steps of publishing articles to Juejin by automating the browser workflow end-to-end.

Core Features & Use Cases

  • Online editor publishing automation: Opens the Juejin editor in the correct flow and injects your markdown into the CodeMirror editor (with an HTML textarea fallback).
  • Complete publishing form handling: Selects category, adds tags, uploads cover images, fills the summary (including the required manual path when auto-fill fails), and confirms publication.
  • Robust SPA workflow controls: Avoids the common redirect trap that can cause the second post to be injected into the wrong draft by always navigating via Juejin homepage → drafts/new and validating the URL/state.

Quick Start

When you request to publish an article to Juejin, prepare the title and markdown content as well as the cover image file, then let the Skill run the browser steps to inject the content and complete publishing.

Frequently Asked Questions about juejin-publish

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

FAQPage Schema
How do I automate publishing markdown articles to Juejin?

Automating Juejin publishing involves injecting markdown into the CodeMirror web editor, selecting categories, uploading covers, and confirming publication via browser DOM actions. This workflow handles metadata selection and SPA draft navigation to reliably reach the published URL.

What is the best way to handle CodeMirror initialization when automating article publishing?

Handling CodeMirror initialization requires using browser automation to invoke setValue on the CodeMirror instance, with an HTML textarea input fallback. This ensures your markdown body is correctly injected into the Juejin article editor.

Why does my automated Juejin publishing workflow inject content into the wrong draft?

Automated Juejin publishing injects content into the wrong draft due to SPA redirect traps. To avoid this, always navigate via Juejin homepage to drafts/new and validate the URL state before injecting markdown into the article editor.

How to upload cover images and add tags when automating Juejin web editor publishing?

Uploading covers and adding tags during Juejin publishing requires staged file uploads via /tmp/openclaw/uploads and DOM-driven click actions. The workflow selects categories, adds tags, and fills summaries, using a manual path if auto-fill fails.

Do I need to prepare markdown content and a cover image file before automating Juejin publishing?

Yes, Juejin publishing automation requires a prepared title, markdown body, and cover image file before execution. The workflow then triggers browser steps to inject content, select metadata, and confirm publication end-to-end.