Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

bibliography-builder参考书目生成器

Agent Skill

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

总安装

282

周安装

12

GitHub Stars

4

下载量

99
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:bibliography-builder(参考书目生成器)
来源仓库:https://github.com/nealcaren/sociology-skillset
仓库路径:skills/bibliography-builder
安装命令:
npx skills add https://github.com/nealcaren/sociology-skillset --skill bibliography-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nealcaren/sociology-skillset --skill bibliography-builder

简介

从手稿引用构建标准化参考书目,自动匹配本地参考文献库。

  • 专为学术论文、学位论文和科研文档的文献整理设计。
  • 可识别引用问题并生成格式化参考列表,集成项目进度跟踪。
  • 依赖项目配置文件,需确认 drafts 目录结构和 references.bib 文件路径。
  • bibliography-builder 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Bibliography Builder

You help researchers build bibliographies from manuscript citations by extracting in-text citations, matching them against a local references.bib file, identifying issues, and generating a formatted reference list.

Project Integration

This skill reads from project.yaml when available:

# From project.yaml
paths:
  drafts: drafts/sections/

Project type: This skill works for all project types. Bibliography building is essential for any academic manuscript.

Updates progress.yaml when complete:

status:
  bibliography: done
artifacts:
  bibliography: drafts/sections/bibliography.md

File Management

This skill uses git to track progress across phases. Before modifying any output file at a new phase:

  1. Stage and commit current state: git add [files] && git commit -m "bibliography-builder: Phase N complete"
  2. Then proceed with modifications.

Do NOT create version-suffixed copies (e.g., -v2, -final, -working). The git history serves as the version trail.

What This Skill Does

This is a utility skill that automates bibliography creation:

  1. Extract all in-text citations from a document — supports both Pandoc [@citationKey] format and legacy (Author Year) format
  2. Match each citation against the local references.bib file — direct citationKey lookup for Pandoc format, author+year string matching for legacy
  3. Review for issues: missing items, ambiguous matches, duplicates
  4. Generate a properly formatted bibliography in the requested style

When to Use This Skill

Use this skill when you have:

  • A manuscript with in-text citations — either Pandoc [@citationKey] format (from our writing skills) or legacy (Author Year) format
  • A references.bib BibTeX file containing your library entries
  • A need for a formatted bibliography (APA, ASA, Chicago, etc.)

Pandoc format manuscripts (written with our skills) get fast, deterministic matching via citationKey lookup directly in the .bib file. Legacy format manuscripts still work through author+year string matching against .bib entries.

Requirements

  • A references.bib BibTeX file containing the project's library entries. This file is typically located in the project root or a references/ subdirectory and is populated by the local BibTeX pipeline (via ingest.py).
  • pandoc installed with citeproc support (included by default in pandoc 2.11+). Used in Phase 4 to generate the formatted reference list.
  • A CSL style file for the target citation style. Common styles:

- ASA: american-sociological-association.csl - APA 7th: apa.csl - Chicago Author-Date: chicago-author-date.csl - Download from https://github.com/citation-style-language/styles if not already present. Place in project root or a csl/ subdirectory.

Workflow Phases

Phase 0: Intake

Goal: Read the document and confirm citation style.

Process:

  • Read the manuscript file
  • Identify citation format (Author Year, Author-Year with comma, etc.)
  • Count approximate citations
  • Confirm output format (APA, ASA, Chicago Author-Date, etc.)

Output: Citation inventory with format confirmation.

Pause: User confirms citation style and desired output format.

Phase 1: Citation Extraction

Goal: Parse all in-text citations from the document.

Process:

  • Use regex patterns to find Author-Year citations
  • Handle variations:

- Single author: (Smith 2020) - Two authors: (Smith and Jones 2020) or (Smith & Jones 2020) - Multiple authors: (Smith et al. 2020) - Multiple citations: (Smith 2020; Jones 2019) - Page numbers: (Smith 2020, p. 45) or (Smith 2020: 45) - Narrative citations: Smith (2020) argues...

  • Deduplicate and sort alphabetically
  • Create citation list with frequency counts
  • Verify with grep: Run shell commands to independently confirm extraction caught all citations (catches edge cases like McAdam, hyphenated names, accented characters)

Output: Extraction results presented in conversation (not saved to a file).

Pause: User reviews extracted citations for accuracy.

Phase 2: BibTeX Matching

Goal: Find each citation in the local references.bib file.

Process:

  • Read references.bib into memory
  • For each extracted citation:

- Pandoc format: look up citationKey directly against BibTeX entry keys - Legacy format: match author surname(s) and year against BibTeX author and year fields - Record match status: Found, Ambiguous, Not Found

  • Build match table with BibTeX entry keys

Output: Match results presented in conversation (not saved to a file).

Pause: User reviews matches, especially ambiguous/missing items.

Phase 3: Issue Review

Goal: Identify and resolve problems.

Process:

  • Flag issues:

- Missing: Citations not found in references.bib - Ambiguous: Multiple possible matches (same author, year) - Year mismatch: Author found but year differs - Name variations: "Smith" vs "Smith, J." vs "Smith, John"

  • Generate issue report with suggested actions
  • User provides resolutions for ambiguous cases

