All skills
huggingface avatar

/huggingface-paper-publisher

@386571e official
by Hugging Facehuggingface/skills11k stars
753

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.

Use this Skill: https://skilld.dev/gh/huggingface/skills/huggingface-paper-publisher

This session only. Nothing lands on disk.

referencesquick_reference.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Quick Reference Guide

Essential Commands

Paper Indexing

# Index from arXiv
uv run scripts/paper_manager.py index --arxiv-id "2301.12345"

# Check if exists
uv run scripts/paper_manager.py check --arxiv-id "2301.12345"

Linking Papers

# Link to model
uv run scripts/paper_manager.py link \
  --repo-id "username/model" \
  --repo-type "model" \
  --arxiv-id "2301.12345"

# Link to dataset
uv run scripts/paper_manager.py link \
  --repo-id "username/dataset" \
  --repo-type "dataset" \
  --arxiv-id "2301.12345"

# Link multiple papers
uv run scripts/paper_manager.py link \
  --repo-id "username/model" \
  --repo-type "model" \
  --arxiv-ids "2301.12345,2302.67890"

Creating Papers

# Standard template
uv run scripts/paper_manager.py create \
  --template "standard" \
  --title "Paper Title" \
  --output "paper.md"

# Modern template
uv run scripts/paper_manager.py create \
  --template "modern" \
  --title "Paper Title" \
  --authors "Author1, Author2" \
  --abstract "Abstract text" \
  --output "paper.md"

# ML Report
uv run scripts/paper_manager.py create \
  --template "ml-report" \
  --title "Experiment Report" \
  --output "report.md"

# arXiv style
uv run scripts/paper_manager.py create \
  --template "arxiv" \
  --title "Paper Title" \
  --output "paper.md"

Citations

# Generate BibTeX
uv run scripts/paper_manager.py citation \
  --arxiv-id "2301.12345" \
  --format "bibtex"

Paper Info

# JSON format
uv run scripts/paper_manager.py info \
  --arxiv-id "2301.12345" \
  --format "json"

# Text format
uv run scripts/paper_manager.py info \
  --arxiv-id "2301.12345" \
  --format "text"

URL Formats

Hugging Face Paper Pages

  • View paper: https://huggingface.co/papers/{arxiv-id}
  • Example: https://huggingface.co/papers/2301.12345

arXiv

  • Abstract: https://arxiv.org/abs/{arxiv-id}
  • PDF: https://arxiv.org/pdf/{arxiv-id}.pdf
  • Example: https://arxiv.org/abs/2301.12345

YAML Metadata Format

Model Card

---
language:
  - en
license: apache-2.0
tags:
  - text-generation
  - transformers
library_name: transformers
---

Dataset Card

---
language:
  - en
license: cc-by-4.0
task_categories:
  - text-generation
size_categories:
  - 10K<n<100K
---

arXiv ID Formats

All these formats work:

  • 2301.12345
  • arxiv:2301.12345
  • https://arxiv.org/abs/2301.12345
  • https://arxiv.org/pdf/2301.12345.pdf

Environment Setup

Set Token

export HF_TOKEN="your_token"

Or use .env file

echo "HF_TOKEN=your_token" > .env

Common Workflows

1. Index & Link

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. Create & Publish

uv run scripts/paper_manager.py create --template "modern" --title "Title" --output "paper.md"
# Edit paper.md
# Submit to arXiv → get ID
uv run scripts/paper_manager.py index --arxiv-id "NEW_ID"
uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "NEW_ID"

3. Batch Link

for id in "2301.12345" "2302.67890"; do
  uv run scripts/paper_manager.py link --repo-id "user/model" --arxiv-id "$id"
done

Troubleshooting

Paper not found

Visit https://huggingface.co/papers/{arxiv-id} to trigger indexing

Permission denied

Check HF_TOKEN is set and has write access

arXiv API errors

Wait a moment and retry - arXiv has rate limits

Tips

  1. Always check paper exists before linking
  2. Use templates for consistency
  3. Include full citations in model cards
  4. Link papers to all relevant artifacts
  5. Keep citations up to date

Templates Available

  • standard - Traditional academic paper
  • modern - Web-friendly format (Distill-style)
  • arxiv - arXiv journal format
  • ml-report - ML experiment documentation

File Locations

  • Scripts: scripts/paper_manager.py
  • Templates: templates/*.md
  • Examples: examples/example_usage.md
  • This guide: references/quick_reference.md

Getting Help

# Command help
uv run scripts/paper_manager.py --help

# Subcommand help
uv run scripts/paper_manager.py link --help

Additional Resources

Source: SKILL.md on GitHub

1 warning16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill is safe and includes design considerations regarding the processing of external research paper metadata. It implements robust sanitization and boundary containment to ensure safe operations within its intended workspace.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 386571e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 6 months ago
  • Python
  • huggingface
  • arxiv
  • research-papers
  • metadata
  • publishing
  • markdown
  • citations
  • model-cards
  • dataset-cards

README badge

README badge for huggingface/skills/huggingface-paper-publisher

Publishes and manages research papers on Hugging Face Hub, supporting paper indexing from arXiv, linking papers to models and datasets, authorship verification, and generation of markdown-based research articles. Targets researchers and ML engineers who want to connect their papers to Hub artifacts and claim authorship with automatic tagging and citation management.

Generated from the current SKILL.md.

Does this skill work with arXiv papers only?
Yes. The skill indexes papers from arXiv IDs and integrates with Hugging Face Paper Pages, which surface arXiv papers. It does not support other paper sources or preprint servers.
Can I link a single paper to multiple models and datasets?
Yes. You can call the link command multiple times with the same arXiv ID but different repo-id values to connect one paper to multiple repositories across models, datasets, and spaces.
What does claiming authorship do?
Claiming authorship verifies that you are listed as an author on the paper and associates it with your Hugging Face account. You can then control whether the paper appears on your public profile via the toggle-visibility command.
Does the skill generate papers from scratch or just templates?
The skill generates markdown templates and structure for research articles in four styles (standard, modern, arxiv, ml-report). You provide the title, authors, abstract, and content; the skill formats it as a professional document and can convert it to HTML.
What authentication is required?
You must set the HF_TOKEN environment variable with a write-access token to use the script commands. The token is used to index papers, link them to repositories, and manage authorship claims on Hugging Face.

Generated from the current SKILL.md. These answers refresh after source changes.