Agent skill

Fin Ref Paper

by csmar432 in csmar432/finai-research

从LITREVIEW.md和IDEAREPORT.md中提取参考文献,自动生成符合JF/JFE/RFS/GB-T-7714格式的references.bib,并管理引用一致性。

MITAuto-check passedResearch & Science

Install Fin Ref Paper

skills CLI
$ npx skills add csmar432/finai-research --skill fin-ref-paper -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install csmar432/finai-research fin-ref-paper --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/csmar432/finai-research.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/fin-ref-paper .claude/skills/fin-ref-paper && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fin-ref-paper
GitHub stars
109
Token cost
~2k tokens
SKILL.md length
174 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

从LITREVIEW.md和IDEAREPORT.md中提取参考文献,自动生成符合JF/JFE/RFS/GB-T-7714格式的references.bib,并管理引用一致性。

  • Works in 5 steps: DOI优先 — 有DOI时自动补全所有元数据 → 格式标准化 — 按目标期刊格式输出 → 一致性必查 — 每条引用必须有对应bib条目 → …
  • Tasks that involve Econometrics and empirical research
  • SKILL.md covers 触发条件, 参考文献管理流程, 期刊格式规范 and 输出文件, plus 3 more sections
  • Reaches api.crossref.org

What it does

Fin Ref Paper is an agent skill from csmar432/finai-research. 从LITREVIEW.md和IDEAREPORT.md中提取参考文献,自动生成符合JF/JFE/RFS/GB-T-7714格式的references.bib,并管理引用一致性。

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Research & Science, covering Econometrics and empirical research and Citation management. It works with LaTeX. The repository describes itself as: Evidence-first AI workflow for economic and financial research: literature → identification → data → econometrics → verifiable LaTeX. 43 data sources, 58 method modules, 18 AI… The licence is MIT.

When your agent uses it

  • Tasks that involve Econometrics and empirical research
  • Tasks that involve Citation management

Example prompts

  • “/fin-ref-paper”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. DOI优先 — 有DOI时自动补全所有元数据
  2. 格式标准化 — 按目标期刊格式输出
  3. 一致性必查 — 每条引用必须有对应bib条目
  4. 作者姓名规范 — 使用 "Last, First" 格式
  5. 期刊缩写 — 英文期刊使用标准缩写

What it can do on your machine

Read from SKILL.md and the folder at commit 47eebb7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python, bibtex and markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.crossref.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fin Ref Paper loads about 2k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 174 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from csmar432/finai-research at commit 47eebb7, republished under its MIT licence (© csmar432). 174 words, ~1,951 tokens.

