跳到主要内容
知仓学习社ZHICANG

cite

Finds a paper by title, author, or DOI, adds BibTeX to references.bib, and shows citation syntax. Use when adding a reference.

不碰外部(只输出文字)无严重或高危命中brycewang-stanford/Auto-Empirical-Research-Skills

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Add Citation

Find a paper, create a BibTeX entry, add it to references.bib, and provide the citation syntax.

Arguments

  • $ARGUMENTS — a paper description, title, author name, or DOI (e.g., "Acemoglu 2001 colonial origins" or "10.1257/aer.91.5.1369")

Steps

  1. Parse the argument to determine if it is a DOI or a descriptive search query.
  1. Search for the paper:
  • If a DOI is provided, fetch the metadata directly (use web search or CrossRef)
  • If a description is provided, search the web to identify the paper and its DOI/metadata
  1. Construct a valid BibTeX entry with these fields (at minimum):
  • @article{key, (or @book, @incollection, etc. as appropriate)
  • author, title, journal (or booktitle), year, volume, number, pages, doi
  • Use a citation key in the format: lastname_yearword (e.g., acemoglu2001colonial)
  1. Read references.bib and check for duplicate keys:
  • If the exact key already exists, inform the user and show the existing entry
  • If a similar key exists (same author and year), warn the user
  1. Append the new entry to references.bib (add a blank line before the new entry)
  1. Show the user the citation syntax for use in index.qmd:
  • Narrative: @key → "Author (Year)"
  • Parenthetical: [@key] → "(Author, Year)"
  • Multiple: [@key1; @key2]
  1. Ask if the user wants to create an annotation note in references/ (see /project:literature-note)

Error handling

  • If the paper cannot be found, report the search results and ask the user to provide more details or a DOI.
  • If references.bib does not exist, create it with the new entry.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。