Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

zhihu-publish

Skill by Harzva

Publishes Markdown articles to Zhihu using the repo-local browser-automation scripts in wemedia/zhihu/. It is for maintainers of this repo who publish technical articles to Zhihu's web editor.

  • Score 56
  • 57 stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install zhihu-publish

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Harzva/learn-likecc /tmp/learn-likecc && mkdir -p ~/.claude/skills && cp -r /tmp/learn-likecc/.claude/skills/zhihu-publish ~/.claude/skills/zhihu-publish

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install zhihu-publish in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill runs the repo-local Zhihu publishing scripts to publish Markdown articles through Zhihu's web editor. It offers a text-only script, a multimodal script that uploads Markdown images into the editor while keeping block order, and an edit script that overwrites an existing article in place. Login is handled with a cookies.json file, and the skill includes a check that the cookies still work.

The skill explains which script to choose, what prerequisites to verify, and how to fall back to text publishing if the multimodal path fails. It also describes a compact spacing style, a copy audit before publishing, and a known human-verification problem in headless mode. It is written for maintainers of this repo who publish articles to Zhihu.

Written from the project's SKILL.md and checked against it.

What it can do

  • Text-only publishingPublishes a Markdown article with publish_article_text.js, described as the safest baseline.
  • Multimodal publishingUploads Markdown images into the Zhihu editor with publish_article_multimodal.js and keeps block order.
  • Overwrite existing articleUpdates a published Zhihu article in place by article ID using edit_article_multimodal.js.
  • Cookie login checkVerifies whether the cookies.json file still works for Zhihu login.
  • Spacing layout baselineApplies a compact paragraph and image spacing style validated on a previous Zhihu article.
  • Pre-publish copy auditRuns a local copy diagnosis script that can return BLOCK and stop publishing until copy is fixed.

What you need

  • A cookies.json file for Zhihu login in wemedia/zhihu/
  • Node.js to run the publishing scripts
  • Python 3 for the copy audit and cookie helper scripts
  • A graphical display or xvfb-run for non-headless runs

Try asking

  • Publish wemedia/zhihu/articles/my-article.md to Zhihu as text only.
  • Publish my Markdown article with local images to Zhihu using the multimodal script.
  • Overwrite the Zhihu article with ID 2025288497372643675 using my edited Markdown file.

Good to know

  • Zhihu bot detection can redirect headless runs to a human verification page.
  • Multimodal publishing may fail, in which case the skill recommends text publishing instead.
  • Paths in the skill point to one specific local machine layout.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/zhihu-publish/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to zhihu-publish

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

zhihu-publish: common questions

Does this work in headless mode?

The source says Zhihu often triggers a human verification page in headless mode. It suggests setting headless to false, using xvfb-run on a server, or publishing manually.

What happens if image upload fails?

The skill says to fall back to text publishing rather than blocking the whole task.

Can it update an article that is already published?

Yes. edit_article_multimodal.js overwrites an existing Zhihu article by its article ID, so the old URL is kept.

How do I install zhihu-publish?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is zhihu-publish free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is zhihu-publish safe to use?

It scores 56 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to zhihu-publish?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

zhihu-publish Install

Add to stack

Loading.