hugging-face-paper-publisher by huggingface/skills
npx skills add https://github.com/huggingface/skills --skill hugging-face-paper-publisher本技能为 AI 工程师和研究人员提供了一套全面的工具,用于在 Hugging Face Hub 上发布、管理和关联研究论文。它简化了从论文创建到发布的工作流程,包括与 arXiv 的集成、模型/数据集关联以及作者身份管理。
1.0.0
包含的脚本使用 PEP 723 内联依赖项。推荐使用 uv run 而非手动设置环境。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
该技能包含位于 scripts/ 目录下的 Python 脚本,用于论文发布操作。
uv run 运行脚本(依赖项从脚本头部解析)HF_TOKEN 环境变量所有路径均相对于包含此 SKILL.md 文件的目录。 在运行任何脚本之前,请先
cd到该目录或使用完整路径。
从 arXiv 向 Hugging Face 论文页面添加论文。
基本用法:
uv run scripts/paper_manager.py index \
--arxiv-id "2301.12345"
检查论文是否存在:
uv run scripts/paper_manager.py check \
--arxiv-id "2301.12345"
直接 URL 访问: 您也可以直接访问 https://huggingface.co/papers/{arxiv-id} 来索引论文。
使用正确的 YAML 元数据向模型或数据集 README 添加论文引用。
添加到模型卡片:
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-id "2301.12345"
添加到数据集卡片:
uv run scripts/paper_manager.py link \
--repo-id "username/dataset-name" \
--repo-type "dataset" \
--arxiv-id "2301.12345"
添加多篇论文:
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-ids "2301.12345,2302.67890,2303.11111"
使用自定义引用:
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-id "2301.12345" \
--citation "$(cat citation.txt)"
当您向模型或数据集 README 添加 arXiv 论文链接时:
arxiv:<PAPER_ID>验证您在 Hugging Face 上发表的论文的作者身份。
启动认领流程:
uv run scripts/paper_manager.py claim \
--arxiv-id "2301.12345" \
--email "your.email@institution.edu"
手动流程:
https://huggingface.co/papers/{arxiv-id}检查作者身份状态:
uv run scripts/aper_manager.py check-authorship \
--arxiv-id "2301.12345"
控制哪些已验证的论文显示在您的公开个人资料上。
列出您的论文:
uv run scripts/paper_manager.py list-my-papers
切换可见性:
uv run scripts/paper_manager.py toggle-visibility \
--arxiv-id "2301.12345" \
--show true
在设置中管理: 导航到您的账户设置 → 论文部分,为每篇论文切换“在个人资料上显示”。
使用现代模板生成基于 Markdown 的专业科研论文。
从模板创建:
uv run scripts/paper_manager.py create \
--template "standard" \
--title "Your Paper Title" \
--output "paper.md"
可用模板:
standard - 传统的科研论文结构modern - 受 Distill 启发的简洁、网页友好格式arxiv - arXiv 风格格式ml-report - 机器学习实验报告生成完整论文:
uv run scripts/paper_manager.py create \
--template "modern" \
--title "Fine-Tuning Large Language Models with LoRA" \
--authors "Jane Doe, John Smith" \
--abstract "$(cat abstract.txt)" \
--output "paper.md"
转换为 HTML:
uv run scripts/paper_manager.py convert \
--input "paper.md" \
--output "paper.html" \
--style "modern"
标准科研论文章节:
---
title: Your Paper Title
authors: Jane Doe, John Smith
affiliations: University X, Lab Y
date: 2025-01-15
arxiv: 2301.12345
tags: [machine-learning, nlp, fine-tuning]
---
# Abstract
Brief summary of the paper...
# 1. Introduction
Background and motivation...
# 2. Related Work
Previous research and context...
# 3. Methodology
Approach and implementation...
# 4. Experiments
Setup, datasets, and procedures...
# 5. Results
Findings and analysis...
# 6. Discussion
Interpretation and implications...
# 7. Conclusion
Summary and future work...
# References
现代模板特性:
索引论文:
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
关联到仓库:
uv run scripts/paper_manager.py link \
--repo-id "username/repo-name" \
--repo-type "model|dataset|space" \
--arxiv-id "2301.12345" \
[--citation "Full citation text"] \
[--create-pr]
认领作者身份:
uv run scripts/paper_manager.py claim \
--arxiv-id "2301.12345" \
--email "your.email@edu"
管理可见性:
uv run scripts/paper_manager.py toggle-visibility \
--arxiv-id "2301.12345" \
--show true|false
创建研究文章:
uv run scripts/paper_manager.py create \
--template "standard|modern|arxiv|ml-report" \
--title "Paper Title" \
[--authors "Author1, Author2"] \
[--abstract "Abstract text"] \
[--output "filename.md"]
将 Markdown 转换为 HTML:
uv run scripts/paper_manager.py convert \
--input "paper.md" \
--output "paper.html" \
[--style "modern|classic"]
检查论文状态:
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
列出您的论文:
uv run scripts/paper_manager.py list-my-papers
搜索论文:
uv run scripts/paper_manager.py search --query "transformer attention"
将论文关联到模型或数据集时,需要正确的 YAML frontmatter:
模型卡片示例:
---
language:
- en
license: apache-2.0
tags:
- text-generation
- transformers
- llm
library_name: transformers
---
# Model Name
This model is based on the approach described in [Our Paper](https://arxiv.org/abs/2301.12345).
## Citation
```bibtex
@article{doe2023paper,
title={Your Paper Title},
author={Doe, Jane and Smith, John},
journal={arXiv preprint arXiv:2301.12345},
year={2023}
}
**数据集卡片示例:**
```yaml
---
language:
- en
license: cc-by-4.0
task_categories:
- text-generation
- question-answering
size_categories:
- 10K<n<100K
---
# Dataset Name
Dataset introduced in [Our Paper](https://arxiv.org/abs/2301.12345).
For more details, see the [paper page](https://huggingface.co/papers/2301.12345).
Hub 会自动从这些链接中提取 arXiv ID 并创建 arxiv:2301.12345 标签。
工作流程 1:发布新研究
# 1. 创建研究文章
uv run scripts/paper_manager.py create \
--template "modern" \
--title "Novel Fine-Tuning Approach" \
--output "paper.md"
# 2. 用您的内容编辑 paper.md
# 3. 提交到 arXiv(外部流程)
# 上传到 arxiv.org,获取 arXiv ID
# 4. 在 Hugging Face 上索引
uv run scripts/aper_manager.py index --arxiv-id "2301.12345"
# 5. 关联到您的模型
uv run scripts/paper_manager.py link \
--repo-id "your-username/your-model" \
--repo-type "model" \
--arxiv-id "2301.12345"
# 6. 认领作者身份
uv run scripts/paper_manager.py claim \
--arxiv-id "2301.12345" \
--email "your.email@edu"
工作流程 2:关联现有论文
# 1. 检查论文是否存在
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
# 2. 如果需要则索引
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
# 3. 关联到多个仓库
uv run scripts/paper_manager.py link \
--repo-id "username/model-v1" \
--repo-type "model" \
--arxiv-id "2301.12345"
uv run scripts/paper_manager.py link \
--repo-id "username/training-data" \
--repo-type "dataset" \
--arxiv-id "2301.12345"
uv run scripts/paper_manager.py link \
--repo-id "username/demo-space" \
--repo-type "space" \
--arxiv-id "2301.12345"
工作流程 3:使用论文引用更新模型
# 1. 获取当前 README
hf download username/model-name README.md
# 2. 添加论文链接
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-id "2301.12345" \
--citation "Full citation for the paper"
# 脚本将:
# - 如果缺少则添加 YAML 元数据
# - 在 README 中插入 arXiv 链接
# - 添加格式化的引用
# - 保留现有内容
论文索引
元数据管理
作者身份
仓库关联
研究文章
批量关联论文:
# 将多篇论文关联到一个仓库
for arxiv_id in "2301.12345" "2302.67890" "2303.11111"; do
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-id "$arxiv_id"
done
提取论文信息:
# 从 arXiv 获取论文元数据
uv run scripts/paper_manager.py info \
--arxiv-id "2301.12345" \
--format "json"
生成引用:
# 创建 BibTeX 引用
uv run scripts/paper_manager.py citation \
--arxiv-id "2301.12345" \
--format "bibtex"
验证链接:
# 检查仓库中的所有论文链接
uv run scripts/paper_manager.py validate \
--repo-id "username/model-name" \
--repo-type "model"
问题 : "在 Hugging Face 上未找到论文"
hf.co/papers/{arxiv-id} 以触发索引问题 : "作者身份认领未验证"
问题 : "arXiv 标签未出现"
问题 : "无法关联到仓库"
问题 : "模板渲染错误"
本技能通过提供以下功能,补充了 tfrere 的研究文章模板:
您可以使用 tfrere 的模板进行写作,然后使用本技能在 Hugging Face Hub 上发布和关联论文。
模式 1:新论文发布
# 撰写 → 发布 → 索引 → 关联
uv run scripts/paper_manager.py create --template modern --output paper.md
# (提交到 arXiv)
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "2301.12345"
模式 2:现有论文发现
# 搜索 → 检查 → 关联
uv run scripts/paper_manager.py search --query "transformers"
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "2301.12345"
模式 3:作者作品集管理
# 认领 → 验证 → 组织
uv run scripts/paper_manager.py claim --arxiv-id "2301.12345"
uv run scripts/paper_manager.py list-my-papers
uv run scripts/paper_manager.py toggle-visibility --arxiv-id "2301.12345" --show true
Python 脚本示例:
from scripts.paper_manager import PaperManager
pm = PaperManager(hf_token="your_token")
# 索引论文
pm.index_paper("2301.12345")
# 关联到模型
pm.link_paper(
repo_id="username/model",
repo_type="model",
arxiv_id="2301.12345",
citation="Full citation text"
)
# 检查状态
status = pm.check_paper("2301.12345")
print(status)
未来版本计划的功能:
每周安装量
244
仓库
GitHub 星标数
9.7K
首次出现
Jan 20, 2026
安全审计
安装于
opencode210
gemini-cli206
codex202
github-copilot194
claude-code192
cursor192
This skill provides comprehensive tools for AI engineers and researchers to publish, manage, and link research papers on the Hugging Face Hub. It streamlines the workflow from paper creation to publication, including integration with arXiv, model/dataset linking, and authorship management.
1.0.0
The included script uses PEP 723 inline dependencies. Prefer uv run over manual environment setup.
The skill includes Python scripts in scripts/ for paper publishing operations.
uv run (dependencies are resolved from the script header)HF_TOKEN environment variable with Write-access tokenAll paths are relative to the directory containing this SKILL.md file. Before running any script, first
cdto that directory or use the full path.
Add a paper to Hugging Face Paper Pages from arXiv.
Basic Usage:
uv run scripts/paper_manager.py index \
--arxiv-id "2301.12345"
Check If Paper Exists:
uv run scripts/paper_manager.py check \
--arxiv-id "2301.12345"
Direct URL Access: You can also visit https://huggingface.co/papers/{arxiv-id} directly to index a paper.
Add paper references to model or dataset README with proper YAML metadata.
Add to Model Card:
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-id "2301.12345"
Add to Dataset Card:
uv run scripts/paper_manager.py link \
--repo-id "username/dataset-name" \
--repo-type "dataset" \
--arxiv-id "2301.12345"
Add Multiple Papers:
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-ids "2301.12345,2302.67890,2303.11111"
With Custom Citation:
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-id "2301.12345" \
--citation "$(cat citation.txt)"
When you add an arXiv paper link to a model or dataset README:
arxiv:<PAPER_ID> is automatically added to the repositoryVerify your authorship on papers published on Hugging Face.
Start Claim Process:
uv run scripts/paper_manager.py claim \
--arxiv-id "2301.12345" \
--email "your.email@institution.edu"
Manual Process:
https://huggingface.co/papers/{arxiv-id}Check Authorship Status:
uv run scripts/paper_manager.py check-authorship \
--arxiv-id "2301.12345"
Control which verified papers appear on your public profile.
List Your Papers:
uv run scripts/paper_manager.py list-my-papers
Toggle Visibility:
uv run scripts/paper_manager.py toggle-visibility \
--arxiv-id "2301.12345" \
--show true
Manage in Settings: Navigate to your account settings → Papers section to toggle "Show on profile" for each paper.
Generate a professional markdown-based research paper using modern templates.
Create from Template:
uv run scripts/paper_manager.py create \
--template "standard" \
--title "Your Paper Title" \
--output "paper.md"
Available Templates:
standard - Traditional scientific paper structuremodern - Clean, web-friendly format inspired by Distillarxiv - arXiv-style formattingml-report - Machine learning experiment reportGenerate Complete Paper:
uv run scripts/paper_manager.py create \
--template "modern" \
--title "Fine-Tuning Large Language Models with LoRA" \
--authors "Jane Doe, John Smith" \
--abstract "$(cat abstract.txt)" \
--output "paper.md"
Convert to HTML:
uv run scripts/paper_manager.py convert \
--input "paper.md" \
--output "paper.html" \
--style "modern"
Standard Research Paper Sections:
---
title: Your Paper Title
authors: Jane Doe, John Smith
affiliations: University X, Lab Y
date: 2025-01-15
arxiv: 2301.12345
tags: [machine-learning, nlp, fine-tuning]
---
# Abstract
Brief summary of the paper...
# 1. Introduction
Background and motivation...
# 2. Related Work
Previous research and context...
# 3. Methodology
Approach and implementation...
# 4. Experiments
Setup, datasets, and procedures...
# 5. Results
Findings and analysis...
# 6. Discussion
Interpretation and implications...
# 7. Conclusion
Summary and future work...
# References
Modern Template Features:
Index Paper:
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
Link to Repository:
uv run scripts/paper_manager.py link \
--repo-id "username/repo-name" \
--repo-type "model|dataset|space" \
--arxiv-id "2301.12345" \
[--citation "Full citation text"] \
[--create-pr]
Claim Authorship:
uv run scripts/paper_manager.py claim \
--arxiv-id "2301.12345" \
--email "your.email@edu"
Manage Visibility:
uv run scripts/paper_manager.py toggle-visibility \
--arxiv-id "2301.12345" \
--show true|false
Create Research Article:
uv run scripts/paper_manager.py create \
--template "standard|modern|arxiv|ml-report" \
--title "Paper Title" \
[--authors "Author1, Author2"] \
[--abstract "Abstract text"] \
[--output "filename.md"]
Convert Markdown to HTML:
uv run scripts/paper_manager.py convert \
--input "paper.md" \
--output "paper.html" \
[--style "modern|classic"]
Check Paper Status:
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
List Your Papers:
uv run scripts/paper_manager.py list-my-papers
Search Papers:
uv run scripts/paper_manager.py search --query "transformer attention"
When linking papers to models or datasets, proper YAML frontmatter is required:
Model Card Example:
---
language:
- en
license: apache-2.0
tags:
- text-generation
- transformers
- llm
library_name: transformers
---
# Model Name
This model is based on the approach described in [Our Paper](https://arxiv.org/abs/2301.12345).
## Citation
```bibtex
@article{doe2023paper,
title={Your Paper Title},
author={Doe, Jane and Smith, John},
journal={arXiv preprint arXiv:2301.12345},
year={2023}
}
**Dataset Card Example:**
```yaml
---
language:
- en
license: cc-by-4.0
task_categories:
- text-generation
- question-answering
size_categories:
- 10K<n<100K
---
# Dataset Name
Dataset introduced in [Our Paper](https://arxiv.org/abs/2301.12345).
For more details, see the [paper page](https://huggingface.co/papers/2301.12345).
The Hub automatically extracts arXiv IDs from these links and creates arxiv:2301.12345 tags.
Workflow 1: Publish New Research
# 1. Create research article
uv run scripts/paper_manager.py create \
--template "modern" \
--title "Novel Fine-Tuning Approach" \
--output "paper.md"
# 2. Edit paper.md with your content
# 3. Submit to arXiv (external process)
# Upload to arxiv.org, get arXiv ID
# 4. Index on Hugging Face
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
# 5. Link to your model
uv run scripts/paper_manager.py link \
--repo-id "your-username/your-model" \
--repo-type "model" \
--arxiv-id "2301.12345"
# 6. Claim authorship
uv run scripts/paper_manager.py claim \
--arxiv-id "2301.12345" \
--email "your.email@edu"
Workflow 2: Link Existing Paper
# 1. Check if paper exists
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
# 2. Index if needed
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
# 3. Link to multiple repositories
uv run scripts/paper_manager.py link \
--repo-id "username/model-v1" \
--repo-type "model" \
--arxiv-id "2301.12345"
uv run scripts/paper_manager.py link \
--repo-id "username/training-data" \
--repo-type "dataset" \
--arxiv-id "2301.12345"
uv run scripts/paper_manager.py link \
--repo-id "username/demo-space" \
--repo-type "space" \
--arxiv-id "2301.12345"
Workflow 3: Update Model with Paper Reference
# 1. Get current README
hf download username/model-name README.md
# 2. Add paper link
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-id "2301.12345" \
--citation "Full citation for the paper"
# The script will:
# - Add YAML metadata if missing
# - Insert arXiv link in README
# - Add formatted citation
# - Preserve existing content
Paper Indexing
Metadata Management
Authorship
Repository Linking
Research Articles
Batch Link Papers:
# Link multiple papers to one repository
for arxiv_id in "2301.12345" "2302.67890" "2303.11111"; do
uv run scripts/paper_manager.py link \
--repo-id "username/model-name" \
--repo-type "model" \
--arxiv-id "$arxiv_id"
done
Extract Paper Info:
# Get paper metadata from arXiv
uv run scripts/paper_manager.py info \
--arxiv-id "2301.12345" \
--format "json"
Generate Citation:
# Create BibTeX citation
uv run scripts/paper_manager.py citation \
--arxiv-id "2301.12345" \
--format "bibtex"
Validate Links:
# Check all paper links in a repository
uv run scripts/paper_manager.py validate \
--repo-id "username/model-name" \
--repo-type "model"
Issue : "Paper not found on Hugging Face"
hf.co/papers/{arxiv-id} to trigger indexingIssue : "Authorship claim not verified"
Issue : "arXiv tag not appearing"
Issue : "Cannot link to repository"
Issue : "Template rendering errors"
This skill complements tfrere's research article template by providing:
You can use tfrere's template for writing, then use this skill to publish and link the paper on Hugging Face Hub.
Pattern 1: New Paper Publication
# Write → Publish → Index → Link
uv run scripts/paper_manager.py create --template modern --output paper.md
# (Submit to arXiv)
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"
uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "2301.12345"
Pattern 2: Existing Paper Discovery
# Search → Check → Link
uv run scripts/paper_manager.py search --query "transformers"
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"
uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "2301.12345"
Pattern 3: Author Portfolio Management
# Claim → Verify → Organize
uv run scripts/paper_manager.py claim --arxiv-id "2301.12345"
uv run scripts/paper_manager.py list-my-papers
uv run scripts/paper_manager.py toggle-visibility --arxiv-id "2301.12345" --show true
Python Script Example:
from scripts.paper_manager import PaperManager
pm = PaperManager(hf_token="your_token")
# Index paper
pm.index_paper("2301.12345")
# Link to model
pm.link_paper(
repo_id="username/model",
repo_type="model",
arxiv_id="2301.12345",
citation="Full citation text"
)
# Check status
status = pm.check_paper("2301.12345")
print(status)
Planned features for future versions:
Weekly Installs
244
Repository
GitHub Stars
9.7K
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode210
gemini-cli206
codex202
github-copilot194
claude-code192
cursor192
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
56,200 周安装
GrepAI 安装指南:macOS/Linux/Windows 全平台安装、升级与验证教程
240 周安装
Salesforce Agentforce 智能体测试与覆盖率分析指南 - 多轮对话与 CLI 测试
240 周安装
Web Browser Skill:极简CDP工具,自动化网页导航、JS执行与Cookie处理
240 周安装
Claude Code 上下文压缩恢复工具 - 自动恢复工作状态,加载知识库,总结工作进度
241 周安装
阿里云AI语音实时TTS测试技能:最小可行性验证与兼容性探测指南
241 周安装
阿里云DNS CLI测试指南:alicloud-network-dns-cli-test 安装与使用教程
241 周安装