Hugging Face Paper Publisher
Publish and manage research papers on Hugging Face Hub.
Content
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.
Integration with HF Ecosystem
- -Paper Pages: Index and discover papers on Hugging Face Hub
- -arXiv Integration: Automatic paper indexing from arXiv IDs
- -Model/Dataset Linking: Connect papers to relevant artifacts through metadata
- -Authorship Verification: Claim and verify paper authorship
- -Research Article Template: Generate professional, modern scientific papers
1.0.0
The included script uses PEP 723 inline dependencies. Prefer uv run over
manual environment setup.
- -huggingface_hub>=0.26.0
- -pyyaml>=6.0.3
- -requests>=2.32.5
- -markdown>=3.5.0
- -python-dotenv>=1.2.1
1. Paper Page Management
- -Index Papers: Add papers to Hugging Face from arXiv
- -Claim Authorship: Verify and claim authorship on published papers
- -Manage Visibility: Control which papers appear on your profile
- -Paper Discovery: Find and explore papers in the HF ecosystem
2. Link Papers to Artifacts
- -Model Cards: Add paper citations to model metadata
- -Dataset Cards: Link papers to datasets via README
- -Automatic Tagging: Hub auto-generates arxiv:<PAPER_ID> tags
- -Citation Management: Maintain proper attribution and references
3. Research Article Creation
- -Markdown Templates: Generate professional paper formatting
- -Modern Design: Clean, readable research article layouts
- -Dynamic TOC: Automatic table of contents generation
- -Section Structure: Standard scientific paper organization
- -LaTeX Math: Support for equations and technical notation
4. Metadata Management
- -YAML Frontmatter: Proper model/dataset card metadata
- -Citation Tracking: Maintain paper references across repositories
- -Version Control: Track paper updates and revisions
- -Multi-Paper Support: Link multiple papers to single artifacts
The skill includes Python scripts in scripts/ for paper publishing operations.
Prerequisites
- -Run scripts with
uv run(dependencies are resolved from the script header) - -Set
HF_TOKENenvironment variable with Write-access token
> **All paths are relative to the directory containing this SKILL.md
file.**
> Before running any script, first cd to that directory or use the full
path.
Method 1: Index Paper from arXiv
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.
Method 2: Link Paper to Model/Dataset
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:
#### How Linking Works
When you add an arXiv paper link to a model or dataset README:
1. The Hub extracts the arXiv ID from the link
2. A tag arxiv:<PAPER_ID> is automatically added to the repository
3. Users can click the tag to view the Paper Page
4. The Paper Page shows all models/datasets citing this paper
5. Papers are discoverable through filters and search
Method 3: Claim Authorship
Verify your authorship on papers published on Hugging Face.
Start Claim Process:
Manual Process:
1. Navigate to your paper's page: https://huggingface.co/papers/{arxiv-id}
2. Find your name in the author list
3. Click your name and select "Claim authorship"
4. Wait for admin team verification
Check Authorship Status:
Method 4: Manage Paper Visibility
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.
Method 5: Create Research Article
Generate a professional markdown-based research paper using modern templates.
Create from Template:
Available Templates:
- -
standard- Traditional scientific paper structure - -
modern- Clean, web-friendly format inspired by Distill - -
arxiv- arXiv-style formatting - -
ml-report- Machine learning experiment report
Generate Complete Paper:
Convert to HTML:
Paper Template Structure
Standard Research Paper Sections:
Modern Template Features:
- -Dynamic table of contents
- -Responsive design for web viewing
- -Code syntax highlighting
- -Interactive figures and charts
- -Math equation rendering (LaTeX)
- -Citation management
- -Author affiliation linking
Commands Reference
Index Paper:
Link to Repository:
Claim Authorship:
Manage Visibility:
Create Research Article:
Convert Markdown to HTML:
Check Paper Status:
List Your Papers:
Search Papers:
YAML Metadata Format
When linking papers to models or datasets, proper YAML frontmatter is required:
Model Card Example:
@article{doe2023paper,
title={Your Paper Title},
author={Doe, Jane and Smith, John},
journal={arXiv preprint arXiv:2301.12345},
year={2023}
}
Dataset Card Example:
The Hub automatically extracts arXiv IDs from these links and creates arxiv:2301.12345 tags.
Integration Examples
Workflow 1: Publish New Research
Workflow 2: Link Existing Paper
Workflow 3: Update Model with Paper Reference
Best Practices
1. Paper Indexing
- -Index papers as soon as they're published on arXiv
- -Include full citation information in model/dataset cards
- -Use consistent paper references across related repositories
2. Metadata Management
- -Add YAML frontmatter to all model/dataset cards
- -Include proper licensing information
- -Tag with relevant task categories and domains
3. Authorship
- -Claim authorship on papers where you're listed as author
- -Use institutional email addresses for verification
- -Keep paper visibility settings updated
4. Repository Linking
- -Link papers to all relevant models, datasets, and Spaces
- -Include paper context in README descriptions
- -Add BibTeX citations for easy reference
5. Research Articles
- -Use templates consistently within projects
- -Include code and data links in papers
- -Generate web-friendly HTML versions for sharing
Advanced Usage
Batch Link Papers:
Extract Paper Info:
Generate Citation:
Validate Links:
Error Handling
- -Paper Not Found: arXiv ID doesn't exist or isn't indexed yet
- -Permission Denied: HF_TOKEN lacks write access to repository
- -Invalid YAML: Malformed metadata in README frontmatter
- -Authorship Failed: Email doesn't match paper author records
- -Already Claimed: Another user has claimed authorship
- -Rate Limiting: Too many API requests in short time
Troubleshooting
Issue: "Paper not found on Hugging Face"
- -Solution: Visit
hf.co/papers/{arxiv-id}to trigger indexing
Issue: "Authorship claim not verified"
- -Solution: Wait for admin review or contact HF support with proof
Issue: "arXiv tag not appearing"
- -Solution: Ensure README includes proper arXiv URL format
Issue: "Cannot link to repository"
- -Solution: Verify HF_TOKEN has write permissions
Issue: "Template rendering errors"
- -Solution: Check markdown syntax and YAML frontmatter format
Resources and References
- -Hugging Face Paper Pages: hf.co/papers
- -Model Cards Guide: hf.co/docs/hub/model-cards
- -Dataset Cards Guide: hf.co/docs/hub/datasets-cards
- -Research Article Template: tfrere/research-article-template
- -arXiv Format Guide: arxiv.org/help/submit
Integration with tfrere's Research Template
This skill complements tfrere's research article template by providing:
- -Automated paper indexing workflows
- -Repository linking capabilities
- -Metadata management tools
- -Citation generation utilities
You can use tfrere's template for writing, then use this skill to publish and link the paper on Hugging Face Hub.
Common Patterns
Pattern 1: New Paper Publication
Pattern 2: Existing Paper Discovery
Pattern 3: Author Portfolio Management
API Integration
Python Script Example:
Future Enhancements
Planned features for future versions:
- -Support for non-arXiv papers (conference proceedings, journals)
- -Automatic citation formatting from DOI
- -Paper comparison and versioning tools
- -Collaborative paper writing features
- -Integration with LaTeX workflows
- -Automated figure and table extraction
- -Paper metrics and impact tracking
FAQ
Discussion
Loading comments...