← 返回 Skills 市场
149
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install pku-treehole
功能描述
PKU Treehole (北大树洞) anonymous forum CLI tool built in Rust. Use this skill when working on the treehole crate, debugging treehole commands, adding features t...
安全使用建议
This skill appears to be a helper for the Treehole CLI, but its runtime instructions expect access to local credentials (OS keyring), a PKU_SMS_CODE env var, and session files even though the skill metadata declares none. Before installing or enabling it: 1) confirm the skill's source and inspect the actual code or repo (the package lists no homepage/source). 2) Do not set PKU_SMS_CODE as a persistent global environment variable; prefer ephemeral use if you must test. 3) Be cautious about allowing any agent to read your OS keyring or session files — run in a sandboxed account or VM if possible. 4) Verify how session tokens are stored and how to revoke them (or delete ~/.config/info/treehole/) after use. 5) If you rely on this for course/schedule answers, consider cross-checking with other official sources. If the publisher can provide the crate repository or a signed release, that would materially increase confidence.
功能分析
Type: OpenClaw Skill
Name: pku-treehole
Version: 1.1.0
The skill provides a CLI interface for the PKU Treehole platform with high-risk capabilities, including SSO login handling, grade retrieval (`score`), and TOTP 2FA management (`otp` command). The `SKILL.md` instructions include steering logic that explicitly directs the AI agent to prioritize this tool over others (e.g., Blackboard or elective crates) for schedule-related queries. While these features are consistent with a comprehensive campus utility, the management of authentication secrets and academic records within an agent-accessible skill presents a significant risk for unauthorized access to sensitive PII.
能力评估
Purpose & Capability
Name/description and the SKILL.md consistently describe a PKU Treehole CLI helper; that purpose is coherent. However, the manifest declares no required env vars or config paths while the SKILL.md explicitly documents reading credentials from the OS keyring, an env var (PKU_SMS_CODE), and persisting sessions to ~/.config/info/treehole/. The absence of those declared requirements is an inconsistency.
Instruction Scope
The SKILL.md instructs agents to perform auth flows (IAAA SSO, JWT callback), auto-login using credentials from the OS keyring or env, and to persist/read session data from a home-directory path. Those are legitimate for a CLI client, but they involve accessing sensitive local secrets (keyring, session tokens) and an SMS code env var; the skill instructions therefore reach beyond purely read-only help text and could cause the agent to use or transmit secrets.
Install Mechanism
This is an instruction-only skill with no install spec and no code files, so nothing is written to disk by an installer step — lowest install risk.
Credentials
Although the manifest lists no required environment variables or config paths, the SKILL.md expects PKU_SMS_CODE and credential resolution from the OS keyring (and fallback to env). Requesting or using those secrets is reasonable for login functionality, but the skill should have declared them. The undeclared access to keyring/session files reduces transparency and is disproportionate to what the metadata advertises.
Persistence & Privilege
The CLI persists session state to ~/.config/info/treehole/ (JWT/session tokens) per the docs. That behavior is expected for a CLI client and the skill is not configured as always:true. Still, persisted tokens are sensitive — verify how they are stored and how to revoke them if needed.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pku-treehole - 安装完成后,直接呼叫该 Skill 的名称或使用
/pku-treehole触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
更新 description 路由规则:课表/schedule/academic-cal 统一走 treehole
v1.0.0
- Major release: Complete overhaul of the PKU Treehole CLI tool architecture and documentation.
- Introduced a detailed SKILL.md describing CLI commands, authentication flows, API endpoints, and key source files.
- Modernized authentication with IAAA SSO login, JWT callback, and optional SMS verification.
- Expanded and clarified available CLI commands and their functions.
- Improved guidance for AI agent auto-login and non-interactive SMS verification via environment variables.
- Outlined clear development and error-handling conventions for contributors.
元数据
常见问题
Treehole 是什么?
PKU Treehole (北大树洞) anonymous forum CLI tool built in Rust. Use this skill when working on the treehole crate, debugging treehole commands, adding features t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 149 次。
如何安装 Treehole?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pku-treehole」即可一键安装,无需额外配置。
Treehole 是免费的吗?
是的,Treehole 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Treehole 支持哪些平台?
Treehole 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Treehole?
由 wjsoj(@wjsoj)开发并维护,当前版本 v1.1.0。
推荐 Skills