Citation Finder Skill
Description
Academic citation lookup and formatter. Given a fuzzy paper title or description (in Chinese or English), searches both Chinese and English academic databases, identifies the most likely paper, and returns formatted citations in GB/T 7714, APA, and MLA formats along with source links.
Trigger Conditions
Use this skill when the user:
- - Asks to find a paper or citation (e.g. "帮我找这篇文献", "cite this paper", "这篇论文怎么引用")
- Provides a fuzzy or partial paper title in Chinese or English
- Asks to format a reference in GB/T 7714, APA, or MLA
- Uses keywords: 参考文献, 引用格式, 文献查找, find paper, citation, reference, cite
Workflow
- 1. Detect input language (Chinese / English / mixed)
- Search in parallel:
- English: CrossRef API + Semantic Scholar API
- Chinese: Baidu Scholar (web scrape) + CNKI search
- 3. Score and rank candidates by title similarity + metadata completeness
- If top match confidence > 80%: return directly
- If confidence 50–80%: show top 3 candidates, ask user to confirm
- If confidence < 50%: inform user and ask for more details
- Format confirmed paper into GB/T 7714, APA 7th, MLA 9th
- Return citations + DOI/source URL
Usage
CODEBLOCK0
Scripts
- -
scripts/search_en.py — CrossRef + Semantic Scholar search - INLINECODE1 — Baidu Scholar + CNKI search
- INLINECODE2 — Citation formatter (GB/T 7714, APA, MLA)
- INLINECODE3 — Main entry point (orchestrates all steps)
Dependencies
CODEBLOCK1
Install: INLINECODE4
技能名称: citation-finder
详细描述:
引文查找技能
描述
学术引文查找与格式化工具。给定模糊的论文标题或描述(中文或英文),同时检索中英文数据库,识别最可能的论文,并以GB/T 7714、APA和MLA格式返回格式化引文及来源链接。
触发条件
当用户出现以下情况时使用此技能:
- - 要求查找论文或引文(例如帮我找这篇文献、cite this paper、这篇论文怎么引用)
- 提供中文或英文的模糊或不完整论文标题
- 要求以GB/T 7714、APA或MLA格式格式化参考文献
- 使用关键词:参考文献、引用格式、文献查找、find paper、citation、reference、cite
工作流程
- 1. 检测输入语言(中文/英文/混合)
- 并行搜索:
- 英文:CrossRef API + Semantic Scholar API
- 中文:百度学术(网页抓取)+ 知网搜索
- 3. 根据标题相似度+元数据完整性对候选结果进行评分和排序
- 如果最佳匹配置信度>80%:直接返回
- 如果置信度在50–80%之间:显示前3个候选结果,请用户确认
- 如果置信度<50%:告知用户并请求更多详细信息
- 将确认的论文格式化为GB/T 7714、APA第7版、MLA第9版
- 返回引文+DOI/来源URL
用法
用法:直接描述或粘贴模糊文献标题
示例:帮我找一下 注意力机制在自然语言处理中的应用 这篇论文的引用格式
示例:find citation for attention is all you need
脚本
- - scripts/searchen.py — CrossRef + Semantic Scholar搜索
- scripts/searchcn.py — 百度学术 + 知网搜索
- scripts/format_cite.py — 引文格式化工具(GB/T 7714、APA、MLA)
- scripts/run.py — 主入口(协调所有步骤)
依赖项
requests>=2.28.0
beautifulsoup4>=4.11.0
rapidfuzz>=3.0.0
安装:pip install requests beautifulsoup4 rapidfuzz