Download SKILL.mdSave it as .claude/skills/fin-ref-paper/SKILL.md (or your agent's skills folder).
name
fin-ref-paper
description
从LIT_REVIEW.md和IDEA_REPORT.md中提取参考文献,自动生成符合JF/JFE/RFS/GB-T-7714格式的references.bib,并管理引用一致性。
trigger
参考文献|ref|bib|引用格式|citation|reference|文献引用
version
1.0.0
created
2026-06-13
tags
reference, bibtex, citation, formatting, literature

fin-ref-paper

从LIT_REVIEW.md和IDEA_REPORT.md中提取参考文献,自动生成符合JF/JFE/RFS/GB-T-7714格式的references.bib,并管理引用一致性。

触发条件

  • 关键词: 参考文献 ref bib 引用格式 citation reference 文献引用 BibTeX
  • Skill语法: Skill: fin-ref-paper
  • 前置条件: 已有研究输出文件 (LIT_REVIEW.md, IDEA_REPORT.md 等)

参考文献管理流程

第一步:提取参考文献

从现有文档中自动提取参考文献信息:

python
from scripts.ref_paper import ReferenceExtractor, ExtractedReference

extractor = ReferenceExtractor()

# 从多个来源提取
extracted = extractor.extract_from_multiple(
    sources=[
        "output/fin-literature/LIT_REVIEW.md",
        "output/fin-ideas/IDEA_REPORT.md",
        "output/fin-novelty/NOVELTY_REPORT.md",
    ]
)

print(f"提取到 {len(extracted)} 条参考文献")
for ref in extracted[:3]:
    print(f"  - {ref.author} ({ref.year}). {ref.title}. {ref.journal}.")

提取的信息:

字段说明示例
author作者"Zhang, Y. and Li, X."
title标题"The Effect of Carbon Trading"
year年份2023
journal期刊"Journal of Finance"
volume卷"78"
issue期"3"
pages页码"1234-1289"
doiDOI"10.1111/jofi.12345"
urlURL(optional)
第二步:Enrich元数据

使用CrossRef API自动补全缺失信息:

python
import requests

def get_crossref_metadata(doi: str) -> dict:
    """通过DOI获取完整的文献元数据"""
    resp = requests.get(
        f"https://api.crossref.org/works/{doi}",
        headers={"User-Agent": "fin-research/1.0 (mailto:research@example.com)"}
    )
    if resp.status_code == 200:
        return resp.json()["message"]
    return {}

def enrich_reference(ref: ExtractedReference) -> ExtractedReference:
    """补全缺失字段"""
    if ref.doi:
        meta = get_crossref_metadata(ref.doi)
        ref.volume = meta.get("volume", ref.volume)
        ref.issue = meta.get("issue", ref.issue)
        ref.pages = meta.get("page", ref.pages)
        ref.publisher = meta.get("publisher", "")
        # 规范化作者列表
        authors_raw = meta.get("author", [])
        ref.author = "; ".join([
            f"{a['family']}, {a['given'][0]}." 
            for a in authors_raw
        ])
    return ref

API调用示例:

GET https://api.crossref.org/works/10.1111/jofi.12345

Response:
{
  "message": {
    "title": ["The Effect of Carbon Trading on Innovation"],
    "author": [
      {"family": "Zhang", "given": "Yi"},
      {"family": "Li", "given": "Xiao"}
    ],
    "container-title": ["Journal of Finance"],
    "volume": "78",
    "issue": "3",
    "page": "1234-1289",
    "DOI": "10.1111/jofi.12345",
    "published": {"date-parts": [[2023, 6]]}
  }
}
第三步:转换为BibTeX格式
python
def to_bibtex(ref: ExtractedReference, style: str = "jf") -> str:
    """将参考文献转换为BibTeX格式"""
    
    # 生成唯一引用键
    first_author = ref.author.split(";")[0].split(",")[0].strip()
    key = f"{first_author}{ref.year}"
    
    # 期刊缩写映射 (常见金融期刊)
    journal_abbr = {
        "Journal of Finance": "J. Finance",
        "Journal of Financial Economics": "J. Financ. Econ.",
        "Review of Financial Studies": "Rev. Financ. Stud.",
        "Quarterly Journal of Economics": "Q. J. Econ.",
        "American Economic Review": "Am. Econ. Rev.",
        "经济研究": "J. Econ. (China)",
        "金融研究": "J. Finance (China)",
    }
    
    journal = journal_abbr.get(ref.journal, ref.journal)
    
    bib_entry = f"""@article{{{key},
  author = {{{'; '.join([a.strip() for a in ref.author.split(';')])}}},
  title = {{{ref.title}}},
  journal = {{{journal}}},
  year = {{{ref.year}}},
  volume = {{{ref.volume or ''}}},
  number = {{{ref.issue or ''}}},
  pages = {{{ref.pages or ''}}},
  doi = {{{ref.doi or ''}}},
}}"""
    
    return bib_entry

生成的BibTeX示例:

bibtex
@article{Zhang2023,
  author = {Zhang, Y. and Li, X.},
  title = {The Effect of Carbon Trading on Innovation: Evidence from China},
  journal = {J. Finance},
  year = {2023},
  volume = {78},
  number = {3},
  pages = {1234--1289},
  doi = {10.1111/jofi.12345},
}

@article{Li2022,
  author = {Li, H. and Wang, J.},
  title = {Digital Finance and Corporate Innovation: A Panel Study},
  journal = {J. Financ. Econ.},
  year = {2022},
  volume = {145},
  number = {2},
  pages = {567--589},
  doi = {10.1016/j.jfineco.2022.01.001},
}
第四步:按目标期刊格式化
python
from scripts.ref_paper import ReferenceFormatter

formatter = ReferenceFormatter()

# JF/JFE/RFS格式 (AEA/biblio style)
jf_refs = formatter.format(refs, style="jf")
# 输出: Author (Year). Title. Journal Volume: Pages.

# GB/T 7714-2015格式 (中文顶刊)
cn_refs = formatter.format(refs, style="gb7714")
# 输出: [序号] 作者. 题目[文献类型]. 期刊名, 年, 卷(期): 页.

# 经济研究格式
jjyj_refs = formatter.format(refs, style="经济研究")

格式对比:

风格格式示例
JF/JFEZhang, Y. and Li, X. (2023). The effect of carbon trading. Journal of Finance, 78(3): 1234–1289.
GB/T 7714张三, 李四. 碳排放权交易对企业创新的影响[J]. 经济研究, 2023, 58(3): 1234-1289.
AEAZhang, Y., and X. Li. 2023. "The Effect of Carbon Trading on Innovation." Journal of Finance 78(3): 1234–1289.
第五步:一致性审计
python
from scripts.ref_paper import ReferenceAuditor

auditor = ReferenceAuditor()

# 检查项
issues = auditor.audit(
    bib_file="references.bib",
    tex_file="paper.tex"
)

# 问题类型
# - UNUSED_REF: .bib中有但.tex中未引用
# - MISSING_REF: .tex中引用但.bib中缺失
# - DUPLICATE: 重复条目
# - FORMAT_ERROR: 格式错误
# - CASE_MISMATCH: 作者姓名大小写不一致

for issue in issues:
    print(f"[{issue.severity}] {issue.type}: {issue.message}")
    print(f"  Location: {issue.location}")

审计检查项:

检查项:
□ 所有 \cite{} 键存在于 references.bib
□ 所有 references.bib 条目在 .tex 中被引用
□ 无重复条目
□ 作者姓名一致 (检查大小写)
□ DOI格式正确
□ 年份格式一致
□ 期刊名称标准化
□ 页码格式正确 (无"1234-89"应为"1234-1289")

期刊格式规范

Journal of Finance (JF)
Author, A. B. and Author, C. D. (Year). Title of the article. Journal Name Volume(Number): Pages.
Journal of Financial Economics (JFE)
Author, A. B. and C. D. Author (Year). Title. Journal Name Volume: Pages.
Review of Financial Studies (RFS)
Author, A. B., and C. D. Author (Year). "Title of the Article." Journal Name Volume(Number): Pages.
经济研究 (GB/T 7714-2015)
[1] 作者1, 作者2. 文章标题[J]. 期刊名称, 年, 卷(期): 页码.
金融研究
[1] 作者1, 作者2. 文章标题[J]. 期刊名称, 年, 卷(期): 页码.

输出文件

references.bib

主BibTeX文件,包含所有参考文献:

bibtex
% 生成时间: 2026-06-13
% 目标期刊: 经济研究
% 参考文献数量: 45

@article{Zhang2023,
  author = {Zhang, Y. and Li, X.},
  title = {碳排放权交易对企业绿色创新的影响},
  journal = {经济研究},
  year = {2023},
  volume = {58},
  number = {3},
  pages = {1234--1289},
  doi = {10.1111/j.1245-2823.2023.01234},
}
ref_index.md

按主题分类的文献索引:

markdown
# 参考文献索引

## 理论基础
- Zhang2023: 碳排放权交易理论
- Li2022: 绿色创新理论框架

## 实证方法
- Callaway2021: CS-DID方法
- Sun2021: 事件研究估计

## 核心实证
- Wang2023: 碳交易对企业创新的正向影响
- Chen2022: 政策效果异质性分析
ref_audit.md

一致性审计报告:

markdown
# 参考文献一致性审计报告

## 审计时间
2026-06-13

## 问题汇总
| 问题类型 | 数量 | 严重程度 |
|----------|------|----------|
| UNUSED_REF | 3 | WARNING |
| MISSING_REF | 1 | ERROR |
| DUPLICATE | 0 | - |
| FORMAT_ERROR | 2 | WARNING |

## 详细问题

### ERROR: 引用缺失
- \cite{Huang2022} 在正文中引用但bib中不存在

### WARNING: 未使用文献
- Borusyak2024 在bib中但未在正文中引用

交互流程

[CHECKPOINT] 参考文献管理完成

审计结果:
✅ 所有引用键匹配
⚠️ 3条文献未使用 (可保留供附录)
✅ 格式正确

请选择:
1. 生成/更新 references.bib
2. 查看参考文献索引
3. 查看审计报告
4. 添加新文献

依赖项

  • scripts/ref_paper.py — 参考文献管理核心
  • scripts/journal_template.py — 期刊格式验证
  • scripts/research_framework/modern_did.py — DID相关文献

约束

  1. DOI优先 — 有DOI时自动补全所有元数据
  2. 格式标准化 — 按目标期刊格式输出
  3. 一致性必查 — 每条引用必须有对应bib条目
  4. 作者姓名规范 — 使用 "Last, First" 格式
  5. 期刊缩写 — 英文期刊使用标准缩写

© csmar432, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/fin-ref-paper of csmar432/finai-research.

Open the folder on GitHubat commit 47eebb7

Compare with similar skills

Fin Ref Paper next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fin Ref Paper compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fin Ref Paper this skillcsmar432/finai-research109—~2kAutomated safety check: PassMIT
Citation Managementneflibata-feng/MyArxiv-Agent12619 repos~8.1kAutomated safety check: NotesMIT
Academic Paper Writing PipelineImbad0202/academic-research-skills51k—~16kAutomated safety check: PassCustom licence
Literature Review AgentAr9av/PaperOrchestra6771 repos~5.2kAutomated safety check: PassCustom licence
Academic Searchustc-ai4science/academic-search666—~1.1kAutomated safety check: PassMIT
Collaborating With Claudeappautomaton/latex-arxiv-SKILL4581 repos~1.5kAutomated safety check: PassMIT

Similar skills

  • Citation Management

    neflibata-feng/MyArxiv-Agent

    Comprehensive citation management for academic research. An agent skill from neflibata-feng/MyArxiv-Agent.

    126 GitHub starsUsed in 19 repos~8.1k tokens
    Research & ScienceAuto-check: notes
  • Academic Paper Writing Pipeline

    Imbad0202/academic-research-skills

    Runs a 12-agent pipeline that plans, drafts, cites, reviews and formats academic papers, with modes for revision, rebuttals, abstracts and citation checks.

    51k GitHub stars~16k tokensUpdated today
    Research & ScienceAuto-check passed
  • Literature Review Agent

    Ar9av/PaperOrchestra

    Step 3 of the PaperOrchestra pipeline (arXiv:2604.05018). An agent skill from Ar9av/PaperOrchestra.

    677 GitHub starsUsed in 1 repo~5.2k tokens
    Research & ScienceAuto-check passed
  • Academic Search

    ustc-ai4science/academic-search

    A skill your agent uses when the user asks to search or review academic papers, retrieve scholarly metadata or citation counts, validate or deduplicate scholarly records, find an author's…

    666 GitHub stars~1.1k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed
  • Collaborating With Claude

    appautomaton/latex-arxiv-SKILL

    Use the Claude Code CLI to consult Claude and delegate coding tasks for prototyping, debugging, and code review.

    458 GitHub starsUsed in 1 repo~1.5k tokens
    Research & ScienceAuto-check passed
  • Arxiv MCP Server

    blazickjp/arxiv-mcp-server

    A skill your agent uses when finding, comparing, reading, or monitoring arXiv papers, including requests for abstracts, citation graphs, original LaTeX, section-level technical details, or…

    3.2k GitHub stars~353 tokensUpdated yesterday
    Research & ScienceAuto-check passed

More from csmar432/finai-research

All 15 skills in this repo
  • Fin Arch Diagram

    csmar432/finai-research

    生成研究/项目架构图、流程图、层次图(swimlane / processflow / hierarchytree)。适合 PPT 汇报、技术文档、综述插图。输出风格接近 draw.io,可选 graphviz(高质量)/ matplotlib(零依赖)双后端。

    109 GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Fin Brief Generator

    csmar432/finai-research

    根据用户输入或已有研究输出(文献综述/想法报告/新颖性报告),自动生成或更新FINBRIEF.md,减少用户填写负担. An agent skill from csmar432/finai-research.

    109 GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed
  • Fin Data Acquisition

    csmar432/finai-research

    根据REFINEDDESIGN.md中的变量定义,自动获取所需数据并生成可执行的回归分析脚本(Python/Stata)。

    109 GitHub stars~2k tokensUpdated 3 days ago
    Auto-check passed
  • Fin Experiment Design

    csmar432/finai-research

    经济金融实证方法设计。根据研究想法和REFINEDDESIGN.md,生成完整的实证研究设计方案,覆盖识别策略选择、样本构建、变量定义、稳健性检验清单和内生性处理方案。

    109 GitHub stars~4.2k tokensUpdated 3 days ago
    Auto-check passed
  • Fin Generate Idea

    csmar432/finai-research

    针对经济金融研究方向的创意生成与评估。生成8-12个可发表的研究idea,过滤后在数据可行的情况下进行小规模实证验证,输出排序后的研究想法报告。

    109 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Fin Idea Discovery

    csmar432/finai-research

    经济金融研究的完整想法发现流程。从研究方向出发,经过文献综述、想法生成、新颖性验证、实证方法设计和数据获取,输出经过数据实证验证的可执行研究方案。

    109 GitHub stars~2.7k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Fin Ref Paper

What does Fin Ref Paper do?

从LITREVIEW.md和IDEAREPORT.md中提取参考文献,自动生成符合JF/JFE/RFS/GB-T-7714格式的references.bib,并管理引用一致性。. Fin Ref Paper is an agent skill from csmar432/finai-research.

When should I use Fin Ref Paper?

Fin Ref Paper fits situations like: tasks that involve Econometrics and empirical research; tasks that involve Citation management.

How do I install Fin Ref Paper in Claude Code?

Run `npx skills add csmar432/finai-research --skill fin-ref-paper -a claude-code`. Or copy the skill folder (.agents/skills/fin-ref-paper in csmar432/finai-research) into .claude/skills/fin-ref-paper in your project. Claude Code loads it when a task matches its description.

How do I install Fin Ref Paper in Codex?

Run `npx skills add csmar432/finai-research --skill fin-ref-paper -a codex`. Or copy the skill folder (.agents/skills/fin-ref-paper in csmar432/finai-research) into .agents/skills/fin-ref-paper in your project. Codex loads it when a task matches its description.

Can I use Fin Ref Paper in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add csmar432/finai-research --skill fin-ref-paper -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fin-ref-paper, .gemini/skills/fin-ref-paper, .github/skills/fin-ref-paper and .opencode/skills/fin-ref-paper in your project.

What does Fin Ref Paper need to run?

SKILL.md names no scripts, command-line tools or credentials: Fin Ref Paper is instructions for the agent only. Our summary lists: Python 3.

Does Fin Ref Paper access the network?

SKILL.md names 1 domain. In commands or code: api.crossref.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Fin Ref Paper safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fin Ref Paper use?

Fin Ref Paper is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fin Ref Paper use?

About 2k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Fin Ref Paper?

Skills that share tags, products or a category with Fin Ref Paper: Citation Management (neflibata-feng/MyArxiv-Agent, 126 stars), Academic Paper Writing Pipeline (Imbad0202/academic-research-skills, 51k stars), Literature Review Agent (Ar9av/PaperOrchestra, 677 stars) and Academic Search (ustc-ai4science/academic-search, 666 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fin Ref Paper?

csmar432 (a GitHub user) maintains it in csmar432/finai-research, which has 109 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 6, 2026.

Source: csmar432/finai-research on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.