npx skills add ...
npx skills add huggingface/skills --skill huggingface-paper-publisher
npx skills add huggingface/skills --skill huggingface-paper-publisher
Publish and manage research papers on Hugging Face Hub. Supports creating paper pages, linking papers to models/datasets, claiming authorship, and generating professional markdown-based research articles.
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:
Check If Paper Exists:
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:
Add to Dataset Card:
Add Multiple Papers:
With Custom Citation:
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:
Manual Process:
https://huggingface.co/papers/{arxiv-id}Check Authorship Status:
Control which verified papers appear on your public profile.
List Your Papers:
Toggle Visibility:
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:
Available Templates:
standard - Traditional scientific paper structuremodern - Clean, web-friendly format inspired by Distillarxiv - arXiv-style formattingml-report - Machine learning experiment reportGenerate Complete Paper:
Convert to HTML:
Standard Research Paper Sections:
Modern Template Features:
Index Paper:
Link to Repository:
Claim Authorship:
Manage Visibility:
Create Research Article:
Convert Markdown to HTML:
Check Paper Status:
List Your Papers:
Search Papers:
When linking papers to models or datasets, proper YAML frontmatter is required:
Model Card Example:
The Hub automatically extracts arXiv IDs from these links and creates arxiv:2301.12345 tags.
Workflow 1: Publish New Research
Workflow 2: Link Existing Paper
Workflow 3: Update Model with Paper Reference
Paper Indexing
Metadata Management
Authorship
Repository Linking
Research Articles
Batch Link Papers:
Extract Paper Info:
Generate Citation:
Validate Links:
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
Pattern 2: Existing Paper Discovery
Pattern 3: Author Portfolio Management
Python Script Example:
Planned features for future versions:
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)"uv run scripts/paper_manager.py claim \
--arxiv-id "2301.12345" \
--email "your.email@institution.edu"uv run scripts/paper_manager.py check-authorship \
--arxiv-id "2301.12345"uv run scripts/paper_manager.py list-my-papersuv run scripts/paper_manager.py list-my-papersuv run scripts/paper_manager.py toggle-visibility \
--arxiv-id "2301.12345" \
--show trueuv run scripts/paper_manager.py create \
--template "standard" \
--title "Your Paper Title" \
--output "paper.md"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"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...
# Referencesuv 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|falseuv run scripts/paper_manager.py create \
--template "standard|modern|arxiv|ml-report" \
--title "Paper Title" \
[--authors "Author1, Author2"] \
[--abstract "Abstract text"] \
[--output "filename.md"]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 search --query "transformer attention"