Skip to main content

format-citation

Format one or more scholarly identifiers as citations in a chosen style (Vancouver, AMA, APA, IEEE, CSE, or any CSL style ID).

跳到安装

来源信息

仓库
mlava/scholar-sidekick-cursor-plugin
最近来源活动
2026年5月26日 10:48
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
format-citation
description
Format one or more scholarly identifiers as citations in a chosen style (Vancouver, AMA, APA, IEEE, CSE, or any CSL style ID).
# formatCitation Takes a free-text block of identifiers (one per line, mixed types OK) and returns formatted citations in the requested style. Five builtins ship as plain-text formatters; any other style routes through citeproc-js with a CSL stylesheet. ## When to use - The user pastes a list of DOIs/PMIDs/ISBNs and wants Vancouver/APA/IEEE/etc. references. - An agent needs to render a bibliography for a draft manuscript. ## Inputs - `text` (string, required) — One identifier per line, or free text containing identifiers. - `style` (string, optional) — Builtin: `vancouver` (default), `ama`, `apa`, `ieee`, `cse`. Or any CSL style ID (e.g. `nature`, `lancet`, `chicago-author-date`). - `locale` (string, optional) — CSL locale, e.g. `en-US`, `en-GB`. - `output` (string, optional) — `"text"` (default) or `"html"`. - `footnotes` (boolean, optional) — Render HTML output as footnotes. ## Outputs `{ ok: true, items: [{ ok, formatted, _source }, ...] }`. Mixed success — per-item ok flag lets the agent surface partial failures. ## Underlying surfaces - **REST**: `POST /api/format` (or `/api/format/stream` for NDJSON streaming). - **MCP tool**: `formatCitation`. ## Example ```bash curl -sS -X POST "https://scholar-sidekick.com/api/format" \ -H "Content-Type: application/json" \ -d '{"text":"10.1038/nphys1170\n34812345","style":"apa","output":"text"}' ``` ## See also - `exportCitation` for file-format bibliographies (RIS, BibTeX, etc.). - [`/docs.md`](https://scholar-sidekick.com/docs.md) for full API reference.
在 GitHub 查看