Output: Issues presented in conversation (not saved to a file).

Pause: User resolves any remaining issues.

Phase 4: Bibliography Generation

Goal: Produce the formatted bibliography using pandoc with citeproc.

Process:

  1. Build a dummy markdown file containing only the matched citation keys as pandoc citations: --- bibliography: references.bib csl: american-sociological-association.csl nocite: | @smithHousing2020, @jonesUrban2019, @williamsRace2021 --- # References The nocite field lists every matched citation key (from Phases 2–3). This tells pandoc to include them in the bibliography even though they're not cited inline.
  2. Run pandoc to generate the formatted bibliography: pandoc dummy-refs.md --citeproc -o bibliography.md -t markdown Adjust the CSL file path as needed. Common styles:

- ASA: --csl american-sociological-association.csl - APA 7th: --csl apa.csl - Chicago: --csl chicago-author-date.csl

  1. Clean up: Remove the dummy file. Review bibliography.md for any citeproc warnings (missing fields, unresolved keys).
  2. Append unmatched citations (from Phase 3) as a separate section at the end of bibliography.md: ## Unmatched Citations (require manual lookup) - Smith (2020) — Not found in references.bib

Output: bibliography.md with pandoc/citeproc-formatted references.

Why pandoc? Pandoc's citeproc engine handles the full complexity of citation formatting — name particles, edited volumes, translations, sorting, punctuation — far more reliably than manual formatting. It uses the same CSL styles as Zotero, Mendeley, and other reference managers.


Citation Pattern Reference

Pandoc Format (Primary — from our writing skills)

PatternExampleRegex
Parenthetical[@smithHousing2020]\[@([a-zA-Z0-9]+)\]
Multiple[@smith2020; @jones2019]\[@([a-zA-Z0-9]+(?:;\s*@[a-zA-Z0-9]+)*)\]
With page[@smith2020, p. 45]\[@([a-zA-Z0-9]+),\s*p\.\s*\d+\]
Narrative@smithHousing2020 argues(?<!\[)@([a-zA-Z0-9]+)(?!\])
Suppress author[-@smith2020]\[-@([a-zA-Z0-9]+)\]
String modifiers[see @key1; cf. @key2]`\[(?:see\e\.g\.,\cf\.)\s*@`

Legacy Format (Fallback — for manuscripts not written with our skills)

PatternExampleRegex
Single author(Smith 2020)\(([A-Z][a-z]+)\s+(\d{4})\)
Two authors(Smith and Jones 2020)`(([A-Z][a-z]+)\s+(?:and
Et al.(Smith et al. 2020)\(([A-Z][a-z]+)\s+et\s+al\.?\s+(\d{4})\)
Multiple citations(Smith 2020; Jones 2019)Split on ;\s* then parse each
With page(Smith 2020, p. 45)\(([A-Z][a-z]+)\s+(\d{4}),?\s*p?p?\.?\s*\d+\)
NarrativeSmith (2020)([A-Z][a-z]+)\s+\((\d{4})\)

Edge Cases (Legacy Format)

  • Hyphenated names: (García-López 2020) - include hyphen in author pattern
  • Particles: (van der Berg 2020) - lowercase particles before surname
  • Organizations: (WHO 2020) - all-caps or mixed case organizations
  • No date: (Smith n.d.) - handle "n.d." as year placeholder
  • Forthcoming: (Smith forthcoming) - handle non-numeric years

Output Formats

Formatting is handled entirely by pandoc's citeproc engine using CSL style files. You do not need to manually format entries. Simply specify the correct CSL file for the target style:

StyleCSL fileNotes
ASAamerican-sociological-association.cslDefault for sociology journals
APA 7thapa.cslPsychology and interdisciplinary
Chicago Author-Datechicago-author-date.cslHistory, some social sciences

Download CSL files from https://github.com/citation-style-language/styles if not already present in the project.

File Structure

project/
├── manuscript.md           # Input: document with citations
├── bibliography/
│   └── bibliography.md     # Final output (Phase 4)

Phases 1–3 produce conversation output only. No intermediate files are saved.

Key Reminders

  • references.bib must be present and readable in the project directory
  • Author names vary: Match flexibly against the BibTeX author field (last name + year first, then refine)
  • Multiple matches are possible: Same author may have multiple works per year in the .bib file
  • Missing items: User may need to add entries to references.bib before proceeding
  • Format matters: Confirm desired style before generating bibliography

Starting the Process

When the user is ready to begin:

  1. Ask for the manuscript: "Please share the path to your manuscript file (markdown,.docx, or.txt)."
  2. Confirm citation style: "I'll extract Author-Year citations. What bibliography format do you need? (APA, ASA, Chicago, other)"
  3. Locate references.bib: "Let me verify the references.bib file is present. Is it in the project root or a references/ subdirectory?"
  4. Proceed with Phase 0 to read the document and inventory citations.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.97%
按下载量换算38

Claude

27.53%
按下载量换算27

Cursor

18.62%
按下载量换算18

Gemini CLI

9.38%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/nealcaren/sociology-skillset --skill bibliography-builder 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills