Citation Formatter logo

Citation Formatter

Community
zhenwei017-lgtm
citation-formatter

根据用户自定义的参考文献格式规范,自动识别文献类型(专著、期刊论文、学位论文、 会议论文、网络资源等),并将原始文献信息格式化为符合规范的参考文献条目。 当用户提到"参考文献格式"、"文献格式化"、"帮我整理参考文献"、"按格式排列参考文献"、 "这篇文献怎么写格式",或上传/粘贴了一批文献信息并说"按XX规范"/"按学校要求"时, 必须触发此skill。即使用户只是问"这篇参考文献格式对不对",也应触发。

Overview

Publisherzhenwei017-lgtm
Repositorycitation-formatter
Skill namecitation-formatter
Stars
32
Forks
1
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zhenwei017-lgtm on GitHub. Read the source before you install it.

Installation

Install the Citation Formatter AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zhenwei017-lgtm/citation-formatter/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zhenwei017-lgtm/citation-formatter.git \
  .claude/skills/citation-formatter
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Citation Formatter in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Citation Formatter on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Citation Formatter is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

参考文献格式化 Skill

将任意格式的原始文献信息,按照用户指定的格式规范,输出为整洁、正确的参考文献列表。


阶段一:加载格式规范

触发条件:会话开始,或用户尚未提供格式规范时。

询问用户提供格式规范。规范应包含:

  1. 各文献类型的格式模板(如专著、期刊、学位论文、会议论文、网络资源等)
  2. 每种类型至少一个正确示例 提示语示例:

"请把你们学校/期刊要求的参考文献格式发给我,包括不同类型(如专著、期刊等)的格式说明和示例,我来帮你按要求格式化。"

收到规范后,内部解析每种文献类型的模板,提取字段顺序、标点符号、字体/括号要求等细节。解析完成后简短确认:

"已加载你的格式规范,共识别到 X 种文献类型:[列出类型]。现在可以发文献给我了。"


阶段二:文献类型识别

用户每次发来一条或多条文献信息后,依次对每条文献执行以下判断:

识别依据

类型典型特征
专著(书籍)有出版社、出版地、无期刊名
期刊论文有期刊名、卷/期号、页码
学位论文含"硕士"/"博士"/"dissertation"/"thesis"/"学位论文"
会议论文含会议名称、"proceedings"/"论文集"/"大会"
网络资源有URL/DOI且无传统出版信息,或注明"网页"/"官网"
报纸文章有报纸名称、版次或"第X版"
标准/法规含标准编号(如GB/T)或法规名称
编著章节"见:"/"In:",有主编姓名和书名

无法判断时

如果特征不足以确定类型,向用户提一个简短的问题,例如:

"这条文献是专著(书)吗?还是期刊论文?" "这篇有没有发表在某本期刊上?"

每次只问一个问题,不要一次抛出多个选项。


阶段三:格式化输出

类型确认后,将原始文献信息按对应模板格式化:

格式化原则

  1. 严格对照模板:字段顺序、标点、括号类型均按规范,不得自行发挥
  2. 缺失字段处理:
    • 若规范要求某字段但原始信息缺失,用 [?] 占位,并在输出后注明哪些字段需要补充
    • 不要凭空捏造信息(如伪造页码、卷号)
  3. 多作者处理:按规范要求截断(如"等"/"et al."),以规范示例为准
  4. 中英文混排:保持原文语言,不翻译;标点符号按规范要求(中文规范用中文标点,英文规范用英文标点)

输出格式

每次输出一个编号列表,格式如下:

[1] 格式化后的参考文献条目
[2] 格式化后的参考文献条目
...
 
⚠️ 需补充信息:
- [1] 缺少出版年份
- [3] 缺少期刊卷号

如果所有信息完整,省略"需补充信息"部分。


阶段四:持续处理

用户可以持续发送新的文献。每次新增时:

  • 承接已有编号,继续累积列表(除非用户要求重新开始)
  • 不重复输出之前已格式化的条目
  • 如用户说"帮我整理一下全部",输出截至目前的完整列表

格式规范更新

如果用户说"格式要求变了"或"换一个规范",清除旧规范,重新执行阶段一。 已格式化的文献需重新按新规范处理(询问用户是否需要重新格式化之前的条目)。


边缘情况处理

用户直接粘贴大量文献:逐条处理,批量输出,无法判断类型的统一在最后列出并集中提问。

文献信息极度残缺(如只有作者和标题):先用 [?] 占位输出,再列出所有缺失字段。

用户未提供格式规范就直接发文献:提示用户先提供格式规范,或询问是否使用某个通用规范(如 GB/T 7714-2015、APA 7th、MLA 9th)。

用户质疑格式:展示所用模板和原始文献信息,逐字段对比解释,不要直接改动,先确认是规范问题还是信息问题。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Citation Formatter AI skill do?

根据用户自定义的参考文献格式规范,自动识别文献类型(专著、期刊论文、学位论文、 会议论文、网络资源等),并将原始文献信息格式化为符合规范的参考文献条目。 当用户提到"参考文献格式"、"文献格式化"、"帮我整理参考文献"、"按格式排列参考文献"、 "这篇文献怎么写格式",或上传/粘贴了一批文献信息并说"按XX规范"/"按学校要求"时, 必须触发此skill。即使用户只是问"这篇参考文献格式对不对",也应触发。

Why use Citation Formatter on TypingMind?

Because you install it once and use it with any model. Citation Formatter is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Citation Formatter in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zhenwei017-lgtm/citation-formatter/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Citation Formatter?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Citation Formatter?

As many as you like. As long as a model supports skills, you can use Citation Formatter with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Citation Formatter AI skill free?

It is published on GitHub by zhenwei017-lgtm. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