Token导航 LogoToken导航

Agent Skill · 研究检索

bib-search-citation(书目搜索引文)

bib-search-citation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

bib-search-citation 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 64,068。

总安装 306周安装 13GitHub Stars 14下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:bib-search-citation(书目搜索引文)
来源仓库:https://github.com/bahayonghang/my-claude-code-settings
仓库路径:skills/bib-search-citation
安装命令:
npx skills add https://github.com/bahayonghang/my-claude-code-settings --skill bib-search-citation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/bahayonghang/my-claude-code-settings --skill bib-search-citation

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于大规模 BibTeX 文献库的研究导向检索与引文管理。适合处理含 annotation、keywords 等非标准字段的混合 bibliography。支持 JSON 搜索规范与紧凑查询表达式转换,提升查找效率。需用户提供 .bib 文件路径与具体检索需求。

bib-search-citation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/bib-search-citation

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/bahayonghang/my-claude-code-settings --skill b…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

bib-search-citation 怎么安装?

在终端执行 npx skills add https://github.com/bahayonghang/my-claude-code-settings --skill bib-search-…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

bib-search-citation 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

bib-search-citation 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

bib-search-citation 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

bib-search-citation 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次,GitHub 14 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

bib-search-citation 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
bib-search-citation

书目搜索引文 · 本页

30614只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Bib Search Citation

Overview

Use this skill when the user provides a .bib file and wants research-oriented retrieval rather than just a single citation key lookup. This skill is designed for large bibliographies with mixed standard and custom fields, including fields such as shorttitle, annotation, keywords, abstract, and file.

Follow this workflow:

  1. Identify the .bib file to use.
  2. If rtk is available, prefer it for exploratory steps such as locating .bib files and inspecting representative fields.
  3. Translate the user's request into either a JSON search spec or a compact query expression.
  4. Run scripts/search_bib.py on the .bib file and keep its JSON output uncompressed.
  5. Optionally pipe the JSON into scripts/preview_bib_search.py for a compact human-readable summary.
  6. Review the results and present the best matches clearly.
  7. Include LaTeX and/or Typst citation snippets whenever the user asks for them or would benefit from them.

Input expectations

The typical input is:

  • one .bib file provided by the user
  • a natural-language research query
  • optional structured filters such as year range, entry type, author, DOI presence, code availability, or custom field matches
  • optional compact filters such as author:cheng year>=2024 has:code type:article
  • optional output preferences such as latex, typst, both, or raw BibTeX

If the user gives a natural-language request only, infer a reasonable search spec and say what assumptions you made. If the user writes a compact filter expression directly, preserve it as closely as possible instead of converting it into vague prose.

Search planning

Before running the script, map the request into a search spec.

Common spec fields

  • query: free-text topic query
  • filters.year_min, filters.year_max, filters.years_in, filters.exclude_years
  • filters.author_contains, filters.author_excludes
  • filters.type_in, filters.exclude_type_in
  • filters.has, filters.exclude_has
  • filters.field_contains, filters.field_excludes
  • sort: relevance, year_desc, year_asc, or title
  • limit: default 5 unless the user asks for more
  • return_fields: fields to expose in the answer
  • include_raw_bib: true when the user asks for the original entry or when exact export matters
  • citation_mode: latex, typst, both, or none

Heuristics for natural-language requests

Use these defaults unless the user says otherwise:

  • research discovery request -> sort: relevance
  • no explicit limit -> limit: 5
  • no explicit field list -> return the research-oriented default fields: key, title, shorttitle, author, year, venue, doi, eprint, keywords, annotation, abstract
  • asks for "original", "full entry", or "bib" -> include_raw_bib: true
  • asks for both LaTeX and Typst, or just says "citation" in a mixed writing workflow -> citation_mode: both

Compact query language

The script can parse direct query expressions inside --query, and it can also parse them when they appear inside spec.query.

Supported compact operators:

  • author:cheng
  • year>=2024
  • year:2024 or year:2023,2024
  • type:article,misc
  • -type:misc
  • has:code,doi
  • -has:pdf
  • annotation:CodeAvailable
  • keywords:mamba
  • sort:year_desc
  • limit:10
  • fields:key,title,year,doi
  • cite:latex, cite:typst, or cite:both
  • raw:true

Unstructured tokens that do not match the compact syntax remain part of the topic query.

Supported has values

The script supports these useful has values:

  • doi
  • abstract
  • keywords
  • annotation
  • shorttitle
  • eprint
  • pdf
  • code

code is inferred from fields such as url, abstract, keywords, annotation, note, or howpublished that mention GitHub, GitLab, code, repository, or source.

For more examples, see references/query-syntax.md.

Running the script

Run the script with a JSON spec, a spec file, or a compact query.

RTK Fast Path

If rtk is available, prefer it only for model-facing exploration:

  • locate bibliography files with rtk find. -name "*.bib"
  • inspect a representative slice with rtk read /path/to/library.bib -l aggressive -m 80
  • confirm whether fields such as DOI, keywords, annotation, or eprint are present with rtk grep "doi|keywords|annotation|eprint" /path/to/library.bib

Keep machine-readable search results on the raw script path:

  • use raw python scripts/search_bib.py... whenever another tool or script needs JSON
  • do not wrap search_bib.py output with RTK compression
  • use python scripts/preview_bib_search.py only after JSON has already been produced

Inline JSON example

python scripts/search_bib.py \
  --bib /path/to/library.bib \
  --spec-json '{
    "query": "mamba time series forecasting author:Cheng year>=2024 has:code",
    "sort": "relevance",
    "limit": 5,
    "citation_mode": "both",
    "include_raw_bib": false
  }'

Compact query example

python scripts/search_bib.py \
  --bib /path/to/library.bib \
  --query 'mamba time series forecasting author:Cheng year>=2024 has:code type:article,misc cite:both limit:5'

Spec file example

python scripts/search_bib.py --bib /path/to/library.bib --spec-file /path/to/spec.json

Human-readable preview example

python scripts/search_bib.py \
  --bib /path/to/library.bib \
  --query 'mamba time series forecasting author:Cheng year>=2024 has:code type:article,misc cite:both limit:5' \
| python scripts/preview_bib_search.py

If the user uploads a .bib file into the conversation, first make sure you know its local path in the execution environment, then run the script against that file.

Output expectations

When presenting results to the user, prefer this order:

  1. brief summary of how many strong matches were found
  2. top matches with the requested research fields
  3. citation snippets in the requested format
  4. raw BibTeX only when requested or materially useful

For each selected entry, usually include:

  • citation key
  • title and optional shorttitle
  • authors
  • year and venue
  • DOI and/or eprint when present
  • the most relevant supporting fields for the query, such as keywords, annotation, or a short abstract excerpt

If the user asked for a compact query, it is helpful to echo the interpreted filters briefly, especially when negation or multiple field filters are involved.

When using the preview helper:

  • treat it as a compact rendering of the JSON, not as a separate search engine
  • keep search_bib.py as the source of truth for filtering, scoring, sorting, and citations
  • do not rely on the preview output when exact raw BibTeX preservation matters

Citation formatting rules

LaTeX

When citation_mode includes latex, expose:

  • \\cite{key}
  • \\parencite{key}
  • \\textcite{key}

These are intended for biblatex workflows. If the user only wants one form, show only that form.

Typst

When citation_mode includes typst, expose:

  • @key when the key is simple enough for shorthand usage
  • #cite(<key>) when shorthand is fine
  • #cite(label("key")) when the key contains characters that make shorthand fragile

If the script reports typst.needs_label = true, prefer the explicit label("...") form instead of shorthand.

Result quality checks

Before answering:

  • make sure the returned entries satisfy the user's explicit filters
  • do not overclaim topic relevance; if results are only approximate, say so
  • when several entries are similar, explain the difference briefly
  • preserve raw BibTeX exactly when quoting the original entry

Error handling

Parse errors

If the .bib file contains malformed entries (unbalanced braces, encoding issues, truncated fields), the script skips those entries silently and processes the rest. When a file fails to parse entirely, check the encoding (the script assumes UTF-8) and look for obvious structural corruption such as missing closing braces.

Empty result sets

When zero entries match, suggest broadening the search:

  • remove has: constraints (e.g. has:code excludes many entries)
  • widen the year range or drop it entirely
  • use fewer or shorter topic keywords
  • check author name spelling or try partial matches

Large file performance

The script is pure Python with a linear scan and no external dependencies. For typical academic libraries (up to ~10,000 entries) it completes in seconds. For very large files (50,000+ entries), expect proportionally longer runtimes but no functional issues.

Resources

  • scripts/search_bib.py: parses .bib files, applies filters, ranks results, and formats citation snippets
  • scripts/preview_bib_search.py: renders search_bib.py JSON into a compact human-readable summary
  • references/query-syntax.md: examples for mapping user requests into structured search specs and compact expressions

平台分布

Codex

34.4%
按下载量换算37

Claude

28.04%
按下载量换算30

Cursor

19.71%
按下载量换算21

Gemini CLI

9.78%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

继续浏览同类 Skills