文献检索、PDF下载与 Zotero/Excel 整理助手
装好之后怎么用
什么时候会用上它:Search academic literature, legally download available PDFs through open-access sources or user-authorized institutional databases, import metadata/PDFs into Zotero, and generate a literature summary spreadsheet. Use when the user asks Codex to find papers, download references, use CNKI/Web of Science/ScienceDirect/Google Scholar or a school library portal, create Zotero collections, attach PDFs to Zotero items, or produce an Excel literature matrix after downloading papers.
怎么用:在 AI 工具里直接描述任务即可自动触发。显式调用的写法各端不同:Claude Code / Cursor 等用 /literature-zotero-download,Codex 用 $literature-zotero-download,Kimi Code 用 /skill:literature-zotero-download,ZCODE 用 $literature-zotero-download,Gemini CLI 以自动激活为主。
适合需要批量整理科研文献的研究生、教师和研究人员。它可以按主题、关键词、年份、语言和数据库生成检索计划,优先使用开放获取或你有权限的数据库下载 PDF,校验文件有效性,导入 Zotero,并生成 Excel 文献矩阵。遇到登录、验证码、SSO、2FA 或付费确认时会暂停让你手动处理,不绕过权限。使用时直接说明研究主题、目标数量、年份范围、数据库优先级和 Zotero 分类即可。
技能内容
SKILL.md版本与文件 ›Literature Zotero Download
Core Rule
Help the user acquire literature only through open-access sources or access they are authorized to use. Do not bypass paywalls, solve CAPTCHA, automate SSO/2FA, store credentials, use Sci-Hub by default, or pretend a failed download succeeded.
Automation Contract
Automate every step that is allowed and technically available: query planning, database routing, result triage, metadata export, PDF download clicks, file validation, Zotero import, attachment checks, logs, and spreadsheet generation.
Do not automate protected human gates. When CAPTCHA, Cloudflare Turnstile, SSO, 2FA, SMS/email verification, payment, or an institution access confirmation appears:
- Record the gate in the workflow state with
scripts/workflow_state.py gate. - Tell the user exactly which browser tab/page needs their action.
- Stop interacting with that gate.
- After the user says it is complete, resume from the recorded
next_action.
For long or multi-database tasks, create a state file at the start:
python3 <skill-dir>/scripts/workflow_state.py init --task-dir <task-dir> --topic "..." --target-count 20 --databases "CNKI,SPE OnePetro"Read references/automation-runbook.md before promising full automation or when adapting this skill to a new database.
Workflow
- Parse the task into: topic/keywords/titles/DOIs, target count, years, language, database priority, Zotero collection, and whether browser/institution access is allowed.
- Create a task folder and workflow state. Use
scripts/build_search_plan.pywhen a repeatable search plan is useful. - Follow the user's database priority exactly. If none is given, use: open-access/API routes, then user-authorized institutional databases, then Google Scholar only for discovery.
- Try structured routes first for DOI/PMID/arXiv/title searches: Crossref/OpenAlex/Unpaywall/PubMed/PMC/arXiv or other available literature skills.
- For subscribed databases, use Chrome with the user's active session or school library portal. Use Computer Use only for desktop tasks such as Zotero UI, system file pickers, VPN windows, and download-folder handling.
- Pause and hand off when login, SSO, 2FA, CAPTCHA, Cloudflare, payment, or access confirmation appears. Continue after the user completes the action.
- Validate every downloaded PDF before importing. Use
scripts/validate_pdf.py. - Import metadata into Zotero, attach PDFs where possible, and place items in the requested collection.
- Produce logs and a literature summary spreadsheet. Unknown analytic fields must be
待精读, never invented.
Database Priority
Treat user wording as routing instructions:
- "只查 CNKI" means use CNKI only unless the user later expands scope.
- "优先 CNKI,其次 WoS 和 ScienceDirect" means exhaust relevant CNKI results first, then use Web of Science, then ScienceDirect.
- "英文优先" means use English databases and English queries before Chinese databases.
- If a database is inaccessible, record
institution_access_required,login_required,captcha_required, or the exact blocker, then move to the next allowed route.
For database-specific tactics, read references/database-workflows.md.
Zotero Import
Use the existing Zotero plugin before considering other Zotero integrations.
- Run the Zotero helper
status --jsonto learn whether Zotero Desktop, the local API, and Connector are available. - Prefer RIS/BibTeX import through the Zotero plugin/Connector.
- Use the currently selected Zotero collection when the user has prepared it; otherwise create/select the requested collection through Zotero Desktop if the plugin cannot create it safely.
- Attach PDFs to their matching items. If the current plugin cannot attach PDFs directly, use Zotero Desktop with Computer Use.
- Do not enable Zotero's local write API or restart Zotero unless the user explicitly approves that security-relevant setting change.
Read references/zotero-import.md before doing nontrivial Zotero work.
PDF Validation
Run:
python3 <skill-dir>/scripts/validate_pdf.py <pdf-path> --jsonReject files that are HTML/error pages, empty files, partial downloads, CAJ files renamed as PDF, or metadata mismatches. If a non-PDF format such as CAJ is the only available format, tell the user and avoid treating it as Zotero-ready unless they explicitly accept it.
Logs And Excel
Maintain a task folder with:
pdfs/for clean downloaded PDFs.search_results.csvfor candidates and sources.download_log.csvfor attempted methods and blockers.zotero_import_log.csvfor import/attachment outcomes.literature_summary.xlsxfor the final matrix.
Use:
python3 <skill-dir>/scripts/write_literature_log.py --log download_log.csv --record-json '{"title":"...","download_status":"downloaded"}'
python3 <skill-dir>/scripts/write_literature_matrix.py --input literature_records.json --output literature_summary.xlsx
python3 <skill-dir>/scripts/workflow_state.py status --task-dir <task-dir>The first spreadsheet columns are fixed unless the user changes them:
作者年份, 主题, 方法, 样本, 理论, 主要发现, 局限, 对我研究的启发, 下载状态
Read references/literature-matrix.md before generating the final spreadsheet.
Institution Profiles
When the user repeatedly uses the same school/library, build a reusable institution profile containing only process information: library URL, database entry paths, access method, common blockers, download folder, and preferred Zotero collection naming. Never store student IDs, passwords, cookies, tokens, verification codes, or other secrets.
Read references/institution-profile.md when adapting to a new school or database portal.
评论 0
更多
登录后可点赞、收藏、评论和举报。
还没有评论,先发起一个具体问题。