Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

pku-info-auth北京大学信息认证

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

4,253

周安装

179

GitHub Stars

公开资料未说明

下载量

1,489
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pku-info-auth(北京大学信息认证)
来源仓库:https://github.com/wjsoj/pku-info-auth
安装命令:
openclaw skills install pku-info-auth
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pku-info-auth

简介

PKU统一凭证管理CLI(统一外汇管理)。当用户或 AI 代理需要使用 PKU 服务进行身份验证、管理存储的凭据等时,请使用此技能。

SKILL.md

name
info-auth
description
PKU unified credential management CLI (统一凭据管理). Use this skill when the user or AI Agent needs to authenticate with PKU services, manage stored credentials, check session status across all services, or when the user mentions 登录, 凭据, 密钥链, keyring, credential, auth, or asks how to let AI tools auto-login. This is the FIRST skill to use before any other PKU service — it handles secure credential storage so that treehole/course/campuscard/elective can auto-login without passwords.
version
1.0.0

Info-Auth - PKU 统一凭据管理 CLI

Secure credential management for all PKU IAAA-based CLI tools. Allows AI Agents to trigger login flows without ever seeing passwords.

Why This Exists

AI Agents (like OpenClaw/Claude Code) cannot and should not handle user passwords directly. This tool lets users store credentials once in the OS keyring, then all CLI tools auto-authenticate from the keyring.

Architecture

  • Crate location: crates/info-auth/
  • Backend: OS keyring via keyring crate

- Linux: D-Bus Secret Service (GNOME Keyring / KDE Wallet) - macOS: Apple Keychain - Windows: Windows Credential Manager

  • Keyring service name: info-pku

CLI Commands

CommandAliasFunction
storesaveInteractively input and store credentials to OS keyring
statusShow credential storage status (never shows password)
checkShow session status for ALL services (treehole/course/campuscard/elective)
clearRemove credentials from OS keyring

Credential Resolution Order

When any CLI tool runs login -p, credentials are resolved in this order:

  1. OS Keyring — stored via info-auth store (recommended)
  2. Environment variablesPKU_USERNAME + PKU_PASSWORD (for CI/automation)
  3. Interactive prompt — fallback, asks for username/password via stdin

SMS verification codes follow a similar pattern:

  1. Environment variablePKU_SMS_CODE (Agent can set this after asking user)
  2. Interactive prompt — fallback

For AI Agents — Quick Start

First-time setup (user does this once manually)

info-auth store
# User enters username + password interactively
# Credentials stored in OS keyring, encrypted

Agent workflow

# 1. Check which services have valid sessions
info-auth check

# 2. Login to any service (auto-reads credentials from keyring)
treehole login -p
course login -p
campuscard login -p
elective login -p          # may need: --dual major / --dual minor

# 3. If SMS verification is needed (treehole first login):
#    Ask user for the code, then set env var:
PKU_SMS_CODE=123456 treehole login -p

# 4. Use the service
treehole list
course courses --all
campuscard info
elective show

Key rules for Agents

  • NEVER pass passwords as CLI arguments
  • NEVER try to read the keyring directly — use info-auth status to check
  • If info-auth check shows "未登录" or "会话已过期", run <tool> login -p
  • If login fails with "系统密钥链中未存储凭据", ask user to run info-auth store

Development Notes

  • All user-facing strings in Chinese
  • Error handling: anyhow::Result with .context("中文描述")
  • The store command requires password confirmation (enter twice)
  • keyring_has_credential() returns diagnostic info on failure for debugging

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.59%
按下载量换算1,126

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills