Agent skill

Zhihu Publish

by bifrost-proxy in bifrost-proxy/bifrost

Publish Markdown articles to Zhihu Columns through authentication context recovered locally from Bifrost traffic and a built-in publish payload schema, save drafts, prevent duplicate posts, and…

MITAuto-check passedProductivity & Automation

Install Zhihu Publish

skills CLI
$ npx skills add bifrost-proxy/bifrost --skill zhihu-publish -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bifrost-proxy/bifrost zhihu-publish --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bifrost-proxy/bifrost.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/zhihu-publish .claude/skills/zhihu-publish && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
zhihu-publish
GitHub stars
160
Token cost
~1.5k tokens
SKILL.md length
639 words
Files
10 (incl. scripts, references)
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Publish Markdown articles to Zhihu Columns through authentication context recovered locally from Bifrost traffic and a built-in publish payload schema, save drafts, prevent duplicate posts, and…

  • Works in 5 steps: Find recent Zhihu draft and publish… → Read only their authentication and… → Create or resume a draft, then update… → …
  • The user asks to create
  • SKILL.md covers Prepare the article, Preview, Save a draft or publish and Verify the live article, plus 2 more sections
  • Runs JavaScript scripts from its folder; calls node and python3; reaches zhuanlan.zhihu.com and zhihu.com

What it does

