Agent skill

Zhihu

by sigcli in sigcli/sigcli

Interact with Zhihu (zhihu.com) — browse hot questions, read answers, search content, view topics, check user profiles.

MITAuto-check passed

Install Zhihu

skills CLI
$ npx skills add sigcli/sigcli --skill zhihu -a claude-code

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

GitHub CLI
$ gh skill install sigcli/sigcli zhihu --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/sigcli/sigcli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/zhihu .claude/skills/zhihu && 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
GitHub stars
293
Token cost
~1.7k tokens
SKILL.md length
589 words
Files
15 (incl. scripts, references)
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

Interact with Zhihu (zhihu.com) — browse hot questions, read answers, search content, view topics, check user profiles.

  • Works in 5 steps: Read /references/provider-config.yaml → Append the provider block to… → Ask the user: "Do you need a proxy to… → …
  • The user mentions Zhihu
  • SKILL.md covers Skill Directory, Setup (run FIRST — every time,…, Running Scripts and Scripts Reference, plus 3 more sections
  • Runs Python scripts from its folder

What it does

Zhihu is an agent skill from sigcli/sigcli. Interact with Zhihu (zhihu.com) — browse hot questions, read answers, search content, view topics, check user profiles. Use this skill whenever the user mentions Zhihu, 知乎, zhihu.com, wants to browse Chinese Q&A content, read Zhihu answers, search Zhihu questions, check Zhihu hot list, or look up Zhihu users/topics. Also trigger when the user pastes a Zhihu URL (e.g. zhihu.com/question/12345), mentions a Zhihu topic, or asks about Chinese knowledge sharing platforms.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including scripts and reference files (for example `references/provider-config.yaml`, `scripts/zhihu_answer.py` and `scripts/zhihu_client.py`).

The repository describes itself as: The authentication CLI & Proxy for AI agents. Give agents access, not your credentials. The licence is MIT.

When your agent uses it

  • The user mentions Zhihu
  • Wants to browse Chinese Q&A content
  • Read Zhihu answers
  • Search Zhihu questions

Example prompts

  • “/zhihu”

Requirements

  • Python 3

Workflow steps

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

  1. Read /references/provider-config.yaml
  2. Append the provider block to ~/.sig/config.yaml under providers
  3. Ask the user: "Do you need a proxy to access this site?" — if yes, add networkProxy: under the provider in config.yaml
  4. Run sig login zhihu (with --network-proxy if proxy was specified)
  5. Verify: run sig status zhihu again — must show valid: true before proceeding

What it can do on your machine

Read from SKILL.md and the folder at commit 9ba8b35. 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 7 files in scripts/ (Python), which the agent can run.

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

  • Network

    No URLs in SKILL.md.

    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 loads about 1.7k tokens when it runs, and up to ~1.9k if it reads all its reference files. Until then it costs about 119 tokens; SKILL.md has 589 words of instructions outside code blocks.

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

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 sigcli/sigcli at commit 9ba8b35, republished under its MIT licence (© sigcli). 589 words, ~1,733 tokens.

Download SKILL.mdSave it as .claude/skills/zhihu/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.
name
zhihu
description
Interact with Zhihu (zhihu.com) — browse hot questions, read answers, search content, view topics, check user profiles. Use this skill whenever the user mentions Zhihu, 知乎, zhihu.com, wants to browse Chinese Q&A content, read Zhihu answers, search Zhihu questions, check Zhihu hot list, or look up Zhihu users/topics. Also trigger when the user pastes a Zhihu URL (e.g. zhihu.com/question/12345), mentions a Zhihu topic, or asks about Chinese knowledge sharing platforms.

Zhihu

Browse, search, read, and interact with Zhihu — China's largest Q&A platform.

Skill Directory

<SKILL_DIR> is the directory containing this SKILL.md file. Determine it ONCE at the start and reuse it.

Setup (run FIRST — every time, before any operation)

You MUST complete this setup before running any script. Do NOT skip this step.

bash
sig status zhihu 2>&1

Check the JSON output fields configured and valid:

  • configured: false → run Provider Setup below. Do NOT proceed without completing it.
  • valid: false (but configured: true) → run sig login zhihu, then re-check.
  • valid: true → detect proxy (see below), then execute the user's request.
Provider Setup
  1. Read <SKILL_DIR>/references/provider-config.yaml
  2. Append the provider block to ~/.sig/config.yaml under providers:
  3. Ask the user: "Do you need a proxy to access this site?" — if yes, add networkProxy: <url> under the provider in config.yaml
  4. Run sig login zhihu (with --network-proxy <url> if proxy was specified)
  5. Verify: run sig status zhihu again — must show valid: true before proceeding
Proxy Detection (after provider is valid)
bash
grep -A15 "^\s*zhihu:" ~/.sig/config.yaml | grep networkProxy | awk '{print $2}'

If this outputs a URL, prefix ALL python3 commands with HTTPS_PROXY=<url> HTTP_PROXY=<url>. If using socks5, convert to socks5h for python (e.g. socks5://... → socks5h://...). If empty, no proxy needed.

Running Scripts

All scripts require setup to be completed first (see above).

All operations — use sig run to inject cookie (required for all Zhihu endpoints):

bash
sig run zhihu -- bash -c 'python3 <SKILL_DIR>/scripts/zhihu_hot.py --cookie "$SIG_ZHIHU_COOKIE" --limit 10'

Env var: SIG_ZHIHU_COOKIE

On auth error (401/403): run sig login zhihu automatically (no user prompt), then retry.

Scripts Reference

All scripts are in this skill's scripts/ directory. Run via Bash tool.

Read Operations
ScriptPurposeAuth
zhihu_hot.pyHot list (知乎热榜)Required
zhihu_question.pyQuestion answers + infoRequired
zhihu_answer.pySingle answer detailRequired
zhihu_search.pySearch questions/topics/peopleRequired
zhihu_member.pyUser profile + answersRequired
zhihu_topic.pySearch topics by keywordRequired
zhihu_hot.py
--cookie COOKIE       Zhihu session cookie (required)
--limit N             Max items (default: 50)
zhihu_question.py
--cookie COOKIE       Zhihu session cookie (required)
--id ID               Question ID (required)
--answers-limit N     Max answers to fetch (default: 10)
--sort SORT           Sort answers: "default" or "created" (default: "default")

Note: Question title and ID are extracted from the answers endpoint since Zhihu's question detail API is protected by anti-crawler measures.

zhihu_answer.py
--cookie COOKIE       Zhihu session cookie (required)
--id ID               Answer ID (required)
zhihu_search.py
--cookie COOKIE       Zhihu session cookie (required)
--query TEXT          Search query (required)
--type TYPE           Search type: "general", "topic", or "people" (default: "general")
--limit N             Max results (default: 20)
zhihu_member.py
--cookie COOKIE       Zhihu session cookie (required)
--url-token NAME      Member URL token (required)
--include-answers     Also fetch member's recent answers (flag)
zhihu_topic.py
--cookie COOKIE       Zhihu session cookie (required)
--query TEXT          Topic search query (required)
--limit N             Max results (default: 10)

Note: Direct topic detail API is protected by anti-crawler. This script searches topics by keyword instead.

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

Key Concepts

Questions — The core unit on Zhihu. Each question has a title, detail, and a list of answers. Found in URLs like zhihu.com/question/12345. Get from hot list or search results, then use with zhihu_question.py.

Answers — Responses to questions, ranked by votes. Each answer has content, vote count, and author info. Use zhihu_answer.py to fetch a single answer by ID.

Hot List (知乎热榜) — Zhihu's trending questions, ranked by heat score. Use zhihu_hot.py to browse.

Topics — Zhihu organizes content into topics (like tags). Examples: AI, programming, science. Use zhihu_topic.py to search topics by keyword.

Members — User profiles identified by url_token (found in URLs like zhihu.com/people/zhang-san). Use zhihu_member.py to view profile and answers.

Search — Zhihu supports searching across questions, topics, and people. Use zhihu_search.py with the --type flag to filter.

Error Handling

ErrorCauseFix
401 UnauthorizedSession expired / no cookieAuto-run sig login (no user prompt needed), retry
403 ForbiddenAnti-crawler or rate limitWait and retry, or check cookie
404 Not FoundInvalid IDCheck question/answer ID
RATE_LIMITEDToo many requestsWait and retry

Workflow Examples

Browse hot questions
  1. sig run zhihu -- bash -c 'python3 <SKILL_DIR>/scripts/zhihu_hot.py --cookie "$SIG_ZHIHU_COOKIE" --limit 10'
Read a question and its answers
  1. sig run zhihu -- bash -c 'python3 <SKILL_DIR>/scripts/zhihu_question.py --cookie "$SIG_ZHIHU_COOKIE" --id 20010554 --answers-limit 5'
Search for content
  1. sig run zhihu -- bash -c 'python3 <SKILL_DIR>/scripts/zhihu_search.py --cookie "$SIG_ZHIHU_COOKIE" --query "machine learning" --type general --limit 10'
View a user profile
  1. sig run zhihu -- bash -c 'python3 <SKILL_DIR>/scripts/zhihu_member.py --cookie "$SIG_ZHIHU_COOKIE" --url-token zhang-san --include-answers'
Search topics
  1. sig run zhihu -- bash -c 'python3 <SKILL_DIR>/scripts/zhihu_topic.py --cookie "$SIG_ZHIHU_COOKIE" --query "Python" --limit 5'

© sigcli, 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 14 other files (scripts, references) in skills/zhihu of sigcli/sigcli.

  • SKILL.md
  • references/provider-config.yaml
  • scripts/zhihu_answer.py
  • scripts/zhihu_client.py
  • scripts/zhihu_hot.py
  • scripts/zhihu_member.py
  • scripts/zhihu_question.py
  • scripts/zhihu_search.py
  • scripts/zhihu_topic.py
  • tests/test_zhihu_answer.py
  • tests/test_zhihu_hot.py
  • tests/test_zhihu_member.py
  • tests/test_zhihu_question.py
  • tests/test_zhihu_search.py
  • tests/test_zhihu_topic.py

Open the folder on GitHubat commit 9ba8b35

Compare with similar skills

Zhihu 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Zhihu this skillsigcli/sigcli293—~1.7kAutomated safety check: PassMIT
Skill Zhihu AnswerZJU-REAL/Easel3.2k—~1.2kAutomated safety check: PassApache-2.0
Remotion Interactivityremotion-dev/remotion62k5 repos~4.8kAutomated safety check: PassCustom licence
Browseyc-software/qm15k—~4kAutomated safety check: PassMIT
Firecrawl Interact Integrationfirecrawl/firecrawl190k1 repos~731Automated safety check: PassISC
Interaction To Next Paintthedaviddias/Front-End-Checklist74k—~441Automated safety check: PassMIT

Similar skills

  • Skill Zhihu Answer

    ZJU-REAL/Easel

    知乎问答回答发布:在知乎问题下发布原创回答——搜热门问题、检查可答性、写内容、 Playwright 发布(绕 header 遮挡 + JS 遍历发布按钮)。当用户说"回答知乎问题""在知乎问答下回答" "发知乎回答""知乎答题""帮我回答这个知乎问题""批量回答知乎"时使用。与 skill-zhihu-publisher 区别:那个发专栏文章(zhuanlan),本 SKILL…

    3.2k GitHub stars~1.2k tokensUpdated today
    Writing & ContentAuto-check passed
  • Remotion Interactivity

    remotion-dev/remotion

    Official

    Structure Remotion markup for interactivity. An agent skill from remotion-dev/remotion.

    62k GitHub starsUsed in 5 repos~4.8k tokens
    Media & CreativeAuto-check passed
  • Browse

    yc-software/qm

    Drive a real stealth browser from your shell — act on websites (order food, file an expense, pull data behind a login), with per-person persistent sign-ins via the provider's managed auth (Kernel…

    15k GitHub stars~4k tokensUpdated today
    Auto-check passed
  • Guides adding Firecrawl's /interact endpoint to product code for pages that need clicks, forms, pagination or logged-in flows beyond plain scraping.

    190k GitHub starsUsed in 1 repo~731 tokens
    Data & AnalyticsAuto-check passed
  • Interaction To Next Paint

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing slow page loads, heavy assets, or rendering delays related to Optimize interaction to next paint.

    74k GitHub stars~441 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Create Issue Interaction UI

    paperclipai/paperclip

    Add a new Paperclip issue-thread interaction kind end-to-end.

    99k GitHub stars~3.4k tokensUpdated today
    Testing & QAAuto-check passed

More from sigcli/sigcli

All 15 skills in this repo
  • Bilibili

    sigcli/sigcli

    Interact with Bilibili (B站) — browse trending videos, view video details, read comments, search videos and users, view user profiles, like, coin, and favorite videos.

    293 GitHub starsUsed in 1 repo~2.8k tokens
    Auto-check passed
  • Hackernews

    sigcli/sigcli

    Interact with Hacker News (news.ycombinator.com) — browse top, new, and best stories, read item details and comment threads, look up user profiles, and search posts via Algolia.

    293 GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Linkedin

    sigcli/sigcli

    Interact with LinkedIn — view your profile, browse other profiles, read the feed, search jobs/posts/people, get job details, create posts, like/unlike posts, comment, send connection requests, and…

    293 GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check passed
  • Outlook

    sigcli/sigcli

    Interact with Outlook email — read inbox, send emails, search messages, reply/forward, manage folders, download attachments.

    293 GitHub starsUsed in 1 repo~2.6k tokens
    Auto-check passed
  • Reddit

    sigcli/sigcli

    Interact with Reddit — browse subreddits, read posts and comments, search content, view user profiles, post comments, vote, save posts, subscribe to subreddits.

    293 GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check passed
  • Slack

    sigcli/sigcli

    Interact with Slack — read channels, search messages, check unreads, send messages, manage reactions, and look up users.

    293 GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed

Questions about Zhihu

What does Zhihu do?

Interact with Zhihu (zhihu.com) — browse hot questions, read answers, search content, view topics, check user profiles. Zhihu is an agent skill from sigcli/sigcli.com) — browse hot questions, read answers, search content, view topics, check user profiles.

When should I use Zhihu?

Zhihu fits situations like: the user mentions Zhihu; wants to browse Chinese Q&A content; read Zhihu answers; search Zhihu questions.

How do I install Zhihu in Claude Code?

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

How do I install Zhihu in Codex?

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

Can I use Zhihu 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 sigcli/sigcli --skill zhihu -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, .gemini/skills/zhihu, .github/skills/zhihu and .opencode/skills/zhihu in your project.

What does Zhihu need to run?

Going by SKILL.md and its folder, Zhihu needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Zhihu access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Zhihu 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 use?

Zhihu 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 use?

About 1.7k tokens (SKILL.md is roughly 6.9k 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 126 tokens, read only when the agent opens those files.

What are the alternatives to Zhihu?

Skills that share tags, products or a category with Zhihu: Skill Zhihu Answer (ZJU-REAL/Easel, 3.2k stars), Remotion Interactivity (remotion-dev/remotion, 62k stars), Browse (yc-software/qm, 15k stars) and Firecrawl Interact Integration (firecrawl/firecrawl, 190k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Zhihu?

sigcli (a GitHub organization) maintains it in sigcli/sigcli, which has 293 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on September 28, 2026.

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