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.
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-publishRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Harzva/learn-likecc /tmp/learn-likecc && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/learn-likecc/.claude/skills/zhihu-publish ~/.gemini/antigravity-cli/skills/zhihu-publishAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
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.