Zhihu Publish is an agent skill from bifrost-proxy/bifrost. Publish Markdown articles to Zhihu Columns through authentication context recovered locally from Bifrost traffic and a built-in publish payload schema, save drafts, prevent duplicate posts, and verify the live title/body without browser automation. Use when the user asks to create, preview, save, publish, repost, or验收 a 知乎/知乎专栏/Zhihu article, or automate future Zhihu article releases from Markdown.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/article.template.md` and `references/traffic-contract.md`).

It sits in Productivity & Automation, covering Browser automation and Authentication. The repository describes itself as: Bifrost 是一个用 Rust 编写的高性能、AI 友好的代理服务器,它提供强大的请求拦截、修改和规则配置能力,支持 TLS 解密、脚本扩展等高级功能,支持强大的模糊搜索,支持导入导出分享,支持一键重放请求,支持Coding Agent 自主管理。提供类似 postman 的请求管理和验证能力,无缝和代理能力集成。 The licence is MIT.

When your agent uses it

  • The user asks to create
  • Or验收 a 知乎/知乎专栏/Zhihu article
  • Automate future Zhihu article releases from Markdown

Example prompts

  • “/zhihu-publish”

Requirements

  • Python 3
  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Find recent Zhihu draft and publish requests with bifrost search.
  2. Read only their authentication and endpoint-specific signing headers locally with bifrost traffic get.
  3. Create or resume a draft, then update title and HTML content.
  4. Assemble the built-in publish payload schema with the new draft ID, title, content, disclosure settings, and trace ID.
  5. Publish and store only IDs, URL, and a content hash in local state.

What it can do on your machine

Read from SKILL.md and the folder at commit e8ed138. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 6 files in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • zhuanlan.zhihu.com
    • zhihu.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Zhihu Publish loads about 1.5k tokens when it runs, and up to ~2.2k if it reads all its reference files. Until then it costs about 104 tokens; SKILL.md has 639 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~104
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from bifrost-proxy/bifrost at commit e8ed138, republished under its MIT licence (© bifrost-proxy). 639 words, ~1,532 tokens.

Download SKILL.mdSave it as .claude/skills/zhihu-publish/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
zhihu-publish
description
Publish Markdown articles to Zhihu Columns through authentication context recovered locally from Bifrost traffic and a built-in publish payload schema, save drafts, prevent duplicate posts, and verify the live title/body without browser automation. Use when the user asks to create, preview, save, publish, repost, or验收 a 知乎/知乎专栏/Zhihu article, or automate future Zhihu article releases from Markdown.

Zhihu Publish

Use the bundled scripts for deterministic publishing. Do not operate Chrome or another browser through UI automation. Read only authentication and endpoint-specific signing context from Bifrost traffic. The stable publish payload schema is built into the script; never read a captured request body as a reusable template.

Never print or save Cookie values, XSRF tokens, x-zse-*, x-zst-*, raw request headers, or unredacted Bifrost traffic.

Prepare the article

Copy article.template.md and fill title. The remaining fields are optional.

  • Start the body with the introduction or an H2; do not repeat the title as an H1.
  • Keep one source file per intended article so duplicate prevention remains stable.
  • Existing frontmatter fields for another platform are allowed and ignored.
  • The renderer supports headings, paragraphs, lists, links, images, inline code, fenced code blocks, blockquotes, emphasis, and horizontal rules.
  • Images may use HTTP(S), a local JPEG/PNG/GIF/WebP/BMP path relative to the article, an absolute local image path, or a matching base64 data URI. Live writes transfer every non-Zhihu image to Zhihu first; SVG and files over 20 MiB are rejected.

Read traffic-contract.md only when diagnosing a Zhihu API or capture change.

Preview

Always run a dry run before a live write:

bash
.agents/skills/zhihu-publish/scripts/zhihu-publish \
  --article /absolute/path/article.md \
  --dry-run

Confirm the title, Markdown/HTML character counts, action, duplicate state, and image counts. Dry-run never uploads an image.

Check the captured authentication/signing state without exposing credentials:

bash
.agents/skills/zhihu-publish/scripts/zhihu-publish --check-auth

Save a draft or publish

Use --draft-only for a Zhihu draft. Use --publish only when the user explicitly requests publication.

bash
.agents/skills/zhihu-publish/scripts/zhihu-publish \
  --article /absolute/path/article.md \
  --draft-only

.agents/skills/zhihu-publish/scripts/zhihu-publish \
  --article /absolute/path/article.md \
  --publish

The script performs the captured workflow:

  1. Find recent Zhihu draft and publish requests with bifrost search.
  2. Read only their authentication and endpoint-specific signing headers locally with bifrost traffic get.
  3. Create or resume a draft, then update title and HTML content.
  4. Assemble the built-in publish payload schema with the new draft ID, title, content, disclosure settings, and trace ID.
  5. Publish and store only IDs, URL, and a content hash in local state.

Treat already_published as successful duplicate prevention. Do not use --force-new unless the user explicitly wants a second post from the same source.

To change the same already-published article, require explicit user intent and pass --update-existing:

bash
.agents/skills/zhihu-publish/scripts/zhihu-publish \
  --article /absolute/path/article.md \
  --publish \
  --update-existing

To adopt a known existing Zhihu article into the local idempotency state, require explicit user intent and pass its numeric ID. This is useful for replacing a temporary protocol-probe article without editing the state file by hand:

bash
.agents/skills/zhihu-publish/scripts/zhihu-publish \
  --article /absolute/path/article.md \
  --publish \
  --update-existing \
  --article-id 1234567890

The live workflow uploads remote images through POST /api/uploaded_images, uploads local/data images as multipart picture, accepts only HTTPS URLs on Zhihu's allowlisted upload hosts (*.zhimg.com or the exact pic-private.zhihu.com host), and emits standalone images as <figure> nodes before saving or publishing. The private upload URL is temporary; Zhihu must rewrite the published article to stable *.zhimg.com content.

Show full SKILL.md (192 more words)Show less

Verify the live article

After publishing, compare the rendered title and body with the source without browser automation:

bash
.agents/skills/zhihu-publish/scripts/zhihu-verify ARTICLE_ID \
  --article /absolute/path/article.md

The verifier reuses safe, local Bifrost request context to load Zhihu, normalizes rendered text, rejects a duplicated title at the start of the body, and requires the expected image count with every public image hosted on stable HTTPS *.zhimg.com. It returns status=verified only when text and images both match.

Authentication recovery

The scripts first reuse the newest valid Bifrost capture. If no usable capture exists, do not copy cookies manually. Ask the user to open the Zhihu editor and perform one normal save or publish while Bifrost is running, then retry.

For a bounded capture command, use:

bash
bifrost capture wait \
  --host zhuanlan.zhihu.com \
  --path /api/articles/drafts \
  --method POST \
  --timeout 5m \
  --format json

A formal publish also needs a recent POST www.zhihu.com/api/v4/content/publish capture because Zhihu supplies endpoint-specific signing headers. Its request body is not read or reused.

Safety and validation

  • Accept production API bases only on https://zhuanlan.zhihu.com and https://www.zhihu.com; allow loopback only for tests.
  • Never weaken assertions or retry validation errors as authentication failures.
  • Persist a new draft ID before updating it so interrupted runs resume without creating duplicates.
  • Verify the live page after every real publish.
  • Validate changes with:
bash
node --test .agents/skills/zhihu-publish/scripts/*.test.mjs
python3 /Users/eden_studio/.codex/skills/.system/skill-creator/scripts/quick_validate.py \
  .agents/skills/zhihu-publish

© bifrost-proxy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (scripts, references) in .agents/skills/zhihu-publish of bifrost-proxy/bifrost.

  • SKILL.md
  • agents/openai.yaml
  • references/article.template.md
  • references/traffic-contract.md
  • scripts/zhihu-publish
  • scripts/zhihu-publish.mjs
  • scripts/zhihu-publish.test.mjs
  • scripts/zhihu-verify
  • scripts/zhihu-verify.mjs
  • scripts/zhihu-verify.test.mjs

Open the folder on GitHubat commit e8ed138

Compare with similar skills

Zhihu Publish next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Zhihu Publish compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Zhihu Publish this skillbifrost-proxy/bifrost160—~1.5kAutomated safety check: PassMIT
BrowserBlackBeltTechnology/pi-agent-dashboard315—~2kAutomated safety check: PassApache-2.0
Agent BrowserHHU3637kr/skills145—~1.9kAutomated safety check: PassNone
Bitwarden Browser Aac Loginaiskillstore/marketplace433—~1.1kAutomated safety check: PassNone
Sap Browser Automationsecondsky/sap-skills462—~3.3kAutomated safety check: PassGPL-3.0
Xiaohongshu HubOpenMinis/MinisSkills446—~2.7kAutomated safety check: PassMIT

Similar skills

  • Browser

    BlackBeltTechnology/pi-agent-dashboard

    Browser automation via the agent-browser CLI. An agent skill from BlackBeltTechnology/pi-agent-dashboard.

    315 GitHub stars~2k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Agent Browser

    HHU3637kr/skills

    Headless browser automation for AI agents using agent-browser CLI.

    145 GitHub stars~1.9k tokensUpdated 17 days ago
    Productivity & AutomationAuto-check passed
  • Bitwarden Browser Aac Login

    aiskillstore/marketplace

    Use Bitwarden Agent Access CLI (aac) with agent-controlled browser login flows.

    433 GitHub stars~1.1k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Sap Browser Automation

    secondsky/sap-skills

    A skill your agent uses when an agent must inspect or operate an authenticated SAP web UI through an in-app Browser, Microsoft Edge CDP, or an existing Playwright client, especially when SAP SSO…

    462 GitHub stars~3.3k tokensUpdated 4 days ago
    Productivity & AutomationAuto-check passed
  • Xiaohongshu Hub

    OpenMinis/MinisSkills

    Skill for reading and writing Xiaohongshu (XHS) data using Python + UV.

    446 GitHub stars~2.7k tokensUpdated 2 days ago
    Productivity & AutomationAuto-check passed
  • Weibo Hub

    OpenMinis/MinisSkills

    A skill for reading and writing Weibo data with Python + UV.

    446 GitHub stars~1.8k tokensUpdated 2 days ago
    Productivity & AutomationAuto-check passed

More from bifrost-proxy/bifrost

All 9 skills in this repo
  • Juejin Publish

    bifrost-proxy/bifrost

    Publish Markdown articles and Bifrost capability series to Juejin, or verify with Microsoft Edge that a published Juejin page's title and body match the local Markdown.

    160 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Site Cookie Login

    bifrost-proxy/bifrost

    Open a target website, wait for user login, verify login with required cookies plus an HTTP probe, and save cookies into .env for later automation.

    160 GitHub stars~600 tokensUpdated today
    Auto-check: notes
  • Codex Task Inspector

    bifrost-proxy/bifrost

    Inspect Codex async task progress from the correct data directory.

    160 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • E2E Verify

    bifrost-proxy/bifrost

    面向 Bifrost 管理端的端到端 UI 与 API 验证工具. An agent skill from bifrost-proxy/bifrost.

    160 GitHub stars~730 tokensUpdated today
    Auto-check passed
  • GitHub Actions Pat

    bifrost-proxy/bifrost

    用 Personal Access Token 通过 GitHub REST API 分析 Actions CI 的失败 run/job/step、拉取日志、轮询运行状态、做 PR code review,并驱动 fix → push → watch → iterate 的闭环。Token 只从 GITHUBTOKEN 环境变量读取,不落盘、不回显。适合在 bifrost remote /…

    160 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Design Md

    bifrost-proxy/bifrost

    A skill your agent uses when changing Bifrost WebUI, desktop shell UI, public site, docs visual style, interaction patterns, layout, copy density, colors, typography, spacing, or component styling.

    160 GitHub stars~544 tokensUpdated today
    Auto-check passed

Questions about Zhihu Publish

What does Zhihu Publish do?

Publish Markdown articles to Zhihu Columns through authentication context recovered locally from Bifrost traffic and a built-in publish payload schema, save drafts, prevent duplicate posts, and…. Zhihu Publish is an agent skill from bifrost-proxy/bifrost. Publish Markdown articles to Zhihu Columns through authentication context recovered locally from Bifrost traffic and a built-in publish payload schema, save drafts, prevent duplicate posts, and verify the live title/body without browser automation.

When should I use Zhihu Publish?

Zhihu Publish fits situations like: the user asks to create; or验收 a 知乎/知乎专栏/Zhihu article; automate future Zhihu article releases from Markdown.

How do I install Zhihu Publish in Claude Code?

Run `npx skills add bifrost-proxy/bifrost --skill zhihu-publish -a claude-code`. Or copy the skill folder (.agents/skills/zhihu-publish in bifrost-proxy/bifrost) into .claude/skills/zhihu-publish in your project. Claude Code loads it when a task matches its description.

How do I install Zhihu Publish in Codex?

Run `npx skills add bifrost-proxy/bifrost --skill zhihu-publish -a codex`. Or copy the skill folder (.agents/skills/zhihu-publish in bifrost-proxy/bifrost) into .agents/skills/zhihu-publish in your project. Codex loads it when a task matches its description.

Can I use Zhihu Publish in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bifrost-proxy/bifrost --skill zhihu-publish -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/zhihu-publish, .gemini/skills/zhihu-publish, .github/skills/zhihu-publish and .opencode/skills/zhihu-publish in your project.

What does Zhihu Publish need to run?

Going by SKILL.md and its folder, Zhihu Publish needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node and python3). Our summary lists: Python 3; Node.js.

Does Zhihu Publish access the network?

SKILL.md names 2 domains. In commands or code: zhuanlan.zhihu.com and zhihu.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Zhihu Publish safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Zhihu Publish use?

Zhihu Publish is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Zhihu Publish use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 692 tokens, read only when the agent opens those files.

What are the alternatives to Zhihu Publish?

Skills that share tags, products or a category with Zhihu Publish: Browser (BlackBeltTechnology/pi-agent-dashboard, 315 stars), Agent Browser (HHU3637kr/skills, 145 stars), Bitwarden Browser Aac Login (aiskillstore/marketplace, 433 stars) and Sap Browser Automation (secondsky/sap-skills, 462 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Zhihu Publish?

bifrost-proxy (a GitHub user) maintains it in bifrost-proxy/bifrost, which has 160 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 10, 2026.

Source: bifrost-proxy/bifrost on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.