Skip to content

baidu-netdisk/bdpan-storage / skills/baidu-wenku-aippt-personal

baidu-wenku-aippt-personal

Verified

百度文库智能PPT个人版 — 一句话自动生成高质量 PPT,支持多种风格、场景和配色。 TRIGGER: 用户提及"生成PPT/做PPT/制作PPT/AI PPT/aippt/幻灯片/演示文稿"时触发。 DO NOT TRIGGER: 非 PPT 相关操作,文件管理操作,网盘上传下载等操作。

FileKindSize
README.mdmarkdown4.6 KB
SKILL.mdskill md6.1 KB
VERSIONother7 B
reference/aippt-examples.mdmarkdown4.1 KB
reference/authentication.mdmarkdown2.3 KB
reference/troubleshooting.mdmarkdown4.0 KB
scripts/check-update.shexecutablescript5.5 KB
scripts/detect-agent.shexecutablescript2.2 KB
scripts/install.shexecutablescript10.4 KB
scripts/login.shexecutablescript7.0 KB
scripts/run-aippt.shexecutablescript432 B
scripts/uninstall.shexecutablescript4.3 KB
scripts/update.shexecutablescript8.8 KB

reference/authentication.md

View on GitHub
# 认证指南

本指南详细介绍 bdpan CLI 的登录认证流程。

---

## 登录方式

> **安全约束:** 登录方式的安全限制详见 [SKILL.md](../SKILL.md) 的「安全约束」章节。Agent 必须且只能通过 login.sh 脚本执行登录。

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/login.sh
```

脚本会自动处理完整的登录流程(免责声明 → 用户确认 → 获取授权链接 → 校验授权码 → 完成登录)。

---

## 验证登录状态

```bash
bdpan whoami
```

**已登录时输出:**
```
认证状态: 已登录
Token 有效期至: 2026-03-10 10:30:00
```

**未登录时输出:**
```
认证状态: 未登录
请执行 bdpan login 进行登录
```

---

## 注销登录

```bash
bdpan logout
```

清除本地存储的认证信息(`~/.config/bdpan/config.json`)。

---

## 常见问题

### 登录后提示 Token 已过期

**症状:**
```
错误: Token 过期
Error: Token expired
```

**解决方案:**
```bash
bdpan logout
bash ${CLAUDE_SKILL_DIR}/scripts/login.sh
```

### 授权链接无效

**症状:** 浏览器打开链接后提示链接无效

**解决方案:**
1. 重新执行登录脚本获取新的授权链接
2. 确保在链接有效期内完成授权(通常 10 分钟)

### 授权码输入后报错

**症状:** 输入授权码后提示错误

**解决方案:**
1. 确保授权码复制完整,没有多余空格
2. 检查浏览器中显示的授权码是否与输入的一致
3. 如多次失败,重新执行登录脚本获取新授权码

---

## 配置文件位置

```
~/.config/bdpan/config.json
```

**环境变量:**

| 环境变量 | 说明 | 默认值 |
|---------|------|--------|
| `BDPAN_CONFIG_DIR` | 配置文件目录 | `~/.config/bdpan` |

---

## 安全说明

- **OAuth 2.0**:使用授权码模式,不存储用户密码
- **Token 存储**:Token 加密存储在本地配置文件
- **自动续期**:Token 快过期时工具会自动刷新

---

## 自动登录失败场景

以下场景会自动切换到 OOB 模式:

| 场景 | 说明 |
|------|------|
| SSH 远程登录 | 无图形界面 |
| WSL 环境 | WebView 支持受限 |
| 桌面环境锁定 | WebView 无法弹出 |
| 浏览器未安装 | 无法打开 WebView |

切换到 OOB 模式时,工具会自动提示授权链接,无需用户干预。
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall