yipng05-max/-skills/pdf-bib-import
Claude Code and agent skill by yipng05-max/-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
将一个文件夹中的多篇 PDF 论文批量提取题录信息(标题、作者、年份、期刊、卷期页码、DOI、摘要),并导入飞书多维表格。当用户需要把一批 PDF 论文的书目信息、题录信息汇总到飞书 Base / 多维表格时触发。关键词:PDF、论文、题录、书目、批量导入、飞书多维表格。
Install
npx vskill@latest install yipng05-max/-skills/pdf-bib-importSKILL.md
PDF 题录批量导入飞书多维表格
核心原则(必须遵守)
成本控制:数据提取必须用脚本完成,禁止用 AI 逐篇读取 PDF——每次 AI 读取都消耗大量 token。正确流程:写脚本提取 → 人工/脚本校对 → 脚本批量写入飞书,AI 只负责生成脚本和配置飞书结构。
Step 1:脚本提取 PDF 题录
1.1 生成提取脚本
在 /tmp 下生成 extract_bib.py,利用 pdftotext(/opt/homebrew/bin/pdftotext)批量提取:
运行:
1.2 校对 JSON(关键步骤)
pdftotext 能提取机器可读 PDF 的文字,但有些 PDF:
- 扫描件:文字为空,需手动填写
- 元数据为空:需从
_raw_text_preview字段中判断并手动补全
打开 /tmp/bib_data.json,检查并补全各字段,删除 _raw_text_preview 和 _filename。
Step 2:创建飞书 Base 结构
前置条件: 先阅读 `../lark-shared/SKILL.md` 了解认证规则。
2.1 创建 Base
2.2 获取默认表并重命名
2.3 配置字段
先重命名默认"文本"字段,再删除多余默认字段,最后创建所需字段:
Step 3:脚本批量写入记录
3.1 生成导入脚本
生成 /tmp/import_to_lark.sh,从 /tmp/bib_data.json 读取记录并逐条写入:
常见问题
| 问题 | 解决方案 | |
|---|---|---|
| pdftotext 提取为空(扫描件) | 手动填写 bib_data.json,或用 OCR 工具 | |
| PDF 元数据乱码 / 错误 | 忽略 meta,从 _raw_text_preview 手工提取 | |
lark-cli --json @file 报路径错误 | 必须 cd /tmp 后再执行,使用相对路径 @_rec.json | |
| 写入冲突 1254291 | 增大 time.sleep() 到 1 秒 | |
| 字段不存在 1254045 | 检查字段名拼写,与 +field-list 返回结果一致 |
成本控制提示
- 不要用 AI 逐篇读取 PDF:49 篇 PDF 用 AI 提取 ≈ $10,用脚本 ≈ $0
- 数据提取 → 人工校对 → 脚本写入,AI 只生成脚本
- 遇到 pdftotext 无法提取的字段,集中人工补全 JSON,再统一导入
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpdf-bib-import/SKILL.md
Popularity
- Repository stars
- 281
- Repository forks
- 24
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yipng05-max/-skills/pdf-bib-import)