← 返回 Skills 市场
Zhihu Cli
作者
Mei Zhihan
· GitHub ↗
· v0.2.5
· MIT-0
613
总下载
1
收藏
1
当前安装
8
版本数
在 OpenClaw 中安装
/install pyzhihu-cli
功能描述
知乎 CLI (pyzhihu-cli):搜索、热榜、问题/回答、发想法/提问/文章、删自己的内容、点赞关注、通知。Agent 代执行 zhihu 命令,Cookie 仅存本地。
安全使用建议
This skill appears coherent for controlling a locally installed Zhihu CLI. Before installing/using it: 1) Do not paste your cookies into chat; prefer QR scan login. If you must use cookie-based login, paste it only into a secure terminal, not into conversations/logs. 2) Verify you trust the pyzhihu-cli package source before pip installing. 3) Be aware the agent will read/write files under ~/.zhihu-cli and may copy the QR image into the OpenClaw workspace media folder and invoke `openclaw message send` — ensure your OpenClaw messaging channels are configured only if you trust them. 4) If you are uncomfortable with an agent running local commands or with automatic QR forwarding, avoid enabling autonomous invocation or run commands manually yourself. 5) Monitor for any accidental exposure of cookies and use `zhihu logout` to revoke sessions if needed.
功能分析
Type: OpenClaw Skill
Name: pyzhihu-cli
Version: 0.2.5
The skill bundle provides instructions for an AI agent to interface with the 'pyzhihu-cli' tool to manage Zhihu account activities. It includes well-defined mappings for commands like searching, posting, and notifications, and explicitly mandates that sensitive session cookies remain local and are never logged or exfiltrated. The use of shell commands (mkdir, cp) is strictly limited to handling the login QR code for user authentication via the OpenClaw media directory, which aligns with the stated functionality in SKILL.md.
能力评估
Purpose & Capability
The name/description (zhihu CLI helper) matches the instructions: all actions are executed by running the installed `zhihu` CLI and optionally copying a QR image for OpenClaw to send. No unrelated credentials, binaries, or cloud access are requested.
Instruction Scope
The SKILL.md instructs the agent to access local paths (~/.zhihu-cli/* and the OpenClaw workspace media folder), run `zhihu` commands (including login with a pasted cookie), and use `openclaw message send` to deliver QR images. These are within the stated purpose but involve reading/writing local files and sending media externally; the doc explicitly prohibits uploading cookie contents, but using cookie-based login or an incorrect copy command could expose sensitive data if mishandled.
Install Mechanism
Instruction-only skill with no install spec or code to write to disk. Installation recommendations are standard package installs (uv/pipx/pip) and are sensible for a Python CLI.
Credentials
The skill declares no environment variables, no credentials, and no config paths beyond the local ~/.zhihu-cli cookies and OpenClaw workspace paths needed for QR delivery. Those local paths are proportionate to the task.
Persistence & Privilege
always is false and the skill does not request system-wide changes or persistent presence beyond using the local `zhihu` CLI and optionally OpenClaw workspace. The skill will run local commands when invoked (normal for an instruction-only CLI helper).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pyzhihu-cli - 安装完成后,直接呼叫该 Skill 的名称或使用
/pyzhihu-cli触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.5
**No code changes, documentation update & simplification:**
- Simplified and restructured SKILL.md; removed lengthy explanations, focusing on concise rules and key usage mapping.
- Instruction scope, credential policy, and agent command mapping are now clearer and shorter.
- All agent rules and OpenClaw interaction steps are summarized into tables and lists for quick reference.
- Added/clarified quick-lookup table for command mapping: everyday Zhihu actions → zhihu-cli commands.
- Security reminders and update/installation instructions are more concise.
- No functional or behavioral changes to the skill logic or features.
v0.2.4
pyzhihu-cli skill v0.2.4 — Change Summary
- 明确声明前置依赖(zhihu CLI 必须已安装)、本地配置与凭证存储位置,提升环境要求可见性。
- 增补“前置条件与数据范围声明”与“可选集成与知情同意”,详细说明 Cookie、二维码文件及 OpenClaw 数据流出范围,强调仅在知情同意下读取并推送二维码。
- 强化扫码登录流程规范:“二维码发送”需先复制至 OpenClaw 工作目录的 media 文件夹,不能直接用原路径,保障环境兼容性与规范性。
- 细化 OpenClaw 发送流程及命令示例,覆盖 login_qrcode.png 文件操作的具体步骤,包括 media 文件夹的创建约定。
- 其他命令、能力等整体未变,技术细则与合规声明更为完备。
v0.2.3
- Major update to skill rules and documentation, especially around login and upgrade flows.
- Added explicit instructions for handling zhihu-cli/pyzhihu-cli upgrades with uv, pipx, or pip, and for recognizing user requests to update.
- Added section on using OpenClaw for sending images (e.g., QR code for login) or text to users, with concrete commands and best practices.
- Clarified login process: must check and send QR code to user via OpenClaw, not just terminal; expanded rules for what to do if user requests re-login.
- Shortened/streamlined overall documentation and task flows for clarity and easier use.
v0.2.2
Version 0.2.2
- Improved Agent rules for login via QR code: Agent must check and ensure the QR code image is sent to the user before waiting for scan confirmation.
- Clarified that the login process must not be interrupted once started; Agent should not kill or replace the login process until it completes.
- Added guidelines to prevent launching concurrent or duplicate login processes during active authentication.
- Emphasized QR code must be sent from file, not just displayed in terminal; avoids user confusion and enhances login reliability.
- Refined security instructions and agent standard operating procedures for a safer and more consistent user login experience.
v0.2.1
Version 0.2.1
- Added detailed Agent operation rules and standardized procedure for mapping user requests to zhihu CLI commands.
- Documented that after executing `zhihu login --qrcode`, the QR code image is auto-saved at `~/.zhihu-cli/login_qrcode.png` for agent-assisted login.
- Enhanced security guidelines: cookies are always local, never uploaded or exposed; agents must guide users to prefer QR code login.
- Elaborated error handling and response formatting for agent scenarios.
- Updated project architecture to reflect version `0.2.1` in code comments.
v0.2.0
- 支持二维码扫码登录无需 Playwright,完全基于 requests + qrcode 库。
- 创作类命令(ask, pin, article)支持添加图片(-i 参数),正文全面支持 HTML 富文本格式。
- 在说明文档中新增富文本与多图创作的完整用例与细节说明。
- 建议信息/内容类查询命令使用 --json 参数获取更丰富原始数据。
- README/文档细节优化,突出新登录方式与图片、富文本支持点。
v0.1.1
**Skill pyzhihu-cli version 0.1.1 changelog**
- Added new publishing commands: `ask` (post question), `pin` (post idea), and `article` (post article).
- Expanded the list of supported CLI subcommands to 23, now including creation/publishing features in addition to content browsing.
- Updated documentation to include usage and options for new creation commands.
- Updated the project architecture section to reflect the addition of new commands and API methods.
v0.1.0
Initial release of zhihu-cli (pyzhihu-cli):
- Provides a full-featured Python CLI tool for browsing Zhihu content from the terminal, including 20+ subcommands.
- Supports login via QR code (Playwright) or manual cookie, with secure local storage.
- Includes commands for search, hot list, viewing questions/answers, user info, follow/vote actions, collections, notifications, and more—all with JSON output support.
- Modular architecture separating API, CLI commands, display formatting, and authentication logic.
- Comprehensive usage, installation, and architecture documentation.
元数据
常见问题
Zhihu Cli 是什么?
知乎 CLI (pyzhihu-cli):搜索、热榜、问题/回答、发想法/提问/文章、删自己的内容、点赞关注、通知。Agent 代执行 zhihu 命令,Cookie 仅存本地。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 613 次。
如何安装 Zhihu Cli?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pyzhihu-cli」即可一键安装,无需额外配置。
Zhihu Cli 是免费的吗?
是的,Zhihu Cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Zhihu Cli 支持哪些平台?
Zhihu Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Zhihu Cli?
由 Mei Zhihan(@baiguangmei)开发并维护,当前版本 v0.2.5。
推荐 Skills